gcc/gcc
2004-04-22 14:40:21 +09:30
..
ada [multiple changes] 2004-04-21 12:10:33 +02:00
config rs6000.c (rs6000_override_options): Error when user wants altivec and e500 instructions. 2004-04-22 02:02:13 +00:00
cp * name-lookup.c (anonymous_namespace_name): Make static. 2004-04-22 14:40:21 +09:30
doc MIPS SB-1 DFA scheduler. 2004-04-21 16:21:59 -07:00
f g77.texi (Floating-point Errors): Avoid referencing http://www.linuxsupportline.com/~billm/ which as has been... 2004-04-18 00:03:47 +00:00
fixinc Delete all WARN_CFLAGS references from fixinc. 2004-04-21 15:06:06 -07:00
ginclude
java class.c (make_class_data): Add new field aux_info. 2004-04-20 02:38:46 +01:00
objc gcc.c (combine_flag): New global variable, for new driver option. 2004-04-05 12:23:27 -07:00
po * be.po, da.po, el.po, es.po, ja.po, nl.po, sv.po, tr.po: Update. 2004-03-18 17:58:40 +00:00
testsuite altivec-1.c: XFAIL for powerpc-eabispe. 2004-04-22 01:58:09 +00:00
treelang gcc.c (combine_flag): New global variable, for new driver option. 2004-04-05 12:23:27 -07:00
.cvsignore * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL) 2004-03-30 18:18:59 +09:30
ABOUT-GCC-NLS
aclocal.m4
alias.c gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
alloc-pool.c
alloc-pool.h
attribs.c alias.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo (). 2004-03-20 04:52:59 +00:00
basic-block.h basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
bb-reorder.c re PR bootstrap/15009 (Latest CVS: Stage2 Error: bb-reorder.c needs initialization) 2004-04-19 06:03:06 -07:00
bitmap.c gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
bitmap.h
bt-load.c bt-load.c, [...]: Remove unnecessary casts. 2004-03-22 02:57:27 +00:00
builtin-attrs.def
builtin-types.def builtin-types.def (BT_WINT, [...]): New. 2004-03-27 05:29:40 +00:00
builtins.c optabs.h (enum optab_index): Add new OTI_asin and OTI_acos. 2004-04-20 19:40:31 +00:00
builtins.def builtins.def (BUILT_IN_ISDIGIT, [...]): Mark with ATTR_CONST_NOTHROW_LIST. 2004-04-16 00:48:51 +00:00
c-aux-info.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
c-common.c c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead of TREE_READONLY for types. 2004-04-09 13:08:03 -07:00
c-common.def
c-common.h Index: ChangeLog 2004-04-07 20:47:52 +00:00
c-config-lang.in
c-convert.c
c-cppbuiltin.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
c-decl.c c-decl.c (finish_decl): Make a decl_stmt for a variable-sized TYPE_DECL. 2004-04-12 17:25:55 -04:00
c-dump.c
c-errors.c
c-format.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
c-incpath.c
c-incpath.h
c-lang.c re PR c/14734 (Error recovery problem with undeclared array bounds) 2004-03-28 17:45:57 +00:00
c-lex.c
c-objc-common.c PR 12267, 12391, 12560, 13129, 14114, 14113 2004-03-23 23:47:53 +00:00
c-opts.c Fix problem reported by Dan Berlin on gcc list. 2004-04-13 23:07:27 -07:00
c-parse.in PR 12267, 12391, 12560, 13129, 14114, 14113 2004-03-23 23:47:53 +00:00
c-pch.c re PR pch/13419 (Clarification of invoke.texi requested) 2004-04-08 23:41:09 +00:00
c-ppoutput.c
c-pragma.c
c-pragma.h
c-pretty-print.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
c-pretty-print.h
c-semantics.c c-decl.c (finish_decl): Make a decl_stmt for a variable-sized TYPE_DECL. 2004-04-12 17:25:55 -04:00
c-tree.h re PR c/14734 (Error recovery problem with undeclared array bounds) 2004-03-28 17:45:57 +00:00
c-typeck.c c-typeck.c (common_type): Prefer long long to long when same precision. 2004-04-10 19:47:50 +01:00
c.opt
caller-save.c
calls.c c-decl.c (build_compound_literal): Use TYPE_READONLY. 2004-04-05 08:25:26 -04:00
cfg.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
cfganal.c
cfgbuild.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
cfgcleanup.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
cfghooks.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
cfghooks.h
cfglayout.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
cfglayout.h basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
cfgloop.c
cfgloop.h doloop.c: Removed. 2004-03-18 16:42:34 +00:00
cfgloopanal.c doloop.c: Removed. 2004-03-18 16:42:34 +00:00
cfgloopmanip.c
cfgrtl.c bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap failure on solaris. 2004-04-11 10:20:42 +02:00
cgraph.c cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
cgraph.h cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
cgraphunit.c cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
ChangeLog * var-tracking.c (frame_base_decl): Remove useless GTY. 2004-04-22 14:39:34 +09:30
ChangeLog.0
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.lib
collect2.c
collect2.h
combine.c combine.c (combine_simplify_rtx): Remove the "last" parameter and its documentation. 2004-03-16 16:14:50 +00:00
common.opt basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
conditions.h
config.build
config.gcc * config.gcc: Support --with-arch=iwmmxt for ARM. 2004-04-21 17:06:17 +00:00
config.host re PR target/14548 (building Ada library incorrectly requires collect2 on mingw) 2004-04-05 03:58:46 +00:00
config.in gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with -lgcc --as-needed -lgcc_s --no-as-needed by default. 2004-04-01 18:45:34 +02:00
configure configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK. 2004-04-17 06:06:52 +00:00
configure.ac configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK. 2004-04-17 06:06:52 +00:00
conflict.c
convert.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
convert.h
COPYING
COPYING.LIB
coretypes.h
coverage.c PR 12267, 12391, 12560, 13129, 14114, 14113 2004-03-23 23:47:53 +00:00
coverage.h
cppcharset.c
cppdefault.c
cppdefault.h
cpperror.c
cppexp.c
cppfiles.c
cpphash.c
cpphash.h
cppinit.c
cpplex.c
cpplib.c re PR preprocessor/14438 (Potential need for buffer overflow checks in _cpp_lex_direct) 2004-03-24 03:19:37 +00:00
cpplib.h gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
cppmacro.c
cpppch.c
cppspec.c
cpptrad.c
cppucnid.h
cppucnid.pl
cppucnid.tab
crtstuff.c
cse.c cse.c (cse_insn): Correct usage of simplify_replace_rtx when updating the REG_EQUAL note on an... 2004-04-04 21:44:41 +00:00
cselib.c
cselib.h gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
cstamp-h.in
dbxout.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
dbxout.h
debug.c
debug.h
defaults.h builtins.c (fold_builtin_isdigit): New. 2004-04-14 14:32:55 +00:00
df.c
df.h * df.h: Tidy up whitespace in the definitions of the DF_ flags. 2004-04-04 21:12:35 +00:00
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
dominance.c
dummy-conditions.c
dwarf2.h
dwarf2asm.c dwarf2asm.c, [...]: Update copyright. 2004-03-24 23:45:50 +00:00
dwarf2asm.h
dwarf2out.c re PR debug/15033 (libgcc2.c:470: internal compiler error: Segmentation fault) 2004-04-20 21:33:27 -07:00
dwarf2out.h
dwarf.h
emit-rtl.c c-decl.c (build_compound_literal): Use TYPE_READONLY. 2004-04-05 08:25:26 -04:00
errors.c
errors.h
et-forest.c
et-forest.h
except.c alias.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo (). 2004-03-20 04:52:59 +00:00
except.h
explow.c * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE. 2004-04-08 23:35:34 +00:00
expmed.c expmed.c (expand_mult_highpart_optab): Use narrower version of OP1 in two more places; remove unneeded force_reg 2004-04-21 13:02:19 -04:00
expr.c expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED. 2004-04-01 08:41:37 -05:00
expr.h alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR. 2004-03-21 13:09:20 -05:00
final.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
fix-header.c Patch from Jonathan Larmour. 2004-04-12 23:04:05 -07:00
fixproto
flags.h basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
flow.c
fold-const.c fold-const.c (fold_convert): Make function extern/public. 2004-04-20 02:56:44 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c function.c (assign_parms): Force MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm. 2004-04-20 06:06:08 +00:00
function.h cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
gbl-ctors.h
gcc.c * gcc.c (used_arg): Check whether an option has been removed. 2004-04-17 05:53:11 +00:00
gcc.h
gccbug.in
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h re PR target/14291 (-fprofile-arcs fails (unresolved symbol)) 2004-03-22 02:33:30 +00:00
gcov-iov.c
gcov.c
gcse.c gcse.c (can_assign_to_reg_p): New function, split out from... 2004-03-23 09:33:30 +00: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 re PR target/14040 (ARM cross compiler: error: could not split insn) 2004-04-01 23:30:25 +00:00
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-yacc.y gengtype-yacc.y (option, stringseq): Add missing terminating semicolon. 2004-03-31 14:45:58 +00:00
gengtype.c gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
gengtype.h gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
genmodes.c
genmultilib
genopinit.c optabs.h (enum optab_index): Add new OTI_asin and OTI_acos. 2004-04-20 19:40:31 +00:00
genoutput.c
genpeep.c
genpreds.c
genrecog.c re PR target/14040 (ARM cross compiler: error: could not split insn) 2004-04-01 23:30:25 +00:00
gensupport.c re PR target/14040 (ARM cross compiler: error: could not split insn) 2004-04-01 23:30:25 +00:00
gensupport.h
ggc-common.c c-common.c, [...]: Fix comment typos. 2004-03-20 05:21:41 +00:00
ggc-none.c
ggc-page.c bt-load.c, [...]: Remove unnecessary casts. 2004-03-22 02:57:27 +00:00
ggc-zone.c
ggc.h
glimits.h
global.c
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.h
haifa-sched.c alias.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo (). 2004-03-20 04:52:59 +00:00
hard-reg-set.h
hashtable.c
hashtable.h
hooks.c hooks.c (hook_constcharptr_tree_null): New hook. 2004-03-24 00:13:33 +00:00
hooks.h hooks.c (hook_constcharptr_tree_null): New hook. 2004-03-24 00:13:33 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hwint.h
ifcvt.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
input.h
insn-addr.h
integrate.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
integrate.h
intl.c
intl.h
jump.c c-common.c, [...]: Fix comment typos. 2004-03-20 05:21:41 +00:00
langhooks-def.h cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
langhooks.c PR 12267, 12391, 12560, 13129, 14114, 14113 2004-03-23 23:47:53 +00:00
langhooks.h cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
LANGUAGES
lcm.c
libada-mk.in libada-mk.in: New file. 2004-04-15 03:31:46 +00:00
libfuncs.h
libgcc2.c
libgcc2.h
libgcc-darwin.ver
libgcc-std.ver
libgcov.c
limitx.h
limity.h
line-map.c
line-map.h
lists.c gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
local-alloc.c
longlong.h config.gcc, linux.h: Implement with-cpu for m68k-linux. 2004-03-16 05:12:25 +01:00
loop-doloop.c loop-doloop.c (add_test): Replace GEN_INT (0) with const0_rtx. 2004-03-20 02:31:57 +00:00
loop-init.c
loop-iv.c doloop.c: Removed. 2004-03-18 16:42:34 +00:00
loop-unroll.c
loop-unswitch.c
loop.c doloop.c: Removed. 2004-03-18 16:42:34 +00:00
loop.h dwarf2asm.c, [...]: Update copyright. 2004-03-24 23:45:50 +00:00
machmode.def
machmode.h
main.c
Makefile.in Delete all WARN_CFLAGS references from fixinc. 2004-04-21 15:06:06 -07:00
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkdeps.c
mkdeps.h
mkheaders.in
mklibgcc.in * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2. 2004-03-19 03:32:07 +00:00
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
ONEWS
optabs.c optabs.h (enum optab_index): Add new OTI_asin and OTI_acos. 2004-04-20 19:40:31 +00:00
optabs.h optabs.h (enum optab_index): Add new OTI_asin and OTI_acos. 2004-04-20 19:40:31 +00:00
opts.c opts.c (decode_options): Do not enable flag_rename_registers and flag_web at -O3. 2004-04-17 06:53:44 +00:00
opts.h
opts.sh
output.h basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
params.c
params.def params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New. 2004-03-22 17:05:05 -05:00
params.h
passes.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
postreload.c
predict.c predict.c (propagate_freq): Compute correctly frequency of EXIT_BLOCK. 2004-03-18 15:03:12 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c dwarf2asm.c, [...]: Update copyright. 2004-03-24 23:45:50 +00:00
pretty-print.h dwarf2asm.c, [...]: Update copyright. 2004-03-24 23:45:50 +00:00
print-rtl.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
print-tree.c c-decl.c (build_compound_literal): Use TYPE_READONLY. 2004-04-05 08:25:26 -04:00
profile.c
protoize.c
ra-build.c
ra-colorize.c
ra-debug.c ra-debug.c (ra_print_rtx): Add break's to case legs. 2004-04-15 13:29:40 -04:00
ra-rewrite.c
ra.c
ra.h
read-rtl.c
README-fixinc
README.Portability
real.c real.h (struct real_value): Use the same type for all bitfields. 2004-03-22 00:40:44 +00:00
real.h real.h (struct real_value): Use the same type for all bitfields. 2004-03-22 00:40:44 +00:00
recog.c c-common.c, [...]: Fix comment typos. 2004-03-20 05:21:41 +00:00
recog.h
reg-stack.c optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb. 2004-04-15 02:43:46 +00:00
regclass.c
regmove.c c-common.c, [...]: Fix comment typos. 2004-03-20 05:21:41 +00:00
regrename.c regrename.c (regrename_optimize): Set regs_ever_live for all registers introduced as replacement. 2004-03-22 13:15:58 +00:00
regs.h
reload1.c reload1.c (emit_reload_insns): Set reg_has_output_reload to one after setting reg_last_reload_reg for optional... 2004-04-13 23:27:43 +00:00
reload.c
reload.h
reorg.c c-common.c, [...]: Fix comment typos. 2004-03-20 05:21:41 +00:00
resource.c
resource.h
rtl-error.c
rtl.c basic-block.h (struct edge_def): Add new field, crossing_edge. 2004-04-09 12:57:47 -07:00
rtl.def
rtl.h Eliminate broken unused function. 2004-04-19 20:57:59 -07:00
rtlanal.c Eliminate broken unused function. 2004-04-19 20:57:59 -07:00
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c alias.c (alias_invariant, [...]): Mark GTY. 2004-03-24 16:58:57 -08:00
sched-ebb.c
sched-int.h
sched-rgn.c params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New. 2004-03-22 17:05:05 -05:00
sched-vis.c alias.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo (). 2004-03-20 04:52:59 +00:00
sdbout.c sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not TYPE_FIELDS. 2004-04-16 14:40:04 -04:00
sdbout.h
SERVICE
sibcall.c
simplify-rtx.c simplify-rtx.c (simplify_binary_operation): Remove fall throughs. 2004-04-12 17:28:11 +00:00
sort-protos
sreal.c
sreal.h
stab.def
stack.h
statistics.h
stmt.c c-decl.c (finish_decl): Make a decl_stmt for a variable-sized TYPE_DECL. 2004-04-12 17:25:55 -04:00
stor-layout.c stor-layout.c (layout_decl): Check DECL_PACKED before calling ADJUST_FIELD_ALIGN. 2004-04-19 18:02:40 +00:00
stringpool.c
stub-objc.c
sys-protos.h
sys-types.h
system.h system.h (MD_ASM_CLOBBERS): Move to "Old target macros that have moved to the target hooks structure". 2004-03-19 00:52:24 +00:00
target-def.h hooks.c (hook_constcharptr_tree_null): New hook. 2004-03-24 00:13:33 +00:00
target.h hooks.c (hook_constcharptr_tree_null): New hook. 2004-03-24 00:13:33 +00:00
targhooks.c
targhooks.h
timevar.c
timevar.def cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
timevar.h
tlink.c
toplev.c Revert part of 2004-04-17 change that moved -frename-registers to -O1. 2004-04-20 09:27:43 +00:00
toplev.h
tracer.c
tree-dump.c builtins.c, [...]: Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED. 2004-03-31 22:50:43 -05:00
tree-dump.h
tree-inline.c c-decl.c (finish_decl): Make a decl_stmt for a variable-sized TYPE_DECL. 2004-04-12 17:25:55 -04:00
tree-inline.h cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
tree-optimize.c cgraph.c: Add overall comment. 2004-04-01 23:28:15 +00:00
tree.c c-decl.c (finish_decl): Make a decl_stmt for a variable-sized TYPE_DECL. 2004-04-12 17:25:55 -04:00
tree.def expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED. 2004-04-01 08:41:37 -05:00
tree.h fold-const.c (fold_convert): Make function extern/public. 2004-04-20 02:56:44 +00:00
tsystem.h
typeclass.h
unroll.c
unwind-c.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h
unwind-dw2.c
unwind-pe.h
unwind-sjlj.c
unwind.h
unwind.inc
value-prof.c
value-prof.h
var-tracking.c * var-tracking.c (frame_base_decl): Remove useless GTY. 2004-04-22 14:39:34 +09:30
varasm.c * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case. 2004-04-19 09:52:16 -04:00
varray.c
varray.h gengtype.c (create_option): New function. 2004-03-30 19:19:06 +00:00
version.c Daily bump. 2004-04-22 00:16:43 +00:00
version.h
vmsdbg.h
vmsdbgout.c alias.c, [...]: Replace calls via (*targetm.foo) () with targetm.foo (). 2004-03-20 04:52:59 +00:00
web.c bt-load.c, [...]: Remove unnecessary casts. 2004-03-22 02:57:27 +00:00
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.