diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-02-23 14:10:58 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-02-23 14:10:58 +0000 |
commit | 221ee7c920c3eb45da77f01f82c4611798473fcf (patch) | |
tree | 684973460c4b2cce9b47cff5b069f2fbfe37d61d /gcc/opts.c | |
parent | 9bdfe70405125e57b5ef92bba66eb268c43ab1d4 (diff) | |
download | gcc-221ee7c920c3eb45da77f01f82c4611798473fcf.zip gcc-221ee7c920c3eb45da77f01f82c4611798473fcf.tar.gz gcc-221ee7c920c3eb45da77f01f82c4611798473fcf.tar.bz2 |
Makefile.in (opts.o): Depend on target.h.
* Makefile.in (opts.o): Depend on target.h.
* opts.c (decode_options): Use targetm.default_short_enums
instead of DEFAULT_SHORT_ENUMS.
* system.h (DEFAULT_SHORT_ENUMS): Poison.
* target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
(TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
* target.h (gcc_target): Add default_short_enums.
* config/cris/cris.h: Remove a comment about
DEFAULT_SHORT_ENUMS.
* config/ip2k/ip2k.h: Likewise.
* doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
TARGET_DEFAULT_SHORT_ENUMS. Update the description.
From-SVN: r78303
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -37,6 +37,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "diagnostic.h" #include "tm_p.h" /* For OPTIMIZATION_OPTIONS. */ #include "insn-attr.h" /* For INSN_SCHEDULING. */ +#include "target.h" /* Value of the -G xx switch, and whether it was passed or not. */ unsigned HOST_WIDE_INT g_switch_value; @@ -594,10 +595,8 @@ decode_options (unsigned int argc, const char **argv) /* Initialize whether `char' is signed. */ flag_signed_char = DEFAULT_SIGNED_CHAR; -#ifdef DEFAULT_SHORT_ENUMS /* Initialize how much space enums occupy, by default. */ - flag_short_enums = DEFAULT_SHORT_ENUMS; -#endif + flag_short_enums = targetm.default_short_enums (); /* Initialize target_flags before OPTIMIZATION_OPTIONS so the latter can modify it. */ |