From 47754fd5485a059bba7dd059b719a1d02ff38585 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 19 May 2002 02:50:27 -0700 Subject: target-def.h (TARGET_BINDS_LOCAL_P): New. * target-def.h (TARGET_BINDS_LOCAL_P): New. * target.h (struct gcc_target): Move boolean fields to the end. Add binds_local_p. * varasm.c (default_binds_local_p): New. * output.h: Declare it. * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook. * config/cris/cris.c (cris_encode_section_info): Likewise. * config/i386/i386.c (i386_encode_section_info): Likewise. * config/ia64/ia64.c (ia64_encode_section_info): Likewise. * config/sh/sh.c (sh_encode_section_info): Likewise. * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New. (TARGET_BINDS_LOCAL_P): New. From-SVN: r53620 --- gcc/target.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index 1864d4a..f8648d5 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -230,13 +230,6 @@ struct gcc_target /* ??? Should be merged with SELECT_SECTION and UNIQUE_SECTION. */ unsigned int (* section_type_flags) PARAMS ((tree, const char *, int)); - /* True if arbitrary sections are supported. */ - bool have_named_sections; - - /* True if "native" constructors and destructors are supported, - false if we're using collect2 for the job. */ - bool have_ctors_dtors; - /* True if new jumps cannot be created, to replace existing ones or not, at the current point in the compilation. */ bool (* cannot_modify_jumps_p) PARAMS ((void)); @@ -244,12 +237,25 @@ struct gcc_target /* True if EXP should be placed in a "small data" section. */ bool (* in_small_data_p) PARAMS ((tree)); + /* True if EXP names an object for which name resolution must resolve + to the current module. */ + bool (* binds_local_p) PARAMS ((tree)); + /* Do something target-specific to record properties of the DECL into the associated SYMBOL_REF. */ void (* encode_section_info) PARAMS ((tree, int)); /* Undo the effects of encode_section_info on the symbol string. */ const char * (* strip_name_encoding) PARAMS ((const char *)); + + /* Leave the boolean fields at the end. */ + + /* True if arbitrary sections are supported. */ + bool have_named_sections; + + /* True if "native" constructors and destructors are supported, + false if we're using collect2 for the job. */ + bool have_ctors_dtors; }; extern struct gcc_target targetm; -- cgit v1.1