diff options
author | Ian Lance Taylor <iant@google.com> | 2009-06-03 20:19:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2009-06-03 20:19:55 +0000 |
commit | 6bc7bc147769661decbc70e252ac09cccd374712 (patch) | |
tree | fb195405d46afa714beccb16a23db5902deea35e /gcc | |
parent | 54f806c7a214a001ae91fa236eccb9bed62a0143 (diff) | |
download | gcc-6bc7bc147769661decbc70e252ac09cccd374712.tar.gz |
ansidecl.h (EXPORTED_CONST): Define.
include/:
* ansidecl.h (EXPORTED_CONST): Define.
gcc/:
* dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
* genattrtab.c (write_length_unit_log): Likewise.
* genchecksum.c (dosum): Likewise.
* gengtype.c (write_rtx_next): Likewise.
(finish_root_table, write_roots): Likewise.
* gimple.c (gimple_ops_offset_): Likewise.
* tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
* config/arc/arc.c (arc_attribute_table): Likewise.
* config/arm/arm.c (arm_attribute_table): Likewise.
* config/avr/avr.c (avr_attribute_table): Likewise.
* config/crx/crx.c (crx_attribute_table): Likewise.
* config/m32r/m32r.c (m32r_attribute_table): Likewise.
* config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
* config/mcore/mcore.c (mcore_attribute_table): Likewise.
* config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
* config/sh/sh.c (sh_attribute_table): Likewise.
* config/sparc/sparc.c (sparc_attribute_table): Likewise.
* config/spu/spu.c (spu_attribute_table): Likewise.
* config/v850/v850.c (v850_attribute_table): Likewise.
* config/alpha/alpha.c (vms_attribute_table): Make static.
* config/bfin/bfin.c (bfin_attribute_table): Likewise.
* config/h8300/h8300.c (h8300_attribute_table): Likewise.
* config/mips/mips.c (mips_attribute_table): Likewise.
* Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
$(SYSTEM_H).
(cc1-checksum.o): Likewise.
gcc/cp/:
* Make-lang.in (cc1plus-checksum.o): Depend upon $(CONFIG_H) and
$(SYSTEM_H).
gcc/objc/:
* Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and
$(SYSTEM_H).
gcc/objcp/:
* Make-lang.in (cc1objplus-checksum.o): Depend upon $(CONFIG_H)
and $(SYSTEM_H).
From-SVN: r148146
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 31 | ||||
-rw-r--r-- | gcc/Makefile.in | 4 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.c | 2 | ||||
-rw-r--r-- | gcc/config/arc/arc.c | 2 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 2 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 2 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 2 | ||||
-rw-r--r-- | gcc/config/crx/crx.c | 6 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 2 | ||||
-rw-r--r-- | gcc/config/m32r/m32r.c | 4 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.c | 2 | ||||
-rw-r--r-- | gcc/config/mcore/mcore.c | 2 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 2 | ||||
-rw-r--r-- | gcc/config/spu/spu.c | 2 | ||||
-rw-r--r-- | gcc/config/v850/v850.c | 2 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/dummy-checksum.c | 4 | ||||
-rw-r--r-- | gcc/genattrtab.c | 5 | ||||
-rw-r--r-- | gcc/genchecksum.c | 6 | ||||
-rw-r--r-- | gcc/gengtype.c | 16 | ||||
-rw-r--r-- | gcc/gimple.c | 2 | ||||
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/objcp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objcp/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/tree-nomudflap.c | 2 |
30 files changed, 90 insertions, 39 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9dc89ff8736..c2cac32adff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,34 @@ +2009-06-03 Ian Lance Taylor <iant@google.com> + + * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST. + * genattrtab.c (write_length_unit_log): Likewise. + * genchecksum.c (dosum): Likewise. + * gengtype.c (write_rtx_next): Likewise. + (finish_root_table, write_roots): Likewise. + * gimple.c (gimple_ops_offset_): Likewise. + * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise. + * config/arc/arc.c (arc_attribute_table): Likewise. + * config/arm/arm.c (arm_attribute_table): Likewise. + * config/avr/avr.c (avr_attribute_table): Likewise. + * config/crx/crx.c (crx_attribute_table): Likewise. + * config/m32r/m32r.c (m32r_attribute_table): Likewise. + * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise. + * config/mcore/mcore.c (mcore_attribute_table): Likewise. + * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise. + * config/sh/sh.c (sh_attribute_table): Likewise. + * config/sparc/sparc.c (sparc_attribute_table): Likewise. + * config/spu/spu.c (spu_attribute_table): Likewise. + * config/v850/v850.c (v850_attribute_table): Likewise. + + * config/alpha/alpha.c (vms_attribute_table): Make static. + * config/bfin/bfin.c (bfin_attribute_table): Likewise. + * config/h8300/h8300.c (h8300_attribute_table): Likewise. + * config/mips/mips.c (mips_attribute_table): Likewise. + + * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and + $(SYSTEM_H). + (cc1-checksum.o): Likewise. + 2009-06-03 Steve Ellcey <sje@cup.hp.com> * config/ia64/vect.md (*movv2sf_internal): Handle big endian case. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 381c189960c..814b90d31a4 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1671,7 +1671,7 @@ $(SPECS): xgcc$(exeext) gcc-cross$(exeext): xgcc$(exeext) cp xgcc$(exeext) gcc-cross$(exeext) -dummy-checksum.o : dummy-checksum.c +dummy-checksum.o : dummy-checksum.c $(CONFIG_H) $(SYSTEM_H) cc1-dummy$(exeext): $(C_OBJS) dummy-checksum.o $(BACKEND) $(LIBDEPS) $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \ @@ -1680,7 +1680,7 @@ cc1-dummy$(exeext): $(C_OBJS) dummy-checksum.o $(BACKEND) $(LIBDEPS) cc1-checksum.c : cc1-dummy$(exeext) build/genchecksum$(build_exeext) build/genchecksum$(build_exeext) cc1-dummy$(exeext) > $@ -cc1-checksum.o : cc1-checksum.c +cc1-checksum.o : cc1-checksum.c $(CONFIG_H) $(SYSTEM_H) cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS) $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \ diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 368ef507995..1803627c1f4 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -7334,7 +7334,7 @@ alpha_using_fp (void) #if TARGET_ABI_OPEN_VMS -const struct attribute_spec vms_attribute_table[] = +static const struct attribute_spec vms_attribute_table[] = { /* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */ { "overlaid", 0, 0, true, false, false, NULL }, diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 1f456b63cd7..221dea1ceac 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -78,7 +78,7 @@ static bool arc_handle_option (size_t, const char *, int); static void record_cc_ref (rtx); static void arc_init_reg_tables (void); static int get_arc_condition_code (rtx); -const struct attribute_spec arc_attribute_table[]; +EXPORTED_CONST struct attribute_spec arc_attribute_table[]; static tree arc_handle_interrupt_attribute (tree *, tree, tree, int, bool *); static bool arc_assemble_integer (rtx, unsigned int, int); static void arc_output_function_prologue (FILE *, HOST_WIDE_INT); diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index cf3ef2323c0..141a4b846a6 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -58,7 +58,7 @@ typedef struct minipool_node Mnode; typedef struct minipool_fixup Mfix; -const struct attribute_spec arm_attribute_table[]; +EXPORTED_CONST struct attribute_spec arm_attribute_table[]; void (*arm_lang_output_object_attributes_hook)(void); diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 26ba216b4e1..1e79644fc2e 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -67,7 +67,7 @@ static int compare_sign_p (rtx insn); static tree avr_handle_progmem_attribute (tree *, tree, tree, int, bool *); static tree avr_handle_fndecl_attribute (tree *, tree, tree, int, bool *); static tree avr_handle_fntype_attribute (tree *, tree, tree, int, bool *); -const struct attribute_spec avr_attribute_table[]; +EXPORTED_CONST struct attribute_spec avr_attribute_table[]; static bool avr_assemble_integer (rtx, unsigned int, int); static void avr_file_start (void); static void avr_file_end (void); diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index f4a8c4dc3d4..715ec818cf5 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -5446,7 +5446,7 @@ bfin_handle_l1_data_attribute (tree *node, tree name, tree ARG_UNUSED (args), } /* Table of valid machine attributes. */ -const struct attribute_spec bfin_attribute_table[] = +static const struct attribute_spec bfin_attribute_table[] = { /* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */ { "interrupt_handler", 0, 0, false, true, true, handle_int_attribute }, diff --git a/gcc/config/crx/crx.c b/gcc/config/crx/crx.c index 0ea5fbca7a1..28446259044 100644 --- a/gcc/config/crx/crx.c +++ b/gcc/config/crx/crx.c @@ -1,6 +1,7 @@ /* Output routines for GCC for CRX. Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. This file is part of GCC. @@ -122,7 +123,7 @@ static enum machine_mode output_memory_reference_mode; /*****************************************************************************/ /* Table of machine attributes. */ -const struct attribute_spec crx_attribute_table[]; +EXPORTED_CONST struct attribute_spec crx_attribute_table[]; /*****************************************************************************/ /* TARGETM FUNCTION PROTOTYPES */ @@ -1435,4 +1436,3 @@ crx_expand_epilogue (void) else emit_jump_insn (gen_pop_and_popret_return (GEN_INT (sum_regs))); } - diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 8630823ca85..c3dd29723fe 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -5263,7 +5263,7 @@ h8300_insert_attributes (tree node, tree *attributes) tiny_data: This variable lives in the tiny data area and can be referenced with 16-bit absolute memory references. */ -const struct attribute_spec h8300_attribute_table[] = +static const struct attribute_spec h8300_attribute_table[] = { /* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */ { "interrupt_handler", 0, 0, true, false, false, h8300_handle_fndecl_attribute }, diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c index b8721c27e53..3ee6b6bb5fc 100644 --- a/gcc/config/m32r/m32r.c +++ b/gcc/config/m32r/m32r.c @@ -1,6 +1,6 @@ /* Subroutines used for code generation on the Renesas M32R cpu. Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2007, 2008 Free Software Foundation, Inc. + 2005, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -65,7 +65,7 @@ static bool m32r_handle_option (size_t, const char *, int); static void init_reg_tables (void); static void block_move_call (rtx, rtx, rtx); static int m32r_is_insn (rtx); -const struct attribute_spec m32r_attribute_table[]; +EXPORTED_CONST struct attribute_spec m32r_attribute_table[]; static rtx m32r_legitimize_address (rtx, rtx, enum machine_mode); static tree m32r_handle_model_attribute (tree *, tree, tree, int, bool *); static void m32r_output_function_prologue (FILE *, HOST_WIDE_INT); diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index ae4f7057c76..a8a8db8ac3e 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -73,7 +73,7 @@ static int m68hc11_shift_cost (enum machine_mode, rtx, int); static int m68hc11_rtx_costs_1 (rtx, enum rtx_code, enum rtx_code); static bool m68hc11_rtx_costs (rtx, int, int, int *, bool); static tree m68hc11_handle_fntype_attribute (tree *, tree, tree, int, bool *); -const struct attribute_spec m68hc11_attribute_table[]; +EXPORTED_CONST struct attribute_spec m68hc11_attribute_table[]; void create_regs_rtx (void); diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 472bb75562a..d03a2839179 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -127,7 +127,7 @@ static void mcore_mark_dllexport (tree); static void mcore_mark_dllimport (tree); static int mcore_dllexport_p (tree); static int mcore_dllimport_p (tree); -const struct attribute_spec mcore_attribute_table[]; +EXPORTED_CONST struct attribute_spec mcore_attribute_table[]; static tree mcore_handle_naked_attribute (tree *, tree, tree, int, bool *); #ifdef OBJECT_FORMAT_ELF static void mcore_asm_named_section (const char *, diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 50a47e9bd5e..9e3d20be25b 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -565,7 +565,7 @@ const enum reg_class mips_regno_to_class[FIRST_PSEUDO_REGISTER] = { }; /* The value of TARGET_ATTRIBUTE_TABLE. */ -const struct attribute_spec mips_attribute_table[] = { +static const struct attribute_spec mips_attribute_table[] = { /* { name, min_len, max_len, decl_req, type_req, fn_type_req, handler } */ { "long_call", 0, 0, false, true, true, NULL }, { "far", 0, 0, false, true, true, NULL }, diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 579d22485ab..04ff6b54242 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -775,7 +775,7 @@ static bool rs6000_ms_bitfield_layout_p (const_tree); static tree rs6000_handle_struct_attribute (tree *, tree, tree, int, bool *); static void rs6000_eliminate_indexed_memrefs (rtx operands[2]); static const char *rs6000_mangle_type (const_tree); -extern const struct attribute_spec rs6000_attribute_table[]; +EXPORTED_CONST struct attribute_spec rs6000_attribute_table[]; static void rs6000_set_default_type_attributes (tree); static rtx rs6000_savres_routine_sym (rs6000_stack_t *, bool, bool, bool); static rtx rs6000_emit_stack_reset (rs6000_stack_t *, rtx, rtx, int, bool); diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 06d10710a3f..fdb38d71815 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -184,7 +184,7 @@ static void push_regs (HARD_REG_SET *, int); static int calc_live_regs (HARD_REG_SET *); static HOST_WIDE_INT rounded_frame_size (int); static rtx mark_constant_pool_use (rtx); -const struct attribute_spec sh_attribute_table[]; +EXPORTED_CONST struct attribute_spec sh_attribute_table[]; static tree sh_handle_interrupt_handler_attribute (tree *, tree, tree, int, bool *); static tree sh_handle_resbank_handler_attribute (tree *, tree, tree, int, bool *); diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index d6467bdc2dd..2d9431804ab 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -421,7 +421,7 @@ static void sparc_file_end (void); static const char *sparc_mangle_type (const_tree); #endif #ifdef SUBTARGET_ATTRIBUTE_TABLE -const struct attribute_spec sparc_attribute_table[]; +EXPORTED_CONST struct attribute_spec sparc_attribute_table[]; #endif /* Option handling. */ diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 5ee18e53a7e..a97bf24941f 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -316,7 +316,7 @@ spu_libgcc_shift_count_mode (void); #undef TARGET_SCHED_ADJUST_COST #define TARGET_SCHED_ADJUST_COST spu_sched_adjust_cost -const struct attribute_spec spu_attribute_table[]; +EXPORTED_CONST struct attribute_spec spu_attribute_table[]; #undef TARGET_ATTRIBUTE_TABLE #define TARGET_ATTRIBUTE_TABLE spu_attribute_table diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index f9e8a7dd8b0..0af2451341a 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -58,7 +58,7 @@ static void substitute_ep_register (rtx, rtx, int, int, rtx *, rtx *); static void v850_reorg (void); static int ep_memory_offset (enum machine_mode, int); static void v850_set_data_area (tree, v850_data_area); -const struct attribute_spec v850_attribute_table[]; +EXPORTED_CONST struct attribute_spec v850_attribute_table[]; static tree v850_handle_interrupt_attribute (tree *, tree, tree, int, bool *); static tree v850_handle_data_area_attribute (tree *, tree, tree, int, bool *); static void v850_insert_attributes (tree, tree *); diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8472f0ce7b1..bfd468b71b0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-06-03 Ian Lance Taylor <iant@google.com> + + * Make-lang.in (cc1plus-checksum.o): Depend upon $(CONFIG_H) and + $(SYSTEM_H). + 2009-06-02 Mark Mitchell <mark@codesourcery.com> * decl.c (maybe_deduce_size_from_array_init): Use relayout_decl. diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 1396eb9ced2..4c25122d65a 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -98,7 +98,7 @@ cc1plus-dummy$(exeext): $(CXX_OBJS) dummy-checksum.o $(BACKEND) $(LIBDEPS) cc1plus-checksum.c : cc1plus-dummy$(exeext) build/genchecksum$(build_exeext) build/genchecksum$(build_exeext) cc1plus-dummy$(exeext) > $@ -cc1plus-checksum.o : cc1plus-checksum.c +cc1plus-checksum.o : cc1plus-checksum.c $(CONFIG_H) $(SYSTEM_H) cc1plus$(exeext): $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(LIBDEPS) $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ diff --git a/gcc/dummy-checksum.c b/gcc/dummy-checksum.c index 81190a6ca15..c90f1ca9340 100644 --- a/gcc/dummy-checksum.c +++ b/gcc/dummy-checksum.c @@ -1 +1,3 @@ -const unsigned char executable_checksum[16] = { 0 }; +#include "config.h" +#include "system.h" +EXPORTED_CONST unsigned char executable_checksum[16] = { 0 }; diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 794a8db1bb1..def9a694a0e 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -1,6 +1,7 @@ /* Generate code from machine description to compute values of attributes. Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) This file is part of GCC. @@ -1637,7 +1638,7 @@ write_length_unit_log (void) for (length_unit_log = 0; length_or & 1; length_or >>= 1) length_unit_log++; } - printf ("const int length_unit_log = %u;\n", length_unit_log); + printf ("EXPORTED_CONST int length_unit_log = %u;\n", length_unit_log); } /* Take a COND expression and see if any of the conditions in it can be diff --git a/gcc/genchecksum.c b/gcc/genchecksum.c index ebcd34a29d3..fa00d0e3225 100644 --- a/gcc/genchecksum.c +++ b/gcc/genchecksum.c @@ -1,5 +1,5 @@ /* Generate checksums of executables for PCH validation - Copyright (C) 2005, 2007 + Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -56,7 +56,9 @@ dosum (const char *file) exit (1); } - fputs ("const unsigned char executable_checksum[16] = { ", stdout); + puts ("#include \"config.h\""); + puts ("#include \"system.h\""); + fputs ("EXPORTED_CONST unsigned char executable_checksum[16] = { ", stdout); for (i = 0; i < 16; i++) printf ("%#02x%s", result[i], i == 15 ? " };\n" : ", "); } diff --git a/gcc/gengtype.c b/gcc/gengtype.c index c7d59fd0019..2ec09dc880a 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -1,5 +1,5 @@ /* Process source files and output type information. - Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -964,7 +964,7 @@ write_rtx_next (void) int i; oprintf (f, "\n/* Used to implement the RTX_NEXT macro. */\n"); - oprintf (f, "const unsigned char rtx_next[NUM_RTX_CODE] = {\n"); + oprintf (f, "EXPORTED_CONST unsigned char rtx_next[NUM_RTX_CODE] = {\n"); for (i = 0; i < NUM_RTX_CODE; i++) if (rtx_next_new[i] == -1) oprintf (f, " 0,\n"); @@ -3028,7 +3028,7 @@ finish_root_table (struct flist *flp, const char *pfx, const char *lastname, size_t fnum; for (fnum = 0; fnum < num_lang_dirs; fnum++) oprintf (base_files [fnum], - "const struct %s * const %s[] = {\n", + "EXPORTED_CONST struct %s * const %s[] = {\n", tname, name); } @@ -3359,7 +3359,7 @@ write_roots (pair_p variables) { fli->started_p = 1; - oprintf (f, "const struct ggc_root_tab gt_ggc_r_"); + oprintf (f, "EXPORTED_CONST struct ggc_root_tab gt_ggc_r_"); put_mangled_filename (f, v->line.file); oprintf (f, "[] = {\n"); } @@ -3393,7 +3393,7 @@ write_roots (pair_p variables) { fli->started_p = 1; - oprintf (f, "const struct ggc_root_tab gt_ggc_rd_"); + oprintf (f, "EXPORTED_CONST struct ggc_root_tab gt_ggc_rd_"); put_mangled_filename (f, v->line.file); oprintf (f, "[] = {\n"); } @@ -3437,7 +3437,7 @@ write_roots (pair_p variables) { fli->started_p = 1; - oprintf (f, "const struct ggc_cache_tab gt_ggc_rc_"); + oprintf (f, "EXPORTED_CONST struct ggc_cache_tab gt_ggc_rc_"); put_mangled_filename (f, v->line.file); oprintf (f, "[] = {\n"); } @@ -3473,7 +3473,7 @@ write_roots (pair_p variables) { fli->started_p = 1; - oprintf (f, "const struct ggc_root_tab gt_pch_rc_"); + oprintf (f, "EXPORTED_CONST struct ggc_root_tab gt_pch_rc_"); put_mangled_filename (f, v->line.file); oprintf (f, "[] = {\n"); } @@ -3509,7 +3509,7 @@ write_roots (pair_p variables) { fli->started_p = 1; - oprintf (f, "const struct ggc_root_tab gt_pch_rs_"); + oprintf (f, "EXPORTED_CONST struct ggc_root_tab gt_pch_rs_"); put_mangled_filename (f, v->line.file); oprintf (f, "[] = {\n"); } diff --git a/gcc/gimple.c b/gcc/gimple.c index 703236691f7..d3578da28da 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -45,7 +45,7 @@ const char *const gimple_code_name[] = { operands vector the size of the structure minus the size of the 1 element tree array at the end (see gimple_ops). */ #define DEFGSCODE(SYM, NAME, STRUCT) (sizeof (STRUCT) - sizeof (tree)), -const size_t gimple_ops_offset_[] = { +EXPORTED_CONST size_t gimple_ops_offset_[] = { #include "gimple.def" }; #undef DEFGSCODE diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index a7db6bc0ab9..afe61caba08 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-03 Ian Lance Taylor <iant@google.com> + + * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and + $(SYSTEM_H). + 2009-05-27 Ian Lance Taylor <iant@google.com> * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in index 56419eea8bb..bfe8a849091 100644 --- a/gcc/objc/Make-lang.in +++ b/gcc/objc/Make-lang.in @@ -59,7 +59,7 @@ cc1obj-dummy$(exeext): $(OBJC_OBJS) $(C_AND_OBJC_OBJS) dummy-checksum.o $(BACKEN cc1obj-checksum.c : cc1obj-dummy$(exeext) build/genchecksum$(build_exeext) build/genchecksum$(build_exeext) cc1obj-dummy$(exeext) > $@ -cc1obj-checksum.o : cc1obj-checksum.c +cc1obj-checksum.o : cc1obj-checksum.c $(CONFIG_H) $(SYSTEM_H) cc1obj$(exeext): $(OBJC_OBJS) $(C_AND_OBJC_OBJS) cc1obj-checksum.o $(BACKEND) $(LIBDEPS) $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog index e2f003de069..12b93aac710 100644 --- a/gcc/objcp/ChangeLog +++ b/gcc/objcp/ChangeLog @@ -1,3 +1,8 @@ +2009-06-03 Ian Lance Taylor <iant@google.com> + + * Make-lang.in (cc1objplus-checksum.o): Depend upon $(CONFIG_H) + and $(SYSTEM_H). + 2009-05-27 Ian Lance Taylor <iant@google.com> * Make-lang.in (cc1objplus-dummy$(exeext)): Change $(COMPILER) to diff --git a/gcc/objcp/Make-lang.in b/gcc/objcp/Make-lang.in index 76f86e52fcb..2b1b8098429 100644 --- a/gcc/objcp/Make-lang.in +++ b/gcc/objcp/Make-lang.in @@ -61,7 +61,7 @@ cc1objplus-dummy$(exeext): $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) \ cc1objplus-checksum.c : cc1objplus-dummy$(exeext) build/genchecksum$(build_exeext) build/genchecksum$(build_exeext) cc1objplus-dummy$(exeext) > $@ -cc1objplus-checksum.o : cc1objplus-checksum.c +cc1objplus-checksum.o : cc1objplus-checksum.c $(CONFIG_H) $(SYSTEM_H) cc1objplus$(exeext): $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBDEPS) $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ diff --git a/gcc/tree-nomudflap.c b/gcc/tree-nomudflap.c index 1021b31757a..96b58f37c5a 100644 --- a/gcc/tree-nomudflap.c +++ b/gcc/tree-nomudflap.c @@ -132,6 +132,6 @@ struct gimple_opt_pass pass_mudflap_2 = We prepare a little dummy struct here. */ -const struct ggc_root_tab gt_ggc_r_gt_tree_mudflap_h[] = { +EXPORTED_CONST struct ggc_root_tab gt_ggc_r_gt_tree_mudflap_h[] = { LAST_GGC_ROOT_TAB }; |