gcc/gcc
Jerry DeLisle bae420fcdb re PR fortran/61933 (Inquire on internal units)
2015-01-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/61933
	* gfortran.dg/make_unit.f90: New test.

From-SVN: r220026
2015-01-23 03:37:30 +00:00
..
ada re PR ada/64640 (Ada build failure on cygwin-32) 2015-01-19 19:00:18 +00:00
c re PR middle-end/64313 (gcc.dg/torture/builtin-explog-1.c fails on bare-metal targets) 2015-01-21 09:04:53 +00:00
c-family re PR c/63307 (Cilk+ breaks -fcompare-debug bootstrap) 2015-01-21 22:23:04 +01:00
common re PR target/64393 (ICE: in extract_insn, at recog.c:2327 (unrecognizable insn) with -mavx512vbmi) 2015-01-14 16:49:58 +03:00
config Remove unwanted file 2015-01-22 14:28:52 -07:00
cp re PR c++/64603 (bogus error "no matching function for call to ..." with templates) 2015-01-21 16:56:34 -05:00
doc re PR sanitizer/64706 (-fsanitize=vptr is not documented) 2015-01-21 22:53:49 +01:00
fortran re PR fortran/61933 (Inquire on internal units) 2015-01-23 01:59:23 +00:00
ginclude unwind-arm-common.h: Revert previous commit. 2015-01-09 15:22:19 +01:00
go compiler: Avoid infinite recursion when describing initialization loops. 2015-01-22 17:11:36 +00:00
java dojump.h: New header file. 2015-01-15 13:28:42 +00:00
jit New jit API entrypoint: gcc_jit_context_compile_to_file 2015-01-20 01:32:48 +00:00
lto lto.c (compare_tree_sccs_1): Add comparsion of DECL_FUNCTION_SPECIFIC_TARGET 2015-01-18 19:33:32 +00:00
objc re PR rtl-optimization/64536 (Undefined .L* symbol starting with jump2 on s390x) 2015-01-09 22:17:10 +01:00
objcp re PR rtl-optimization/64536 (Undefined .L* symbol starting with jump2 on s390x) 2015-01-09 22:17:10 +01:00
po
testsuite re PR fortran/61933 (Inquire on internal units) 2015-01-23 03:37:30 +00:00
ABOUT-GCC-NLS
BASE-VER
COPYING
COPYING.LIB
COPYING3
COPYING3.LIB
ChangeLog re PR target/52076 (bloated code for setting single bits in bitfields on m68k) 2015-01-22 14:24:28 -07: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-2013
ChangeLog-2014
ChangeLog.dataflow
ChangeLog.gimple-classes
ChangeLog.graphite
ChangeLog.jit
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
DATESTAMP Daily bump. 2015-01-23 00:21:48 +00:00
DEV-PHASE
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
LANGUAGES
Makefile.in Makefile.in (PLUGIN_HEADERS): Add dominance.h... 2015-01-15 17:10:50 +00:00
ONEWS
README.Portability
acinclude.m4
aclocal.m4
addresses.h
alias.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
alias.h
alloc-pool.c
alloc-pool.h
asan.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
asan.h
attribs.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
attribs.h
auto-inc-dec.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
auto-profile.c auto-profile.c (afdo_find_equiv_class): Remove unnecessary test. 2015-01-18 02:25:42 +00:00
auto-profile.h
basic-block.h
bb-reorder.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
builtin-attrs.def
builtin-types.def Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
builtins.c re PR middle-end/64313 (gcc.dg/torture/builtin-explog-1.c fails on bare-metal targets) 2015-01-21 09:04:53 +00:00
builtins.def Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
builtins.h
caller-save.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
calls.c re PR rtl-optimization/52773 (internal error: in replace_pseudos_in, at reload1.c:577) 2015-01-17 00:35:40 -07:00
calls.h dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ccmp.c re PR target/64669 (aarch64-linux profiledbootstrap failure) 2015-01-21 07:47:49 -08:00
ccmp.h
cfg-flags.def
cfg.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cfg.h
cfganal.c
cfganal.h
cfgbuild.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cfgbuild.h
cfgcleanup.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cfgcleanup.h
cfgexpand.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cfgexpand.h
cfghooks.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cfghooks.h
cfgloop.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cfgloop.h
cfgloopanal.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cfgloopmanip.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cfgloopmanip.h
cfgrtl.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cfgrtl.h
cgraph.c * cgraph.c (cgraph_node::dump): Dump profile flags. 2015-01-18 19:31:58 +00:00
cgraph.h cgraph_edge refactoring. 2015-01-12 08:47:26 +00:00
cgraphbuild.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cgraphclones.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cgraphunit.c cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries. 2015-01-14 15:15:21 +00:00
chkp-builtins.def
cif-code.def
cilk-builtins.def
cilk-common.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cilk.h
cilkplus.def
collect-utils.c
collect-utils.h
collect2-aix.c
collect2-aix.h
collect2.c
collect2.h
combine-stack-adj.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
combine.c re PR rtl-optimization/64682 (wrong code at -O2 and -O3 on x86_64-linux-gnu) 2015-01-22 01:35:44 +01:00
common.md
common.opt * common.opt (fgraphite): Fix a typo. 2015-01-19 14:41:44 +01:00
compare-elim.c
conditions.h
config.build
config.gcc Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
config.host configure.ac: Don't add ${libgcj} for arm*-*-freebsd*. 2015-01-09 15:06:02 +01:00
config.in
configure Update Linux/x86-64 linker test for PIE with copy reloc 2015-01-12 03:50:13 -08:00
configure.ac Update Linux/x86-64 linker test for PIE with copy reloc 2015-01-12 03:50:13 -08:00
context.c
context.h
convert.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
convert.h
coretypes.h
coverage.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
coverage.h
cppbuiltin.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c Revert last change 2015-01-17 13:34:55 +10:30
cse.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
cselib.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
cselib.h
cstamp-h.in
data-streamer-in.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
data-streamer-out.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
data-streamer.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
data-streamer.h
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
dbxout.h
dce.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
dce.h
ddg.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ddg.h
debug.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
debug.h
defaults.h
df-core.c
df-problems.c
df-scan.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
df.h
dfp.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
dfp.h
diagnostic-color.c
diagnostic-color.h
diagnostic-core.h
diagnostic.c
diagnostic.def
diagnostic.h
dojump.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
dojump.h explow.h: Remove duplicate contents. 2015-01-15 19:22:20 +00:00
dominance.c
dominance.h
domwalk.c
domwalk.h
double-int.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
double-int.h
dse.c re PR rtl-optimization/64557 (get_addr in true_dependence_1 cannot handle VALUE inside an expr) 2015-01-22 17:59:23 +00:00
dumpfile.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
dumpfile.h
dwarf2asm.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
dwarf2asm.h
dwarf2cfi.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
dwarf2out.c re PR debug/64663 (ICE at -O1 and above with -g enabled on x86_64-linux-gnu) 2015-01-20 19:29:58 +01:00
dwarf2out.h
emit-rtl.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
emit-rtl.h dojump.h: New header file. 2015-01-15 13:28:42 +00:00
errors.c
errors.h
et-forest.c
et-forest.h
except.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
except.h
exec-tool.in
explow.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
explow.h explow.h: Remove duplicate contents. 2015-01-15 19:22:20 +00:00
expmed.c [Patch] Improve warning message 2015-01-16 10:20:40 +00:00
expmed.h dojump.h: New header file. 2015-01-15 13:28:42 +00:00
expr.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
expr.h dojump.h: New header file. 2015-01-15 13:28:42 +00:00
fibonacci_heap.h
file-find.c
file-find.h
final.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
fixed-value.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
fixed-value.h
flag-types.h flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
flags.h
fold-const.c * fold-const.c (const_binop): Add early return for non-tcc_binary. 2015-01-22 16:44:50 +00:00
fold-const.h genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
fp-test.c
function.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
function.h
fwprop.c
gcc-ar.c
gcc-plugin.h genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gcc-symtab.h
gcc.c gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit for !TARGET_LIBC_PROVIDES_SSP version and... 2015-01-22 21:45:59 +01:00
gcc.h
gcov-counter.def
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov-tool.c
gcov.c
gcse.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
gcse.h
gdbasan.in
gdbhooks.py
gdbinit.in
gen-pass-instances.awk
genattr-common.c
genattr.c
genattrtab.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
genautomata.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
genenums.c
generic-match-head.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
generic-match.h
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
gengtype.h
genhooks.c
genmatch.c
genmddeps.c
genmddump.c
genmodes.c
genmultilib
genopinit.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
genoutput.c re PR rtl-optimization/64110 (ICE: Max. number of generated reload insns per insn is achieved (90)) 2015-01-15 20:26:19 +00:00
genpeep.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
genpreds.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
genrecog.c
gensupport.c
gensupport.h
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
ggc.h
gimple-builder.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-builder.h
gimple-expr.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-expr.h
gimple-fold.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
gimple-fold.h
gimple-iterator.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-iterator.h
gimple-low.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-low.h
gimple-match-head.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
gimple-match.h
gimple-pretty-print.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
gimple-pretty-print.h
gimple-ssa-isolate-paths.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-ssa-strength-reduction.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
gimple-ssa.h
gimple-streamer-in.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-streamer-out.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-streamer.h
gimple-walk.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimple-walk.h
gimple.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
gimple.def Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
gimple.h Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
gimplify-me.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gimplify-me.h
gimplify.c gimplify.c (gimplify_function_tree): Check the no_sanitize_thread decl attribute. 2015-01-21 18:08:42 +00:00
gimplify.h
glimits.h
godump.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graph.c
graph.h
graphds.c
graphds.h
graphite-blocking.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-dependences.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-interchange.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-isl-ast-to-gimple.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-isl-ast-to-gimple.h
graphite-optimize-isl.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-poly.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-poly.h
graphite-scop-detection.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
graphite-sese-to-poly.h
graphite.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c Model cache auto-prefetcher in scheduler 2015-01-17 01:06:43 +00:00
hard-reg-set.h
hash-map.h
hash-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 dojump.h: New header file. 2015-01-15 13:28:42 +00:00
hw-doloop.h
hwint.c
hwint.h
ifcvt.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ifcvt.h
inchash.c
inchash.h
incpath.c
incpath.h
init-regs.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
input.c
input.h
insn-addr.h
insn-notes.def
internal-fn.c flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
internal-fn.def flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
internal-fn.h
intl.c
intl.h
ipa-chkp.c ipa-chkp.c (chkp_produce_thunks): Add early param to split thunks production into two passes. 2015-01-19 10:26:52 +00:00
ipa-chkp.h re PR target/64363 (Unresolved labels with -fcheck-pointer-bounds and -mmpx) 2015-01-16 13:08:24 +00:00
ipa-comdats.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
ipa-cp.c re PR ipa/64378 (ICE: in inline_call, at ipa-inline-transform.c:347 with -O3 -fno-ipa-cp) 2015-01-18 17:31:35 +00:00
ipa-devirt.c ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless cases. 2015-01-19 20:35:55 +00:00
ipa-icf-gimple.c re PR ipa/64668 (internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120) 2015-01-19 22:02:04 +00:00
ipa-icf-gimple.h IPA ICF: compare_operand is split to multiple functions. 2015-01-09 10:45:18 +00:00
ipa-icf.c re PR ipa/64664 (ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706) 2015-01-19 18:07:08 +00:00
ipa-icf.h
ipa-inline-analysis.c re PR ipa/64481 (r219076 breaks bootstrap (x86_64-unknown-linux-gnu)) 2015-01-14 03:47:17 +00:00
ipa-inline-transform.c re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO) 2015-01-20 19:48:59 +00:00
ipa-inline.c re PR ipa/64694 (FAIL: 23_containers/unordered_set/insert/hash_policy.cc) 2015-01-22 19:44:00 +00:00
ipa-inline.h re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO) 2015-01-20 19:48:59 +00:00
ipa-polymorphic-call.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ipa-profile.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
ipa-prop.c re PR ipa/64378 (ICE: in inline_call, at ipa-inline-transform.c:347 with -O3 -fno-ipa-cp) 2015-01-18 17:31:35 +00:00
ipa-prop.h
ipa-pure-const.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
ipa-ref.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
ipa-ref.h
ipa-reference.c re PR lto/64684 (wrong code by LTO on x86_64-linux-gnu) 2015-01-20 13:26:19 +00:00
ipa-reference.h
ipa-split.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ipa-utils.c ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect edges. 2015-01-21 18:19:25 +00:00
ipa-utils.h
ipa-visibility.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
ipa.c Fix for PR64068 and PR64559. 2015-01-15 17:29:23 +00:00
ira-build.c
ira-color.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ira-conflicts.c
ira-costs.c re PR rtl-optimization/64110 (ICE: Max. number of generated reload insns per insn is achieved (90)) 2015-01-15 20:26:19 +00:00
ira-emit.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ira-int.h
ira-lives.c
ira.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
ira.h
is-a.h
jump.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
langhooks-def.h
langhooks.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
langhooks.h
lcm.c
lcm.h
libfuncs.h
limitx.h
limity.h
lists.c
lock-and-run.sh
loop-doloop.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
loop-init.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
loop-invariant.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
loop-iv.c re PR bootstrap/64676 (SEGV in tree-ssa-structalias.c solve_constraint) 2015-01-20 08:29:09 +00:00
loop-unroll.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
loop-unroll.h
lower-subreg.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lower-subreg.h
lra-assigns.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lra-coalesce.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lra-constraints.c Adjust handling of word sized subregs for OP_OUT 2015-01-16 12:31:11 +00:00
lra-eliminations.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lra-int.h
lra-lives.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lra-remat.c re PR rtl-optimization/64671 (s390-linux profiledbootstrap failure) 2015-01-19 20:13:35 +00:00
lra-spills.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lra.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lra.h
lto-cgraph.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lto-compress.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
lto-compress.h
lto-opts.c re PR middle-end/64412 (ICE in offload compiler: in extract_insn, at recog.c:2327) 2015-01-09 22:38:00 +01:00
lto-section-in.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lto-section-names.h
lto-section-out.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lto-streamer-in.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
lto-streamer-out.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
lto-streamer.c re PR middle-end/64412 (ICE in offload compiler: in extract_insn, at recog.c:2327) 2015-01-09 22:38:00 +01:00
lto-streamer.h cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries. 2015-01-14 15:15:21 +00:00
lto-wrapper.c
machmode.def
machmode.h
main.c
match.pd
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
omega.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
omega.h
omp-builtins.def Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
omp-low.c [PR libgomp/64625] Remove __OFFLOAD_TABLE__ variable/formal parameter. 2015-01-19 13:03:35 +01:00
omp-low.h
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
optabs.def
optabs.h
optc-gen.awk
optc-save-gen.awk ipa-icf-32.c: Update template. 2015-01-18 17:42:11 +00:00
opth-gen.awk ipa-icf-32.c: Update template. 2015-01-18 17:42:11 +00:00
opts-common.c
opts-diagnostic.h
opts-global.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
opts.c flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
opts.h
output.h
params.c
params.def params.def (inline-unit-growth): Drop to 15%. 2015-01-19 22:11:03 +00:00
params.h
pass_manager.h
passes.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
passes.def ipa-chkp.c (chkp_produce_thunks): Add early param to split thunks production into two passes. 2015-01-19 10:26:52 +00:00
plugin.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
plugin.def
plugin.h
postreload-gcse.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
postreload.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
predict.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
print-rtl.h
print-tree.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
print-tree.h
profile.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
profile.h
read-md.c
read-md.h
read-rtl.c
real.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
real.h
realmpfr.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
realmpfr.h
recog.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
recog.h
ree.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
reg-notes.def
reg-stack.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
regcprop.c Handle CALL_INSN_FUNCTION_USAGE clobbers in regcprop.c 2015-01-09 18:54:20 +00:00
regcprop.h
reginfo.c re PR rtl-optimization/32790 (REG_N_SETS holds wrong value) 2015-01-17 00:24:24 -07:00
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
reload.h
reload1.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
reorg.c reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid... 2015-01-17 14:00:57 +00:00
resource.c
resource.h
rtl-chkp.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
rtl-chkp.h
rtl-error.c
rtl-error.h
rtl-iter.h
rtl.c
rtl.def
rtl.h
rtlanal.c rtlanal.c (subreg_get_info): Exit early for simple and common cases. 2015-01-21 17:53:04 +00:00
rtlhash.c
rtlhash.h
rtlhooks-def.h
rtlhooks.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
sanitizer.def sanititer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters. 2015-01-16 17:49:56 +00:00
sanopt.c flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
sbitmap.c
sbitmap.h
sched-deps.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sched-ebb.c
sched-int.h Model cache auto-prefetcher in scheduler 2015-01-17 01:06:43 +00:00
sched-rgn.c
sched-vis.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sdbout.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sel-sched-ir.h
sel-sched.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sel-sched.h
sese.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sese.h
shrink-wrap.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
shrink-wrap.h
signop.h
simplify-rtx.c re PR debug/64511 (ICE at -O3 with -g enabled on x86_64-linux-gnu) 2015-01-21 22:59:34 +01:00
sparseset.c
sparseset.h
sreal.c re PR other/64370 (sreal.c:125:23: error: 'exp2' was not declared in this scope) 2015-01-12 21:30:09 +01:00
sreal.h
ssa-iterators.h
stab.def
stack-ptr-mod.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
statistics.c
statistics.h
stmt.c re PR rtl-optimization/64110 (ICE: Max. number of generated reload insns per insn is achieved (90)) 2015-01-15 20:26:19 +00:00
stmt.h dojump.h: New header file. 2015-01-15 13:28:42 +00:00
stor-layout.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
stor-layout.h
store-motion.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
stringpool.h
symbol-summary.h
symtab.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
sync-builtins.def
system.h
target-def.h
target-globals.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
target-globals.h
target-hooks-macros.h
target.def [AArch64] Enable CCMP support for AArch64, PR64015 resolved 2015-01-16 11:48:00 +00:00
target.h
targhooks.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
targhooks.h
timevar.c
timevar.def
timevar.h
tlink.c
toplev.c toplev.c (init_local_tick): Process the failure when read fails for random_seed. 2015-01-22 09:40:51 -07:00
toplev.h
tracer.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
trans-mem.c re PR middle-end/64391 (ICE: SIGSEGV in get_attrs_for (trans-mem.c:179) with -fgnu-tm and #pragma GCC ivdep) 2015-01-13 20:22:32 +00:00
trans-mem.h
tree-affine.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-affine.h
tree-browser.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-browser.def
tree-call-cdce.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-cfg.c re PR middle-end/64353 (ICE: in execute_todo, at passes.c:1986) 2015-01-16 15:38:21 +00:00
tree-cfg.h
tree-cfgcleanup.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-cfgcleanup.h
tree-chkp-opt.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-chkp.c re PR target/64363 (Unresolved labels with -fcheck-pointer-bounds and -mmpx) 2015-01-16 13:08:24 +00:00
tree-chkp.h
tree-chrec.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-chrec.h
tree-complex.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-core.h re PR middle-end/64313 (gcc.dg/torture/builtin-explog-1.c fails on bare-metal targets) 2015-01-21 09:04:53 +00:00
tree-data-ref.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-data-ref.h
tree-dfa.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-dfa.h
tree-diagnostic.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-diagnostic.h
tree-dump.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-dump.h
tree-eh.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-eh.h
tree-emutls.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-hasher.h
tree-if-conv.c tree-if-conv.c: Include hash-map.h. 2015-01-15 14:12:25 +00:00
tree-inline.c re PR target/64363 (Unresolved labels with -fcheck-pointer-bounds and -mmpx) 2015-01-16 13:08:24 +00:00
tree-inline.h re PR target/64363 (Unresolved labels with -fcheck-pointer-bounds and -mmpx) 2015-01-16 13:08:24 +00:00
tree-into-ssa.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-into-ssa.h
tree-iterator.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-iterator.h
tree-loop-distribution.c re PR tree-optimization/64406 (ICE: SIGSEGV in estimate_numbers_of_iterations_loop (tree-ssa-loop-niter.c:3453) with custom flags) 2015-01-13 13:41:46 +00:00
tree-nested.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
tree-nested.h
tree-nrv.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-object-size.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-object-size.h
tree-outof-ssa.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-outof-ssa.h
tree-parloops.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-parloops.h
tree-pass.h ipa-chkp.c (chkp_produce_thunks): Add early param to split thunks production into two passes. 2015-01-19 10:26:52 +00:00
tree-phinodes.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-phinodes.h
tree-predcom.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-pretty-print.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
tree-pretty-print.h
tree-profile.c tree-profile.c (init_ic_make_global_vars): Drop workaround for bintuils bug 14342. 2015-01-14 05:28:50 +00:00
tree-scalar-evolution.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-scalar-evolution.h
tree-sra.c tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk callers. 2015-01-19 10:28:34 +00:00
tree-ssa-address.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-address.h
tree-ssa-alias.c flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
tree-ssa-alias.h
tree-ssa-ccp.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-coalesce.c re PR tree-optimization/64728 (internal compiler error: SSA corruption) 2015-01-22 16:07:36 +00:00
tree-ssa-coalesce.h
tree-ssa-copy.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-copyrename.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-dce.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-dom.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-dom.h
tree-ssa-dse.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-forwprop.c re PR middle-end/64568 (error: invalid reference prefix) 2015-01-16 13:21:11 +00:00
tree-ssa-ifcombine.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-live.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-live.h
tree-ssa-loop-ch.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-loop-im.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-loop-ivcanon.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-loop-ivopts.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-loop-ivopts.h
tree-ssa-loop-manip.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-loop-manip.h
tree-ssa-loop-niter.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-loop-niter.h
tree-ssa-loop-prefetch.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-loop-unswitch.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-loop.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-loop.h
tree-ssa-math-opts.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-operands.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-operands.h
tree-ssa-phiopt.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-phiprop.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-pre.c re PR tree-optimization/61743 (Complete unroll is not happened for loops with short upper bound) 2015-01-15 15:02:11 +00:00
tree-ssa-propagate.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-propagate.h
tree-ssa-reassoc.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-sccvn.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-sccvn.h
tree-ssa-sink.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-strlen.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-structalias.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-ssa-tail-merge.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-ter.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-ter.h
tree-ssa-threadedge.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-threadedge.h
tree-ssa-threadupdate.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-threadupdate.h
tree-ssa-uncprop.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa-uninit.c re PR middle-end/64614 (bogus used initialized warning (in gcc 4.9.2); switch statement versus &) 2015-01-16 13:26:10 +00:00
tree-ssa.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssa.h
tree-ssanames.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-ssanames.h
tree-stdarg.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-stdarg.h
tree-streamer-in.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
tree-streamer-out.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
tree-streamer.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-streamer.h
tree-switch-conversion.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-tailcall.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vect-data-refs.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vect-generic.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vect-loop-manip.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-vect-loop.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vect-patterns.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vect-slp.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vect-stmts.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree-vectorizer.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
tree-vectorizer.h
tree-vrp.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
tree.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
tree.def Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
tree.h re PR middle-end/64313 (gcc.dg/torture/builtin-explog-1.c fails on bare-metal targets) 2015-01-21 09:04:53 +00:00
treestruct.def
tsan.c sanititer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters. 2015-01-16 17:49:56 +00:00
tsan.h
tsystem.h
typeclass.h
ubsan.c ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for 'pretty_name' to avoid memory overflow. 2015-01-22 09:31:58 -07:00
ubsan.h flag-types.h (enum sanitize_code): Add SANITIZE_VPTR, include SANITIZE_VPTR in SANITIZE_UNDEFINED. 2015-01-15 23:58:42 +01:00
valtrack.c
valtrack.h
value-prof.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
value-prof.h
var-tracking.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
varasm.c dojump.h: New header file. 2015-01-15 13:28:42 +00:00
varasm.h dojump.h: New header file. 2015-01-15 13:28:42 +00:00
varpool.c Merge current set of OpenACC changes from gomp-4_0-branch. 2015-01-15 21:11:12 +01:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
vtable-verify.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
vtable-verify.h
web.c
wide-int-print.cc
wide-int-print.h
wide-int.cc genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
wide-int.h
xcoff.h
xcoffout.c genattrtab.c (write_header): Include hash-set.h... 2015-01-09 20:18:42 +00:00
xcoffout.h

README.Portability

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