public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* query:  -fshort-enums is default on which targets ?
@ 2005-09-27 13:06 Gaurav Gautam, Noida
  2005-09-27 15:08 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Gaurav Gautam, Noida @ 2005-09-27 13:06 UTC (permalink / raw)
  To: gcc, MSX to GCC

Hi,

The description about the option -fshort-enums on gcc.gnu.org says, that 

"-fshort-enums is the default on some targets, as required by the platform ABI."


1) Can anyone tell me, on which all targets, this is default?

2) Or if anyone can tell me any document through which I can find the list of those target.

3) I believe that this can also be found out by looking into gcc source code. Can anyone help to by telling me the approximate section of code, where I should look for this?


--gaurav

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: query:  -fshort-enums is default on which targets ?
  2005-09-27 13:06 query: -fshort-enums is default on which targets ? Gaurav Gautam, Noida
@ 2005-09-27 15:08 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2005-09-27 15:08 UTC (permalink / raw)
  To: Gaurav Gautam, Noida; +Cc: gcc, MSX to GCC

"Gaurav Gautam, Noida" <gauravga@noida.hcltech.com> writes:

> 1) Can anyone tell me, on which all targets, this is default?

$ grep -r TARGET_DEFAULT_SHORT_ENUMS gcc
gcc/config/arm/arm.c:#undef TARGET_DEFAULT_SHORT_ENUMS
gcc/config/arm/arm.c:#define TARGET_DEFAULT_SHORT_ENUMS arm_default_short_enums
gcc/doc/tm.texi:@deftypefn {Target Hook} bool TARGET_DEFAULT_SHORT_ENUMS (void)
gcc/target-def.h:#define TARGET_DEFAULT_SHORT_ENUMS hook_bool_void_false
gcc/target-def.h:  TARGET_DEFAULT_SHORT_ENUMS,			\
gcc/ChangeLog-2004:	(TARGET_DEFAULT_SHORT_ENUMS): Define.
gcc/ChangeLog-2004:	* target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
gcc/ChangeLog-2004:	(TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
gcc/ChangeLog-2004:	TARGET_DEFAULT_SHORT_ENUMS.  Update the description.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-27 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-27 13:06 query: -fshort-enums is default on which targets ? Gaurav Gautam, Noida
2005-09-27 15:08 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).