This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: No effect of -fshort-enums..is it a bug
- From: Robert Dewar <dewar at adacore dot com>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: 'John Love-Jensen' <eljay at adobe dot com>, "'Gaurav Gautam, Noida'" <gauravga at noida dot hcltech dot com>, gcc at gcc dot gnu dot org, 'MSX to GCC' <gcc-help at gcc dot gnu dot org>
- Date: Thu, 22 Sep 2005 12:50:39 -0400
- Subject: Re: No effect of -fshort-enums..is it a bug
- References: <SERRANOevWWGxegIqun000001d8@SERRANO.CAM.ARTIMI.COM>
Dave Korn wrote:
Please confirm which of the two outputs is correct and why is there a
difference in the output of two versions of compiler?
Both outputs are "correct".
No, the standard is entirely unambiguous:
of course, but the behavior of a compiler with a special implementation
dependent switch is not specified by the standard! Switches can do any
amount of violence to the standard you like, the only requirement is
that there be a defined set of switches which gives standard defined
semantics.