aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-02-23 14:10:58 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-02-23 14:10:58 +0000
commit221ee7c920c3eb45da77f01f82c4611798473fcf (patch)
tree684973460c4b2cce9b47cff5b069f2fbfe37d61d /gcc/target.h
parent9bdfe70405125e57b5ef92bba66eb268c43ab1d4 (diff)
downloadgcc-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/target.h')
-rw-r--r--gcc/target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index aa56d64..ed96b02 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -410,6 +410,11 @@ struct gcc_target
void * (* get_pch_validity) (size_t *);
const char * (* pch_valid_p) (const void *, size_t);
+ /* True if the compiler should give an @code{enum} type only as many
+ bytes as it takes to represent the range of possible values of
+ that type. */
+ bool (* default_short_enums) (void);
+
/* Leave the boolean fields at the end. */
/* True if arbitrary sections are supported. */