aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-05-19 02:50:27 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-05-19 02:50:27 -0700
commit47754fd5485a059bba7dd059b719a1d02ff38585 (patch)
tree09e048642c8026646ba3670cb08ad9d367efeca8 /gcc/target.h
parentc2f22a1230cef5fb0aa370b243c67d3ce61ab931 (diff)
downloadgcc-47754fd5485a059bba7dd059b719a1d02ff38585.zip
gcc-47754fd5485a059bba7dd059b719a1d02ff38585.tar.gz
gcc-47754fd5485a059bba7dd059b719a1d02ff38585.tar.bz2
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
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h20
1 files changed, 13 insertions, 7 deletions
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;