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 Taylori...@google.com 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

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 i...@google.com 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.  

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 Hubersebastian.hu...@embedded-brains.de writes: On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: Sebastian Hubersebastian.hu...@embedded-brains.de writes: [...] I would recommend that

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

2012-02-15 Thread Ian Lance Taylor
Sebastian Huber sebastian.hu...@embedded-brains.de 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.

[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

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

2012-02-14 Thread Ian Lance Taylor
Sebastian Huber sebastian.hu...@embedded-brains.de 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

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 Hubersebastian.hu...@embedded-brains.de 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

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

2012-02-14 Thread Ian Lance Taylor
Sebastian Huber sebastian.hu...@embedded-brains.de writes: On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: Sebastian Hubersebastian.hu...@embedded-brains.de writes: the default ARM EABI configuration uses short enums by default (from gcc/config/arm/arm.c: /* AAPCS based ABIs use short

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 Hubersebastian.hu...@embedded-brains.de writes: On 02/14/2012 04:05 PM, Ian Lance Taylor wrote: Sebastian Hubersebastian.hu...@embedded-brains.de writes: the default ARM EABI configuration uses short enums by default (from gcc