gcc/gcc
Mike Stump f07f30cfb5 install.texi (Prerequisites): Note regression in Tcl 8.6 with RE patterns.
* doc/install.texi (Prerequisites): Note regression in Tcl 8.6
	with RE patterns.

From-SVN: r202112
2013-08-30 15:45:18 +00:00
..
ada decl.c (gnat_to_gnu_entity): Do not bother about alias sets of derived types in ASIS mode. 2013-08-13 19:58:24 +00:00
c Add PR marker to PR id in ChangeLog. 2013-08-26 17:54:29 +01:00
c-family c-pretty-print.h (c_pretty_printer::declaration): Now a virtual member function. 2013-08-30 15:28:51 +00:00
common i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New. 2013-08-22 06:06:03 +00:00
config arm_neon.h (__AARCH64_UINT64_C, [...]): New arm_neon.h's internal macros to specify 64-bit constants. 2013-08-30 16:04:58 +01:00
cp re PR c++/51424 ([C++11] G++ should diagnose self-delegating constructors) 2013-08-30 15:39:01 +00:00
doc install.texi (Prerequisites): Note regression in Tcl 8.6 with RE patterns. 2013-08-30 15:45:18 +00:00
fortran re PR fortran/52243 (Avoid reallocation for: array1 = array1 / scalar for performance) 2013-08-29 11:44:41 +00:00
ginclude
go go-gcc.cc (Gcc_backend::immutable_struct): Set TREE_PUBLIC if the struct is not hidden. 2013-08-29 00:49:36 +00:00
java class.c (emit_register_classes_in_jcr_section): Use DECL_PRESERVE_P instead of mark_decl_referenced. 2013-06-05 14:15:31 +00:00
lto lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state. 2013-08-30 07:33:06 +00:00
objc Fix some typos. 2013-07-21 15:33:00 +00:00
objcp Makefile.in (LLINKER): New variable. 2013-05-16 11:09:31 -04:00
po * fi.po: Update. 2013-07-11 22:47:04 +01:00
testsuite cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog install.texi (Prerequisites): Note regression in Tcl 8.6 with RE patterns. 2013-08-30 15:45:18 +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-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2013-08-30 00:16:44 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in ipa-inline.c (edge_badness): Fix integer underflow. 2013-08-28 18:11:33 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4 Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
addresses.h
alias.c re PR rtl-optimization/57425 (RTL alias analysis unprepared to handle stack slot sharing) 2013-06-20 13:43:29 +01:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c pretty-print.h (output_buffer::output_buffer): Declare. 2013-08-22 10:14:46 +00:00
asan.h
attribs.c
auto-inc-dec.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
basic-block.h re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +00:00
bb-reorder.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
bb-reorder.h re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +00:00
bitmap.c
bitmap.h
bt-load.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
builtin-attrs.def
builtin-types.def Implemented Cilk Plus Array Notation for C Compiler. 2013-05-28 12:55:10 -07:00
builtins.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
builtins.def * builtins.def (free): Declare leaf. 2013-08-28 07:10:47 +00:00
builtins.h
caller-save.c
calls.c calls.c (special_function_p): setjmp-like functions are leaf. 2013-05-07 13:02:36 +00:00
cfg-flags.def
cfg.c Follow-on patch to r197595 to complete the replacement of truncating divides in... 2013-05-02 13:20:47 +00:00
cfganal.c
cfgbuild.c
cfgcleanup.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
cfgexpand.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
cfghooks.c cfghooks.c (copy_bbs): Add update_dominance argument. 2013-05-16 17:09:40 +00:00
cfghooks.h cfghooks.c (copy_bbs): Add update_dominance argument. 2013-05-16 17:09:40 +00:00
cfgloop.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloop.h Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
cfgloopanal.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloopmanip.c reload.c (find_reloads): Exit loop once we find this operand cannot be reloaded somehow for this alternative. 2013-07-23 09:56:37 -06:00
cfgrtl.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
cgraph.c cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
cgraph.h cgraph.c (cgraph_turn_edge_to_speculative): Return newly introduced edge; fix typo in sanity check. 2013-08-13 12:21:16 +00:00
cgraphbuild.c cgraphbuild.c (cgraph_rebuild_references): Rebuild only non-speculative refs. 2013-08-09 15:23:19 +00:00
cgraphclones.c cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME of the clone from the DECL_NAME of the original function. 2013-08-29 19:52:33 +00:00
cgraphunit.c devirt-13.C: New testcase. 2013-08-23 15:29:04 +00:00
cif-code.def
cilkplus.def Implemented Cilk Plus Array Notation for C Compiler. 2013-05-28 12:55:10 -07:00
collect2-aix.c
collect2-aix.h
collect2.c re PR driver/57652 (collect2 does not clean up temporary files) 2013-06-19 19:51:05 -04:00
collect2.h re PR driver/57652 (collect2 does not clean up temporary files) 2013-06-19 19:51:05 -04:00
combine-stack-adj.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
combine.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
common.opt Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
compare-elim.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
conditions.h
config.build
config.gcc * config.gcc: (avr-linux): Allow for tmake_file not being empty. 2013-08-13 15:42:17 +00:00
config.host
config.in configure.ac: Add GAS check for LEON instructions on SPARC. 2013-08-09 09:13:32 +00:00
configure Initial version of gdb hooks 2013-08-28 03:01:20 +00:00
configure.ac Initial version of gdb hooks 2013-08-28 03:01:20 +00:00
context.c Revert my last two changes, r201865 and r201864 2013-08-20 15:51:18 +00:00
context.h Revert my last two changes, r201865 and r201864 2013-08-20 15:51:18 +00:00
convert.c target.def (TARGET_LIBC_HAS_FUNCTION): New target hook. 2013-08-19 12:21:26 +00:00
convert.h
coretypes.h pretty-print.h (output_buffer::output_buffer): Declare. 2013-08-22 10:14:46 +00:00
coverage.c dumpfile.c (dump_loc): Output column number. 2013-08-29 13:51:04 +00:00
coverage.h cgraph.h (cgraph_node): Add profile_id. 2013-08-09 18:23:23 +00:00
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
cse.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
cselib.c re PR rtl-optimization/57425 (RTL alias analysis unprepared to handle stack slot sharing) 2013-06-20 13:43:29 +01:00
cselib.h
cstamp-h.in
data-streamer-in.c data-streamer-in.c (streamer_read_uhwi): Optimize single byte case... 2013-06-20 11:33:43 +00:00
data-streamer-out.c data-streamer.h (streamer_write_char_stream): CSE obs->current_pointer. 2013-06-12 11:09:50 +00:00
data-streamer.c
data-streamer.h data-streamer.h (streamer_write_char_stream): CSE obs->current_pointer. 2013-06-12 11:09:50 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
dbxout.h
dce.c Revert: 2013-08-21 12:35:01 -06:00
dce.h
ddg.c Fix typos. 2013-07-21 18:31:07 +00:00
ddg.h
debug.c
debug.h
defaults.h target.def (TARGET_LIBC_HAS_FUNCTION): New target hook. 2013-08-19 12:21:26 +00:00
df-core.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
df-problems.c df-problems.c (can_move_insns_across): Exit loop once we find a non-fixed, non-global register. 2013-07-22 09:20:11 -06:00
df-scan.c
df.h
dfp.c
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic.c diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer. 2013-08-23 23:58:55 +00:00
diagnostic.def
diagnostic.h pretty-print.h (pp_base): Remove. 2013-08-05 04:00:57 +00:00
dojump.c
dominance.c pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. 2013-06-24 12:17:16 +00:00
domwalk.c
domwalk.h
double-int.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
double-int.h Fix typos. 2013-07-21 18:31:07 +00:00
dse.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
dumpfile.c dumpfile.c (dump_loc): Output column number. 2013-08-29 13:51:04 +00:00
dumpfile.h dumpfile.c (dump_loc): Output column number. 2013-08-29 13:51:04 +00:00
dwarf2asm.c dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC. 2013-05-13 23:04:10 +00:00
dwarf2asm.h
dwarf2cfi.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
dwarf2out.c dwarf2out.c (CHECKSUM_BLOCK): New macro. 2013-08-13 16:39:54 -07:00
dwarf2out.h
emit-rtl.c re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
except.h
exec-tool.in
explow.c explow.c (plus_constant): Pass "mode" to immed_double_int_const. 2013-04-30 16:15:55 +00:00
expmed.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
expmed.h
expr.c re PR other/12081 (Gcc can't be compiled with -mregparm=3) 2013-08-05 22:09:45 +00:00
expr.h
file-find.c re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin) 2013-06-19 21:01:06 +00:00
file-find.h re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin) 2013-06-19 21:01:06 +00:00
final.c re PR rtl-optimization/58220 (Many new failures for SH after rev. 201833) 2013-08-23 14:31:06 +00:00
fixed-value.c double-int.h (lshift): New overload without precision and arith argument. 2013-05-03 11:09:59 +00:00
fixed-value.h
flag-types.h Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
flags.h
fold-const.c fold-const.c (fold_single_bit_test): Fix overflow test. 2013-08-30 11:52:15 +00:00
fp-test.c
function.c function.c (assign_parm_setup_reg): For a parameter passed by pointer and which can live in a register... 2013-08-30 11:13:20 +00:00
function.h Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
fwprop.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
gcc-ar.c re PR driver/57651 (gcc-ar and gcc-nm don't find the lto plugin) 2013-06-19 21:01:06 +00:00
gcc-plugin.h
gcc.c Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
gcc.h
gcov-dump.c
gcov-io.c
gcov-io.h cgraph.h (cgraph_node): Add profile_id. 2013-08-09 18:23:23 +00:00
gcov-iov.c
gcov.c gcov.c (print_usage): Handle new option. 2013-06-20 05:20:09 +00:00
gcse.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
gcse.h
gdbhooks.py Initial version of gdb hooks 2013-08-28 03:01:20 +00:00
gdbinit.in * gdbinit.in (__FUNCTION__): Add. 2013-06-05 16:36:00 +00:00
gen-pass-instances.awk gen-pass-instances.awk: Fix offset of substr(). 2013-07-31 09:34:04 +00:00
genattr-common.c
genattr.c Fix typos. 2013-07-21 18:31:07 +00:00
genattrtab.c
genautomata.c Add error message for mismatched parentheses in reservation string 2013-06-11 22:23:18 +00:00
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c
genenums.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c Fix typos. 2013-07-21 18:31:07 +00:00
gengtype.c Revert my last two changes, r201865 and r201864 2013-08-20 15:51:18 +00:00
gengtype.h
genhooks.c
genmddeps.c
genmddump.c
genmodes.c
genmultilib
genopinit.c
genoutput.c re PR other/12081 (Gcc can't be compiled with -mregparm=3) 2013-08-05 22:09:45 +00:00
genpeep.c
genpreds.c
genrecog.c
gensupport.c reload.c (find_reloads): Exit loop once we find this operand cannot be reloaded somehow for this alternative. 2013-07-23 09:56:37 -06:00
gensupport.h
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c ggc-page.c (ggc_pch_write_object): Remove erroneous ATTRIBUTE_UNUSED marking. 2013-06-17 17:25:46 +00:00
ggc.h Revert my last two changes, r201865 and r201864 2013-08-20 15:51:18 +00:00
gimple-fold.c * gimple-fold.c (gimple_get_virt_method_for_binfo): Use ctor_for_folding. 2013-08-26 15:40:40 +00:00
gimple-fold.h
gimple-iterator.c
gimple-low.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
gimple-pretty-print.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
gimple-pretty-print.h
gimple-ssa-strength-reduction.c re PR middle-end/58041 (Unaligned access to arrays in packed structure) 2013-08-06 11:22:16 +02:00
gimple-streamer-in.c This patch fixes PR bootstrap/57077. 2013-04-29 13:22:46 +00:00
gimple-streamer-out.c
gimple-streamer.h
gimple.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
gimple.def Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
gimple.h Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
gimplify.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
glimits.h
godump.c
graph.c pretty-print.h (output_buffer::output_buffer): Declare. 2013-08-22 10:14:46 +00:00
graph.h
graphds.c graphds.h (struct graph): Add obstack member. 2013-05-02 13:59:38 +00:00
graphds.h graphds.h (struct graph): Add obstack member. 2013-05-02 13:59:38 +00:00
graphite-blocking.c
graphite-clast-to-gimple.c graphite: Do not depend on 2D + 1 form in parallelism check 2013-07-14 06:45:08 +00:00
graphite-clast-to-gimple.h
graphite-dependences.c graphite: Do not depend on 2D + 1 form in parallelism check 2013-07-14 06:45:08 +00:00
graphite-htab.h
graphite-interchange.c
graphite-optimize-isl.c Fix typos. 2013-07-21 18:31:07 +00:00
graphite-poly.c
graphite-poly.h
graphite-scop-detection.c
graphite-scop-detection.h
graphite-sese-to-poly.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
graphite-sese-to-poly.h
graphite.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def gtm-builtins.def (_ITM_free): Declare leaf. 2013-08-28 19:42:19 +02:00
haifa-sched.c re PR debug/56950 (compare-debug failure for gcc.dg/pr41345.c with fschedule-insns) 2013-05-24 20:59:59 +00:00
hard-reg-set.h
hash-table.c
hash-table.h
highlev-plugin-common.h
hooks.c
hooks.h
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c
hw-doloop.h
hwint.c
hwint.h re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
ifcvt.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
incpath.c
incpath.h
init-regs.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
input.c
input.h
insn-addr.h
insn-notes.def
internal-fn.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
internal-fn.def Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
internal-fn.h
intl.c
intl.h re PR bootstrap/54659 (Bootstrap with --disable-nls broken under Windows) 2013-05-08 09:22:14 -04:00
ipa-cp.c ipa-prop.h (ipa_pass_through_data): New field type_preserved. 2013-08-27 23:41:15 +02:00
ipa-devirt.c ipa-utils.h (method_class_type): Declare. 2013-08-23 15:55:22 +00:00
ipa-inline-analysis.c cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
ipa-inline-transform.c ipa-inline-transform.c (inline_transform): Be ready for basic block to be changed by edge redirection. 2013-08-26 15:23:48 +00:00
ipa-inline.c cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
ipa-inline.h cgraph.c (cgraph_turn_edge_to_speculative): Return newly introduced edge; fix typo in sanity check. 2013-08-13 12:21:16 +00:00
ipa-prop.c ipa-prop.h (ipa_pass_through_data): New field type_preserved. 2013-08-27 23:41:15 +02:00
ipa-prop.h ipa-prop.h (ipa_pass_through_data): New field type_preserved. 2013-08-27 23:41:15 +02:00
ipa-pure-const.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
ipa-ref-inline.h
ipa-ref.c * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too. 2013-08-09 23:07:52 +00:00
ipa-ref.h cgraphbuild.c (cgraph_rebuild_references): Rebuild only non-speculative refs. 2013-08-09 15:23:19 +00:00
ipa-reference.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
ipa-reference.h
ipa-split.c cgraphbuild.c (build_cgraph_edges): Do not walk into debugs. 2013-08-08 14:15:15 +00:00
ipa-utils.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
ipa-utils.h ipa-utils.h (method_class_type): Declare. 2013-08-23 15:55:22 +00:00
ipa.c ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors can be unshared. 2013-08-26 15:38:33 +00:00
ira-build.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
ira-color.c
ira-conflicts.c
ira-costs.c
ira-emit.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
ira-int.h
ira-lives.c
ira.c ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully covered by allocno classes. 2013-08-13 17:10:07 +00:00
ira.h
is-a.h
jump.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
langhooks-def.h
langhooks.c pretty-print.h (pp_underscore): New. 2013-08-03 18:57:25 +00:00
langhooks.h
lcm.c
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh add quotes 2013-05-16 13:41:13 -04:00
loop-doloop.c
loop-init.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
loop-invariant.c
loop-iv.c
loop-unroll.c New vectorizer messages; message format change. 2013-08-29 21:06:08 +00:00
loop-unswitch.c Follow-on patch to r197595 to complete the replacement of truncating divides in... 2013-05-02 13:20:47 +00:00
lower-subreg.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
lower-subreg.h
lra-assigns.c [multiple changes] 2013-07-18 17:04:10 +00:00
lra-coalesce.c
lra-constraints.c lra-constraints.c (emit_spill_move): Remove assert. 2013-08-08 20:56:52 +00:00
lra-eliminations.c ira.c (update_equiv_regs): Add insn having equiv memory even if it is not lhs of the insn. 2013-05-07 19:29:05 +00:00
lra-int.h re PR rtl-optimization/55342 ([LRA,x86] Non-optimal code for simple loop with LRA) 2013-07-05 20:56:13 +00:00
lra-lives.c
lra-spills.c rtl.h (struct rtx_def): Add comment for field jump. 2013-04-26 18:11:35 +00:00
lra.c re PR rtl-optimization/55342 ([LRA,x86] Non-optimal code for simple loop with LRA) 2013-07-05 20:56:13 +00:00
lra.h
lto-cgraph.c cgraph.c (cgraph_resolve_speculation): Cut frequency to CGRAPH_FREQ_MAX. 2013-08-09 22:53:00 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state. 2013-08-30 07:33:06 +00:00
lto-section-out.c pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. 2013-06-24 12:17:16 +00:00
lto-streamer-in.c cgraph.c (cgraph_resolve_speculation): Cut frequency to CGRAPH_FREQ_MAX. 2013-08-09 22:53:00 +00:00
lto-streamer-out.c lto.c (compare_tree_sccs_1): Compare DECL_FINAL_P... 2013-08-29 16:23:40 +00:00
lto-streamer.c lto-streamer.h (enum LTO_tags): Add LTO_tree_scc. 2013-06-17 15:08:24 +00:00
lto-streamer.h lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state. 2013-08-30 07:33:56 +00:00
lto-symtab.c lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state. 2013-08-30 07:33:06 +00:00
lto-wrapper.c
machmode.def
machmode.h stor-layout.c (element_precision): New function. 2013-05-10 11:15:14 +00:00
main.c
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c coretypes.h (rtl_opt_pass): Add. 2013-08-07 01:14:39 +00:00
modulo-sched.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
omega.c df-problems.c (can_move_insns_across): Exit loop once we find a non-fixed, non-global register. 2013-07-22 09:20:11 -06:00
omega.h
omp-builtins.def
omp-low.c re PR middle-end/58257 (Bogus warning with OpenMP collapsed loops) 2013-08-28 12:08:59 +02:00
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk
opth-gen.awk
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c
opts.h
output.h Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
params.c
params.def
params.h
pass_manager.h dumpfile.c (dump_loc): Output column number. 2013-08-29 13:51:04 +00:00
passes.c passes.c (register_pass): Add overload. 2013-08-29 18:29:33 +00:00
passes.def cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
plugin.c
plugin.def
plugin.h
pointer-set.c pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. 2013-06-24 12:17:16 +00:00
pointer-set.h pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. 2013-06-24 12:17:16 +00:00
postreload-gcse.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
postreload.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
predict.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer. 2013-08-23 23:58:55 +00:00
pretty-print.h diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer. 2013-08-23 23:58:55 +00:00
print-rtl.c
print-tree.c lto.c (compare_tree_sccs_1): Drop DECL_ERROR_ISSUED, DECL_DEFER_OUTPUT and DECL_IN_TEXT_SECTION. 2013-08-28 15:03:43 +00:00
profile.c dumpfile.c (dump_loc): Output column number. 2013-08-29 13:51:04 +00:00
profile.h cgraph.h (cgraph_node): Add profile_id. 2013-08-09 18:23:23 +00:00
read-md.c Fix typos. 2013-07-21 18:18:04 +00:00
read-md.h
read-rtl.c read-rtl.c (validate_const_int): Once an invalid character is seen, quit the loop. 2013-07-18 10:07:37 -06:00
real.c
real.h
realmpfr.c
realmpfr.h
recog.c recog.c (verify_changes): Verify that changes[i].old is non-zero before applying REG_P. 2013-08-30 15:20:29 +01:00
recog.h re PR other/12081 (Gcc can't be compiled with -mregparm=3) 2013-08-05 22:09:45 +00:00
ree.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
reg-notes.def
reg-stack.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
regcprop.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
reginfo.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
regmove.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
regrename.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
regrename.h
regs.h
regset.h
regstat.c
reload.c reload.c (find_valid_class): Allow classes that do not include FIRST_PSEUDO_REGISTER - 1. 2013-08-26 16:32:55 +01:00
reload.h reload.h (struct reg_equivs): Rename to .. 2013-08-21 15:38:35 +01:00
reload1.c
reorg.c rtl.h (update_alignments): Declare. 2013-08-07 17:17:07 +00:00
resource.c resource.h (struct resources): Remove unch_memory member. 2013-05-14 17:21:43 +00:00
resource.h resource.h (struct resources): Remove unch_memory member. 2013-05-14 17:21:43 +00:00
rtl-error.c
rtl-error.h
rtl.c
rtl.def rtl.def: Add extra fourth optional field to define_cond_exec. 2013-06-04 08:56:32 +00:00
rtl.h rtl.h (update_alignments): Declare. 2013-08-07 17:17:07 +00:00
rtlanal.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
rtlhooks-def.h
rtlhooks.c
sanitizer.def
sbitmap.c
sbitmap.h
sched-deps.c Fix typos. 2013-07-21 18:18:04 +00:00
sched-ebb.c
sched-int.h sched-int.h (ds_t, dw_t): Make unsigned int. 2013-05-25 10:31:43 +00:00
sched-rgn.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
sched-vis.c pretty-print.h (output_buffer::output_buffer): Declare. 2013-08-22 10:14:46 +00:00
sdbout.c
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c
sel-sched-ir.h re PR rtl-optimization/56957 (ICE in add_insn_after, at emit-rtl.c:3783) 2013-04-30 14:55:52 +04:00
sel-sched.c re PR rtl-optimization/57662 (ICE: SIGSEGV in code_motion_process_successors with -fschedule-insns2 -fselective-scheduling2) 2013-08-14 18:31:26 +04:00
sel-sched.h
sese.c
sese.h
simplify-rtx.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
statistics.c Introduce beginnings of a pass_manager class. 2013-07-30 18:52:03 +00:00
statistics.h
stmt.c re PR middle-end/55030 (gcc.c-torture/execute/builtins/memcpy-chk.c execution, -Os (et al)) 2013-07-03 14:37:29 +00:00
stor-layout.c stor-layout.c (element_precision): New function. 2013-05-10 11:15:14 +00:00
store-motion.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
symtab.c cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
sync-builtins.def
system.h target.def (TARGET_LIBC_HAS_FUNCTION): New target hook. 2013-08-19 12:21:26 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def target.def (narrow_volatile_bitfield): Note that the default value is false, not !TARGET_STRICT_ALIGN. 2013-08-20 12:17:16 +00:00
target.h
targhooks.c target.def (register_usage_leveling_p): New hook. 2013-05-30 20:30:38 +00:00
targhooks.h target.def (TARGET_LIBC_HAS_FUNCTION): New target hook. 2013-08-19 12:21:26 +00:00
timevar.c * timevar.c (validate_phases): Add cast. 2013-08-22 15:25:53 +00:00
timevar.def Makeifle-in (ipa-devirt.o): New. 2013-08-19 10:14:06 +00:00
timevar.h timevar.c (validate_phases): Use size_t for memory. 2013-08-22 14:58:17 +00:00
tlink.c Fix typos. 2013-07-21 18:18:04 +00:00
toplev.c Handwritten part of conversion of passes to C++ classes 2013-08-05 20:01:43 +00:00
toplev.h Handwritten part of conversion of passes to C++ classes 2013-08-05 20:01:43 +00:00
tracer.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
trans-mem.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
trans-mem.h
tree-affine.c re PR tree-optimization/57396 (Wrong code with -fpredictive-commoning in Fortran double-loop) 2013-05-27 07:48:37 +00:00
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c re PR regression/58165 (internal compiler error: verify_flow_info) 2013-08-16 10:57:29 +02:00
tree-cfg.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-cfgcleanup.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-chrec.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-chrec.h
tree-complex.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-data-ref.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-data-ref.h
tree-dfa.c double-int.h (lshift): New overload without precision and arith argument. 2013-05-03 11:09:59 +00:00
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-emutls.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-flow-inline.h
tree-flow.h Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-hasher.h
tree-if-conv.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-inline.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-inline.h re PR middle-end/57661 (ICE: SIGSEGV in verify_ssa) 2013-08-13 19:06:13 +02:00
tree-into-ssa.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/58223 (wrong code at -O3 on x86_64-linux-gnu) 2013-08-30 07:48:53 +00:00
tree-mudflap.c pretty-print.h (output_buffer::output_buffer): Declare. 2013-08-22 10:14:46 +00:00
tree-mudflap.h
tree-nested.c
tree-nomudflap.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-nrv.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-object-size.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-optimize.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-outof-ssa.c
tree-parloops.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-pass.h passes.c (register_pass): Add overload. 2013-08-29 18:29:33 +00:00
tree-phinodes.c
tree-predcom.c
tree-pretty-print.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-pretty-print.h pretty-print.h (pp_base): Remove. 2013-08-05 04:00:57 +00:00
tree-profile.c Workaround binutils PR14342 2013-08-10 20:52:06 +00:00
tree-scalar-evolution.c Add SCEV cprop dumping. 2013-05-16 09:23:47 +00:00
tree-scalar-evolution.h function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-sra.c re PR middle-end/58145 (volatileness of write is discarded, perhaps in "lim1" related to loop optimizations) 2013-08-14 22:34:56 +02:00
tree-ssa-address.c
tree-ssa-alias.c tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare MEM_REF offsets. 2013-05-17 12:47:45 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-ssa-coalesce.c gimple.h (gimple_can_coalesce_p): Prototype. 2013-06-14 12:52:32 -06:00
tree-ssa-copy.c re PR middle-end/57287 (Bogus uninitialized warning with abnormal control flow) 2013-08-29 11:20:16 +00:00
tree-ssa-copyrename.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-dce.c re PR tree-optimization/58246 (wrong code at -O1 and above) 2013-08-29 13:04:19 +00:00
tree-ssa-dom.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-dse.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-forwprop.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-ifcombine.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-live.c gimple.h (gimple_can_coalesce_p): Prototype. 2013-06-14 12:52:32 -06:00
tree-ssa-live.h
tree-ssa-loop-ch.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-loop-im.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-loop-ivcanon.c New vectorizer messages; message format change. 2013-08-29 21:06:08 +00:00
tree-ssa-loop-ivopts.c
tree-ssa-loop-manip.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-loop-niter.c re PR tree-optimization/57584 (ice: SSA corruption: Unable to coalesce ssa_names) 2013-06-20 10:22:33 +00:00
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-ssa-math-opts.c target.def (TARGET_LIBC_HAS_FUNCTION): New target hook. 2013-08-19 12:21:26 +00:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phiopt.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-phiprop.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-pre.c tree-ssa-pre.c (do_regular_insertion): Include the expression in the debugging dump when the expression is fully redundant. 2013-08-23 22:48:19 -06:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-sccvn.c revert: re PR rtl-optimization/57381 (array of volatile pointers hangs gcc) 2013-05-27 12:44:29 +00:00
tree-ssa-sccvn.h
tree-ssa-sink.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-strlen.c re PR tree-optimization/58277 (wrong code at -O3) 2013-08-30 14:41:17 +02:00
tree-ssa-structalias.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
tree-ssa-tail-merge.c Fix typos. 2013-07-21 18:04:43 +00:00
tree-ssa-ter.c
tree-ssa-threadedge.c tree-ssa-threadedge.c (thread_around_empty_block): Remove checks for the number of predecessors and successors allowed. 2013-08-28 09:07:45 -06:00
tree-ssa-threadupdate.c tree-ssa-threadedge.c (thread_around_empty_block): Remove checks for the number of predecessors and successors allowed. 2013-08-28 09:07:45 -06:00
tree-ssa-uncprop.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa-uninit.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssa.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-ssanames.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-stdarg.c re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) 2013-08-23 22:16:08 +00:00
tree-stdarg.h
tree-streamer-in.c lto.c (compare_tree_sccs_1): Compare DECL_FINAL_P... 2013-08-29 16:23:40 +00:00
tree-streamer-out.c lto.c (compare_tree_sccs_1): Compare DECL_FINAL_P... 2013-08-29 16:23:40 +00:00
tree-streamer.c pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. 2013-06-24 12:17:16 +00:00
tree-streamer.h pointer-set.h (struct pointer_set_t): Move here from pointer-set.c. 2013-06-24 12:17:16 +00:00
tree-switch-conversion.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-tailcall.c re PR tree-optimization/58209 (ICE in extract_range_from_binary_expr, at tree-vrp.c:2294) 2013-08-23 09:30:40 +02:00
tree-vect-data-refs.c re PR tree-optimization/58228 (wrong code (with vectorization?) at -O3 on x86_64-linux-gnu) 2013-08-30 07:49:54 +00:00
tree-vect-generic.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tree-vect-loop-manip.c New vectorizer messages; message format change. 2013-08-29 21:06:08 +00:00
tree-vect-loop.c re PR tree-optimization/58010 (ICE in vect_create_epilog_for_reduction, at tree-vect-loop.c:4378) 2013-08-30 07:47:54 +00:00
tree-vect-patterns.c re PR tree-optimization/57537 (gcc.dg/vect/slp-widen-mult-half.c generating wrong code on PowerPC64) 2013-06-12 15:01:49 +02:00
tree-vect-slp.c dumpfile.c (opt_info_switch_p): Change -fopt-info default to -fopt-info=optimized instead of all. 2013-06-03 18:39:04 +00:00
tree-vect-stmts.c Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-vectorizer.c New vectorizer messages; message format change. 2013-08-29 21:06:08 +00:00
tree-vectorizer.h Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree-vrp.c re PR tree-optimization/57685 (GCC stuck in an infinite loop) 2013-08-29 07:45:59 +00:00
tree.c * tree.c (set_call_expr_flags): Fix handling of TM_PURE. 2013-08-30 08:11:41 +00:00
tree.def Makefile.in (omp-low.o): Depend on $(TARGET_H). 2013-08-27 18:38:00 +00:00
tree.h lto.c (compare_tree_sccs_1): Drop DECL_ERROR_ISSUED, DECL_DEFER_OUTPUT and DECL_IN_TEXT_SECTION. 2013-08-28 15:03:43 +00:00
treestruct.def
tsan.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
tsan.h
tsystem.h
typeclass.h
valtrack.c
valtrack.h
value-prof.c dumpfile.c (dump_loc): Output column number. 2013-08-29 13:51:04 +00:00
value-prof.h cgraph.h (cgraph_node): Add profile_id. 2013-08-09 18:23:23 +00:00
var-tracking.c function.c (assign_parm_setup_reg): For a parameter passed by pointer and which can live in a register... 2013-08-30 11:13:20 +00:00
varasm.c Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
varpool.c cgraph.c (cgraph_function_body_availability): Handle weakref correctly. 2013-08-30 15:41:26 +00:00
vec.c
vec.h This patch adds a call to ggc_free from va_gc::release, which is called by vec_free. 2013-07-11 21:32:14 +00:00
version.c
version.h
vmsdbg.h
vmsdbgout.c
vtable-verify.c Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
vtable-verify.h Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
web.c Automated conversion of passes to C++ classes 2013-08-05 20:16:05 +00:00
xcoff.h
xcoffout.c
xcoffout.h

README.Portability

Copyright (C) 2000-2013 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.


Avoid unnecessary test before free
----------------------------------

Since SunOS 4 stopped being a reasonable portability target,
(which happened around 2007) there has been no need to guard
against "free (NULL)".  Thus, any guard like the following
constitutes a redundant test:

  if (P)
    free (P);

It is better to avoid the test.[*]
Instead, simply free P, regardless of whether it is NULL.

[*] However, if your profiling exposes a test like this in a
performance-critical loop, say where P is nearly always NULL, and
the cost of calling free on a NULL pointer would be prohibitively
high, consider using __builtin_expect, e.g., like this:

  if (__builtin_expect (ptr != NULL, 0))
    free (ptr);



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.