gcc/gcc
Georg-Johann Lay 7fd6378ef4 re PR target/52737 ([avr]: -mtiny-stack shall not influence multilib selection)
PR target/52737
	* contrib/gcc_update (files_and_dependencies):
	Remove gcc/config/avr/t-multilib from touch data.

gcc/
	PR target/52737
	* config.gcc (tm_file): Remove avr/multilib.h.

	* doc/invoke.texi (AVR Options): Adjust
	documentation of -mtiny-stack.

	* config/avr/genmultilib.awk: Remove code to generate multilib.h.
	(BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
	* config/avr/t-avr: Remove generation of multilib.h.
	* config/avr/t-multilib: Regenerate.
	* config/avr/multilib.h: Remove.
	* config/avr/avr.opt (-msp8): New option.
	(avr_sp8): New variable.
	* config/avr/driver-avr.c (avr_device_to_sp8): New function.
	* config/avr/avr.h (AVR_HAVE_SPH): New define.
	(AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
	(avr_device_to_sp8): New prototype.
	(EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
	(DRIVER_SELF_SPECS): New define.
	* config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
	__AVR_SP8__, __AVR_HAVE_SPH__.
	* config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
	AVR_HAVE_8BIT_SP to decide if SP_H is present.
	(avr_file_start): Ditto.
	
libgcc/
	PR target/52737
	* config/avr/lib1funcs.S: Use __AVR_HAVE_SPH__ for SP_H checks
	instead of __AVR_HAVE_8BIT_SP__.

From-SVN: r185907
2012-03-28 08:31:26 +00:00
..
ada decl.c (gnat_to_gnu_entity): Copy the TYPE_PACKED flag from the base type. 2012-03-25 17:21:49 +00:00
c-family c-lex.c (c_lex_with_flags): Avoid declarations after stmts. 2012-03-23 08:17:24 +00:00
common ChangeLog entry: 2012-03-12 09:59:25 +00:00
config re PR target/52737 ([avr]: -mtiny-stack shall not influence multilib selection) 2012-03-28 08:31:26 +00:00
cp re PR c++/52672 (internal compiler error: in cxx_eval_indirect_ref, at cp/semantics.c:6766) 2012-03-27 14:08:13 -04:00
doc re PR target/52737 ([avr]: -mtiny-stack shall not influence multilib selection) 2012-03-28 08:31:26 +00:00
fortran Remove unused GFC_MAX_LINE macro. 2012-03-23 10:54:05 +02:00
ginclude Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
go compiler: Be more careful to follow GENERIC type rules. 2012-03-09 08:25:05 +00:00
java
lto lto-lang.c (builtin_type_for_size): Use lto_type_for_size. 2012-03-12 14:17:26 +00:00
objc objc-act (objc_build_ivar_assignment): Do not call assemble_external. 2012-03-21 22:18:32 +00:00
objcp
po be.po, [...]: Update. 2012-03-27 15:26:51 +01:00
testsuite re PR target/52736 (miscompilation: store to aliased __m128d is 8 Bytes off) 2012-03-28 10:01:00 +02:00
ABOUT-GCC-NLS
acinclude.m4 Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
aclocal.m4
addresses.h
alias.c re PR debug/52001 (Huge compile-time regression with var-tracking) 2012-03-01 16:58:11 +00:00
alias.h
alloc-pool.c
alloc-pool.h
attribs.c
auto-inc-dec.c
BASE-VER BASE-VER: Set to 4.8.0. 2012-03-02 11:09:25 +00:00
basic-block.h
bb-reorder.c
bb-reorder.h
bitmap.c
bitmap.h
bt-load.c
builtin-attrs.def
builtin-types.def
builtins.c builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of copy_to_mode_reg (Pmode, ...). 2012-03-19 21:35:59 +01:00
builtins.def compiler: Use new __builtin_init_heap_trampoline. 2012-01-27 22:25:02 +00:00
builtins.h
c-aux-info.c
c-config-lang.in
c-convert.c
c-decl.c c-tree.h (c_default_pointer_mode): New variable. 2012-03-09 11:49:50 +00:00
c-errors.c
c-lang.c
c-lang.h
c-objc-common.c
c-objc-common.h
c-parser.c c-parser.c (c_parser_parameter_declaration): Handle #pragma before a parameter. 2012-03-15 08:47:20 +00:00
c-tree.h c-tree.h (c_default_pointer_mode): New variable. 2012-03-09 11:49:50 +00:00
c-typeck.c c-typeck.c (pointer_diff): Use c_common_type_for_size. 2012-03-07 14:30:38 +00:00
caller-save.c
calls.c toplev.c (check_global_declaration_1): Do not call assemble_external. 2012-03-26 16:39:11 +00:00
cfg.c
cfganal.c
cfgbuild.c
cfgcleanup.c Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
cfgexpand.c Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
cfghooks.c
cfghooks.h
cfglayout.c
cfglayout.h
cfgloop.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
cfgloop.h
cfgloopanal.c
cfgloopmanip.c
cfgrtl.c * cfgrtl.c (cfg_layout_merge_blocks): Cleanup. 2012-03-05 12:53:01 +01:00
cgraph.c re PR tree-optimization/51737 (g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook) 2012-03-22 14:33:27 +00:00
cgraph.h re PR middle-end/51663 (Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program) 2012-03-25 13:28:32 +00:00
cgraphbuild.c
cgraphunit.c re PR middle-end/51929 (ICE: verify_cgraph_node failed with -O2 -fno-guess-branch-probability -fipa-cp-clone) 2012-02-16 08:25:58 +01:00
ChangeLog re PR target/52737 ([avr]: -mtiny-stack shall not influence multilib selection) 2012-03-28 08:31:26 +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 Fix ChangeLog record for 171649: 2012-03-05 15:01:48 +00:00
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def
collect2-aix.c
collect2-aix.h
collect2.c Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
collect2.h
combine-stack-adj.c
combine.c * combine.c (apply_distributive_law): Do not distribute SUBREG. 2012-03-15 16:43:08 +00:00
common.opt invoke.texi (floop-flatten): Declare obsolete. 2012-03-02 20:32:20 +00:00
compare-elim.c compare-elim.c (find_comparisons_in_bb): Eliminate only compares having mode compatible with the mode of previous compare. 2012-03-02 19:54:27 +01:00
conditions.h
config.build
config.gcc re PR target/52737 ([avr]: -mtiny-stack shall not influence multilib selection) 2012-03-28 08:31:26 +00:00
config.host 2012-03-16 Tristan Gingold <gingold@adacore.com> 2012-03-16 09:18:57 +00:00
config.in Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
configure configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*. 2012-03-21 21:13:50 +01:00
configure.ac configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*. 2012-03-21 21:13:50 +01:00
convert.c convert.c (strip_float_extensions): Move ... 2012-03-07 14:30:01 +00:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h
coverage.c coverage.c (get_gcov_type): Use type_for_mode. 2012-03-07 14:31:40 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cppspec.c
cprop.c
cse.c cse.c (invalidate_from_sets_and_clobbers, [...]): Split out from ... 2012-03-21 23:01:42 +00:00
cselib.c re PR debug/52001 (Huge compile-time regression with var-tracking) 2012-03-01 16:58:11 +00:00
cselib.h re PR debug/52001 (Huge compile-time regression with var-tracking) 2012-03-01 16:58:11 +00:00
cstamp-h.in
data-streamer-in.c
data-streamer-out.c
data-streamer.c
data-streamer.h
DATESTAMP Daily bump. 2012-03-28 00:19:02 +00:00
dbgcnt.c
dbgcnt.def
dbgcnt.h
dbxout.c
dbxout.h
dce.c
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h tree.h (enum size_type_kind): Add stk_ prefix to constants, convert in lowercase. 2012-03-20 08:47:27 +00:00
DEV-PHASE
df-core.c
df-problems.c df-problems.c (df_kill_notes): Check that the use refers to the note under examination. 2012-01-30 12:56:17 +00:00
df-scan.c re PR bootstrap/52397 (comparison failure with Ada enabled) 2012-02-29 09:12:04 +01:00
df.h re PR bootstrap/52397 (comparison failure with Ada enabled) 2012-02-29 09:12:04 +01:00
dfp.c
dfp.h
diagnostic-core.h
diagnostic.c re PR middle-end/48071 (Blank line after 'all warnings being treated as errors') 2012-02-02 21:46:06 +01:00
diagnostic.def
diagnostic.h
dojump.c coverage.c (get_gcov_type): Use type_for_mode. 2012-03-07 14:31:40 +00:00
dominance.c
domwalk.c
domwalk.h
double-int.c
double-int.h
dse.c
dse.h
dwarf2asm.c
dwarf2asm.h
dwarf2cfi.c Remove MIPS_DEBUGGING_INFO support 2012-03-14 18:01:06 +00:00
dwarf2out.c tree.def (REALPART_EXPR, [...]): Move. 2012-03-19 15:35:55 +00:00
dwarf2out.h
ebitmap.c
ebitmap.h
emit-rtl.c Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
emit-rtl.h
errors.c
errors.h
et-forest.c
et-forest.h
except.c tree-pass.h (pass_rtl_eh): Remove. 2012-03-20 09:52:02 +00:00
except.h tree-pass.h (pass_rtl_eh): Remove. 2012-03-20 09:52:02 +00:00
exec-tool.in
explow.c
expmed.c re PR middle-end/51893 (Wrong subword index computation in store_bit_field_1 on BIG_ENDIAN targets) 2012-03-27 20:50:16 +00:00
expmed.h
expr.c expmed.c (store_bit_field): Assert that BITREGION_START is a multiple of a unit before computing the offset... 2012-03-27 10:35:55 +00:00
expr.h
final.c
fixed-value.c
fixed-value.h
flag-types.h
flags.h
fold-const.c re PR middle-end/52720 (internal compiler error: in try_move_mult_to_index) 2012-03-27 12:50:29 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
function.h function.h (regno_reg_rtx): Adjust comment. 2012-01-31 19:11:00 +00:00
fwprop.c
gcc-ar.c
gcc-plugin.h
gcc.c Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
gcc.h
gccspec.c
gcov-dump.c
gcov-io.c
gcov-io.h
gcov-iov.c
gcov.c
gcse.c
gcse.h
gdbinit.in
genattr-common.c
genattr.c
genattrtab.c
genautomata.c genautomata.c (parse_automata_opt): New static function. 2012-03-05 15:38:06 +00:00
gencheck.c
genchecksum.c
gencodes.c
genconditions.c
genconfig.c
genconstants.c
genemit.c genemit.c (main): Include "target.h" in insn-emit.c. 2012-03-05 14:25:19 -08:00
genenums.c
genextract.c
genflags.c
gengenrtl.c
gengtype-lex.l
gengtype-parse.c
gengtype-state.c
gengtype.c
gengtype.h
genhooks.c
genmddeps.c
genmodes.c
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c
gensupport.h
ggc-common.c
ggc-internal.h
ggc-none.c
ggc-page.c
ggc-zone.c
ggc.h
gimple-fold.c tree.h (TREE_VECTOR_CST_ELTS): Remove. 2012-03-16 09:47:09 +00:00
gimple-fold.h
gimple-iterator.c
gimple-low.c
gimple-pretty-print.c gimple-pretty-print.c (dump_gimple_phi): Avoid excessive newline in -alias dumps. 2012-02-07 12:10:11 +00:00
gimple-pretty-print.h
gimple-streamer-in.c
gimple-streamer-out.c
gimple-streamer.h
gimple.c re PR tree-optimization/52361 (gcc.dg/pr48141.c times out with checking enabled) 2012-02-24 12:47:56 +00:00
gimple.def
gimple.h re PR middle-end/51752 (trans-mem: publication safety violated) 2012-02-28 20:08:39 +00:00
gimplify.c re PR middle-end/48814 (Incorrect scalar increment result) 2012-03-16 11:48:48 +00:00
glimits.h
godump.c
graph.c
graph.h
graphds.c
graphds.h
graphite-blocking.c
graphite-clast-to-gimple.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
graphite-clast-to-gimple.h
graphite-cloog-compat.h
graphite-cloog-util.c
graphite-cloog-util.h
graphite-dependences.c
graphite-dependences.h
graphite-interchange.c
graphite-poly.c invoke.texi (floop-flatten): Declare obsolete. 2012-03-02 20:32:20 +00:00
graphite-poly.h
graphite-ppl.c
graphite-ppl.h
graphite-scop-detection.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
graphite-scop-detection.h
graphite-sese-to-poly.c
graphite-sese-to-poly.h
graphite.c
gsstruct.def
gstab.h
gsyms.h
gsyslimits.h
gtm-builtins.def
haifa-sched.c re PR bootstrap/52287 (ICE in ready_remove_first, at haifa-sched.c:1927) 2012-02-23 22:15:44 +00:00
hard-reg-set.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
ifcvt.c ifcvt.c (noce_get_condition): Check condition variable is not small_register_classes_for_mode_p before accepting. 2012-02-27 14:30:44 +00:00
incpath.c gcc.c (add_sysrooted_prefix): Remove trailing dir separator from system root. 2012-01-26 23:34:58 +00:00
incpath.h
init-regs.c
input.c
input.h
insn-addr.h
insn-notes.def
integrate.c Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
integrate.h
internal-fn.c
internal-fn.def
internal-fn.h
intl.c
intl.h
ipa-cp.c
ipa-inline-analysis.c
ipa-inline-transform.c re PR tree-optimization/51737 (g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook) 2012-03-22 14:33:27 +00:00
ipa-inline.c + PR middle-end/52142 + * ipa-inline.c (can_inline_edge_p): Do not inline... 2012-02-15 00:29:06 +00:00
ipa-inline.h
ipa-prop.c re PR tree-optimization/52402 (IPA-SRA creates aligned loads from unaligned memory) 2012-02-28 09:15:49 +00:00
ipa-prop.h
ipa-pure-const.c ipa-pure-const.c (check_stmt): Clobbers do not make a function non-const/pure. 2012-01-27 15:49:34 +00:00
ipa-ref-inline.h
ipa-ref.c
ipa-ref.h
ipa-reference.c
ipa-reference.h
ipa-split.c re PR tree-optimization/52376 (ICE in lto_input_tree_ref, at lto-streamer-in.c:266 while linking LTO-PGO libxul) 2012-02-27 16:04:28 +01:00
ipa-utils.c
ipa-utils.h
ipa.c re PR middle-end/51663 (Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program) 2012-03-25 13:28:32 +00:00
ira-build.c
ira-color.c ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not WORDS_BIG_ENDIAN. 2012-02-21 23:27:59 +00:00
ira-conflicts.c
ira-costs.c re PR rtl-optimization/52208 (Useless store) 2012-02-16 16:34:28 +01:00
ira-emit.c
ira-int.h
ira-lives.c
ira.c ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not WORDS_BIG_ENDIAN. 2012-02-21 23:27:59 +00:00
ira.h
jump.c
langhooks-def.h
langhooks.c langhooks.c (add_builtin_type): New function. 2012-03-05 21:57:13 +00:00
langhooks.h langhooks.c (add_builtin_type): New function. 2012-03-05 21:57:13 +00:00
LANGUAGES
lcm.c
libfuncs.h
limitx.h
limity.h
lists.c
loop-doloop.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
loop-init.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
loop-invariant.c
loop-iv.c
loop-unroll.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
loop-unswitch.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
lower-subreg.c re PR rtl-optimization/52113 ([lower-subreg.c] ICE: in extract_insn, at recog.c:2123) 2012-02-04 13:47:55 +01:00
lto-cgraph.c
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c
lto-section-out.c
lto-streamer-in.c
lto-streamer-out.c
lto-streamer.c
lto-streamer.h
lto-symtab.c
lto-wrapper.c
machmode.def
machmode.h
main.c
Makefile.in Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
matrix-reorg.c
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c
modulo-sched.c re PR rtl-optimization/52095 (ICE compiling gcc.dg/sms-7.c: SEGV in fprintf) 2012-02-04 17:51:31 +01:00
omega.c
omega.h
omp-builtins.def
omp-low.c omp-low.c (extract_omp_for_data): Use signed_type_for. 2012-03-07 13:31:15 +00:00
ONEWS
opt-functions.awk
opt-gather.awk
opt-include.awk
opt-read.awk
optabs.c re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work) 2012-03-05 13:08:55 +00:00
optabs.h re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work) 2012-03-05 13:08:55 +00:00
optc-gen.awk
optc-save-gen.awk
opth-gen.awk Remove MaskNeeded 2012-03-27 08:28:41 -07:00
opts-common.c
opts-diagnostic.h
opts-global.c
opts.c
opts.h
output.h re PR other/52545 (output.h: SECTION_EXCLUDE flag clobbers SECTION_MACH_DEP) 2012-03-12 18:22:01 +00:00
params.c
params.def invoke.texi: Update copyright years. 2012-01-27 18:08:03 +04:00
params.h
passes.c Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
plugin.c
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c
postreload.c
predict.c re PR middle-end/52214 (FAIL: g++.dg/tree-ssa/pr44706.C -std=gnu++* scan-tree-dump-not fnsplit "Splitting function") 2012-02-13 23:29:34 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c
pretty-print.h
print-rtl.c
print-tree.c tree.h (TREE_VECTOR_CST_ELTS): Remove. 2012-03-16 09:47:09 +00:00
profile.c
profile.h
read-md.c
read-md.h
read-rtl.c
README.Portability
real.c
real.h
realmpfr.c
realmpfr.h
recog.c
recog.h
ree.c re PR bootstrap/52041 (Bootstrap failure at revision 183650 with --enable-checking=release) 2012-01-31 09:41:46 +01:00
reg-notes.def
reg-stack.c re PR debug/52132 (ICE in loc_descriptor) 2012-02-11 09:27:30 +01:00
regcprop.c
reginfo.c function.h (regno_reg_rtx): Adjust comment. 2012-01-31 19:11:00 +00:00
regmove.c
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload1.c re PR rtl-optimization/52629 (out-of-bounds access in reload1.c) 2012-03-26 08:41:02 +00:00
reload.c
reload.h
reorg.c re PR rtl-optimization/52175 (ICE in maybe_record_trace_start after invalid dbr_schedule transformation) 2012-02-11 09:00:42 +00:00
resource.c
resource.h
rtl-error.c
rtl-error.h
rtl.c
rtl.def
rtl.h re PR middle-end/52515 (build fails on cris-elf in unwind-dw2.c, x86_64-unknown-linux-gnu in bid_binarydecimal.c) 2012-03-07 09:50:36 +00:00
rtlanal.c
rtlhooks-def.h
rtlhooks.c
sbitmap.c
sbitmap.h
sched-deps.c re PR bootstrap/52172 (stage 3 Bootstrap comparison failure on FreeBSD ia64) 2012-02-14 00:31:48 +01:00
sched-ebb.c
sched-int.h
sched-rgn.c
sched-vis.c
sdbout.c Remove MIPS_DEBUGGING_INFO support 2012-03-14 18:01:06 +00:00
sdbout.h
sel-sched-dump.c
sel-sched-dump.h
sel-sched-ir.c re PR rtl-optimization/52250 (ICE: in sel_remove_bb, at sel-sched-ir.c:5213 with -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 and other flags) 2012-03-06 11:31:43 +04:00
sel-sched-ir.h invoke.texi: Update copyright years. 2012-01-27 18:08:03 +04:00
sel-sched.c re PR rtl-optimization/52203 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7136 with -fsel-sched-pipelining -fselective-scheduling2 and other custom flags) 2012-03-07 16:00:37 +04:00
sel-sched.h
sese.c
sese.h
simplify-rtx.c tree.def (REALPART_EXPR, [...]): Move. 2012-03-19 15:35:55 +00:00
sparseset.c
sparseset.h
sreal.c
sreal.h
ssaexpand.h
stab.def
stack-ptr-mod.c
statistics.c
statistics.h
stmt.c
stor-layout.c stor-layout.c (finish_bitfield_representative): Fallback to conservative maximum size if the padding up to the next field... 2012-03-20 09:31:40 +00:00
store-motion.c
streamer-hooks.c
streamer-hooks.h
stringpool.c
sync-builtins.def
system.h Remove MIPS_DEBUGGING_INFO support 2012-03-14 18:01:06 +00:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def Remove obsolete Tru64 UNIX V5.1B support 2012-03-12 15:35:56 +00:00
target.h re PR tree-optimization/50031 (Sphinx3 has a 10% regression going from GCC 4.5 to GCC 4.6 on powerpc) 2012-02-10 16:38:37 +00:00
targhooks.c re PR tree-optimization/50031 (Sphinx3 has a 10% regression going from GCC 4.5 to GCC 4.6 on powerpc) 2012-02-10 16:38:37 +00:00
targhooks.h
timevar.c
timevar.def
timevar.h
tlink.c re PR c++/51910 (-frepo linking failure) 2012-02-11 03:50:23 -05:00
toplev.c toplev.c (check_global_declaration_1): Do not call assemble_external. 2012-03-26 16:39:11 +00:00
toplev.h
tracer.c
trans-mem.c trans-mem.c: New typedef for tm_region_p. 2012-03-06 16:27:37 +00:00
trans-mem.h
tree-affine.c
tree-affine.h
tree-browser.c
tree-browser.def
tree-call-cdce.c
tree-cfg.c tree-sra.c (create_access_replacement): Only rename the replacement if we can rewrite it into SSA form. 2012-03-12 10:43:17 +00:00
tree-cfgcleanup.c
tree-chrec.c
tree-chrec.h
tree-complex.c
tree-data-ref.c re PR middle-end/52580 (171.swim performance drop on x86 – vectorization doesn’t happen anymore) 2012-03-15 10:04:55 +00:00
tree-data-ref.h re PR tree-optimization/52406 (likely wrong code bug) 2012-03-02 14:58:55 +00:00
tree-dfa.c
tree-diagnostic.c
tree-diagnostic.h
tree-dump.c
tree-dump.h
tree-eh.c re PR tree-optimization/46590 (long compile time with -O2 and many loops) 2012-01-26 15:50:33 +00:00
tree-emutls.c
tree-flow-inline.h
tree-flow.h tree-phinodes.c (make_phi_node): Mark static. 2012-02-24 10:40:27 +01:00
tree-if-conv.c Fix sgi typos 2012-03-13 10:22:56 +00:00
tree-inline.c re PR tree-optimization/51737 (g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook) 2012-03-22 14:33:27 +00:00
tree-inline.h
tree-into-ssa.c tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file. 2012-02-24 10:39:38 +01:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
tree-mudflap.c
tree-mudflap.h
tree-nested.c re PR middle-end/52547 (ICE with openmp with nested function which requires a trampoline) 2012-03-22 20:25:36 +01:00
tree-nomudflap.c
tree-nrv.c
tree-object-size.c
tree-optimize.c re PR middle-end/52045 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk()) 2012-01-30 13:40:24 +00:00
tree-outof-ssa.c
tree-parloops.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
tree-pass.h Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H) dependencies. 2012-03-21 08:02:21 +00:00
tree-phinodes.c tree-phinodes.c (make_phi_node): Mark static. 2012-02-24 10:40:27 +01:00
tree-predcom.c invoke.texi: Update copyright years. 2012-01-27 18:08:03 +04:00
tree-pretty-print.c tree.h (TREE_VECTOR_CST_ELTS): Remove. 2012-03-16 09:47:09 +00:00
tree-pretty-print.h
tree-profile.c
tree-scalar-evolution.c tree.h (enum size_type_kind): Add stk_ prefix to constants, convert in lowercase. 2012-03-20 08:47:27 +00:00
tree-scalar-evolution.h
tree-sra.c re PR middle-end/52693 (Wrong code with SRA and arrays) 2012-03-27 20:22:39 +02:00
tree-ssa-address.c
tree-ssa-alias.c re PR middle-end/52493 (tree check fail in ptr_derefs_may_alias_p) 2012-03-06 13:13:14 +00:00
tree-ssa-alias.h
tree-ssa-ccp.c
tree-ssa-coalesce.c
tree-ssa-copy.c
tree-ssa-copyrename.c
tree-ssa-dce.c tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION. 2012-02-10 09:44:31 -08:00
tree-ssa-dom.c re PR tree-optimization/52424 (dom prematurely pops entries from const_and_copies stack) 2012-02-29 13:06:28 +00:00
tree-ssa-dse.c
tree-ssa-forwprop.c re PR middle-end/52578 (Fails to fold another size difference) 2012-03-14 10:51:34 +00:00
tree-ssa-ifcombine.c
tree-ssa-live.c
tree-ssa-live.h
tree-ssa-loop-ch.c re PR tree-optimization/46886 (wrong code with -ftree-parallelize-loops -fno-tree-ch) 2012-02-08 15:28:01 +00:00
tree-ssa-loop-im.c re PR middle-end/51752 (trans-mem: publication safety violated) 2012-02-28 20:08:39 +00:00
tree-ssa-loop-ivcanon.c
tree-ssa-loop-ivopts.c coverage.c (get_gcov_type): Use type_for_mode. 2012-03-07 14:31:40 +00:00
tree-ssa-loop-manip.c cfgloop.c (verify_loop_structure): Verify dominators before using them. 2012-03-05 15:39:39 +00:00
tree-ssa-loop-niter.c
tree-ssa-loop-prefetch.c
tree-ssa-loop-unswitch.c
tree-ssa-loop.c invoke.texi (floop-flatten): Declare obsolete. 2012-03-02 20:32:20 +00:00
tree-ssa-math-opts.c tree-ssa-math-opts.c (convert_mult_to_widen): Check actual precision against gimple constraints. 2012-03-07 09:24:40 +00:00
tree-ssa-operands.c tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION. 2012-02-10 09:44:31 -08:00
tree-ssa-operands.h
tree-ssa-phiopt.c tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function. 2012-03-12 10:53:57 -07:00
tree-ssa-phiprop.c
tree-ssa-pre.c re PR tree-optimization/52548 (missed PRE optimization when function call follows to-be hoisted variable) 2012-03-22 13:14:54 +00:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c
tree-ssa-sccvn.c tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file. 2012-02-24 10:39:38 +01:00
tree-ssa-sccvn.h
tree-ssa-sink.c
tree-ssa-strlen.c
tree-ssa-structalias.c
tree-ssa-tail-merge.c re PR debug/52048 (-fcompare-debug failure with -O2 -fcompare-debug -fnon-call-exceptions -fno-tree-dominator-opts) 2012-01-30 14:47:38 +01:00
tree-ssa-ter.c
tree-ssa-threadedge.c
tree-ssa-threadupdate.c
tree-ssa-uncprop.c
tree-ssa-uninit.c
tree-ssa.c re PR tree-optimization/52361 (gcc.dg/pr48141.c times out with checking enabled) 2012-02-24 11:38:39 +00:00
tree-ssanames.c
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c tree-streamer-in.c (streamer_alloc_tree): Call ggc_alloc_zone_cleared_tree_node instead of... 2012-03-20 15:14:16 -04:00
tree-streamer-out.c tree.h (TREE_VECTOR_CST_ELTS): Remove. 2012-03-16 09:47:09 +00:00
tree-streamer.c tree.h (enum size_type_kind): Add stk_ prefix to constants, convert in lowercase. 2012-03-20 08:47:27 +00:00
tree-streamer.h
tree-switch-conversion.c
tree-tailcall.c re PR middle-end/52285 (libgcrypt _gcry_burn_stack slowdown) 2012-02-16 23:20:27 +01:00
tree-vect-data-refs.c re PR tree-optimization/52686 (SLP crashes with WIDEN_LSHIFT_EXPR) 2012-03-26 13:13:07 +00:00
tree-vect-generic.c tree.h (TREE_VECTOR_CST_ELTS): Remove. 2012-03-16 09:47:09 +00:00
tree-vect-loop-manip.c re PR tree-optimization/52678 (internal compiler error: in vect_update_ivs_after_vectorizer, at tree-vect-loop-manip.c:1842) 2012-03-23 11:34:32 +00:00
tree-vect-loop.c re PR middle-end/52701 (416.gamess in SPEC CPU 2006 failed to build) 2012-03-26 14:14:51 +00:00
tree-vect-patterns.c tree-vect-patterns.c (widened_name_p): Rename to ... 2012-03-15 16:38:14 +00:00
tree-vect-slp.c re PR tree-optimization/52636 (ICE: tree check: expected integer_cst, have string_cst in tree_to_double_int, at tree.h:4324) 2012-03-21 08:05:51 +00:00
tree-vect-stmts.c re PR tree-optimization/52721 (segfault in vect_init_vector) 2012-03-26 14:13:35 +00:00
tree-vectorizer.c
tree-vectorizer.h re PR tree-optimization/52678 (internal compiler error: in vect_update_ivs_after_vectorizer, at tree-vect-loop-manip.c:1842) 2012-03-23 11:34:32 +00:00
tree-vrp.c re PR tree-optimization/52267 (a&~N where N has all the bits set up till a specific point can be folded to ((unsigned)a) < N) 2012-03-15 11:37:27 +01:00
tree.c tree-vect-loop.c (get_initial_def_for_induction): Use build_constructor directly. 2012-03-16 09:54:36 +00:00
tree.def tree.def (REALPART_EXPR, [...]): Move. 2012-03-19 15:35:55 +00:00
tree.h tree.h (enum size_type_kind): Add stk_ prefix to constants, convert in lowercase. 2012-03-20 08:47:27 +00:00
treestruct.def
tsystem.h
typeclass.h
value-prof.c
value-prof.h
var-tracking.c re PR debug/52001 (Huge compile-time regression with var-tracking) 2012-02-25 12:09:27 +00:00
varasm.c varasm.c (assemble_external): #if 0 out the new assert from the previous commit... 2012-03-26 20:23:36 +00:00
varpool.c re PR middle-end/51663 (Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program) 2012-03-25 13:28:32 +00:00
vec.c
vec.h
vecir.h
vecprim.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
web.c
xcoff.h
xcoffout.c
xcoffout.h

Copyright (C) 2000, 2003 Free Software Foundation, Inc.

This file is intended to contain a few notes about writing C code
within GCC so that it compiles without error on the full range of
compilers GCC needs to be able to compile on.

The problem is that many ISO-standard constructs are not accepted by
either old or buggy compilers, and we keep getting bitten by them.
This knowledge until know has been sparsely spread around, so I
thought I'd collect it in one useful place.  Please add and correct
any problems as you come across them.

I'm going to start from a base of the ISO C90 standard, since that is
probably what most people code to naturally.  Obviously using
constructs introduced after that is not a good idea.

For the complete coding style conventions used in GCC, please read
http://gcc.gnu.org/codingconventions.html


String literals
---------------

Irix6 "cc -n32" and OSF4 "cc" have problems with constant string
initializers with parens around it, e.g.

const char string[] = ("A string");

This is unfortunate since this is what the GNU gettext macro N_
produces.  You need to find a different way to code it.

Some compilers like MSVC++ have fairly low limits on the maximum
length of a string literal; 509 is the lowest we've come across.  You
may need to break up a long printf statement into many smaller ones.


Empty macro arguments
---------------------

ISO C (6.8.3 in the 1990 standard) specifies the following:

If (before argument substitution) any argument consists of no
preprocessing tokens, the behavior is undefined.

This was relaxed by ISO C99, but some older compilers emit an error,
so code like

#define foo(x, y) x y
foo (bar, )

needs to be coded in some other way.


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.