gcc/gcc
H.J. Lu bbefea9662 java-tree.h (flag_deprecated): Removed.
2004-08-09  H.J. Lu  <hongjiu.lu@intel.com>

	* java-tree.h (flag_deprecated): Removed.
	* lang.opt (Wdeprecated): Use existing Var(warn_deprecated).
	* parse.y (check_deprecation): Check warn_deprecated instead of
	flag_deprecated.

From-SVN: r85740
2004-08-09 21:29:16 -07:00
..
ada [multiple changes] 2004-08-09 14:24:25 +02:00
config i386.c (ix86_expand_clrmem): Revert the last change. 2004-08-07 10:31:30 -07:00
cp Make return in memory explicit. 2004-08-07 13:40:10 -04:00
doc ggc-common.c (ggc_rlimit_bound): Don't check RSS limit. 2004-08-09 20:19:30 +00:00
fixinc
fortran trans-io.c (transfer_expr): Handle pointters. 2004-08-10 00:57:22 +00:00
ginclude c-parse.in (OFFSETOF, [...]): New. 2004-06-01 08:12:23 -07:00
java java-tree.h (flag_deprecated): Removed. 2004-08-09 21:29:16 -07:00
objc objc-act.c (build_objc_string_object): Mark the address expression as constant. 2004-08-05 11:06:23 -07:00
po
testsuite trans-io.c (transfer_expr): Handle pointters. 2004-08-10 00:57:22 +00:00
treelang Make-lang.in (TREE_BE_LIBS): Remove. 2004-08-08 04:47:17 +00:00
.cvsignore
ABOUT-GCC-NLS
COPYING
COPYING.LIB
ChangeLog ggc-zone.c (struct alloc_zone): Add statistics counters. 2004-08-09 23:11:08 +00:00
ChangeLog.0
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11 Rotate ChangeLog 2004-07-01 12:47:14 +00:00
ChangeLog.lib
ChangeLog.tree-ssa
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES * LANGUAGES: Remove obsolete information. 2004-07-11 12:54:14 +01:00
Makefile.in Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
ONEWS
README-fixinc
README.Portability
SERVICE
aclocal.m4 aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset... 2004-08-03 20:33:23 +00:00
alias.c tree.h: Include vec.h 2004-07-20 12:26:02 +00:00
alias.h Makefile.in (EXPR_H): Add insn-config.h... 2004-06-02 02:09:45 +00:00
alloc-pool.c
alloc-pool.h
attribs.c Makefile.in (EXPR_H): Add insn-config.h... 2004-06-02 02:09:45 +00:00
basic-block.h basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
bb-reorder.c re PR rtl-optimization/16643 (verify_local_live_at_start ICE after crossjumping & cfgcleanup) 2004-07-26 14:34:19 +00:00
bitmap.c bitmap.c: Use type-safe memory allocation macros from libiberty. 2004-07-25 22:43:23 +02:00
bitmap.h
bt-load.c genattr.c (struct range, [...]): Remove them. 2004-07-20 07:27:18 +00:00
builtin-attrs.def
builtin-types.def builtin-types.def (BT_UINT): Rename from BT_UNSIGNED. 2004-07-09 16:04:33 -07:00
builtins.c fold-const.c (constant_boolean_node): Make extern. 2004-07-25 23:26:59 +00:00
builtins.def builtin-types.def (BT_UINT): Rename from BT_UNSIGNED. 2004-07-09 16:04:33 -07:00
c-aux-info.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-common.c gimplify.c (gimplify_call_expr): Make return in memory explicit. 2004-08-07 12:11:10 -04:00
c-common.def c-common.c (c_safe_from_p, [...]): Deleted. 2004-06-26 17:11:23 -04:00
c-common.h tree.c (handle_dll_attribute): Move here from i383/winnt.c. 2004-08-06 02:03:29 +00:00
c-config-lang.in
c-convert.c
c-cppbuiltin.c c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and __UINTMAX_TYPE__. 2004-08-05 01:38:31 +01:00
c-decl.c tree.c (handle_dll_attribute): Move here from i383/winnt.c. 2004-08-06 02:03:29 +00:00
c-dump.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-errors.c
c-format.c basic-block.h (reorder_block_def): Rename to reorder_block_def_p. 2004-07-26 00:17:02 +02:00
c-format.h Makefile.in (c-format.o): Depend on c-format.h. 2004-07-19 14:48:09 +00:00
c-gimplify.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
c-incpath.c c-incpath.c (add_path): Canonicalize paths to use '/' if HAVE_DOS_BASED_FILESYSTEM. 2004-05-31 10:30:00 +00:00
c-incpath.h
c-lang.c c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
c-lex.c c-lex.c (narrowest_unsigned_type, [...]): Take low/high pair. 2004-08-04 14:38:27 +00:00
c-objc-common.c bitmap.c: Use type-safe memory allocation macros from libiberty. 2004-07-25 22:43:23 +02:00
c-opts.c re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings) 2004-08-06 11:23:23 +00:00
c-parse.in bitmap.c: Use type-safe memory allocation macros from libiberty. 2004-07-25 22:43:23 +02:00
c-pch.c c-common.h (lang_post_pch_load): New variable. 2004-07-29 17:59:31 +00:00
c-ppoutput.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:11:14 -07:00
c-pragma.c re PR c++/9283 (__attribute__((visibility ("hidden"))) not supported for class/struct) 2004-07-25 22:52:22 +00:00
c-pragma.h Makefile.in (C_PRAGMA_H): New variable to track dependencies of c-pragma.h. 2004-07-26 02:29:41 +02:00
c-pretty-print.c c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
c-pretty-print.h c-pretty-print.c (pp_c_left_bracket): Make a function. 2004-05-31 15:25:51 +00:00
c-semantics.c re PR c/14516 (-fleading-underscore does not work correctly for file static variables) 2004-08-05 05:52:01 +00:00
c-tree.h re PR c/11250 (-pedantic accepts `char a[] = ("x");') 2004-07-22 00:46:20 +01:00
c-typeck.c re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings) 2004-08-06 11:23:23 +00:00
c.opt re PR c/13282 (A "-Wno..." switch to turn off "missing initializer" warnings) 2004-08-06 11:23:23 +00:00
caller-save.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
calls.c c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
cfg.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
cfganal.c basic-block.h (remove_fake_exit_edges): Declare. 2004-07-16 15:28:29 -07:00
cfgbuild.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
cfgcleanup.c params.def (PARAM_MIN_CROSSJUMP_INSNS): New. 2004-08-06 13:20:53 -04:00
cfgexpand.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
cfghooks.c cfghooks.c (make_forwarder_block): Decrement count on fallthru edge when redirecting back edges. 2004-06-22 22:09:46 -06:00
cfghooks.h
cfglayout.c cfglayout.c (insn_locators_initialize): Update the current location before initializing a location. 2004-08-04 11:30:31 +00:00
cfglayout.h re PR rtl-optimization/16643 (verify_local_live_at_start ICE after crossjumping & cfgcleanup) 2004-07-26 14:34:19 +00:00
cfgloop.c cfgloop.c (update_latch_info): Update dominator of the new block. 2004-07-29 17:47:31 +00:00
cfgloop.h cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
cfgloopanal.c loop-invariant.c: New file. 2004-06-20 21:31:32 +00:00
cfgloopmanip.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cfgrtl.c rtl.h (insn_note): Remove NOTE_INSN_PREDICTION. 2004-07-21 18:57:09 +00:00
cgraph.c c-common.c, [...]: Fix comment typos. 2004-05-30 07:12:58 +00:00
cgraph.h * Fix for g++/15861 2004-07-15 17:33:01 +00:00
cgraphunit.c c-common.h (lang_post_pch_load): New variable. 2004-07-29 17:59:31 +00:00
collect2.c * collect2.c (main): Handle --no-demangle and --demangle flags. 2004-07-13 10:19:14 -07:00
collect2.h
combine.c cfgcleanup.c (try_simplify_condjump): Don't remove line notes to avoid unreachable code warnings. 2004-07-17 00:31:15 +00:00
common.opt common.opt (freschedule-modulo-scheduled-loops): New flag. 2004-08-08 21:35:53 +00:00
conditions.h
config.build
config.gcc config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0. 2004-08-05 04:55:37 +00:00
config.host toplev.c (init_asm_output): Add explicit 'b' to mode when opening asm_out_file. 2004-06-05 07:28:27 +00:00
config.in intl.c (gcc_init_libintl): Use PACKAGE for the text domain. 2004-07-23 06:59:35 +00:00
configure aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset... 2004-08-03 20:33:23 +00:00
configure.ac intl.c (gcc_init_libintl): Use PACKAGE for the text domain. 2004-07-23 06:59:35 +00:00
conflict.c alias.c (record_set, [...]): Use REG_P. 2004-06-15 18:02:40 +00:00
convert.c convert.c (convert_to_real, [...]): Replace calls to build with calls to buildN. 2004-07-25 19:15:50 +00:00
convert.h * convert.h: Add include guards 2004-06-15 21:04:15 +00:00
coretypes.h tree.h (enum tls_model): Move ... 2004-07-28 23:36:41 +00:00
coverage.c coverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument. 2004-08-03 14:05:15 +00:00
coverage.h
cppdefault.c
cppdefault.h
cppspec.c
crtstuff.c
cse.c cse.c (validate_canon_reg): New function, split out from... 2004-07-28 19:33:10 +00:00
cselib.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
cselib.h
cstamp-h.in
dbxout.c dbxout.c (dbxout_function_decl): Always call dbxout_function_end. 2004-08-04 07:23:14 +00:00
dbxout.h * dbxout.h: Add include guards 2004-06-25 15:01:35 +00:00
ddg.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ddg.h c-typeck.c, [...]: Fix comment typos. 2004-06-26 05:03:55 +00:00
debug.c
debug.h
defaults.h tree.c (handle_dll_attribute): Move here from i383/winnt.c. 2004-08-06 02:03:29 +00:00
df.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
df.h Makefile.in (df.o): Remove fibheap dependency. 2004-06-10 15:01:01 +00:00
diagnostic.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
diagnostic.def
diagnostic.h
dojump.c c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
dominance.c cfgloop.c (update_latch_info): Update dominator of the new block. 2004-07-29 17:47:31 +00:00
domwalk.c
domwalk.h configure.ac: Don't invoke ACX_HEADER_STDBOOL. 2004-06-12 05:53:54 +00:00
dummy-conditions.c
dwarf.h
dwarf2.h
dwarf2asm.c
dwarf2asm.h
dwarf2out.c Index: ChangeLog 2004-08-03 00:52:18 +00:00
dwarf2out.h
emit-rtl.c Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
emit-rtl.h Makefile.in (EXPR_H): Add insn-config.h... 2004-06-02 02:09:45 +00:00
errors.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
errors.h
et-forest.c
et-forest.h
except.c cfgexpand.c (tree_expand_cfg): Fix comment. 2004-07-27 19:09:32 +00:00
except.h dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
explow.c explow.c (memory_address): Use memory_address_p. 2004-08-09 17:43:17 +00:00
expmed.c expmed.c (sdiv_pow2_cheap, [...]): Change type to bool. 2004-08-09 22:36:39 +00:00
expr.c Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
expr.h expr.h (canonicalize_condition, [...]): Add an int argument. 2004-07-27 07:27:12 +00:00
final.c common.opt (freschedule-modulo-scheduled-loops): New flag. 2004-08-08 21:35:53 +00:00
fix-header.c
fixproto
flags.h re PR c++/9283 (__attribute__((visibility ("hidden"))) not supported for class/struct) 2004-07-25 22:52:22 +00:00
flow.c re PR rtl-optimization/15068 (ICE in elim_reg_cond) 2004-08-02 13:19:39 +00:00
fold-const.c tree.h (force_fit_type): Return a tree, take three flags. 2004-08-05 09:03:42 +00:00
fp-test.c
function.c Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
function.h Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
gbl-ctors.h
gcc.c gcc.c (add_prefix, [...]): Remove penultimate parameter. 2004-08-03 09:38:08 +00:00
gcc.h
gccbug.in libf2c: Removed. 2004-07-15 16:52:49 +00:00
gccspec.c
gcov-dump.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcov-io.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcov-io.h gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcov-iov.c
gcov.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
gcse.c timevar.def (TV_CPROP1, [...]): New timers. 2004-08-09 16:58:42 +00:00
gdbinit.in * gdbinit.in: Reflect previous changes to rtunion_def. 2004-08-02 19:36:57 +00:00
gen-protos.c
genattr.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genattrtab.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genattrtab.h
genautomata.c genautomata.c (add_vect): Speedup by using integers as bit-vectors for walking through the comb_vect and... 2004-07-16 10:12:11 +02:00
gencheck.c c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists. 2004-07-25 02:13:01 +02:00
gencodes.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genconditions.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genconfig.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genconstants.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genemit.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genextract.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genflags.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
gengenrtl.c
gengtype-lex.l basic-block.h (reorder_block_def): Rename to reorder_block_def_p. 2004-07-26 00:17:02 +02:00
gengtype-yacc.y gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC (). 2004-07-26 03:33:36 +02:00
gengtype.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
gengtype.h gengtype.h (options::info): Change type to const char *. 2004-08-02 12:48:49 +00:00
genmodes.c basic-block.h (reorder_block_def): Rename to reorder_block_def_p. 2004-07-26 00:17:02 +02:00
genmultilib
genopinit.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genoutput.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genpeep.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
genpreds.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
genrecog.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
gensupport.c gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
gensupport.h gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args. 2004-08-03 23:30:45 +00:00
ggc-common.c ggc-common.c (ggc_rlimit_bound): Don't check RSS limit. 2004-08-09 20:19:30 +00:00
ggc-none.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
ggc-page.c
ggc-zone.c ggc-zone.c (struct alloc_zone): Add statistics counters. 2004-08-09 23:11:08 +00:00
ggc.h ggc.h (GGC_NEW, [...]): New macros. 2004-07-25 02:20:14 +02:00
gimple-low.c gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE... 2004-07-21 19:48:27 -07:00
gimplify.c revert: gimplify.c (gimplify_call_expr): Make return in memory explicit. 2004-08-07 16:47:48 -04:00
glimits.h
global.c re PR rtl-optimization/15921 (gcc.c-torture/compile/920501-4.c fails on powerpc-*) 2004-07-12 18:01:44 +00:00
gmon.c
graph.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
graph.h
gstab.h
gsyms.h
gsyslimits.h
gthr-aix.h
gthr-dce.h
gthr-gnat.c gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
gthr-gnat.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
gthr-lynx.h config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0. 2004-08-05 04:55:37 +00:00
gthr-posix.c gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for... 2004-05-28 13:18:23 -07:00
gthr-posix.h gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for... 2004-05-28 13:18:23 -07:00
gthr-rtems.h
gthr-single.h
gthr-solaris.h
gthr-vxworks.h
gthr-win32.h gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust. 2004-06-23 23:57:27 +00:00
gthr.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +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_int_void_1): New generic hook. 2004-06-07 06:04:14 +00:00
hooks.h hooks.c (hook_int_void_1): New generic hook. 2004-06-07 06:04:14 +00:00
host-default.c
hosthooks-def.h toplev.c (init_asm_output): Add explicit 'b' to mode when opening asm_out_file. 2004-06-05 07:28:27 +00:00
hosthooks.h toplev.c (init_asm_output): Add explicit 'b' to mode when opening asm_out_file. 2004-06-05 07:28:27 +00:00
hwint.h
ifcvt.c expr.h (canonicalize_condition, [...]): Add an int argument. 2004-07-27 07:27:12 +00:00
input.h input.h: If USE_MAPPED_LOCATION... 2004-07-14 17:02:30 -07:00
insn-addr.h
integrate.c cfgexpand.c (tree_expand_cfg): Fix comment. 2004-07-27 19:09:32 +00:00
integrate.h
intl.c intl.c (gcc_init_libintl): Use PACKAGE for the text domain. 2004-07-23 06:59:35 +00:00
intl.h
jump.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
lambda.h Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
langhooks-def.h c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
langhooks.c c-common.c (c_common_unsafe_for_reeval): Delete. 2004-07-28 23:44:56 +00:00
langhooks.h libiberty.h (XDELETE, [...]): Remove any const-qualification before disposal. 2004-08-02 16:45:52 +00:00
lcm.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
libada-mk.in
libfuncs.h c-decl.c, [...]: Don't check TARGET_MEM_FUNCTIONS. 2004-07-05 20:49:20 +01:00
libgcc-darwin.ver libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4. 2004-06-12 06:34:58 +02:00
libgcc-std.ver libgcc2.c (__enable_execute_stack): New symbol. 2004-07-17 21:09:14 +00:00
libgcc2.c gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
libgcc2.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
libgcov.c gcov-io.h: Allow zero tag as EOF indicator. 2004-07-29 08:58:59 +00:00
limitx.h
limity.h
lists.c
local-alloc.c expr.c (enqueue_insn, [...]): Remove. 2004-07-14 07:30:23 +00:00
longlong.h * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss. 2004-06-15 10:40:44 +00:00
loop-doloop.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
loop-init.c loop-init.c (loop_optimizer_init, [...]): Do not destroy dominance information. 2004-07-17 18:08:10 +00:00
loop-invariant.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
loop-iv.c re PR tree-optimization/16807 ([lno] Weird loop unrolling) 2004-08-06 09:40:39 +00:00
loop-unroll.c
loop-unswitch.c expr.h (canonicalize_condition, [...]): Add an int argument. 2004-07-27 07:27:12 +00:00
loop.c expr.h (canonicalize_condition, [...]): Add an int argument. 2004-07-27 07:27:12 +00:00
loop.h
machmode.def machmode.def: Remove vector modes. 2004-07-23 10:15:53 +00:00
machmode.h
main.c
mips-tdump.c
mips-tfile.c
mkconfig.sh
mkheaders.in re PR other/16842 (mkheaders can not find mkheaders.conf) 2004-07-31 17:44:43 -07:00
mklibgcc.in libgcc2.c (__enable_execute_stack): New symbol. 2004-07-17 21:09:14 +00:00
mkmap-flat.awk
mkmap-symver.awk
mode-classes.def
modulo-sched.c common.opt (freschedule-modulo-scheduled-loops): New flag. 2004-08-08 21:35:53 +00:00
opt-functions.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
opt-gather.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
optabs.c expr.c (var_rtx): Remove. 2004-08-09 06:46:42 +00:00
optabs.h expr.c (var_rtx): Remove. 2004-08-09 06:46:42 +00:00
optc-gen.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
opth-gen.awk opts.sh: Delete. 2004-06-18 01:59:45 +00:00
opts.c re PR c++/9283 (__attribute__((visibility ("hidden"))) not supported for class/struct) 2004-07-25 22:52:22 +00:00
opts.h c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope decls when... 2004-07-08 19:49:08 +00:00
output.h explow.c (optimize_save_area_alloca): Do not accept parameters. 2004-07-08 07:42:02 +00:00
params.c
params.def params.def (PARAM_MIN_CROSSJUMP_INSNS): New. 2004-08-06 13:20:53 -04:00
params.h
passes.c re PR c/14516 (-fleading-underscore does not work correctly for file static variables) 2004-08-05 05:52:01 +00:00
postreload.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
predict.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
predict.def CFG transparent RTL expansion: 2004-06-19 15:33:06 +00:00
predict.h
prefix.c prefix.c (lookup_key): Cast buffer to LPBYTE. 2004-06-30 11:45:58 -07:00
prefix.h
pretty-print.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
pretty-print.h
print-rtl.c Makefile.in (RTL_BASE_H, RTL_H): Correct. 2004-08-04 20:55:08 +00:00
print-tree.c tree-cfg.c (gimplify_val): Move from tree-complex.c. 2004-07-22 08:20:40 +00:00
profile.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
protoize.c
ra-build.c ra-build.c (conflicts_between_webs): For webs that cross a call add conflicts to regs_invalidated_by_call. 2004-08-03 11:00:49 -04:00
ra-colorize.c ra.h (single_reg_in_regclass): Declare. 2004-07-29 10:49:22 -04:00
ra-debug.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ra-rewrite.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
ra.c ra.h (single_reg_in_regclass): Declare. 2004-07-29 10:49:22 -04:00
ra.h ra.h (single_reg_in_regclass): Declare. 2004-07-29 10:49:22 -04:00
read-rtl.c basic-block.h (reorder_block_def): Rename to reorder_block_def_p. 2004-07-26 00:17:02 +02:00
real.c c-common.c: Rename all identifiers named `class' to `cl'. 2004-07-25 19:57:24 +02:00
real.h c-common.c: Rename all identifiers named `class' to `cl'. 2004-07-25 19:57:24 +02:00
recog.c explow.c (memory_address): Use memory_address_p. 2004-08-09 17:43:17 +00:00
recog.h c-common.c: Rename all identifiers named `class' to `cl'. 2004-07-25 19:57:24 +02:00
reg-stack.c c-common.c: Rename all identifiers named `class' to `cl'. 2004-07-25 19:57:24 +02:00
regclass.c defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition. 2004-08-03 23:37:34 +00:00
regmove.c regmove.c (optimize_reg_copy_1): Don't try to replace call-used hard registers. 2004-07-25 17:01:49 +00:00
regrename.c explow.c (memory_address): Use memory_address_p. 2004-08-09 17:43:17 +00:00
regs.h tree-cfg.c (gimplify_val): Move from tree-complex.c. 2004-07-22 08:20:40 +00:00
reload.c defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition. 2004-08-03 23:37:34 +00:00
reload.h
reload1.c defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition. 2004-08-03 23:37:34 +00:00
reorg.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
resource.c re PR rtl-optimization/16294 (Missed delay slot scheduling opportunity) 2004-07-17 18:12:37 +00:00
resource.h Makefile.in (RA_H, [...]): New. 2004-06-03 15:01:08 +00:00
rtl-error.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:18:01 -07:00
rtl-profile.c
rtl.c rtl.c (currently_expanding_to_rtl): New. 2004-07-29 07:37:16 +00:00
rtl.def genattr.c (struct range, [...]): Remove them. 2004-07-20 07:27:18 +00:00
rtl.h Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
rtlanal.c rtl.h (union rtunion_def): Have all members start with the prefix "rt_". 2004-08-02 10:29:26 +00:00
rtlhooks-def.h
rtlhooks.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
sbitmap.c
sbitmap.h
scan-decls.c
scan-types.sh
scan.c
scan.h
sched-deps.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
sched-ebb.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
sched-int.h genattr.c (struct range, [...]): Remove them. 2004-07-20 07:27:18 +00:00
sched-rgn.c common.opt (freschedule-modulo-scheduled-loops): New flag. 2004-08-08 21:35:53 +00:00
sched-vis.c genattr.c (struct range, [...]): Remove them. 2004-07-20 07:27:18 +00:00
sdbout.c tree.h: Include vec.h 2004-07-20 12:26:02 +00:00
sdbout.h
simplify-rtx.c cfgexpand.c (tree_expand_cfg): Fix comment. 2004-07-27 19:09:32 +00:00
sort-protos
sreal.c
sreal.h
stab.def
stack.h
statistics.h c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists. 2004-07-25 02:13:01 +02:00
stmt.c Makefile.in (GTFILES): Remove stmt.c 2004-08-09 07:14:17 +00:00
stor-layout.c convert.c (convert_to_real, [...]): Replace calls to build with calls to buildN. 2004-07-25 19:15:50 +00:00
stringpool.c Index: gcc/ChangeLog 2004-06-09 20:10:13 +00:00
stub-objc.c c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists. 2004-07-25 02:13:01 +02:00
sys-protos.h
sys-types.h
system.h system.h (bool, [...]): Don't redefine as preprocessor macros in C++. 2004-07-25 02:32:22 +02:00
target-def.h target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define. 2004-08-04 15:33:51 +00:00
target.h target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define. 2004-08-04 15:33:51 +00:00
targhooks.c dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
targhooks.h dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO. 2004-07-15 01:07:53 +00:00
timevar.c
timevar.def timevar.def (TV_CPROP1, [...]): New timers. 2004-08-09 16:58:42 +00:00
timevar.h
tlink.c c-common.h (lang_post_pch_load): New variable. 2004-07-29 17:59:31 +00:00
toplev.c re PR c/14516 (-fleading-underscore does not work correctly for file static variables) 2004-08-05 05:52:01 +00:00
toplev.h re PR c/14516 (-fleading-underscore does not work correctly for file static variables) 2004-08-05 05:52:01 +00:00
tracer.c re PR rtl-optimization/16643 (verify_local_live_at_start ICE after crossjumping & cfgcleanup) 2004-07-26 14:34:19 +00:00
tree-alias-ander.c bb-reorder.c, [...]: Fix comment formatting. 2004-05-30 18:32:31 +00:00
tree-alias-ander.h tree-alias-ander.h: Add standard top-of-file comment. 2004-06-17 14:49:59 +10:00
tree-alias-common.c expr.c (expand_expr_real_1): Don't handle non-local variables. 2004-07-23 15:37:23 -07:00
tree-alias-common.h tree-alias-common.h (struct tree_alias_ops): Change ip and ip_partial to unsigned int. 2004-06-21 13:37:46 +01:00
tree-alias-type.c
tree-alias-type.h tree-alias-ander.h: Add standard top-of-file comment. 2004-06-17 14:49:59 +10:00
tree-browser.c
tree-browser.def
tree-cfg.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-chrec.c cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-chrec.h Makefile.in (OBJS-common): Add tree-chrec.o. 2004-06-30 15:37:42 +00:00
tree-complex.c tree-cfg.c (gimplify_val): Move from tree-complex.c. 2004-07-22 08:20:40 +00:00
tree-data-ref.c Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
tree-data-ref.h Makefile.in (OBJS-common): Add tree-data-ref.o. 2004-07-13 16:43:32 +00:00
tree-dfa.c tree-dfa.c (add_referenced_var): Register initializers of global variables. 2004-07-27 00:20:03 +00:00
tree-dump.c tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree). 2004-07-26 08:23:58 +00:00
tree-dump.h c-common.def (RETURN_STMT): Remove. 2004-06-21 16:30:30 -07:00
tree-eh.c cfgcleanup.c (try_simplify_condjump): Don't remove line notes to avoid unreachable code warnings. 2004-07-17 00:31:15 +00:00
tree-flow-inline.h expr.c (expand_expr_real_1): Don't handle non-local variables. 2004-07-23 15:37:23 -07:00
tree-flow.h Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-gimple.c gimplify.c (gimplify_expr): Don't replace with DECL_INITIAL if fb_lvalue. 2004-07-30 15:55:30 -07:00
tree-gimple.h gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove. 2004-07-27 18:17:00 -07:00
tree-inline.c Make return in memory explicit. 2004-08-07 13:40:10 -04:00
tree-inline.h re PR tree-optimization/15077 (ICE in make_decl_rtl when inlining tail recursive nested function) 2004-07-27 22:27:20 -04:00
tree-into-ssa.c tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. 2004-08-04 14:37:38 -06:00
tree-iterator.c c-common.c (lang_gimplify_stmt): Remove next_p argument. 2004-06-15 18:21:38 -07:00
tree-iterator.h c-common.c (lang_gimplify_stmt): Remove next_p argument. 2004-06-15 18:21:38 -07:00
tree-mudflap.c tree-mudflap.c (mf_set_options_fndecl): New tree. 2004-07-20 20:01:12 +00:00
tree-mudflap.h tree-mudflap.c: Include cgraph.h. 2004-07-05 18:12:47 +00:00
tree-nested.c tree-cfg.c (gimplify_val): Move from tree-complex.c. 2004-07-22 08:20:40 +00:00
tree-nomudflap.c
tree-nrv.c c-typeck.c, [...]: Fix comment typos. 2004-06-26 05:03:55 +00:00
tree-optimize.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-outof-ssa.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-pass.h tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-phinodes.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-pretty-print.c expr.c (expand_expr_real_1): Remove. 2004-08-06 10:40:35 +00:00
tree-profile.c basic-block.h (profile_staus): New global variable. 2004-08-04 21:37:06 +00:00
tree-scalar-evolution.c cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-scalar-evolution.h cfgloop.h (struct loop): Add nb_iterations field. 2004-07-12 19:31:16 +00:00
tree-sra.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-alias.c tree-ssa-alias.c (compute_points_to_and_addr_escape): If a pointer escapes through a function call... 2004-07-30 15:40:30 -04:00
tree-ssa-ccp.c gimplify.c (gimplify_expr): Don't replace with DECL_INITIAL if fb_lvalue. 2004-07-30 15:55:30 -07:00
tree-ssa-copy.c tree-ssa-alias.c (create_name_tags): Ignore pointers that don't have PT_VARS nor PT_MALLOC set. 2004-07-27 11:32:47 -04:00
tree-ssa-copyrename.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-dce.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-dom.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-ssa-dse.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-forwprop.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-live.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-ssa-live.h Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-ssa-loop-ch.c tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. 2004-08-04 14:37:38 -06:00
tree-ssa-loop-im.c tree-ssa-loop-manip.c: New file. 2004-08-05 21:33:21 +00:00
tree-ssa-loop-manip.c tree-ssa-loop-manip.c: New file. 2004-08-05 21:33:21 +00:00
tree-ssa-loop-niter.c tree-scalar-evolution.c: New file. 2004-07-09 03:19:14 +00:00
tree-ssa-loop.c tree-ssa-loop-manip.c: New file. 2004-08-05 21:33:21 +00:00
tree-ssa-operands.c tree-ssa-operands.c (get_expr_operands): Revert changes to ADDR_EXPR processing introduced by... 2004-07-29 13:15:38 -04:00
tree-ssa-operands.h tree-ssa-loop-ch.c: New file. 2004-06-30 21:11:28 +00:00
tree-ssa-phiopt.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-pre.c tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA. 2004-07-28 01:13:10 -04:00
tree-ssa-threadupdate.c Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tree-ssa.c tree-ssa.c (verify_flow_sensitive_alias_info): When comparing points-to sets of different pointers... 2004-07-29 16:16:26 -04:00
tree-ssanames.c tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. 2004-08-04 14:37:38 -06:00
tree-tailcall.c re PR tree-optimization/16864 (Segmentation fault during tree tail call elimination) 2004-08-05 08:41:57 +00:00
tree-vn.c tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant to check for constants. 2004-06-30 07:06:28 -04:00
tree.c tree.c (handle_dll_attribute): Move here from i383/winnt.c. 2004-08-06 02:03:29 +00:00
tree.def expr.c (expand_expr_real_1): Remove. 2004-08-06 10:40:35 +00:00
tree.h Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c 2004-08-09 13:13:07 -06:00
tsystem.h
typeclass.h typeclass.h: Add GPL plus exception license. 2004-06-11 05:31:09 +00:00
unroll.c alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P. 2004-07-09 03:29:35 +00:00
unwind-c.c
unwind-dw2-fde-darwin.c
unwind-dw2-fde-glibc.c
unwind-dw2-fde.c
unwind-dw2-fde.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
unwind-dw2.c unwind-dw2.c (uw_install_context_1): Update target saved stack pointer. 2004-08-09 20:31:41 +00:00
unwind-dw2.h Index: gcc/ChangeLog 2004-07-01 04:09:07 +00:00
unwind-pe.h
unwind-sjlj.c
unwind.h gthr-gnat.c: Add visibility #pragmas. 2004-08-03 16:57:40 +00:00
unwind.inc
value-prof.c re PR rtl-optimization/15633 (Failure to propagate FDO counters by vpt results in performance regression) 2004-06-23 12:07:58 -04:00
value-prof.h bb-reorder.c, [...]: Fix comment formatting. 2004-05-30 18:32:31 +00:00
var-tracking.c var-tracking.c (vt_find_locations): Set the in_pending bitmap at once. 2004-07-21 17:03:47 +00:00
varasm.c re PR c/14516 (-fleading-underscore does not work correctly for file static variables) 2004-08-05 05:52:01 +00:00
varray.c
varray.h
vec.c vec.h (VEC_T_length, [...]): Use unsigned, not size_t. 2004-07-20 20:25:02 +00:00
vec.h libiberty.h (XDELETE, [...]): Remove any const-qualification before disposal. 2004-08-02 16:45:52 +00:00
version.c Daily bump. 2004-08-10 00:16:15 +00:00
version.h
vmsdbg.h
vmsdbgout.c tree.h: Remove include of version.h 2004-06-03 18:48:28 +00:00
web.c rtl.def (ADDRESSOF): Remove. 2004-07-04 01:07:15 -07:00
xcoff.h
xcoffout.c Conditionally compile support for --enable-mapped_location. 2004-06-30 11:05:07 -07:00
xcoffout.h xcoffout.h (DBX_FINISH_SYMBOL): Fix typo. 2004-07-06 11:37:55 -04:00

README.Portability

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.