gcc/gcc
Nathan Sidwell c4b3f0eb21 tree.c (make_node_stat): Fix uninitialized warning.
* tree.c (make_node_stat): Fix uninitialized warning.  Replace
	cascaded if ... else if with a switch.

From-SVN: r88288
2004-09-29 13:07:50 +00:00
..
ada re PR ada/17540 (Duplicate symbols while building Ada) 2004-09-23 11:00:08 +02:00
config tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
cp re PR middle-end/17525 (ICE in emit_move_insn (non-BLKmode arg)) 2004-09-29 02:23:49 -04:00
doc extend.texi (Extended Asm): Add blurb about using Explicit Reg Vars to enforce register allocation with... 2004-09-29 01:42:09 +00:00
fortran * trans-intrinsic.c: Comment fixes. 2004-09-26 16:24:07 +02:00
ginclude
java re PR java/15710 (ICE: tree check: expected class 'E', have 'c' (integer_cst) in make_class_data) 2004-09-28 18:27:25 +00:00
objc objc-act.c (init_objc_symtab, [...]): When initializing 'long' fields, ensure that the initializer value is also 'long'. 2004-09-24 23:15:33 +00:00
po * es.po: Update. 2004-09-24 17:58:23 +01:00
testsuite tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
treelang
.cvsignore
ABOUT-GCC-NLS
aclocal.m4 aclocal.m4: Quote m4_includes. 2004-09-27 22:51:37 +00:00
alias.c tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
basic-block.h * basic-block.h: Fix a comment typo. 2004-09-28 12:15:48 +00:00
bb-reorder.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
bitmap.c bitmap.h (EXECUTE_IF_SET_IN_BITMAP, [...]): Changed to iterator style. 2004-09-26 19:53:13 +00:00
bitmap.h Fix formatting. 2004-09-28 00:42:52 -04:00
bt-load.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
builtin-attrs.def builtins.def (BUILT_IN_FPUTC, [...]): Remove nothrow attribute. 2004-09-29 11:06:49 +02:00
builtin-types.def
builtins.c builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to reflect size of memory regions being compared. 2004-09-26 19:15:00 +00:00
builtins.def builtins.def (BUILT_IN_FPUTC, [...]): Remove nothrow attribute. 2004-09-29 11:06:49 +02:00
c-aux-info.c
c-common.c c-common.c (fix_string_type): Build the unqualified array type unconditionally... 2004-09-21 02:22:45 +00:00
c-common.def
c-common.h
c-config-lang.in
c-convert.c
c-cppbuiltin.c
c-decl.c re PR c/16409 (ICE in size_binop, at fold-const.c) 2004-09-28 20:35:26 +01:00
c-dump.c
c-errors.c
c-format.c
c-format.h
c-gimplify.c
c-incpath.c
c-incpath.h
c-lang.c
c-lex.c c-common.c (fix_string_type): Build the unqualified array type unconditionally... 2004-09-21 02:22:45 +00:00
c-objc-common.c c-typeck.c (build_function_call): Give name of object we are attempting to call in error message. 2004-09-21 15:42:44 +00:00
c-objc-common.h
c-opts.c
c-parse.in re PR c/16409 (ICE in size_binop, at fold-const.c) 2004-09-28 20:35:26 +01:00
c-pch.c
c-ppoutput.c
c-pragma.c
c-pragma.h c-common.c (fix_string_type): Build the unqualified array type unconditionally... 2004-09-21 02:22:45 +00:00
c-pretty-print.c
c-pretty-print.h
c-semantics.c
c-tree.h
c-typeck.c re PR c/13804 (Error message enhancement Request) 2004-09-27 20:33:55 +01:00
c.opt
caller-save.c
calls.c
cfg.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfganal.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfgbuild.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfgcleanup.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfgexpand.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfghooks.c tree-ssa-threadupdate.c (create_block_for_threading): Request that no outgoing edges be left in the duplicate block. 2004-09-28 20:15:00 -06:00
cfghooks.h
cfglayout.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfglayout.h
cfgloop.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfgloop.h cfgloop.h (update_single_exits_after_duplication): Declare. 2004-09-23 12:21:31 +00:00
cfgloopanal.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfgloopmanip.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cfgrtl.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
cgraph.c
cgraph.h
cgraphunit.c bitmap.h (EXECUTE_IF_SET_IN_BITMAP, [...]): Changed to iterator style. 2004-09-26 19:53:13 +00:00
ChangeLog tree.c (make_node_stat): Fix uninitialized warning. 2004-09-29 13:07:50 +00:00
ChangeLog.0
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4 ChangeLog: Follow spelling conventions. 2002-12-19 05:18:13 +00:00
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.lib
ChangeLog.tree-ssa
collect2.c
collect2.h
combine.c cse.c (cse_insn): Avoid creating direct non-local jumps. 2004-09-28 23:29:02 +00:00
common.opt common.opt (flag_gcse_sm): Disable by default. 2004-09-28 20:34:17 +00:00
conditions.h
config.build
config.gcc config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h if the GNU assembler is used. 2004-09-24 06:17:07 +00:00
config.host
config.in
configure aclocal.m4: Quote m4_includes. 2004-09-27 22:51:37 +00:00
configure.ac aclocal.m4: Quote m4_includes. 2004-09-27 22:51:37 +00:00
conflict.c
convert.c re PR tree-optimization/17512 (ICE in regex.c) 2004-09-22 18:02:08 +00:00
convert.h
COPYING
COPYING.LIB
coretypes.h
coverage.c
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c cse.c (cse_insn): Avoid creating direct non-local jumps. 2004-09-28 23:29:02 +00:00
cselib.c
cselib.h
cstamp-h.in
dbxout.c config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h if the GNU assembler is used. 2004-09-24 06:17:07 +00:00
dbxout.h
ddg.c bitmap.h (EXECUTE_IF_SET_IN_BITMAP, [...]): Changed to iterator style. 2004-09-26 19:53:13 +00:00
ddg.h
debug.c
debug.h
defaults.h c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
df.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
df.h
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c
dominance.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
domwalk.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
domwalk.h
dummy-conditions.c
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die for nested functions whose proper parent has not... 2004-09-25 23:32:32 +00:00
dwarf2out.h
dwarf.h c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
emit-rtl.c tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
except.h
explow.c
expmed.c
expr.c re PR tree-optimization/17531 ([ivopts] ICE compiling gzip deflate.c) 2004-09-28 15:55:04 -07:00
expr.h
final.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
fix-header.c
fixinc.in
fixproto
flags.h common.opt (flag_gcse_sm): Disable by default. 2004-09-28 20:34:17 +00:00
flow.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
fold-const.c c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
function.h tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
gbl-ctors.h
gcc.c re PR c/11459 (-ansi -std=c99 -pedantic warns about C90's non long-long support when in C99 mode) 2004-09-26 01:59:45 +01:00
gcc.h
gccbug.in
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c
gcse.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
gdbinit.in
gen-protos.c
genattr.c
genattrtab.c
genattrtab.h
genautomata.c
gencheck.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-yacc.y gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC (). 2004-07-26 03:33:36 +02:00
gengtype.c
gengtype.h
genmodes.c
genmultilib
genopinit.c expr.c (expand_expr_real_1): Handle VEC_COND_EXPR. 2004-09-27 17:13:12 -07:00
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
ggc-common.c
ggc-none.c
ggc-page.c ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're using mmap. 2004-09-27 04:09:15 +00:00
ggc-zone.c
ggc.h
gimple-low.c
gimplify.c tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
glimits.h
global.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
gmon.c
graph.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
graph.h
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
gthr-gnat.c
gthr-gnat.h
gthr-lynx.h
gthr-nks.h
gthr-posix.c
gthr-posix.h c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
gthr-rtems.h
gthr-single.h
gthr-solaris.h c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
gthr-tpf.h gthr-tpf.h: New file. 2004-09-23 20:57:25 +00:00
gthr-vxworks.h
gthr-win32.h c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
gthr.h gthr-tpf.h: New file. 2004-09-23 20:57:25 +00:00
haifa-sched.c genattr.c (struct range, [...]): Remove them. 2004-07-20 07:27:18 +00:00
hard-reg-set.h
hooks.c hooks.c (hook_tree_tree_bool_null): New. 2004-09-24 15:13:53 +00:00
hooks.h hooks.c (hook_tree_tree_bool_null): New. 2004-09-24 15:13:53 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
input.h
insn-addr.h
insn-notes.def
integrate.c
integrate.h
intl.c
intl.h
jump.c
lambda-code.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
lambda-mat.c c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
lambda-trans.c
lambda.h
langhooks-def.h
langhooks.c
langhooks.h
LANGUAGES
lcm.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
libada-mk.in
libfuncs.h
libgcc2.c libgcc2.c (getpagesize): Change type of return value to int. 2004-09-27 08:01:57 +00:00
libgcc2.h
libgcc-darwin.ver
libgcc-std.ver
libgcov.c
limitx.h
limity.h
lists.c
local-alloc.c cse.c (cse_insn): Avoid creating direct non-local jumps. 2004-09-28 23:29:02 +00:00
longlong.h
loop-doloop.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
loop-init.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
loop-invariant.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
loop-iv.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
loop-unroll.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
loop-unswitch.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
loop.c
machmode.def
machmode.h
main.c
Makefile.in tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkfixinc.sh
mkheaders.in
mklibgcc.in
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
modulo-sched.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
ONEWS
opt-functions.awk
opt-gather.awk
optabs.c re PR tree-optimization/17531 ([ivopts] ICE compiling gzip deflate.c) 2004-09-28 15:55:04 -07:00
optabs.h * optabs.c, optabs.h: Fix comment typos. 2004-09-28 11:49:07 +00:00
optc-gen.awk
opth-gen.awk
opts.c
opts.h
output.h
params.c
params.def
params.h
passes.c passes.c (rest_of_handle_cfg): Disable const/pure function detection when doing tree based profiling. 2004-09-25 10:05:09 +00:00
postreload-gcse.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
postreload.c
predict.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
predict.def
predict.h predict.c (counts_to_freqs): Make glolbal. 2004-09-25 10:06:18 +00:00
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
print-tree.c
profile.c profile.c (brnahc_prob): Pass correct value to output_location, even when USE_MAPPED_LOCATION. 2004-09-28 23:42:31 -07:00
protoize.c
ra-build.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
ra-colorize.c
ra-debug.c
ra-rewrite.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
ra.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
ra.h
read-rtl.c * read-rtl.c (apply_macro_to_string): Replace index with strchr. 2004-09-29 11:23:11 +00:00
README-fixinc
README.Portability
real.c
real.h
recog.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
recog.h
reg-notes.def reg-notes.def (REG_DEP_TRUE): New entry, place first so it gets value 0. 2004-09-21 20:34:43 +00:00
reg-stack.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
regclass.c re PR middle-end/17503 (quadratic behaviour in invalid_mode_change_p) 2004-09-24 12:47:05 -07:00
regmove.c re PR rtl-optimization/17266 (Libgfortran doesn't build) 2004-09-21 05:57:55 +00:00
regrename.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
regs.h re PR middle-end/17503 (quadratic behaviour in invalid_mode_change_p) 2004-09-24 12:47:05 -07:00
reload1.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
reload.c
reload.h
reorg.c
resource.c
resource.h
rtl-error.c
rtl-profile.c
rtl.c
rtl.def
rtl.h re PR middle-end/17503 (quadratic behaviour in invalid_mode_change_p) 2004-09-24 12:47:05 -07:00
rtlanal.c re PR rtl-optimization/14851 (suboptimal fp division with -ffast-math) 2004-09-21 07:10:54 +02:00
rtlhooks-def.h
rtlhooks.c
sbitmap.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c
sched-ebb.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
sched-int.h
sched-rgn.c sched-rgn.c (haifa_edge, [...]): Remove. 2004-09-29 01:28:22 +00:00
sched-vis.c
sdbout.c
sdbout.h
SERVICE
simplify-rtx.c
sort-protos
sreal.c
sreal.h
stab.def
stack.h
statistics.h
stmt.c c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
stor-layout.c re PR c++/17642 (internal compiler error: in invert_truthvalue, at fold-const.c:2997) 2004-09-28 02:56:11 +00:00
stringpool.c
stub-objc.c
sys-protos.h
sys-types.h
system.h * system.h (getpagesize): Return 'int' instead of 'long'. 2004-09-27 22:38:08 +00:00
target-def.h hooks.c (hook_tree_tree_bool_null): New. 2004-09-24 15:13:53 +00:00
target.h tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
targhooks.c hooks.c (hook_tree_tree_bool_null): New. 2004-09-24 15:13:53 +00:00
targhooks.h hooks.c (hook_tree_tree_bool_null): New. 2004-09-24 15:13:53 +00:00
timevar.c
timevar.def cfgloop.h (update_single_exits_after_duplication): Declare. 2004-09-23 12:21:31 +00:00
timevar.h
tlink.c
toplev.c common.opt (flag_gcse_sm): Disable by default. 2004-09-28 20:34:17 +00:00
toplev.h
tracer.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-browser.c
tree-browser.def
tree-cfg.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-chrec.c
tree-chrec.h
tree-complex.c
tree-data-ref.c
tree-data-ref.h
tree-dfa.c tree-flow.h (find_new_referenced_vars): Add prototype. 2004-09-23 23:01:02 +02:00
tree-dump.c tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
tree-dump.h
tree-eh.c tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
tree-flow-inline.h
tree-flow.h re PR tree-optimization/15089 (local register variable with a specified register is bad) 2004-09-28 19:50:47 -07:00
tree-gimple.c tree-gimple.c: Move GIMPLE definition... 2004-09-25 22:11:02 +00:00
tree-gimple.h
tree-if-conv.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-inline.c passes.c (rest_of_handle_cfg): Disable const/pure function detection when doing tree based profiling. 2004-09-25 10:05:09 +00:00
tree-inline.h
tree-into-ssa.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-iterator.c
tree-iterator.h
tree-loop-linear.c
tree-mudflap.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-mudflap.h
tree-nested.c
tree-nomudflap.c
tree-nrv.c
tree-optimize.c tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
tree-outof-ssa.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-pass.h tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
tree-phinodes.c
tree-pretty-print.c * tree-pretty-print.c (dump_generic_node): Print vector types. 2004-09-28 10:52:59 -07:00
tree-profile.c predict.c (counts_to_freqs): Make glolbal. 2004-09-25 10:06:18 +00:00
tree-scalar-evolution.c
tree-scalar-evolution.h
tree-sra.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-alias.c tree-ssa-alias.c (create_name_tags): If PTR points to a volatile type, mark the tag volatile. 2004-09-28 09:45:05 -04:00
tree-ssa-ccp.c re PR tree-optimization/17697 (ICE: Statement marked for throw, but doesn't - verify_stmts failed) 2004-09-29 11:04:21 +02:00
tree-ssa-copy.c re PR tree-optimization/15089 (local register variable with a specified register is bad) 2004-09-28 19:50:47 -07:00
tree-ssa-copyrename.c re PR tree-optimization/16954 (ICE in get_tmt_for with IMA and incomplete structs) 2004-09-24 10:38:36 -07:00
tree-ssa-dce.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-dom.c re PR tree-optimization/15089 (local register variable with a specified register is bad) 2004-09-28 19:50:47 -07:00
tree-ssa-dse.c bitmap.h (EXECUTE_IF_SET_IN_BITMAP, [...]): Changed to iterator style. 2004-09-26 19:53:13 +00:00
tree-ssa-forwprop.c re PR tree-optimization/17624 (ICE: SSA corruption (another one)) 2004-09-24 06:26:29 -07:00
tree-ssa-live.c tree-ssa-live.c (calculate_live_on_entry): Fix warnings with --disable-checking. 2004-09-28 14:14:33 -04:00
tree-ssa-live.h
tree-ssa-loop-ch.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-loop-im.c tree-ssa-loop-im.c (single_reachable_address): Skip constant arguments. 2004-09-28 13:29:32 -04:00
tree-ssa-loop-ivcanon.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-loop-ivopts.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-loop-manip.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-loop-niter.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-loop-unswitch.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-loop.c tree-ssa-loop.c (pass_record_bounds): Do not assign a name to the pass. 2004-09-28 16:39:46 -04:00
tree-ssa-operands.c bitmap.h (EXECUTE_IF_SET_IN_BITMAP, [...]): Changed to iterator style. 2004-09-26 19:53:13 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-pre.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssa-propagate.c Makefile.in (tree-ssa-propagate.o): Depend on vec.h. 2004-09-28 20:31:16 +00:00
tree-ssa-propagate.h
tree-ssa-threadupdate.c tree-ssa-threadupdate.c (create_block_for_threading): Request that no outgoing edges be left in the duplicate block. 2004-09-28 20:15:00 -06:00
tree-ssa.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-ssanames.c tree-ssanames.c (make_ssa_name): No longer need to clear, then initialize key elements here. 2004-09-20 21:19:00 -06:00
tree-stdarg.c tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
tree-tailcall.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-vectorizer.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
tree-vectorizer.h tree.def (ALIGN_INDIRECT_REF, [...]): New tree-codes. 2004-09-23 14:34:35 +00:00
tree-vn.c c-typeck.c, [...]: Fix comment formatting. 2004-09-25 14:36:40 +00:00
tree.c tree.c (make_node_stat): Fix uninitialized warning. 2004-09-29 13:07:50 +00:00
tree.def tree.def (vec_cond_expr): Fix. 2004-09-28 06:14:28 -07:00
tree.h tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD and TI_VA_LIST_FPR_COUNTER_FIELD. 2004-09-29 11:47:56 +02:00
tsystem.h
typeclass.h
unwind-c.c
unwind-compat.c
unwind-compat.h
unwind-dw2-fde-compat.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c
unwind-dw2.h
unwind-pe.h
unwind-sjlj.c
unwind.h
unwind.inc
value-prof.c
value-prof.h
var-tracking.c backport: basic-block.h: Include vec.h, errors.h. 2004-09-28 17:59:54 +10:00
varasm.c varasm.c (default_assemble_integer): Return false for values wider than the target word size. 2004-09-21 23:40:21 +00:00
varray.c
varray.h
vec.c
vec.h vec.h (VEC_space): Return true if there _is_ space. 2004-09-22 10:51:42 +00:00
version.c Daily bump. 2004-09-29 00:16:16 +00:00
version.h
vmsdbg.h
vmsdbgout.c
web.c
xcoff.h
xcoffout.c
xcoffout.h

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.