Commit Graph

120032 Commits

Author SHA1 Message Date
Joern Rennecke 8db13a7fd8 reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip with a return instruction.
* reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
	with a return instruction.

From-SVN: r193171
2012-11-05 17:16:33 +00:00
Vladimir Makarov 1bdc4b116e re PR rtl-optimization/55151 (ICE: in assign_by_spills, at lra-assigns.c:1217 with -fPIC)
2012-11-05  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55151
	* lra-constraints.c (process_alt_operands): Permit putting reg
	value into memory.  Increase reject for this case.

2012-11-05  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55151
	* gcc.dg/pr55151.c: New test.

From-SVN: r193170
2012-11-05 16:38:27 +00:00
Dehao Chen 48866799f1 final.c (reemit_insn_block_notes): Do not change scope if insn location is UNKNOWN_LOCATION.
2012-11-05  Dehao Chen  <dehao@google.com>

	* final.c (reemit_insn_block_notes): Do not change scope if insn
	location is UNKNOWN_LOCATION.

From-SVN: r193169
2012-11-05 15:47:18 +00:00
Joern Rennecke d327457f17 md.texi (Defining Attributes): Document that we are defining HAVE_ATTR_name macors as 1 for defined attributes...
* doc/md.texi (Defining Attributes): Document that we are defining
	HAVE_ATTR_name macors as 1 for defined attributes, and as 0
	for undefined special attributes.
	* final.c (asm_insn_count, align_fuzz): Always define.
	(insn_current_reference_address): Likewise.
	(init_insn_lengths): Use if (HAVE_ATTR_length) instead of
	#ifdef HAVE_ATTR_length.
	(get_attr_length_1, shorten_branches, final): Likewise.
	(final_scan_insn, output_asm_name): Likewise.
	* genattr.c (gen_attr): Define HAVE_ATTR_name macros for
	defined attributes as 1.
	Remove ancient get_attr_alternative compatibility code.
	For special purpose attributes not provided, define HAVE_ATTR_name
	as 0.
	In case no length attribute is given, provide stub definitions
	for insn_*_length* functions, and also include insn-addr.h.
	In case no enabled attribute is given, provide stub definition.
	* genattrtab.c (write_length_unit_log): Always write a definition.
	* hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
	* hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
	* lra-int.h (struct lra_insn_recog_data): Make member
	alternative_enabled_p unconditional.
	* lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
	#ifdef HAVE_ATTR_length.
	(lra_set_insn_recog_data): Likewise.  Make initialization of
	alternative_enabled_p unconditional.
	(lra_update_insn_recog_data): Use #if instead of #ifdef for
	HAVE_ATTR_enabled.
	* recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
	(extract_insn): Check HAVE_ATTR_enabled.
	(gate_handle_split_before_regstack): Use #if instead of
	#if defined for HAVE_ATTR_length.

From-SVN: r193168
2012-11-05 15:18:10 +00:00
Jakub Jelinek 1539ccbf52 re PR debug/54970 (Missing DW_OP_GNU_implicit_pointer in debuginfo)
PR debug/54970
	PR debug/54971
	* gcc.dg/guality/pr54970.c: Use NOP instead of "NOP" in inline-asm.

From-SVN: r193162
2012-11-05 15:36:47 +01:00
Jan Hubicka d59171daa7 ipa-inline.c (compute_uninlined_call_time, [...]): New functions.
* ipa-inline.c (compute_uninlined_call_time,
	compute_inlined_call_time): New functions.
	(RELATIVE_TIME_BENEFIT_RANGE): New macro.
	(relative_time_benefit): Rewrite.
	(edge_badness): Rewrite path with guessed profile and estimated profile.
	* ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
	New hints.
	(struct inline_summary): Add GROWTH filed.
	* ipa-inline-analysis.c (dump_inline_hints): Update.
	(reset_inline_summary): Update.
	(dump_inline_summary): Update.
	(will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
	gimple_assign_load_p predicates.
	(estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
	(simple_edge_hints): New function.
	(do_estimate_edge_time): Return time of invocation of callee rather
	than the time scaled by edge frequency; update hints code.
	(do_estimate_edge_hints): Update.
	(do_estimate_growth): Cleanup.

From-SVN: r193161
2012-11-05 14:00:46 +00:00
Jan Hubicka 0450d71880 tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
* tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
	(maybe_lower_iteration_bound): Initialize not_executed_last_iteration to  NULL
	* tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
	just_once_each_iteration_p; record estimated bound when loop has only one
	likely exit; test just_once_each_iteration_p before IV canon itself.

From-SVN: r193159
2012-11-05 11:14:16 +00:00
Jakub Jelinek 264bd20fa7 re PR target/55194 (h8300 ICE during conftest in libgcc dwarf2out:7605)
PR target/55194
	* dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
	also DWARF2_ADDR_SIZE 1 and 2.

From-SVN: r193158
2012-11-05 12:11:28 +01:00
Jan Hubicka ae6e6a0808 ipa-inline.c (leaf_node_p): Rename to ...
* ipa-inline.c (leaf_node_p): Rename to ...
	(num_calls) ... this one.
	(want_early_inline_function_p): Allow smal growth on non-leafs.

From-SVN: r193157
2012-11-05 11:10:18 +00:00
Uros Bizjak dcda5cc89c re PR testsuite/51128 (New LTO failures)
PR testsuite/51128
	* gcc.dg/torture/pr55018.c: Skip if -fno-fat-lto-objects was passed.

From-SVN: r193156
2012-11-05 11:59:49 +01:00
Jan Hubicka d97cf33e65 * gcc.dg/autopar/pr49960.c: Fix testcase.
From-SVN: r193155
2012-11-05 10:45:03 +00:00
Uros Bizjak e40bc13576 * gcc.dg/tree-ssa/cunroll-9.c: Fix scan file name.
From-SVN: r193154
2012-11-05 11:28:16 +01:00
Uros Bizjak 163e74804f cunroll-9.c: Dump cunrolli details.
* gcc.dg/tree-ssa/cunroll-9.c: Dump cunrolli details.
	Fix scan-tree-dump-times directive.

From-SVN: r193153
2012-11-05 11:22:52 +01:00
Jakub Jelinek d459f8707b re PR debug/54402 (var-tracking does not scale)
PR debug/54402
	* var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
	hfp note.
	(vt_initialize): Look for fp_setter in any bb, not just successor of
	entry bb.

From-SVN: r193152
2012-11-05 08:58:48 +01:00
Oleg Endo ead4af4fb6 sh.h (TARGET_CACHE32, [...]): Delete macro.
* config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
	(TARGET_SUPERSCALAR): Add TARGET_SH2A.
	(CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
	TARGET_CACHE32.
	(TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
	TARGET_HARVARD.
	* config/sh/sh.c (sh_trampoline_init): Likewise.

From-SVN: r193151
2012-11-05 01:06:18 +00:00
David Edelsohn e091ffb72f * system.h (loc_t): Poison.
From-SVN: r193150
2012-11-04 19:20:21 -05:00
GCC Administrator 3141cfb622 Daily bump.
From-SVN: r193149
2012-11-05 00:18:22 +00:00
Marc Glisse 4d6503ab30 fold-const.c (fold_unary_loc): Disable conversion optimization for void type.
2012-11-05  Marc Glisse  <marc.glisse@inria.fr>

	* fold-const.c (fold_unary_loc): Disable conversion optimization
	for void type.

From-SVN: r193146
2012-11-04 23:38:10 +00:00
Thomas Schwinge 4044815128 acinclude.m4 (LIBAT_CHECK_IFUNC): Clarify message.
libatomic/
	* acinclude.m4 (LIBAT_CHECK_IFUNC): Clarify message.
	* configure: Regenerate.

From-SVN: r193145
2012-11-05 00:27:03 +01:00
Thomas Schwinge b9efc87730 configure: Regenerate.
libatomic/
	* configure: Regenerate.

libitm/
	* configure: Regenerate.

From-SVN: r193144
2012-11-05 00:17:34 +01:00
Thomas Schwinge 460277e023 bid_functions.h: Check for __GLIBC__ additionally to LINUX when defining format specifiers.
libgcc/config/libbid/
	* bid_functions.h: Check for __GLIBC__ additionally to LINUX when
	defining format specifiers.

config/
	* dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*.

gcc/
	* configure: Regenerate.

libdecnumber/
	* configure: Regenerate.

libgcc/
	* configure: Regenerate.

From-SVN: r193143
2012-11-05 00:08:42 +01:00
Samuel Thibault b260c71fa5 configure.ac: Add stanza for *-*-gnu* threads configuration.
boehm-gc/
	* configure.ac: Add stanza for *-*-gnu* threads configuration.
	* configure: Regenerate.
	* include/gc_config.h.in: Likewise.
	* dyn_load.c (_GNU_SOURCE): Define for __GNU__.
	* include/gc_config_macros.h (_REENTRANT, GC_PTHREADS): Define for
	GC_GNU_THREADS.
	* include/private/gcconfig.h (DATASTART): Don't define for I386 &&
	HURD.
	(SIG_SUSPEND, SIG_THR_RESTART, SEARCH_FOR_DATA_START): Define for
	I386 && HURD.
	(UNIX_LIKE, REGISTER_LIBRARIES_EARLY): Define for HURD.
	* os_dep.c (GC_init_linux_data_start): Handle for HURD.
	* pthread_support.c (GC_thr_init): Add case for GC_GNU_THREADS.
	* specific.c: Use for GC_GNU_THREADS.
	* threadlibs.c: Add case for GC_GNU_THREADS.

From-SVN: r193142
2012-11-04 23:56:02 +01:00
Eric Botcazou 6c46750c83 combine.c: Adjust toplevel comment.
* combine.c: Adjust toplevel comment.
	(make_extraction): Adjust head comment and move up canonicalization.

From-SVN: r193141
2012-11-04 22:28:42 +00:00
Alexandre Oliva e1066560cc re PR debug/54693 (VTA guality issues with loops)
PR debug/54693
* tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
for dropped IV sets.

From-SVN: r193139
2012-11-04 18:44:25 +00:00
Alexandre Oliva 447a704564 re PR debug/54693 (VTA guality issues with loops)
PR debug/54693
* tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
New, rewritten from debug stmt copying code...
(thread_around_empty_block): ... removed from here.
(thread_across_edge): Call propagate_threaded_block_debug_into.

From-SVN: r193138
2012-11-04 18:44:13 +00:00
Dehao Chen 48e3b832bd expr.c (expand_expr_real_1): Change to not using input_location.
2012-11-01  Dehao Chen  <dehao@google.com>

	* expr.c (expand_expr_real_1): Change to not using input_location.

From-SVN: r193137
2012-11-04 17:18:19 +00:00
Janus Weil 049bb74ea2 re PR fortran/55199 ([OOP] Equivalenced variable has wrong type when used with generic member function)
2012-11-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55199
	* primary.c (gfc_match_varspec): Clear typespec if it cannot be
	determined at this point.

2012-11-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55199
	* gfortran.dg/associate_12.f90: New.

From-SVN: r193136
2012-11-04 18:13:16 +01:00
Jan Hubicka f56f2d332c invoke.texi (profile-use): update documentation.
* invoke.texi (profile-use): update documentation.
	* opts.c (common_handle_option): Enable tree-vectorize
	and tree-loop-distribute-patterns.
	* tree-loop-distribution.c (tree_loop_distribution): Skip loops
	optimized for size.
	* config/i386/i386.c (ix86_option_override_internal): Enabe
	prefetch_lop_arrays for profile-use.

From-SVN: r193135
2012-11-04 15:51:18 +00:00
Uros Bizjak da04ea110d ChangeLog: Fix whitespace.
* ChangeLog: Fix whitespace.
	* testsuite/ChangeLog: Ditto.

From-SVN: r193134
2012-11-04 15:03:50 +01:00
GCC Administrator 6ac8c2bec0 Daily bump.
From-SVN: r193132
2012-11-04 00:18:12 +00:00
Corinna Vinschen 443e623843 Fix for building against Mingw64 w32api
* configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
	against Mingw64 w32api.
	* configure: Regenerate.

From-SVN: r193129
2012-11-03 16:56:44 -07:00
H.J. Lu 1873ec0c11 Regenerate top-level configure
* configure: Regenerated.

From-SVN: r193128
2012-11-03 16:45:55 -07:00
Jack Howarth f17e96d093 Add check_effective_target_masm_intel
PR target/54255
	* lib/target-supports.exp (check_effective_target_masm_intel): New
	proc.
	* gcc.target/i386/asm-dialect-1.c: Use dg-require-effective-target
	masm_intel.

From-SVN: r193127
2012-11-03 14:39:06 -07:00
H.J. Lu 2020066973 Add check_effective_target_maybe_x32
* lib/target-supports.exp (check_effective_target_maybe_x32): New
	proc.
	* gcc.target/i386/pr54457.c: Use dg-require-effective-target
	maybe_x32.
	* gcc.target/i386/pr53249.c: Likewise.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>

From-SVN: r193126
2012-11-03 14:36:48 -07:00
Andrew Pinski bd7a7ec8fa octeon-bbit-3.c: Change the second call to abort to call abort1 so that cross jumping does not...
2012-11-03  Andrew Pinski  <apinski@cavium.com>

	 * gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to
	call abort1 so that cross jumping does not happen.

From-SVN: r193125
2012-11-03 12:22:08 -07:00
Robert Mason 2588b26e0e final patch for enabling VxWorks
From-SVN: r193124
2012-11-03 15:53:28 +00:00
Sandra Loosemore 358a3dbce6 extend.texi: Copy-edit to use present tense except when explicitly describing future or past...
2012-11-03  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Copy-edit to use present tense except when
	explicitly describing future or past behavior.

From-SVN: r193123
2012-11-03 11:13:08 -04:00
Oleg Endo 6387ab2cbd sh.c (output_movedouble, [...]): Use multi-line strings for asm.
* config/sh/sh.c (output_movedouble, output_far_jump,
	output_ieee_ccmpeq): Use multi-line strings for asm.
	(find_regmode_weight): Wrap lines.
	(sh_optimize_target_register_callee_saved): Remove commented out
	variable.
	(emit_load_ptr): Remove prototype.

From-SVN: r193120
2012-11-03 12:02:43 +00:00
Oleg Endo 4aaf79c2cf re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)
PR target/51244
	* config/sh/sh.md (*cbranch_t): Allow splitting after reload.
	Allow going beyond current basic block before reload when looking for
	the reg set insn.
	* config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.

	PR target/51244
	* gcc.target/sh/pr51244-18.c: New.
	* gcc.target/sh/pr51244-19.c: New.

From-SVN: r193119
2012-11-03 12:01:01 +00:00
Richard Sandiford 49503de9a9 octeon-exts-7.c (bar): Make sure the extraction of b requires a 64-bit operation followed by a truncation.
gcc/testsuite/
	* gcc.target/mips/octeon-exts-7.c (bar): Make sure the extraction of
	b requires a 64-bit operation followed by a truncation.

From-SVN: r193118
2012-11-03 09:48:36 +00:00
Jan Hubicka cf648142d5 loop-38.c: Correct testcase.
* gcc.dg/tree-ssa/loop-38.c: Correct testcase.

	* tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
	missing sign to unsigned.

From-SVN: r193117
2012-11-03 00:46:52 +00:00
Jonathan Wakely 41ee74878a * doc/html/*: Regenerate.
From-SVN: r193116
2012-11-03 00:22:18 +00:00
GCC Administrator c61277d718 Daily bump.
From-SVN: r193115
2012-11-03 00:18:36 +00:00
Ian Lance Taylor ff95e2ab0b syscall, mksysinfo: Prepare syscall package for 64-bit int.
From-SVN: r193112
2012-11-02 23:39:36 +00:00
Andrew Pinski 5352ea68e3 re PR rtl-optimization/54524 (Spurious add on sum of bitshifts (forward-propagate issue))
2012-11-02  Andrew Pinski  <apinski@cavium.com>

        PR rtl-opt/54524
        * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
        (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not equivalent.

From-SVN: r193111
2012-11-02 16:32:32 -07:00
Ian Lance Taylor 556ea3915a runtime: Fix reflect.Call support for 64-bit ints.
From-SVN: r193110
2012-11-02 23:17:05 +00:00
Gerald Pfeifer 1a34066e2e configure.xml: Adjust GNU libc link.
* doc/xml/manual/configure.xml: Adjust GNU libc link.

	* doc/xml/manual/debug.xml: Adjust GDB documentation link.
	Use GCC instead of gcc.

	* doc/xml/manual/prerequisites.xml: Remove detailed reference
	to binutils downloads.

From-SVN: r193109
2012-11-02 21:59:43 +00:00
Michael Meissner 36834fe3b2 pr48258-2.c: Simplfy the acceptance conditions to verify the reduction code is vectorized.
2012-11-02  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* gcc.target/powerpc/pr48258-2.c: Simplfy the acceptance
	conditions to verify the reduction code is vectorized.

From-SVN: r193107
2012-11-02 20:07:20 +00:00
Lawrence Crowl 24551b9cec Update ChangeLog files as requested for cgraph change to checked down cast.
Index: gcc/cp/ChangeLog

2012-10-31  Lawrence Crowl  <crowl@google.com>

	* decl2.c (var_finalized_p): Rename varpool_node to
	varpool_node_for_decl.
	(maybe_emit_vtables): Likewise.

Index: gcc/ada/ChangeLog

2012-10-31  Lawrence Crowl  <crowl@google.com>

	* gcc-interface/utils.c (gnat_write_global_declarations):
	Rename varpool_node to varpool_node_for_decl.

Index: gcc/lto/ChangeLog

2012-10-31  Lawrence Crowl  <crowl@google.com>

	* lto.c (lto_wpa_write_files): Change symtab checking to a checked
	down-cast via dyn_cast.
	* lto-partition.c (add_symbol_to_partition_1): Likewise.
	(undo_partition): Likewise.
	(lto_balanced_map): Likewise.
	(get_symbol_class): Likewise and via is_a.
	(lto_balanced_map): Change symtab checking to is_a.

From-SVN: r193106
2012-11-02 20:01:02 +00:00
Diego Novillo b436bf3805 Add a new option --clean_build to validate_failures.py
This is useful when you have two builds of the same compiler.  One with
your changes.  The other one, a clean build at the same revision.
Instead of using a manifest file, --clean_build will compare the
results it gather from the patched build against those it gathers from
the clean build.

Usage

$ cd /top/of/patched/gcc/bld
$ validate_failures.py --clean_build=clean/bld-gcc
Source directory: /usr/local/google/home/dnovillo/gcc/trunk
Build target:     x86_64-unknown-linux-gnu
Getting actual results from build directory .
        ./x86_64-unknown-linux-gnu/libstdc++-v3/testsuite/libstdc++.sum
        ./x86_64-unknown-linux-gnu/libffi/testsuite/libffi.sum
        ./x86_64-unknown-linux-gnu/libgomp/testsuite/libgomp.sum
        ./x86_64-unknown-linux-gnu/libgo/libgo.sum
        ./x86_64-unknown-linux-gnu/boehm-gc/testsuite/boehm-gc.sum
        ./x86_64-unknown-linux-gnu/libatomic/testsuite/libatomic.sum
        ./x86_64-unknown-linux-gnu/libmudflap/testsuite/libmudflap.sum
        ./x86_64-unknown-linux-gnu/libitm/testsuite/libitm.sum
        ./x86_64-unknown-linux-gnu/libjava/testsuite/libjava.sum
        ./gcc/testsuite/g++/g++.sum
        ./gcc/testsuite/gnat/gnat.sum
        ./gcc/testsuite/ada/acats/acats.sum
        ./gcc/testsuite/gcc/gcc.sum
        ./gcc/testsuite/gfortran/gfortran.sum
        ./gcc/testsuite/obj-c++/obj-c++.sum
        ./gcc/testsuite/go/go.sum
        ./gcc/testsuite/objc/objc.sum
Getting actual results from build directory clean/bld-gcc
        clean/bld-gcc/x86_64-unknown-linux-gnu/libstdc++-v3/testsuite/libstdc++.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libffi/testsuite/libffi.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libgomp/testsuite/libgomp.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libgo/libgo.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/boehm-gc/testsuite/boehm-gc.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libatomic/testsuite/libatomic.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libmudflap/testsuite/libmudflap.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libitm/testsuite/libitm.sum
        clean/bld-gcc/x86_64-unknown-linux-gnu/libjava/testsuite/libjava.sum
        clean/bld-gcc/gcc/testsuite/g++/g++.sum
        clean/bld-gcc/gcc/testsuite/gnat/gnat.sum
        clean/bld-gcc/gcc/testsuite/ada/acats/acats.sum
        clean/bld-gcc/gcc/testsuite/gcc/gcc.sum
        clean/bld-gcc/gcc/testsuite/gfortran/gfortran.sum
        clean/bld-gcc/gcc/testsuite/obj-c++/obj-c++.sum
        clean/bld-gcc/gcc/testsuite/go/go.sum
        clean/bld-gcc/gcc/testsuite/objc/objc.sum

SUCCESS: No unexpected failures.

2012-11-02  Diego Novillo  <dnovillo@google.com>

	* testsuite-management/validate_failures.py: Add option
	--clean_build to compare test results against another
	build.

From-SVN: r193105
2012-11-02 15:43:25 -04:00