AW: Gnu compiler version 4.7.0, dialect -std=c99 with -fshort-enums vs. GHS with --short_enum

Homam Alkhateeb Homam.Alkhateeb@kopfweb.de
Fri Mar 8 14:24:53 GMT 2024


understood! Many thanks for your help

Mit freundlichen Grüßen / Best regards
Homam Alkhateeb
KOPF GmbH / Kapbachstr. 6 / 76829 Landau / Germany
Tel.: +49 6341 91767-36 / Email: homam.alkhateeb@kopfweb.de
Geschäftsführer: Oliver Kopf - HRB Landau Nr. 3090 - Amtsgericht Landau 

-----Ursprüngliche Nachricht-----
Von: Segher Boessenkool <segher@kernel.crashing.org> 
Gesendet: Freitag, 8. März 2024 15:11
An: Homam Alkhateeb <Homam.Alkhateeb@kopfweb.de>
Cc: gcc-help@gcc.gnu.org
Betreff: Re: Gnu compiler version 4.7.0, dialect -std=c99 with -fshort-enums vs. GHS with --short_enum

On Fri, Mar 08, 2024 at 07:36:17AM +0000, Homam Alkhateeb wrote:
> Is there a way to do this without changing the code?

No.  Your system ABI requires what underlying type to use for an enum.
There would be terrible problems if a compiler could just choose to use different types willy-nilly!


Segher


More information about the Gcc-help mailing list