gcc/gcc
Alan Modra 8345965a52 rs6000.c (vspltis_constant): Correct for little-endian.
gcc/
	* config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
	(gen_easy_altivec_constant): Likewise.
	* config/rs6000/predicates.md (easy_vector_constant_add_self,
	easy_vector_constant_msb): Likewise.
gcc/testsuite/
	* gcc.target/powerpc/altivec-consts.c: Correct for little-endian.
	Add scan-assembler-not "lvx".
	* gcc.target/powerpc/le-altivec-consts.c: New.

From-SVN: r200357
2013-06-24 10:22:34 +09:30
..
ada ada-tree.h (DECL_BY_DOUBLE_REF_P): Delete. 2013-06-13 07:50:24 +00:00
c re PR c/57630 (Error should include -std=c11 and friends) 2013-06-18 07:41:19 +00:00
c-family c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. 2013-06-23 02:27:03 +00:00
common re PR target/57688 (-O3 -march=native generates illegal opcode on AMD Phenom) 2013-06-23 21:06:00 +02:00
config rs6000.c (vspltis_constant): Correct for little-endian. 2013-06-24 10:22:34 +09:30
cp c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. 2013-06-23 02:27:03 +00:00
doc Fix __atomic_store_n typo in recent manual change 2013-06-22 17:23:08 +00:00
fortran trans-array.c (gfc_trans_deferred_array): Call the finalizer for nonallocatable local variables. 2013-06-21 23:51:41 +02:00
ginclude
go compiler: do not skip compilation of blank-named functions. 2013-06-21 17:56:49 +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-cgraph.c (input_symtab): Do not set cgraph state. 2013-06-20 14:23:15 +00:00
objc objc-next-runtime-abi-02.c (build_v2_build_objc_method_call): Fix build_conditional_expr call. 2013-05-22 09:14:46 +00:00
objcp Makefile.in (LLINKER): New variable. 2013-05-16 11:09:31 -04:00
po * sv.po: Update. 2013-04-28 15:43:12 +01:00
testsuite rs6000.c (vspltis_constant): Correct for little-endian. 2013-06-24 10:22:34 +09:30
ABOUT-GCC-NLS
acinclude.m4
aclocal.m4
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 This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
alloc-pool.h
asan.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
asan.h
attribs.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
auto-inc-dec.c
BASE-VER
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 re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +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 This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
bitmap.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
bt-load.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +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 invoke.texi (SPARC Options): Document -mfix-ut699. 2013-05-28 07:26:35 +00:00
builtins.def Implemented Cilk Plus Array Notation for C Compiler. 2013-05-28 12:55:10 -07: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 First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides... 2013-04-08 17:39:10 +00:00
cfgcleanup.c re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +00:00
cfgexpand.c cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +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 function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloopanal.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
cfgloopmanip.c cfghooks.c (copy_bbs): Add update_dominance argument. 2013-05-16 17:09:40 +00:00
cfgrtl.c re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +00:00
cgraph.c tree-flow.h (gimple_check_call_matching_types): Add new argument. 2013-06-15 16:56:01 +00:00
cgraph.h cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +00:00
cgraphbuild.c re PR tree-optimization/57294 (ice in remove_described_reference) 2013-05-24 17:35:21 +02:00
cgraphclones.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
cgraphunit.c cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +00:00
ChangeLog rs6000.c (vspltis_constant): Correct for little-endian. 2013-06-24 10:22:34 +09:30
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 Fix non-ASCII characters in names. 2013-04-09 09:29:32 +02:00
ChangeLog.dataflow
ChangeLog.graphite
ChangeLog.lib
ChangeLog.ptr
ChangeLog.tree-ssa
ChangeLog.tuples
cif-code.def cif-code.def (OVERWRITABLE): Correct the comment for overwritable function. 2013-04-10 09:22:04 +00:00
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 passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
combine.c combine.c (combine_simplify_rtx): If nonzero_bits on op shows all bits zero in mode of a lowpart subreg, return zero. 2013-05-04 14:41:52 +02:00
common.opt cfgexpand.c (record_or_union_type_has_array_p): New function. 2013-05-07 21:33:01 +00:00
compare-elim.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
conditions.h
config.build config.build: Add support for cygwin x64 target. 2013-03-27 22:54:50 +01:00
config.gcc gcc/ 2013-06-16 19:30:48 +00:00
config.host config.build: Add support for cygwin x64 target. 2013-03-27 22:54:50 +01:00
config.in configure.ac: Add AC_HEADER_TIOCGWINSZ macro. 2013-06-01 21:12:57 +02:00
configure Revert accidental commit. 2013-06-12 14:29:10 +00:00
configure.ac configure.ac: Add AC_HEADER_TIOCGWINSZ macro. 2013-06-01 21:12:57 +02:00
convert.c stor-layout.c (element_precision): New function. 2013-05-10 11:15:14 +00:00
convert.h
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
coretypes.h coretypes.h (gimple_stmt_iterator): Add struct to make compatible with C. 2013-04-23 09:05:31 +00:00
coverage.c coverage.c (coverage_obj_init): Move the construction of gcov constructor to 2013-05-04 01:26:52 +00:00
coverage.h
cppbuiltin.c
cppbuiltin.h
cppdefault.c
cppdefault.h
cprop.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
cse.c re PR rtl-optimization/57425 (RTL alias analysis unprepared to handle stack slot sharing) 2013-06-20 13:43:29 +01: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
DATESTAMP Daily bump. 2013-06-24 00:16:45 +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 passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
dce.h
ddg.c
ddg.h
debug.c
debug.h
defaults.h
DEV-PHASE
df-core.c df-core.c (df_find_def): Compare register numbers. 2013-04-12 17:53:55 +00:00
df-problems.c
df-scan.c lower-subreg.c (resolve_simple_move): If called self-recursive... 2013-04-17 23:05:59 +00:00
df.h
dfp.c
dfp.h
diagnostic-color.c Makefile.in (toplev.o): Depend on diagnostic-color.h. 2013-04-26 08:55:56 +02:00
diagnostic-color.h opts.c: Include diagnostic-color.h. 2013-04-12 08:20:36 +02:00
diagnostic-core.h opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
diagnostic.c tree.c (warn_deprecated_use): Print file:line using locus color. 2013-05-14 21:41:13 +02:00
diagnostic.def opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
diagnostic.h diagnostic.h (file_name_as_prefix): Add context argument. 2013-04-26 08:54:54 +02:00
dojump.c
dominance.c
domwalk.c
domwalk.h
double-int.c double-int.h (rshift): New overload. 2013-05-07 11:26:58 +00:00
double-int.h double-int.h (rshift): New overload. 2013-05-07 11:26:58 +00:00
dse.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
dumpfile.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
dumpfile.h Add uniform debug dump function names. 2013-03-29 03:42:21 +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 This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
dwarf2out.c dwarf2out.c (hash_external_ref): Use die_symbol or signature for hash so that hash table traversal order is... 2013-06-10 16:48:41 -07:00
dwarf2out.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
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 This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +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 expmed.c (extract_bit_field_1): In the larger-than-a-word case... 2013-06-04 07:41:18 +00:00
expmed.h
expr.c cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +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 final.c (debug_prefix_maps): Make static. 2013-06-11 17:15:52 +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
flags.h
fold-const.c fold-const.c (negate_expr_p): Handle VECTOR_CST. 2013-06-13 19:39:19 +00:00
fp-test.c
FSFChangeLog
FSFChangeLog.10
FSFChangeLog.11
function.c function.c (initial_trampoline): Remove stray copy. 2013-06-11 17:07:05 +00:00
function.h function.h (has_bb_partition): New rtl_data flag. 2013-05-15 14:14:15 +00:00
fwprop.c
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 gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread linking. 2013-05-17 14:17:14 +02:00
gcc.h
gcov-dump.c This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
gcov-io.c This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
gcov-io.h This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
gcov-iov.c
gcov.c gcov.c (print_usage): Handle new option. 2013-06-20 05:20:09 +00:00
gcse.c gcse.c (compute_ld_motion_mems): If a non-simple MEM is found in a REG_EQUAL note, invalidate it. 2013-05-17 21:48:18 -06:00
gcse.h
gdbinit.in * gdbinit.in (__FUNCTION__): Add. 2013-06-05 16:36:00 +00:00
genattr-common.c
genattr.c
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 gengtype-state.c: (s_expr_writer): New class, to handle prettifying of output layout of s-expressions. 2013-05-17 19:23:35 +00:00
gengtype.c cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER. 2013-03-30 14:26:42 +00:00
gengtype.h
genhooks.c
genmddeps.c
genmddump.c
genmodes.c genmodes.c (emit_max_int): New function. 2013-03-28 14:46:31 +00:00
genmultilib
genopinit.c
genoutput.c
genpeep.c
genpreds.c
genrecog.c
gensupport.c rtl.def: Add extra fourth optional field to define_cond_exec. 2013-06-04 08:56:32 +00:00
gensupport.h
ggc-common.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
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
gimple-fold.c gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use types_same_for_odr. 2013-06-21 06:43:39 +00:00
gimple-fold.h
gimple-iterator.c
gimple-low.c tree-flow.h (gimple_check_call_matching_types): Add new argument. 2013-06-15 16:56:01 +00:00
gimple-pretty-print.c gimple-pretty-print.c (debug_gimple_stmt): Do not print extra newline. 2013-04-08 12:35:26 +00:00
gimple-pretty-print.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
gimple-ssa-strength-reduction.c re PR tree-optimization/57441 (ICE in gimple-ssa-strength-reduction.c:3447 at -O3) 2013-05-29 16:00:54 +00:00
gimple-streamer-in.c This patch fixes PR bootstrap/57077. 2013-04-29 13:22:46 +00:00
gimple-streamer-out.c data-streamer-in.c (streamer_read_gcov_count): New function. 2013-03-28 15:29:40 +00:00
gimple-streamer.h
gimple.c stor-layout.c (element_precision): New function. 2013-05-10 11:15:14 +00:00
gimple.def
gimple.h gimple.h (gimple_can_coalesce_p): Prototype. 2013-06-14 12:52:32 -06:00
gimplify.c N3639 C++1y VLA support 2013-05-09 12:43:36 -04:00
glimits.h
godump.c
graph.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +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 function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
graphite-clast-to-gimple.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-dependences.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-htab.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
graphite-interchange.c
graphite-optimize-isl.c
graphite-poly.c
graphite-poly.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
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
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 This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
highlev-plugin-common.h
hooks.c [Mid-end] Add TARGET_GIMPLE_FOLD_BUILTIN target hook. 2013-04-22 14:50:32 +00:00
hooks.h [Mid-end] Add TARGET_GIMPLE_FOLD_BUILTIN target hook. 2013-04-22 14:50:32 +00:00
host-default.c
hosthooks-def.h
hosthooks.h
hw-doloop.c
hw-doloop.h
hwint.c hwint.c (sext_hwi, zext_hwi): New functions. 2013-04-03 20:24:07 +00:00
hwint.h hwint.c (sext_hwi, zext_hwi): New functions. 2013-04-03 20:24:07 +00:00
ifcvt.c re PR c++/53743 (ICE when compiling firefox with PGO and LTO) 2013-06-06 16:30:07 +00:00
incpath.c
incpath.h
init-regs.c
input.c
input.h
insn-addr.h
insn-notes.def
internal-fn.c
internal-fn.def
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-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is within bounds at the beginning of the function. 2013-06-11 14:50:13 +02:00
ipa-inline-analysis.c cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +00:00
ipa-inline-transform.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
ipa-inline.c Emit errors when always_inline functions cannot be inlined in -O0 mode. 2013-06-18 22:45:03 +00:00
ipa-inline.h
ipa-prop.c tree-flow.h (gimple_check_call_matching_types): Add new argument. 2013-06-15 16:56:01 +00:00
ipa-prop.h re PR middle-end/42371 (dead code not eliminated during folding with whole-program) 2013-05-13 12:16:09 +02:00
ipa-pure-const.c lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ... 2013-06-01 13:08:53 +00:00
ipa-ref-inline.h
ipa-ref.c re PR tree-optimization/57294 (ice in remove_described_reference) 2013-05-24 17:35:21 +02:00
ipa-ref.h re PR tree-optimization/57294 (ice in remove_described_reference) 2013-05-24 17:35:21 +02:00
ipa-reference.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
ipa-reference.h
ipa-split.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +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.c cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +00:00
ira-build.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
ira-color.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
ira-conflicts.c
ira-costs.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
ira-emit.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
ira-int.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
ira-lives.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
ira.c re PR rtl-optimization/57518 (Redundant insn generated in LRA) 2013-06-19 21:57:42 +00:00
ira.h
is-a.h
jump.c mips.c: Include tree-pass.h. 2013-05-06 19:02:12 +00:00
langhooks-def.h
langhooks.c diagnostic.h (file_name_as_prefix): Add context argument. 2013-04-26 08:54:54 +02:00
langhooks.h
LANGUAGES
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 function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
loop-invariant.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
loop-iv.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
loop-unroll.c loop-unroll.c (report_unroll_peel): Check decision before emitting unroll/peel message. 2013-05-15 15:26:38 +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 lower-subreg.c (resolve_simple_move): If called self-recursive... 2013-04-17 23:05:59 +00:00
lower-subreg.h
lra-assigns.c target.def (register_usage_leveling_p): New hook. 2013-05-30 20:30:38 +00:00
lra-coalesce.c [multiple changes] 2013-04-19 03:57:22 +00:00
lra-constraints.c re PR rtl-optimization/57559 (S/390: ICE with lra) 2013-06-08 18:37:40 +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 lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p to check the register content is equal or not. 2013-04-23 17:38:59 +00:00
lra-lives.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
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 bootstrap/57604 (LRA related bootstrap comparison failure on s390x --with-arch=zEC12) 2013-06-19 23:57:22 +00:00
lra.h
lto-cgraph.c lto-cgraph.c (input_symtab): Do not set cgraph state. 2013-06-20 14:23:15 +00:00
lto-compress.c
lto-compress.h
lto-opts.c
lto-section-in.c lto-cgraph.c (output_profile_summary, [...]): Use gcov streaming; stream hot bb threshold to ltrans. 2013-03-29 18:07:34 +00:00
lto-section-out.c Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency. 2013-06-18 14:39:57 +00:00
lto-streamer-in.c tree-streamer.h (streamer_tree_cache_create): Adjust prototype. 2013-06-18 12:56:42 +00:00
lto-streamer-out.c Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency. 2013-06-18 14:39:57 +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 Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency. 2013-06-18 14:39:57 +00:00
lto-symtab.c re PR lto/57334 (ICE: in input_gimple_stmt, at gimple-streamer-in.c:287) 2013-06-18 09:56:59 +00:00
lto-wrapper.c
machmode.def genmodes.c (emit_max_int): New function. 2013-03-28 14:46:31 +00:00
machmode.h stor-layout.c (element_precision): New function. 2013-05-10 11:15:14 +00:00
main.c
Makefile.in Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency. 2013-06-18 14:39:57 +00:00
mcf.c
mkconfig.sh
mode-classes.def
mode-switching.c mode-switching.c (optimize_mode_switching): Set correct RTL profile. 2013-05-13 11:33:50 +00:00
modulo-sched.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
omega.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
omega.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
omp-builtins.def
omp-low.c re PR middle-end/57412 (ICE: in verify_loop_structure, at cfgloop.c:1647: loop 1's latch does not have an edge to its header with -fopenmp -fipa-pure-const) 2013-05-27 15:02:53 +00:00
ONEWS
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.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
opts.h
output.h
params.c
params.def re PR tree-optimization/48184 (ICE: SIGFPE (division by zero) in compute_alignments () at final.c:731 with --param align-threshold=0 on basic code) 2013-04-11 16:20:26 +00:00
params.h
passes.c c-common.c (handle_alias_ifunc_attribute): Do not set DECL_EXTERNAL for weakref variables. 2013-06-11 22:41:54 +00:00
plugin.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
plugin.def
plugin.h
pointer-set.c
pointer-set.h
postreload-gcse.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
postreload.c re PR rtl-optimization/57439 (FAIL: gcc.c-torture/execute/920501-6.c execution, -O1) 2013-05-30 12:07:05 +01:00
predict.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
predict.def
predict.h
prefix.c
prefix.h
pretty-print.c opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
pretty-print.h opts.c: Include diagnostic-color.h. 2013-04-12 08:19:58 +02:00
print-rtl.c cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER. 2013-03-30 14:26:42 +00:00
print-tree.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
profile.c re PR tree-optimization/57349 (ICE on 253.perlbmk with pgo after r198096) 2013-05-22 11:16:32 +00:00
profile.h This patch enables the gcov-dump tool to optionally compute and dump the working set information from the counter histogram... 2013-04-03 20:51:28 +00:00
read-md.c
read-md.h
read-rtl.c read-rtl.c (copy_rtx_for_iterators): Continue applying iterators while it has any effect. 2013-05-22 07:48:13 +00:00
README.Portability
real.c
real.h
realmpfr.c
realmpfr.h
recog.c recog.c (offsettable_address_addr_space_p): Fix calculation of address mode. 2013-05-22 09:21:25 +00:00
recog.h recog.h (Recog_data): Rename to... 2013-05-18 07:58:55 +00:00
ree.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
reg-notes.def rtl.texi (sequence): Rewrite documentation to match the current use of SEQUENCE rtl objects. 2013-04-08 19:59:57 +00:00
reg-stack.c resource.h (struct resources): Remove unch_memory member. 2013-05-14 17:21:43 +00:00
regcprop.c re PR rtl-optimization/57003 (gcc breaks -O2 optimization with Wine(64) - links/info/bisect of commits included) 2013-04-25 23:49:22 +02:00
reginfo.c
regmove.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
regrename.c
regrename.h
regs.h
regset.h
regstat.c
reload1.c cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER. 2013-03-30 14:26:42 +00:00
reload.c recog.h (Recog_data): Rename to... 2013-05-18 07:58:55 +00:00
reload.h
reorg.c Restore bootstrap on non-cc0 targets 2013-05-16 12:52:18 +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 re PR rtl-optimization/57425 (RTL alias analysis unprepared to handle stack slot sharing) 2013-06-20 13:43:29 +01:00
rtlanal.c rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC. 2013-06-13 08:33:39 +00:00
rtlhooks-def.h
rtlhooks.c
sanitizer.def
sbitmap.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
sbitmap.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
sched-deps.c re PR rtl-optimization/57268 (c nested loops hang compiler in sched-deps.c) 2013-06-03 19:38:39 +02: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 re PR bootstrap/57154 (Bootstrap broken for powerpc64-unknown-linux-gnu) 2013-05-03 16:48:24 +00:00
sched-vis.c sched-vis.c (print_pattern): Print SEQUENCE of insns as insns. 2013-04-09 15:02:41 +00:00
sdbout.c
sdbout.h
sel-sched-dump.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
sel-sched-dump.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
sel-sched-ir.c emit-rtl.c (remove_insn): Do not call df_insn_delete here. 2013-04-13 10:04:09 +00:00
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/56957 (ICE in add_insn_after, at emit-rtl.c:3783) 2013-04-30 14:55:52 +04:00
sel-sched.h
sese.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
sese.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
simplify-rtx.c simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro for constant scalar integers. 2013-05-31 19:08:51 +00:00
sparseset.c
sparseset.h
sreal.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
sreal.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
ssaexpand.h
stab.def
stack-ptr-mod.c
statistics.c This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
statistics.h
stmt.c First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides... 2013-04-08 17:39:10 +00:00
stor-layout.c stor-layout.c (element_precision): New function. 2013-05-10 11:15:14 +00:00
store-motion.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
streamer-hooks.c
streamer-hooks.h
stringpool.c
symtab.c ipa.c (cgraph_externally_visible_p, [...]): Local comdats are not externally visible. 2013-06-13 10:00:04 +00:00
sync-builtins.def
system.h system.h: Include <cstdlib> as well as <stdlib.h>. 2013-06-20 15:22:02 -04:00
target-def.h
target-globals.c
target-globals.h
target-hooks-macros.h
target.def target.def (register_usage_leveling_p): New hook. 2013-05-30 20:30:38 +00:00
target.h Improve cstore code generation on 64-bit sparc. 2013-04-10 12:41:57 -07:00
targhooks.c target.def (register_usage_leveling_p): New hook. 2013-05-30 20:30:38 +00:00
targhooks.h target.def (register_usage_leveling_p): New hook. 2013-05-30 20:30:38 +00:00
timevar.c
timevar.def
timevar.h
tlink.c re PR driver/57652 (collect2 does not clean up temporary files) 2013-06-19 19:51:05 -04:00
toplev.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
toplev.h
tracer.c
trans-mem.c 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
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 This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-browser.def
tree-call-cdce.c
tree-cfg.c tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF... 2013-05-29 12:32:22 +02:00
tree-cfgcleanup.c re PR middle-end/57147 (setjmp call and if body wrongly elided (function runs off early end)) 2013-05-06 11:27:29 +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 tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-data-ref.c Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
tree-data-ref.h Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
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 Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
tree-dump.h
tree-eh.c cgraph.h (symtab_node_base): Add definition, alias and analyzed flags... 2013-05-29 20:42:50 +00:00
tree-emutls.c lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ... 2013-06-01 13:08:53 +00:00
tree-flow-inline.h tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF. 2013-04-03 12:54:50 +00:00
tree-flow.h tree-flow.h (gimple_check_call_matching_types): Add new argument. 2013-06-15 16:56:01 +00:00
tree-hasher.h This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
tree-if-conv.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-inline.c Emit errors when always_inline functions cannot be inlined in -O0 mode. 2013-06-18 22:45:03 +00:00
tree-inline.h
tree-into-ssa.c tree-into-ssa.c (interesting_blocks): Make static. 2013-06-10 20:25:14 +00:00
tree-iterator.c
tree-iterator.h
tree-loop-distribution.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-mudflap.c
tree-mudflap.h
tree-nested.c
tree-nomudflap.c
tree-nrv.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +00:00
tree-object-size.c tree-object-size.c (unknown): Make const. 2013-06-07 19:14:06 +00:00
tree-optimize.c This patch fixes PR bootstrap/57077. 2013-04-29 13:22:46 +00:00
tree-outof-ssa.c
tree-parloops.c re PR tree-optimization/57185 (ICE: Segmentation fault in add_field_for_reduction with -ftree-parallelize-loops=2 -fipa-pta) 2013-05-06 15:06:41 +00:00
tree-pass.h tree-pass.h (TODO_do_not_ggc_collect): New. 2013-04-12 09:50:28 +00:00
tree-phinodes.c
tree-predcom.c
tree-pretty-print.c ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in header... 2013-05-15 12:35:59 +02:00
tree-pretty-print.h
tree-profile.c
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/57347 (wrong code for bitfield on x86_64-linux at -Os and above) 2013-05-23 15:20:41 +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 Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
tree-ssa-ccp.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +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 tree-optimization/57411 (ICE: verify_ssa failed: definition in block 4 does not dominate use in block 11 with -fno-tree-dce -ftree-vectorize) 2013-05-28 10:54:33 +00:00
tree-ssa-copyrename.c
tree-ssa-dce.c
tree-ssa-dom.c re PR tree-optimization/57411 (ICE: verify_ssa failed: definition in block 4 does not dominate use in block 11 with -fno-tree-dce -ftree-vectorize) 2013-05-28 10:54:33 +00:00
tree-ssa-dse.c re PR tree-optimization/57361 (Remove self memory assignment) 2013-06-12 17:56:30 +00:00
tree-ssa-forwprop.c tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo in comment. 2013-06-19 11:09:10 -06:00
tree-ssa-ifcombine.c passes.c (execute_todo): Do not call ggc_collect conditional here. 2013-04-10 11:33:31 +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 Add uniform debug dump function names. 2013-03-29 03:42:21 +00:00
tree-ssa-loop-ch.c cfghooks.c (copy_bbs): Add update_dominance argument. 2013-05-16 17:09:40 +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 cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +00:00
tree-ssa-loop-ivopts.c This patch is the main part of a consolodation of the hash_table patches to the... 2013-04-26 00:28:35 +00:00
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 function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssa-math-opts.c Partially reverted: 2013-05-31 Tobias Burnus <burnus@net-b.de> 2013-06-01 10:39:59 +02:00
tree-ssa-operands.c
tree-ssa-operands.h
tree-ssa-phiopt.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-ssa-phiprop.c re PR tree-optimization/57380 (GCC 4.9.0 will not vectorize std::max and similar functions) 2013-05-23 12:23:59 +00:00
tree-ssa-pre.c re PR tree-optimization/56718 (Early inlining prevents type based devirtualization) 2013-04-19 14:00:27 +02:00
tree-ssa-propagate.c
tree-ssa-propagate.h
tree-ssa-reassoc.c re PR tree-optimization/57442 (ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891) 2013-05-29 17:30:43 +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 This patch extracts approved portions of the hash_table patches to the... 2013-04-23 22:00:12 +00:00
tree-ssa-sink.c re PR tree-optimization/57303 (struct miscompiled at -O1 and above) 2013-05-21 08:11:23 +00:00
tree-ssa-strlen.c Add tree-ssa-strlen optimization. 2013-05-17 09:32:01 +00:00
tree-ssa-structalias.c tree-ssa-structalias.c (call_stmt_vars): Make static. 2013-06-05 00:52:32 +00:00
tree-ssa-tail-merge.c Preserve loops in tail-merge 2013-04-29 13:08:24 +00:00
tree-ssa-ter.c
tree-ssa-threadedge.c
tree-ssa-threadupdate.c
tree-ssa-uncprop.c gimple.h (gimple_can_coalesce_p): Prototype. 2013-06-14 12:52:32 -06:00
tree-ssa-uninit.c re PR middle-end/57287 (Bogus uninitialized warning with abnormal control flow) 2013-05-24 12:44:58 +00:00
tree-ssa.c function.h (loops_for_fn): New inline function. 2013-04-30 08:14:09 +00:00
tree-ssanames.c
tree-stdarg.c
tree-stdarg.h
tree-streamer-in.c lto-streamer.h (enum LTO_tags): Add LTO_tree_scc. 2013-06-17 15:08:24 +00:00
tree-streamer-out.c lto-streamer.h (enum LTO_tags): Add LTO_tree_scc. 2013-06-17 15:08:24 +00:00
tree-streamer.c tree-streamer.h (streamer_tree_cache_create): Adjust prototype. 2013-06-18 12:56:42 +00:00
tree-streamer.h tree-streamer.h (streamer_tree_cache_create): Adjust prototype. 2013-06-18 12:56:42 +00:00
tree-switch-conversion.c tree-cfg.c (execute_build_cfg): Build the loop tree. 2013-04-26 08:01:19 +00:00
tree-tailcall.c
tree-vect-data-refs.c re PR tree-optimization/56787 (Vectorization fails because of CLOBBER statements) 2013-05-28 13:36:25 +00:00
tree-vect-generic.c tree-vect-generic.c (uniform_vector_p): Move ... 2013-05-13 09:30:50 +00:00
tree-vect-loop-manip.c cfghooks.c (copy_bbs): Add update_dominance argument. 2013-05-16 17:09:40 +00:00
tree-vect-loop.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-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 re PR tree-optimization/56270 (loop over array of struct float causes compiler error: segmentation fault) 2013-04-19 13:37:12 +00:00
tree-vectorizer.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-vectorizer.h tree-vectorizer.h (NUM_PATTERNS): Increment. 2013-05-16 18:24:19 +02:00
tree-vrp.c re PR tree-optimization/57124 (254.gap@spec2000 got miscompare after r198413) 2013-05-24 11:13:38 -06:00
tree.c gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use types_same_for_odr. 2013-06-21 06:43:39 +00:00
tree.def
tree.h gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use types_same_for_odr. 2013-06-21 06:43:39 +00:00
treestruct.def
tsan.c tsan.c (tsan_atomic_table): Make const. 2013-06-05 10:14:15 +00:00
tsan.h
tsystem.h
typeclass.h
valtrack.c
valtrack.h
value-prof.c tree-flow.h (gimple_check_call_matching_types): Add new argument. 2013-06-15 16:56:01 +00:00
value-prof.h data-streamer-in.c (streamer_read_gcov_count): New function. 2013-03-28 15:29:40 +00:00
var-tracking.c This patch is part of a consolodation of the hash_table patches to the... 2013-04-26 00:30:32 +00:00
varasm.c varasm.c (force_const_mem): Revert 2013-06-07 change. 2013-06-14 00:58:42 +09:30
varpool.c cgraph.h (const_value_known_p): Replace by ... 2013-06-19 18:06:12 +00:00
vec.c
vec.h
version.c
version.h
vmsdbg.h
vmsdbgout.c
web.c web.c (union_match_dups): Ensure that DF_REF_LOC exists before accessing DF_REF_REAL_LOC. 2013-05-17 19:09:56 +00:00
xcoff.h
xcoffout.c
xcoffout.h

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.