summaryrefslogtreecommitdiff
path: root/gcc/genchecksum.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2009-06-03 20:19:55 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2009-06-03 20:19:55 +0000
commit6bc7bc147769661decbc70e252ac09cccd374712 (patch)
treefb195405d46afa714beccb16a23db5902deea35e /gcc/genchecksum.c
parent54f806c7a214a001ae91fa236eccb9bed62a0143 (diff)
downloadgcc-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/genchecksum.c')
-rw-r--r--gcc/genchecksum.c6
1 files changed, 4 insertions, 2 deletions
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" : ", ");
}