gcc/gcc
Arnaud Charlet 1e0e653424 [multiple changes]
2009-11-30  Vincent Celier  <celier@adacore.com>

	* gnatcmd.adb (Check_Files): Recognize documented switches that have a
	separate parameter.

2009-11-30  Robert Dewar  <dewar@adacore.com>

	* sem_util.ads: Minor reformatting
	* errout.adb: Minor reformatting
	Minor code reorganization (use N_Subprogram_Specification to simplify)
	* exp_ch7.adb: Add comment.

From-SVN: r154802
2009-11-30 14:58:01 +01:00
..
ada [multiple changes] 2009-11-30 14:58:01 +01:00
config stormy16-lib2-count-leading-zeros.c: Delete. 2009-11-30 10:10:52 +00:00
cp re PR c++/42069 (ICE on class template specialization) 2009-11-30 10:58:20 +01:00
doc contrib.texi (Contributors): Add myself. 2009-11-30 11:09:29 +00:00
fortran trans-common.c (create_common): Remove unused offset variable. 2009-11-28 13:13:21 +01:00
ginclude
java jvspec.c (lang_specific_driver): Remove unused saw_verbose_flag variable. 2009-11-28 17:21:52 +01:00
lto matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
objc matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
objcp
po * id.po: Update. 2009-11-10 20:17:24 +00:00
testsuite tree-vect-stmts.c (vectorizable_assignment): Support multiple types. 2009-11-30 12:17:43 +00:00
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
addresses.h
alias.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
alias.h
alloc-pool.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
alloc-pool.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
attribs.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
auto-inc-dec.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
BASE-VER
basic-block.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
bb-reorder.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
bitmap.c
bitmap.h
bt-load.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
builtin-attrs.def
builtin-types.def
builtins.c builtins.c (expand_builtin_printf, [...]): Remove. 2009-11-26 13:49:35 +00:00
builtins.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-aux-info.c
c-common.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-common.def
c-common.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-config-lang.in
c-convert.c
c-cppbuiltin.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-decl.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-dump.c
c-errors.c
c-format.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-format.h
c-gimplify.c
c-lang.c
c-lang.h
c-lex.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-objc-common.c
c-objc-common.h
c-omp.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-opts.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-parser.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-pch.c
c-ppoutput.c
c-pragma.c ChangeLog for libcpp 2009-11-11 19:37:19 +01:00
c-pragma.h
c-pretty-print.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-pretty-print.h
c-semantics.c
c-tree.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c-typeck.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
c.opt
caller-save.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
calls.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
cfg.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfganal.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfgbuild.c
cfgcleanup.c
cfgexpand.c re PR rtl-optimization/42084 (Wrong result with -Os -fno-delete-null-pointer-checks) 2009-11-27 15:35:50 +00:00
cfghooks.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfghooks.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfglayout.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfglayout.h
cfgloop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfgloop.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cfgloopanal.c
cfgloopmanip.c i386.c (ix86_emit_restore_sse_regs_using_mov): Remove unused insn variable. 2009-11-27 12:37:06 +01:00
cfgrtl.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cgraph.c cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
cgraph.h cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
cgraphbuild.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cgraphunit.c cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
ChangeLog tree-vect-stmts.c (vectorizable_assignment): Support multiple types. 2009-11-30 12:17:43 +00:00
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog.dataflow
ChangeLog.graphite Empty patch as it is a revert patch already applied. 2009-11-25 05:36:57 +00:00
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
collect2-aix.c
collect2-aix.h
collect2.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
collect2.h
combine-stack-adj.c
combine.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
common.opt
conditions.h
config.build
config.gcc config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint. 2009-11-20 16:55:19 +00:00
config.host
config.in collect2.c (main): Search PLUGIN_LD for plugin linker. 2009-11-08 14:36:51 -08:00
configure collect2.c (main): Search PLUGIN_LD for plugin linker. 2009-11-08 14:36:51 -08:00
configure.ac collect2.c (main): Search PLUGIN_LD for plugin linker. 2009-11-08 14:36:51 -08:00
convert.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h
coverage.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cse.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cselib.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
cselib.h
cstamp-h.in
DATESTAMP Daily bump. 2009-11-30 00:16:59 +00:00
dbgcnt.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dbgcnt.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dbgcnt.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dbxout.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dbxout.h
dce.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dce.h
ddg.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ddg.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
debug.c
debug.h
defaults.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
DEV-PHASE
df-byte-scan.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
df-core.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
df-problems.c re PR rtl-optimization/41812 (test 20071030-1.c fails execution on powerpc64) 2009-11-30 07:34:55 +00:00
df-scan.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
df.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dfp.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dfp.h
diagnostic.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
diagnostic.def
diagnostic.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dojump.c
dominance.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
domwalk.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
domwalk.h
double-int.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
double-int.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dse.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dse.h
dummy-checksum.c
dwarf2asm.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dwarf2asm.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
dwarf2out.c re PR target/10127 (-fstack-check let's program crash) 2009-11-25 19:55:11 +00:00
dwarf2out.h
ebitmap.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ebitmap.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
emit-rtl.c emit-rtl.c (next_active_insn, [...]): Correct comment. 2009-11-27 12:00:28 +00:00
emit-rtl.h
emutls.c
errors.c
errors.h
et-forest.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
et-forest.h
except.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
except.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
exec-tool.in collect2.c (main): Search PLUGIN_LD for plugin linker. 2009-11-08 14:36:51 -08:00
explow.c re PR target/10127 (-fstack-check let's program crash) 2009-11-10 20:45:25 +00:00
expmed.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
expr.c re PR middle-end/42119 (internal compiler error: in expand_expr_addr_expr_1, at expr.c:6862) 2009-11-30 10:39:36 +00:00
expr.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
final.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
fixed-value.c
fixed-value.h
flags.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
fold-const.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
function.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
fwprop.c re PR rtl-optimization/41812 (test 20071030-1.c fails execution on powerpc64) 2009-11-30 07:34:55 +00:00
gbl-ctors.h
gcc-plugin.h plugins.texi (Plugin callbacks): added PLUGIN_PRAGMAS. 2009-11-06 19:20:39 +00:00
gcc.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gcc.h
gccbug.in
gccspec.c
gcov-dump.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gcov-io.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gcov-io.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gcov-iov.c
gcov.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gcse.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gdbinit.in * gdbinit.in (pgq): New function for printing gimple sequence. 2009-11-09 13:33:00 -05:00
genattr.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genattrtab.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genautomata.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gencheck.c
genchecksum.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gencodes.c
genconditions.c
genconfig.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genconstants.c
genemit.c i386.c (ix86_emit_restore_sse_regs_using_mov): Remove unused insn variable. 2009-11-27 12:37:06 +01:00
genextract.c
genflags.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gengenrtl.c
gengtype-lex.l gengtype-lex.l: Enable noinput flex option. 2009-11-21 21:24:25 +11:00
gengtype-parse.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gengtype.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gengtype.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genmddeps.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genmodes.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genmultilib
genopinit.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genoutput.c
genpeep.c
genpreds.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
genrecog.c
gensupport.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gensupport.h
ggc-common.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ggc-none.c
ggc-page.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ggc-zone.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ggc.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimple-iterator.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimple-low.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimple-pretty-print.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimple.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimple.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimple.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gimplify.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
glimits.h
graph.c
graph.h
graphds.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
graphds.h
graphite-blocking.c graphite-blocking.c (scop_do_block): New. 2009-11-25 05:31:07 +00:00
graphite-clast-to-gimple.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
graphite-clast-to-gimple.h graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. 2009-11-25 05:25:11 +00:00
graphite-dependences.c graphite-dependences.c (dependence_polyhedron_1): Remove unused gdim dimensions from the DDR polyhedron. 2009-11-25 05:16:42 +00:00
graphite-dependences.h graphite-dependences.c (dot_deps_stmt_1): New. 2009-11-25 04:59:39 +00:00
graphite-interchange.c graphite-interchange.c (memory_strides_in_loop_depth): New. 2009-11-25 05:31:36 +00:00
graphite-poly.c graphite-blocking.c (scop_do_block): New. 2009-11-25 05:31:07 +00:00
graphite-poly.h graphite-blocking.c (scop_do_block): New. 2009-11-25 05:31:07 +00:00
graphite-ppl.c graphite-ppl.c (ppl_min_for_le_polyhedron): New. 2009-11-25 05:13:03 +00:00
graphite-ppl.h graphite-ppl.c (ppl_min_for_le_polyhedron): New. 2009-11-25 05:13:03 +00:00
graphite-scop-detection.c graphite-scop-detection.c (limit_scops): Do not build poly_bbs. 2009-11-25 04:52:08 +00:00
graphite-scop-detection.h graphite-dependences.c (reduction_ddr): New. 2009-11-25 04:54:30 +00:00
graphite-sese-to-poly.c graphite-clast-to-gimple.c (gloog): Do not call sese_reset_aux_in_loops. 2009-11-25 05:25:43 +00:00
graphite-sese-to-poly.h graphite-sese-to-poly.c (free_data_refs_aux): Update to free the new structure. 2009-11-25 05:19:32 +00:00
graphite.c graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. 2009-11-25 05:25:11 +00:00
graphite.h
gsstruct.def gimple.h (union gimple_statement_d): Add gsmembase member. 2009-11-18 20:28:19 +00:00
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c
gthr-gnat.h
gthr-lynx.h
gthr-mipssde.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
gthr-nks.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-posix95.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-posix.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-posix.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-rtems.h
gthr-single.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-solaris.h re PR target/41810 (Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope) 2009-11-27 15:17:04 +00:00
gthr-tpf.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-vxworks.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
gthr-win32.h
gthr.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
haifa-sched.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
hard-reg-set.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
hooks.c target.h (targetm.vectorize.builtin_vec_perm_ok): New. 2009-11-25 17:52:19 -08:00
hooks.h target.h (targetm.vectorize.builtin_vec_perm_ok): New. 2009-11-25 17:52:19 -08:00
host-default.c
hosthooks-def.h
hosthooks.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
hwint.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ifcvt.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
incpath.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
incpath.h
init-regs.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
input.h
insn-addr.h
insn-notes.def
integrate.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
integrate.h
intl.c
intl.h
ipa-cp.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-inline.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-prop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-prop.h ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid. 2009-11-18 15:10:02 +01:00
ipa-pure-const.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
ipa-reference.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-reference.h
ipa-struct-reorg.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
ipa-struct-reorg.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-type-escape.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-type-escape.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-utils.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa-utils.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ipa.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ira-build.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ira-color.c ira-color.c (put_allocno_into_bucket): Remove set but not used local variable hard_regs_num. 2009-11-28 09:49:56 +00:00
ira-conflicts.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ira-costs.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ira-emit.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ira-int.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
ira-lives.c ira-color.c (put_allocno_into_bucket): Remove set but not used local variable hard_regs_num. 2009-11-28 09:49:56 +00:00
ira.c cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
ira.h
jump.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lambda-code.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lambda-mat.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lambda-trans.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lambda.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
langhooks-def.h cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
langhooks.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
langhooks.h cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
LANGUAGES
lcm.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-std.ver
libgcov.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
limitx.h
limity.h
lists.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
longlong.h stormy16-lib2.c: Arrange for separate compilation of each function. 2009-11-27 18:56:10 +00:00
loop-doloop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
loop-init.c timevar.def (TV_LOOP_MOVE_INVARIANTS, [...]): New timevars. 2009-11-27 12:43:08 +00:00
loop-invariant.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
loop-iv.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
loop-unroll.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
loop-unswitch.c ira-color.c (put_allocno_into_bucket): Remove set but not used local variable hard_regs_num. 2009-11-28 09:49:56 +00:00
lower-subreg.c ira-color.c (put_allocno_into_bucket): Remove set but not used local variable hard_regs_num. 2009-11-28 09:49:56 +00:00
lto-cgraph.c cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
lto-compress.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-compress.h
lto-opts.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-section-in.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-section-out.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-streamer-in.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
lto-streamer-out.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-streamer.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-streamer.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-symtab.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-wpa-fixup.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
lto-wrapper.c lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if being called recursively. 2009-11-24 15:00:15 +00:00
machmode.def
machmode.h
main.c
Makefile.in tree-dump.c (dump_option_value_in): Add TDF_NOUID. 2009-11-30 10:36:54 +00:00
matrix-reorg.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
mcf.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
mode-switching.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
modulo-sched.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
omega.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
omega.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
omp-builtins.def
omp-low.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
ONEWS
opt-functions.awk
opt-gather.awk
optabs.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
optabs.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
optc-gen.awk
opth-gen.awk
opts-common.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
opts.c opts.c (decode_options): If optimize is bigger than 255, set it to 255. 2009-11-27 12:31:55 +01:00
opts.h
output.h
params.c
params.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
params.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
passes.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
plugin.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
postreload.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
predict.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
predict.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
predict.h predict.c (compute_function_frequency): Export. 2009-11-18 13:09:15 +00:00
prefix.c
prefix.h
pretty-print.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
pretty-print.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
print-rtl.c tree-dump.c (dump_option_value_in): Add TDF_NOUID. 2009-11-30 10:36:54 +00:00
print-tree.c tree-dump.c (dump_option_value_in): Add TDF_NOUID. 2009-11-30 10:36:54 +00:00
profile.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
profile.h
read-rtl.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
README.Portability
real.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
real.h
recog.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
recog.h
reg-notes.def
reg-stack.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
regcprop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
reginfo.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
regmove.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
regrename.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
regs.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
regstat.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
reload1.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
reload.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
reload.h
reorg.c re PR rtl-optimization/40086 (cris-elf gfortran.dg/forall_1.f90 -O1 execution) 2009-11-30 07:13:21 +00:00
resource.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
resource.h
rtl-error.c
rtl.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
rtl.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
rtl.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
rtlanal.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
rtlhooks-def.h
rtlhooks.c
sbitmap.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sbitmap.h
sched-deps.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sched-ebb.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sched-int.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sched-rgn.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sched-vis.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sdbout.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sdbout.h
sel-sched-dump.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sel-sched-dump.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sel-sched-ir.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
sel-sched-ir.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sel-sched.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sel-sched.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sese.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sese.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
simplify-rtx.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
statistics.c
statistics.h
stmt.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
stor-layout.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
store-motion.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
stringpool.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
stub-objc.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
sync-builtins.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
system.h
target-def.h target.h (targetm.vectorize.builtin_vec_perm_ok): New. 2009-11-25 17:52:19 -08:00
target.h target.h (targetm.vectorize.builtin_vec_perm_ok): New. 2009-11-25 17:52:19 -08:00
targhooks.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
targhooks.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
timevar.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
timevar.def timevar.def (TV_LOOP_MOVE_INVARIANTS, [...]): New timevars. 2009-11-27 12:43:08 +00:00
timevar.h
tlink.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
toplev.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
toplev.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tracer.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-affine.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-affine.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-browser.c
tree-browser.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-call-cdce.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-cfg.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-cfgcleanup.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-chrec.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-chrec.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-complex.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-data-ref.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-data-ref.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-dfa.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-dump.c tree-dump.c (dump_option_value_in): Add TDF_NOUID. 2009-11-30 10:36:54 +00:00
tree-dump.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-eh.c re PR c++/41906 (ICE with catch(...) and -fpermissive) 2009-11-27 13:08:58 +00:00
tree-flow-inline.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-flow.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-if-conv.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-inline.c cgraph.c (same_body_alias_1): Break out of 2009-11-29 10:32:08 +00:00
tree-inline.h
tree-into-ssa.c tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in variable UID order. 2009-11-30 10:38:09 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-loop-linear.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-mudflap.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-mudflap.h
tree-nested.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-nomudflap.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-nrv.c re PR middle-end/42183 (internal compiler error: verify_stmts failed) 2009-11-28 19:11:22 +00:00
tree-object-size.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-optimize.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-outof-ssa.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-parloops.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-pass.h tree-dump.c (dump_option_value_in): Add TDF_NOUID. 2009-11-30 10:36:54 +00:00
tree-phinodes.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-predcom.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-pretty-print.c tree-dump.c (dump_option_value_in): Add TDF_NOUID. 2009-11-30 10:36:54 +00:00
tree-profile.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-scalar-evolution.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-scalar-evolution.h
tree-sra.c re PR middle-end/42006 (Termination problem with -O2 and -O3) 2009-11-27 23:34:40 +01:00
tree-ssa-address.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-alias.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-alias.h
tree-ssa-ccp.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-coalesce.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-copy.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-copyrename.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-dce.c tree-ssa-dce.c (nr_walks): New variable. 2009-11-26 17:00:19 +00:00
tree-ssa-dom.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-dse.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-forwprop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-ifcombine.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-live.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-live.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-ch.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-im.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-ivcanon.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-ivopts.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-manip.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-niter.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-loop-prefetch.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop-unswitch.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-loop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-math-opts.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-operands.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-operands.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-phiopt.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-phiprop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-pre.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-propagate.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-propagate.h
tree-ssa-reassoc.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-sccvn.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-sccvn.h
tree-ssa-sink.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-structalias.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-ter.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-threadedge.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa-threadupdate.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-ssa-uncprop.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssa.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-ssanames.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-stdarg.c
tree-stdarg.h
tree-switch-conversion.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-tailcall.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-vect-data-refs.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-vect-generic.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-vect-loop-manip.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-vect-loop.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-vect-patterns.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-vect-slp.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree-vect-stmts.c tree-vect-stmts.c (vectorizable_assignment): Support multiple types. 2009-11-30 12:17:43 +00:00
tree-vectorizer.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-vectorizer.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree-vrp.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
tree.c tree.c (free_lang_data): Do not set debug_info_level to none if terse. 2009-11-30 10:49:49 +00:00
tree.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tree.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
treestruct.def Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
tsystem.h
typeclass.h
unwind-c.c i386.c (ix86_emit_restore_sse_regs_using_mov): Remove unused insn variable. 2009-11-27 12:37:06 +01:00
unwind-compat.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
unwind-compat.h
unwind-dw2-fde-compat.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
unwind-dw2.h
unwind-generic.h
unwind-pe.h
unwind-sjlj.c
unwind.inc
value-prof.c matrix-reorg.c (analyze_matrix_allocation_site): Remove unused malloc_fname variable. 2009-11-28 17:21:00 +01:00
value-prof.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
var-tracking.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
varasm.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
varpool.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
varray.c
varray.h
vec.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
vec.h Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
web.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
xcoff.h
xcoffout.c Remove trailing white spaces. 2009-11-25 02:55:54 -08:00
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.