gcc/gcc
Zack Weinberg 5b02f0e004 c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when...
* c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
	decls when there is only one input translation unit.
	* langhooks.c (lhd_set_decl_assembler_name): Partially revert
	change of 2004-07-05; do not treat declarations with
	DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
	* opts.c (cur_in_fname): Delete.
	* opts.h: Likewise.
	* tree.c: Revert changes of 2004-07-05; no special treatment
	for TRANSLATION_UNIT_DECLs.
	* Makefile.in (tree.o): Update dependencies.

From-SVN: r84306
2004-07-08 19:49:08 +00:00
..
ada except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
config sparc.md (UNSPECV_GOTO_V9): Delete. 2004-07-08 16:39:10 +00:00
cp name-lookup.h (struct cp_binding_level): Update documentation for class_shadowed. 2004-07-08 14:53:42 +00:00
doc Introduce H8SX support. 2004-07-08 03:40:34 +00:00
fixinc
fortran intrinsic.c (add_sym_4s): New function. 2004-07-08 19:42:26 +00:00
ginclude
java except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
objc re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
po
testsuite [multiple changes] 2004-07-08 17:58:22 +02:00
treelang rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
.cvsignore
ABOUT-GCC-NLS
aclocal.m4
alias.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
basic-block.h Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
bb-reorder.c
bitmap.c
bitmap.h
bt-load.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
builtin-attrs.def
builtin-types.def
builtins.c builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy. 2004-07-08 17:40:22 +00:00
builtins.def builtins.c (fold_builtin_classify): New. 2004-07-01 08:02:34 +00:00
c-aux-info.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-common.c re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
c-common.def c-common.c (c_safe_from_p, [...]): Deleted. 2004-06-26 17:11:23 -04:00
c-common.h c-common.h (check_function_format): Remove first parameter. 2004-06-30 23:28:02 +01:00
c-config-lang.in
c-convert.c
c-cppbuiltin.c c-common.h (has_c_linkage): New interface. 2004-06-20 08:34:54 +00:00
c-decl.c c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
c-dump.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-errors.c
c-format.c re PR c/1027 (slightly misleading printf format warning) 2004-07-01 09:52:33 +01:00
c-gimplify.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-incpath.c
c-incpath.h
c-lang.c re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
c-lex.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-objc-common.c re PR c/1027 (slightly misleading printf format warning) 2004-07-01 09:52:33 +01:00
c-opts.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-parse.in Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-pch.c c-opts.c (c_common_handle_option): Handle -fpch-preprocess. 2004-06-22 06:51:56 +00:00
c-ppoutput.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-pragma.c c-opts.c (c_common_handle_option): Handle -fpch-preprocess. 2004-06-22 06:51:56 +00:00
c-pragma.h c-pragma.h (c_lex_string_translate): Change type to int. 2004-06-15 21:43:21 +00:00
c-pretty-print.c c-pretty-print.c (pp_c_postfix_expression): Fix pasto. 2004-07-01 17:51:54 +00:00
c-pretty-print.h
c-semantics.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-tree.h langhooks.c: Don't include gt-langhooks.h. 2004-07-05 17:28:37 +00:00
c-typeck.c re PR c/16348 (Loop gets executed when it shouldnt) 2004-07-04 10:28:56 -07:00
c.opt re PR c++/15145 (Implementing -Wsequence-point for C++ would be very useful) 2004-06-27 18:58:24 -07:00
caller-save.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
calls.c expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0. 2004-07-08 16:57:48 +00:00
cfg.c
cfganal.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
cfgbuild.c cfgbuild.c (make_edges): Do not use label_value_list. 2004-06-17 19:50:45 +00:00
cfgcleanup.c cfgcleanup.c (try_simplify_condjump): Update test to make sure we have a conditional branch around am unconditional... 2004-06-16 19:03:11 +01:00
cfgexpand.c c-decl.c (grokdeclarator): Don't frob current_function_decl around variable_size. 2004-07-02 17:15:50 -07:00
cfghooks.c cfghooks.c (make_forwarder_block): Decrement count on fallthru edge when redirecting back edges. 2004-06-22 22:09:46 -06:00
cfghooks.h
cfglayout.c function.h (struct function): Remove dont_emit_block_notes. 2004-07-01 01:00:47 -07:00
cfglayout.h
cfgloop.c
cfgloop.h loop-invariant.c: New file. 2004-06-20 21:31:32 +00:00
cfgloopanal.c loop-invariant.c: New file. 2004-06-20 21:31:32 +00:00
cfgloopmanip.c
cfgrtl.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
cgraph.c
cgraph.h cgraph.h (cgraph_build_static_cdtor): Declare. 2004-07-01 00:51:12 -07:00
cgraphunit.c cgraph.h (cgraph_build_static_cdtor): Declare. 2004-07-01 00:51:12 -07:00
ChangeLog c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
ChangeLog.0
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11 Rotate ChangeLog 2004-07-01 12:47:14 +00:00
ChangeLog.lib
ChangeLog.tree-ssa
collect2.c collect2.c (dump_file): Don't call cplus_demangle if HAVE_LD_DEMANGLE is defined. 2004-07-07 13:29:13 -07:00
collect2.h
combine.c * combine.c (simplify_comparison): Fix comment typo. 2004-07-04 22:22:50 +00:00
common.opt common.opt (ftree-loop-optimize): New flag. 2004-06-30 21:29:00 +00:00
conditions.h
config.build
config.gcc * config.gcc (i[34567]86-*-mingw32*): Enable threads by default. 2004-07-07 18:28:54 -07:00
config.host
config.in collect2.c (dump_file): Don't call cplus_demangle if HAVE_LD_DEMANGLE is defined. 2004-07-07 13:29:13 -07:00
configure configure: Regenerate with the right autoconf. 2004-07-07 15:01:54 -07:00
configure.ac collect2.c (dump_file): Don't call cplus_demangle if HAVE_LD_DEMANGLE is defined. 2004-07-07 13:29:13 -07:00
conflict.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
convert.c convert.c (strip_float_extension): Skip both NOP_EXPR and CONVERT_EXPR floating point extensions. 2004-06-23 20:42:45 +00:00
convert.h * convert.h: Add include guards 2004-06-15 21:04:15 +00:00
COPYING
COPYING.LIB
coretypes.h
coverage.c cgraph.h (cgraph_build_static_cdtor): Declare. 2004-07-01 00:51:12 -07:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
cselib.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
cselib.h
cstamp-h.in
dbxout.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
dbxout.h * dbxout.h: Add include guards 2004-06-25 15:01:35 +00:00
ddg.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:42:07 +00:00
ddg.h c-typeck.c, [...]: Fix comment typos. 2004-06-26 05:03:55 +00:00
debug.c
debug.h
defaults.h
df.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
df.h
diagnostic.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
diagnostic.def
diagnostic.h
dojump.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
dominance.c
domwalk.c
domwalk.h configure.ac: Don't invoke ACX_HEADER_STDBOOL. 2004-06-12 05:53:54 +00:00
dummy-conditions.c
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
dwarf2out.h
dwarf.h
emit-rtl.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
except.h except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
explow.c explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
expmed.c expmed.c (emit_store_flag): Also special-case double-word (in-)equality comparison against -1. 2004-07-07 23:08:52 -07:00
expr.c expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0. 2004-07-08 16:57:48 +00:00
expr.h builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy. 2004-07-08 17:40:22 +00:00
final.c Introduce H8SX support. 2004-07-08 03:40:34 +00:00
fix-header.c
fixproto
flags.h common.opt (ftree-fre): New flag. 2004-06-28 21:53:04 -04:00
flow.c * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE. 2004-07-07 18:23:47 -07:00
fold-const.c builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy. 2004-07-08 17:40:22 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0. 2004-07-08 16:57:48 +00:00
function.h rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
gbl-ctors.h
gcc.c gcc.c (STANDARD_STARTFILE_PREFIX_1): Define. 2004-07-01 23:55:22 +00:00
gcc.h
gccbug.in * gccbug.in: Update optimization -> tree-optimization/rtl-optimization. 2004-06-15 02:41:21 +00:00
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c c-typeck.c, [...]: Fix comment typos. 2004-06-26 05:03:55 +00:00
gcse.c gcse.c (hash_scan_set, [...]): Revert previous change, don't use CALL_P. 2004-06-14 06:55:35 +02:00
gdbinit.in
gen-protos.c
genattr.c
genattrtab.c Introduce H8SX support. 2004-07-08 03:40:34 +00:00
genattrtab.h
genautomata.c
gencheck.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l Conditionally compile support for --enable-mapped_location. 2004-06-30 11:21:54 -07:00
gengtype-yacc.y gengtype-yacc.y (option): Avoid use of non-constant struct initializer. 2004-06-23 09:08:21 +00:00
gengtype.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
gengtype.h
genmodes.c
genmultilib
genopinit.c builtins.c: Rename movstr*, except for movstrict*, to movmem* and clrstr* to clrmem*. 2004-07-07 19:25:01 +00:00
genoutput.c
genpeep.c
genpreds.c
genrecog.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
gensupport.c
gensupport.h
ggc-common.c
ggc-none.c
ggc-page.c
ggc-zone.c
ggc.h
gimple-low.c gimple-low.c (lower_function_body): Don't reset_block_changes here. 2004-07-01 21:53:37 -07:00
gimplify.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
glimits.h
global.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
gmon.c
graph.c
graph.h
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c
gthr-gnat.h
gthr-posix.c
gthr-posix.h
gthr-rtems.h
gthr-single.h
gthr-solaris.h
gthr-vxworks.h
gthr-win32.h gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust. 2004-06-23 23:57:27 +00:00
gthr.h
haifa-sched.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
hard-reg-set.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c ifcvt.c (total_bb_rtx_cost): New function. 2004-07-07 17:35:44 -04:00
input.h Conditionally compile support for --enable-mapped_location. 2004-06-30 10:58:21 -07:00
insn-addr.h
integrate.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
integrate.h
intl.c
intl.h
jump.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
langhooks-def.h re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
langhooks.c c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
langhooks.h re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
LANGUAGES
lcm.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
libada-mk.in
libfuncs.h c-decl.c, [...]: Don't check TARGET_MEM_FUNCTIONS. 2004-07-05 20:49:20 +01:00
libgcc2.c
libgcc2.h
libgcc-darwin.ver libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4. 2004-06-12 06:34:58 +02:00
libgcc-std.ver libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4. 2004-06-12 06:34:58 +02:00
libgcov.c
limitx.h
limity.h
lists.c
local-alloc.c builtins.c: Rename movstr*, except for movstrict*, to movmem* and clrstr* to clrmem*. 2004-07-07 19:25:01 +00:00
longlong.h * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss. 2004-06-15 10:40:44 +00:00
loop-doloop.c
loop-init.c loop-invariant.c: New file. 2004-06-20 21:31:32 +00:00
loop-invariant.c loop-invariant.c: New file. 2004-06-20 21:31:32 +00:00
loop-iv.c loop-iv.c (iv_analyze, [...]): Support for identifying shifts of induction variable. 2004-06-24 16:50:35 +00:00
loop-unroll.c
loop-unswitch.c
loop.c re PR rtl-optimization/16380 (Use of uninitialised register after dbra conversion) 2004-07-06 18:27:35 +00:00
loop.h
machmode.def
machmode.h
main.c
Makefile.in c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkheaders.in
mklibgcc.in
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
modulo-sched.c ifcvt.c, [...]: Fix comment typos. 2004-07-02 00:51:01 +00:00
ONEWS
opt-functions.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
opt-gather.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
optabs.c builtins.c: Rename movstr*, except for movstrict*, to movmem* and clrstr* to clrmem*. 2004-07-07 19:25:01 +00:00
optabs.h builtins.c: Rename movstr*, except for movstrict*, to movmem* and clrstr* to clrmem*. 2004-07-07 19:25:01 +00:00
optc-gen.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
opth-gen.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
opts.c c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
opts.h c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
output.h explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
params.c
params.def
params.h
passes.c explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
postreload.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
predict.c
predict.def CFG transparent RTL expansion: 2004-06-19 15:33:06 +00:00
predict.h
prefix.c prefix.c (lookup_key): Cast buffer to LPBYTE. 2004-06-30 11:45:58 -07:00
prefix.h
pretty-print.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
pretty-print.h
print-rtl.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
print-tree.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
profile.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
protoize.c
ra-build.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
ra-colorize.c
ra-debug.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
ra-rewrite.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
ra.c
ra.h
read-rtl.c
README-fixinc
README.Portability
real.c Bug 14610 2004-06-17 17:05:48 +00:00
real.h
recog.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
recog.h
reg-stack.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
regclass.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
regmove.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
regrename.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
regs.h
reload1.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
reload.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
reload.h
reorg.c re PR bootstrap/16326 (Bootstrap failure after "RTL prologue/epilogue for SPARC" patch) 2004-07-08 06:41:13 +00:00
resource.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
resource.h
rtl-error.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
rtl-profile.c
rtl.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
rtl.def rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
rtl.h explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
rtlanal.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
rtlhooks-def.h
rtlhooks.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
sched-ebb.c
sched-int.h
sched-rgn.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:21:54 -07:00
sched-vis.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:21:54 -07:00
sdbout.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
sdbout.h
SERVICE
simplify-rtx.c simplify-rtx.c (simplify_binary_operation): Use rtx_cost instead of "had_mult" to determine whether the transformed... 2004-07-01 13:09:39 +00:00
sort-protos
sreal.c
sreal.h
stab.def
stack.h
statistics.h
stmt.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
stor-layout.c c-decl.c (grokdeclarator): Don't frob current_function_decl around variable_size. 2004-07-02 17:15:50 -07:00
stringpool.c
stub-objc.c c-common.c (lang_gimplify_stmt): Remove next_p argument. 2004-06-15 18:21:38 -07:00
sys-protos.h
sys-types.h
system.h c-decl.c, [...]: Don't check TARGET_MEM_FUNCTIONS. 2004-07-05 20:49:20 +01:00
target-def.h target.h (struct gcc_target): Add new field to struct cxx: import_export_class. 2004-07-01 08:47:16 +00:00
target.h target.h (struct gcc_target): Add new field to struct cxx: import_export_class. 2004-07-01 08:47:16 +00:00
targhooks.c target-def.h (TARGET_CXX_GET_COOKIE_SIZE, [...]): Define. 2004-06-29 14:50:35 +00:00
targhooks.h target-def.h (TARGET_CXX_GET_COOKIE_SIZE, [...]): Define. 2004-06-29 14:50:35 +00:00
timevar.c
timevar.def common.opt (ftree-fre): New flag. 2004-06-28 21:53:04 -04:00
timevar.h
tlink.c
toplev.c Conditionally compile support for --enable-mapped_location. 2004-06-30 10:58:21 -07:00
toplev.h toplev.h (NO_FRONT_END_DIAG, [...]): Define. 2004-07-06 23:42:45 +01:00
tracer.c
tree-alias-ander.c
tree-alias-ander.h tree-alias-ander.h: Add standard top-of-file comment. 2004-06-17 14:49:59 +10:00
tree-alias-common.c ifcvt.c, [...]: Fix comment typos. 2004-07-02 00:51:01 +00:00
tree-alias-common.h tree-alias-common.h (struct tree_alias_ops): Change ip and ip_partial to unsigned int. 2004-06-21 13:37:46 +01:00
tree-alias-type.c
tree-alias-type.h tree-alias-ander.h: Add standard top-of-file comment. 2004-06-17 14:49:59 +10:00
tree-browser.c
tree-browser.def
tree-cfg.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-chrec.c Makefile.in (OBJS-common): Add tree-chrec.o. 2004-06-30 15:37:42 +00:00
tree-chrec.h Makefile.in (OBJS-common): Add tree-chrec.o. 2004-06-30 15:37:42 +00:00
tree-complex.c
tree-dfa.c tree-dfa.c (get_virtual_var): Merge real/imaginary parts with handled_component_p handling. 2004-06-25 14:30:09 -04:00
tree-dump.c tree.h (TYPE_BINFO_OFFSET, [...]): Remove. 2004-07-07 10:21:04 +00:00
tree-dump.h c-common.def (RETURN_STMT): Remove. 2004-06-21 16:30:30 -07:00
tree-eh.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-flow-inline.h tree-flow-inline.h (may_propagate_copy): Move... 2004-07-07 13:16:00 -07:00
tree-flow.h tree-flow.h (addressable_vars): Declare. 2004-07-08 02:34:23 -04:00
tree-gimple.c tree.def (RTL_EXPR): Remove. 2004-07-01 18:15:43 -07:00
tree-gimple.h gimplify.c (gimplify_compound_lval): Take fallback argument instead of want_lvalue. 2004-06-30 17:14:43 -07:00
tree-inline.c tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS regardless of DECL_LANG_SPECIFIC being present or not. 2004-07-07 22:03:43 +00:00
tree-inline.h c-decl.c (grokdeclarator): Don't frob current_function_decl around variable_size. 2004-07-02 17:15:50 -07:00
tree-into-ssa.c tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-iterator.c c-common.c (lang_gimplify_stmt): Remove next_p argument. 2004-06-15 18:21:38 -07:00
tree-iterator.h c-common.c (lang_gimplify_stmt): Remove next_p argument. 2004-06-15 18:21:38 -07:00
tree-mudflap.c tree-mudflap.c: Include cgraph.h. 2004-07-05 18:12:47 +00:00
tree-mudflap.h tree-mudflap.c: Include cgraph.h. 2004-07-05 18:12:47 +00:00
tree-nested.c tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro. 2004-07-05 12:39:15 -04:00
tree-nomudflap.c
tree-nrv.c c-typeck.c, [...]: Fix comment typos. 2004-06-26 05:03:55 +00:00
tree-optimize.c langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove. 2004-07-06 20:19:55 -07:00
tree-outof-ssa.c c-common.c (c_safe_from_p, [...]): Deleted. 2004-06-26 17:11:23 -04:00
tree-pass.h common.opt (ftree-loop-optimize): New flag. 2004-06-30 21:29:00 +00:00
tree-phinodes.c tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT. 2004-06-17 18:13:20 +00:00
tree-pretty-print.c except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
tree-profile.c
tree-sra.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-ssa-alias.c tree-flow.h (addressable_vars): Declare. 2004-07-08 02:34:23 -04:00
tree-ssa-ccp.c builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy. 2004-07-08 17:40:22 +00:00
tree-ssa-copy.c tree-flow-inline.h (may_propagate_copy): Move... 2004-07-07 13:16:00 -07:00
tree-ssa-copyrename.c tree.h (PHI_CHAIN): New. 2004-06-16 23:03:34 +00:00
tree-ssa-dce.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-ssa-dom.c tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look through any value-preserving cast. 2004-07-07 17:03:08 -07:00
tree-ssa-dse.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-ssa-forwprop.c
tree-ssa-live.c tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT. 2004-06-17 18:13:20 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-ssa-loop.c common.opt (ftree-loop-optimize): New flag. 2004-06-30 21:29:00 +00:00
tree-ssa-operands.c tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in the handling of clobbering ASM_EXPRs. 2004-07-08 11:03:10 -04:00
tree-ssa-operands.h tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-ssa-phiopt.c tree.h (PHI_CHAIN): New. 2004-06-16 23:03:34 +00:00
tree-ssa-pre.c tree-ssa-pre.c (reference_node_pool): New pool. 2004-07-06 19:55:06 +00:00
tree-ssa.c re PR c/2511 (-pedantic not warning about bitfield overflow) 2004-07-08 09:45:05 +01:00
tree-ssanames.c re PR tree-optimization/15991 (phi nodes with identical arguments still remain at t50.tailc) 2004-06-17 17:47:47 +00:00
tree-tailcall.c tree-cfg.c (make_exit_edges): Use get_call_expr_in. 2004-07-08 09:16:41 -07:00
tree-vn.c tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant to check for constants. 2004-06-30 07:06:28 -04:00
tree.c c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
tree.def except.c (expand_eh_region_start, [...]): Remove. 2004-07-08 00:46:07 -07:00
tree.h builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy. 2004-07-08 17:40:22 +00:00
tsystem.h
typeclass.h
unroll.c alias.c (get_alias_set, [...]): Use MEM_P. 2004-07-01 12:52:53 +00:00
unwind-c.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c Index: gcc/ChangeLog 2004-07-01 04:09:07 +00:00
unwind-dw2.h Index: gcc/ChangeLog 2004-07-01 04:09:07 +00:00
unwind-pe.h
unwind-sjlj.c
unwind.h
unwind.inc
value-prof.c re PR rtl-optimization/15633 (Failure to propagate FDO counters by vpt results in performance regression) 2004-06-23 12:07:58 -04:00
value-prof.h
var-tracking.c var-tracking.c: Fix some comments. 2004-07-05 04:50:22 +00:00
varasm.c varasm.c (assemble_variable): Use assemble_zeros for zero-initialized variables. 2004-07-07 23:26:08 -07:00
varray.c
varray.h
vec.c * vec.c (vec_assert_fail): Remove duplicate 'function'. 2004-07-08 09:45:19 +00:00
vec.h vec.c (vec_p_reserve, [...]): Allocation is signed. 2004-07-08 09:39:17 +00:00
version.c Daily bump. 2004-07-08 00:16:15 +00:00
version.h
vmsdbg.h
vmsdbgout.c
web.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
xcoff.h
xcoffout.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
xcoffout.h xcoffout.h (DBX_FINISH_SYMBOL): Fix typo. 2004-07-06 11:37:55 -04:00

Copyright (C) 2000, 2003 Free Software Foundation, Inc.

This file is intended to contain a few notes about writing C code
within GCC so that it compiles without error on the full range of
compilers GCC needs to be able to compile on.

The problem is that many ISO-standard constructs are not accepted by
either old or buggy compilers, and we keep getting bitten by them.
This knowledge until know has been sparsely spread around, so I
thought I'd collect it in one useful place.  Please add and correct
any problems as you come across them.

I'm going to start from a base of the ISO C90 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

For the complete coding style conventions used in GCC, please read
http://gcc.gnu.org/codingconventions.html


String literals
---------------

Irix6 "cc -n32" and OSF4 "cc" have problems with constant string
initializers with parens around it, e.g.

const char string[] = ("A string");

This is unfortunate since this is what the GNU gettext macro N_
produces.  You need to find a different way to code it.

Some compilers like MSVC++ have fairly low limits on the maximum
length of a string literal; 509 is the lowest we've come across.  You
may need to break up a long printf statement into many smaller ones.


Empty macro arguments
---------------------

ISO C (6.8.3 in the 1990 standard) specifies the following:

If (before argument substitution) any argument consists of no
preprocessing tokens, the behavior is undefined.

This was relaxed by ISO C99, but some older compilers emit an error,
so code like

#define foo(x, y) x y
foo (bar, )

needs to be coded in some other way.


free and realloc
----------------

Some implementations crash upon attempts to free or realloc the null
pointer.  Thus if mem might be null, you need to write

  if (mem)
    free (mem);


Trigraphs
---------

You weren't going to use them anyway, but some otherwise ISO C
compliant compilers do not accept trigraphs.


Suffixes on Integer Constants
-----------------------------

You should never use a 'l' suffix on integer constants ('L' is fine),
since it can easily be confused with the number '1'.


			Common Coding Pitfalls
			======================

errno
-----

errno might be declared as a macro.


Implicit int
------------

In C, the 'int' keyword can often be omitted from type declarations.
For instance, you can write

  unsigned variable;

as shorthand for

  unsigned int variable;

There are several places where this can cause trouble.  First, suppose
'variable' is a long; then you might think

  (unsigned) variable

would convert it to unsigned long.  It does not.  It converts to
unsigned int.  This mostly causes problems on 64-bit platforms, where
long and int are not the same size.

Second, if you write a function definition with no return type at
all:

  operate (int a, int b)
  {
    ...
  }

that function is expected to return int, *not* void.  GCC will warn
about this.

Implicit function declarations always have return type int.  So if you
correct the above definition to

  void
  operate (int a, int b)
  ...

but operate() is called above its definition, you will get an error
about a "type mismatch with previous implicit declaration".  The cure
is to prototype all functions at the top of the file, or in an
appropriate header.

Char vs unsigned char vs int
----------------------------

In C, unqualified 'char' may be either signed or unsigned; it is the
implementation's choice.  When you are processing 7-bit ASCII, it does
not matter.  But when your program must handle arbitrary binary data,
or fully 8-bit character sets, you have a problem.  The most obvious
issue is if you have a look-up table indexed by characters.

For instance, the character '\341' in ISO Latin 1 is SMALL LETTER A
WITH ACUTE ACCENT.  In the proper locale, isalpha('\341') will be
true.  But if you read '\341' from a file and store it in a plain
char, isalpha(c) may look up character 225, or it may look up
character -31.  And the ctype table has no entry at offset -31, so
your program will crash.  (If you're lucky.)

It is wise to use unsigned char everywhere you possibly can.  This
avoids all these problems.  Unfortunately, the routines in <string.h>
take plain char arguments, so you have to remember to cast them back
and forth - or avoid the use of strxxx() functions, which is probably
a good idea anyway.

Another common mistake is to use either char or unsigned char to
receive the result of getc() or related stdio functions.  They may
return EOF, which is outside the range of values representable by
char.  If you use char, some legal character value may be confused
with EOF, such as '\377' (SMALL LETTER Y WITH UMLAUT, in Latin-1).
The correct choice is int.

A more subtle version of the same mistake might look like this:

  unsigned char pushback[NPUSHBACK];
  int pbidx;
  #define unget(c) (assert(pbidx < NPUSHBACK), pushback[pbidx++] = (c))
  #define get(c) (pbidx ? pushback[--pbidx] : getchar())
  ...
  unget(EOF);

which will mysteriously turn a pushed-back EOF into a SMALL LETTER Y
WITH UMLAUT.


Other common pitfalls
---------------------

o Expecting 'plain' char to be either sign or unsigned extending.

o Shifting an item by a negative amount or by greater than or equal to
  the number of bits in a type (expecting shifts by 32 to be sensible
  has caused quite a number of bugs at least in the early days).

o Expecting ints shifted right to be sign extended.

o Modifying the same value twice within one sequence point.

o Host vs. target floating point representation, including emitting NaNs
  and Infinities in a form that the assembler handles.

o qsort being an unstable sort function (unstable in the sense that
  multiple items that sort the same may be sorted in different orders
  by different qsort functions).

o Passing incorrect types to fprintf and friends.

o Adding a function declaration for a module declared in another file to
  a .c file instead of to a .h file.