Re: [ARM] EABI and the default to short enums

2012-02-28 Thread Sebastian Huber
On 02/27/2012 10:33 PM, Daniel Jacobowitz wrote: Sorry for being late to the party. On Wed, Feb 15, 2012 at 9:55 AM, Ian Lance Taylor wrote: Ouch, I did not know that the EABI left this open. That seems like a bug, because it prevents code from being interoperable. This is precisely the kind

Re: [ARM] EABI and the default to short enums

2012-02-27 Thread Daniel Jacobowitz
Sorry for being late to the party. On Wed, Feb 15, 2012 at 9:55 AM, Ian Lance Taylor wrote: > Ouch, I did not know that the EABI left this open.  That seems like a > bug, because it prevents code from being interoperable.  This is > precisely the kind of thing an ABI should address.  Does anybody

Re: [ARM] EABI and the default to short enums

2012-02-15 Thread Ian Lance Taylor
Sebastian Huber writes: > I mean the ABI described in "Procedure Call Standard for the ARM > Architecture" document number "ARM IHI 0042D, current through ABI > release 2.08". In GCC this is ARM_ABI_AAPCS and ARM_ABI_AAPCS_LINUX? That is my understanding, yes. > This is not hacking. It is ma

Re: [ARM] EABI and the default to short enums

2012-02-15 Thread Sebastian Huber
On 02/15/2012 07:07 AM, Ralf Corsepius wrote: On 02/14/2012 06:51 PM, Ian Lance Taylor wrote: Sebastian Huber writes: On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: Sebastian Huber writes: [...] I would recommend that RTEMS change to the ARM EABI if possible. That is the current standard A

Re: [ARM] EABI and the default to short enums

2012-02-14 Thread Ralf Corsepius
On 02/14/2012 06:51 PM, Ian Lance Taylor wrote: Sebastian Huber writes: On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: Sebastian Huber writes: the default ARM EABI configuration uses short enums by default (from "gcc/config/arm/arm.c": /* AAPCS based ABIs use short enums by default. */

Re: [ARM] EABI and the default to short enums

2012-02-14 Thread Ian Lance Taylor
Sebastian Huber writes: > On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: >> Sebastian Huber writes: >> >>> the default ARM EABI configuration uses short enums by default (from >>> "gcc/config/arm/arm.c": >>> >>> /* AAPCS based ABIs use short enums by default. */ >>> >>> static bool >>> arm_def

Re: [ARM] EABI and the default to short enums

2012-02-14 Thread Sebastian Huber
On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: Sebastian Huber writes: the default ARM EABI configuration uses short enums by default (from "gcc/config/arm/arm.c": /* AAPCS based ABIs use short enums by default. */ static bool arm_default_short_enums (void) { return TARGET_AAPCS_BASED&&

Re: [ARM] EABI and the default to short enums

2012-02-14 Thread Ian Lance Taylor
Sebastian Huber writes: > the default ARM EABI configuration uses short enums by default (from > "gcc/config/arm/arm.c": > > /* AAPCS based ABIs use short enums by default. */ > > static bool > arm_default_short_enums (void) > { > return TARGET_AAPCS_BASED && arm_abi != ARM_ABI_AAPCS_LINUX; >

[ARM] EABI and the default to short enums

2012-02-14 Thread Sebastian Huber
Hello, the default ARM EABI configuration uses short enums by default (from "gcc/config/arm/arm.c": /* AAPCS based ABIs use short enums by default. */ static bool arm_default_short_enums (void) { return TARGET_AAPCS_BASED && arm_abi != ARM_ABI_AAPCS_LINUX; } This causes a major headache f