]> gcc.gnu.org Git - gcc.git/log
gcc.git
11 years agocoretypes.h (struct pretty_print_info): Make a coretype.
Steven Bosscher [Fri, 30 Nov 2012 09:46:02 +0000 (09:46 +0000)]
coretypes.h (struct pretty_print_info): Make a coretype.

* coretypes.h (struct pretty_print_info): Make a coretype.
(typedef pretty_printer): Likewise.
* pretty-print.h (typedef pretty_printer): Not needed here anymore.
* pretty-print.c (pp_write_text_as_dot_label_to_stream): New function.
* rtl.h (str_pattern_slim): New prototype.
(print_value, print_pattern, print_insn): Adjust prototypes to take
a pretty-printer rather than a char buffer.
* sched-vis.c (safe_concat): Remove.
(print_exp): Print into a pretty-printer.
(print_value): Likewise.
(print_pattern): Likewise.
(print_insn): Likewise.
(print_insn_with_notes): New static function.
(init_rtl_slim_pretty_print): New function.
(dump_value_slim): Simplify.  Print into and flush a pretty-printer.
(dump_insn_slim): Likewise.
(dump_rtl_slim): Likewise.
(str_pattern_slim): New function.
* haifa-sched.c (model_recompute): Use str_pattern_slim instead of
static buffers.
(model_record_pressures): Likewise.
(schedule_insn): Likewise.
* sel-sched-dump.c (dump_insn_rtx_1): Likewise.
(sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code.
* graph.c: Include pretty-print.h.
(init_graph_slim_pretty_print): New function.
(print_escaped_line): Removed here, and reincarnated as
pp_write_text_as_dot_label_to_stream.
(draw_cfg_node): Print into a pretty printer.
(draw_cfg_node_succ_edges): Likewise.
(print_rtl_graph_with_bb): Likewise.
* Makefile.in (graph.o): Fix dependencies.
(tree-optimize.o, toplev.o, sched-vis.o): Likewise.

From-SVN: r193990

11 years agotsan.c (is_load_of_const_p): Removed.
Jakub Jelinek [Fri, 30 Nov 2012 08:48:02 +0000 (09:48 +0100)]
tsan.c (is_load_of_const_p): Removed.

* tsan.c (is_load_of_const_p): Removed.
(instrument_expr): Use result of get_inner_reference
instead of get_base_address, avoid some unnecessary tests,
use !pt_solution_includes and !may_be_aliased tests to
check whether base might escape current function.

From-SVN: r193989

11 years agogensupport.c (maybe_eval_c_test): Remove not-null check for expr.
Michael Zolotukhin [Fri, 30 Nov 2012 08:43:07 +0000 (08:43 +0000)]
gensupport.c (maybe_eval_c_test): Remove not-null check for expr.

        * gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
        * read-rtl.c (apply_iterators): Initialize condition with "" instead
        of NULL.

From-SVN: r193988

11 years agohost-mingw32.c (va_granularity): Make none-const.
Kai Tietz [Fri, 30 Nov 2012 08:10:34 +0000 (09:10 +0100)]
host-mingw32.c (va_granularity): Make none-const.

        * config/i386/host-mingw32.c (va_granularity): Make none-const.
        (mingw32_gt_pch_alloc_granularity): Return OS' allocation
        granularity.
        (mingw32_gt_pch_use_address): Retry mapping of used address
        as multiple instances might interfer.

From-SVN: r193987

11 years agomingw32.h (SHARED_LIBGCC_SPEC): Synchronize with cygwin-host.
Kai Tietz [Fri, 30 Nov 2012 08:09:02 +0000 (09:09 +0100)]
mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with cygwin-host.

        * config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with
        cygwin-host.

From-SVN: r193986

11 years agocompiler: Fix fieldtrack info for unexported type.
Ian Lance Taylor [Fri, 30 Nov 2012 07:04:47 +0000 (07:04 +0000)]
compiler: Fix fieldtrack info for unexported type.

From-SVN: r193985

11 years agoDaily bump.
GCC Administrator [Fri, 30 Nov 2012 00:18:52 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r193976

11 years agore PR middle-end/55321 (Ada bootstrap failure on armv5tel-linux-gnueabi)
Eric Botcazou [Thu, 29 Nov 2012 22:58:23 +0000 (22:58 +0000)]
re PR middle-end/55321 (Ada bootstrap failure on armv5tel-linux-gnueabi)

PR middle-end/55321
* calls.c (emit_library_call_value_1): Mark as no-nonlocal if no-throw.

From-SVN: r193973

11 years agovalidate_failures.py: Remove pass/fail indicator from result of GetBuildData.
Doug Evans [Thu, 29 Nov 2012 21:40:16 +0000 (21:40 +0000)]
validate_failures.py: Remove pass/fail indicator from result of GetBuildData.

* testsuite-management/validate_failures.py: Remove pass/fail
indicator from result of GetBuildData.

From-SVN: r193968

11 years agovalidate_failures.py: Store options in global variable _OPTIONS.
Doug Evans [Thu, 29 Nov 2012 21:35:07 +0000 (21:35 +0000)]
validate_failures.py: Store options in global variable _OPTIONS.

* testsuite-management/validate_failures.py: Store options in global
variable _OPTIONS.

From-SVN: r193967

11 years agovalidate_failures.py: Rename variable manifest_name to manifest_path everywhere.
Doug Evans [Thu, 29 Nov 2012 21:23:22 +0000 (21:23 +0000)]
validate_failures.py: Rename variable manifest_name to manifest_path everywhere.

* testsuite-management/validate_failures.py: Rename variable
manifest_name to manifest_path everywhere.

From-SVN: r193965

11 years agore PR c++/53137 (g++ segfault)
Jason Merrill [Thu, 29 Nov 2012 20:12:58 +0000 (15:12 -0500)]
re PR c++/53137 (g++ segfault)

PR c++/53137
* pt.c (tsubst_expr) [DECL_EXPR]: Set LAMBDA_EXPR_THIS_CAPTURE here.
(tsubst_copy_and_build) [LAMBDA_EXPR]: And clear it here.
(instantiate_class_template_1): Not here.

From-SVN: r193954

11 years agovalidate_failures.py (CompareBuilds): Pass options.results to GetSumFiles for clean...
Doug Evans [Thu, 29 Nov 2012 19:50:29 +0000 (19:50 +0000)]
validate_failures.py (CompareBuilds): Pass options.results to GetSumFiles for clean build.

* testsuite-management/validate_failures.py (CompareBuilds): Pass
options.results to GetSumFiles for clean build.

From-SVN: r193952

11 years agoDon't use -I for libstdc++-v3 header files
H.J. Lu [Thu, 29 Nov 2012 19:15:43 +0000 (19:15 +0000)]
Don't use -I for libstdc++-v3 header files

* Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
* configure.ac (ACX_NONCANONICAL_TARGET): Removed.
* asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
files.
(AM_MAKEFLAGS): Restore CC and CXX.
* interception/Makefile.am: Likewise.
* sanitizer_common/Makefile.am: Likewise.
* tsan/Makefile.am: Likewise.
* Makefile.in: Regenerated.
* aclocal.m4: Likewise.
* configure: Likewise.
* asan/Makefile.in: Likewise.
* interception/Makefile.in: Likewise.
* sanitizer_common/Makefile.in: Likewise.
* tsan/Makefile.in: Likewise.

From-SVN: r193951

11 years agoRemove bootstrap=true from libsanitizer
H.J. Lu [Thu, 29 Nov 2012 19:13:08 +0000 (19:13 +0000)]
Remove bootstrap=true from libsanitizer

* Makefile.def (target_modules): Remove bootstrap=true and
raw_cxx=true from libsanitizer.
* configure.ac (bootstrap_target_libs): Remove libsanitizer.
* Makefile.in: Regenerated.
* configure: Likewise.

From-SVN: r193950

11 years agoUse explicit -I for libstdc++-v3 header files
H.J. Lu [Thu, 29 Nov 2012 19:01:17 +0000 (19:01 +0000)]
Use explicit -I for libstdc++-v3 header files

* Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
* configure.ac (ACX_NONCANONICAL_TARGET): New.
* asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
files.
(AM_MAKEFLAGS): Remove CC and CXX.
* interception/Makefile.am: Likewise.
* sanitizer_common/Makefile.am: Likewise.
* tsan/Makefile.am: Likewise.
* Makefile.in: Regenerated.
* aclocal.m4: Likewise.
* configure: Likewise.
* asan/Makefile.in: Likewise.
* interception/Makefile.in: Likewise.
* sanitizer_common/Makefile.in: Likewise.
* tsan/Makefile.in: Likewise.

From-SVN: r193949

11 years agore PR middle-end/55456 (454.calculix in SPEC CPU 2006 is miscompiled)
Vladimir Makarov [Thu, 29 Nov 2012 19:00:38 +0000 (19:00 +0000)]
re PR middle-end/55456 (454.calculix in SPEC CPU 2006 is miscompiled)

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

PR middle-end/55456
* lra-int.h (lra_new_regno_start): New external.
* lra.c (lra_new_regno_start): New global.
(lra): Set up lra_new_regno_start.
* lra-constraints.c (match_reload): Sync values only for original
pseudos.

From-SVN: r193948

11 years agore PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for...
Kai Tietz [Thu, 29 Nov 2012 18:40:27 +0000 (19:40 +0100)]
re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)

PR target/53912
* prefix.c (lookup_key): Replace xmalloc/xrealloc
use by XNEWVEC/XRESIZEVEC.

From-SVN: r193946

11 years agocompiler, runtime: Track fields with tag go:"track".
Ian Lance Taylor [Thu, 29 Nov 2012 18:11:17 +0000 (18:11 +0000)]
compiler, runtime: Track fields with tag go:"track".

* go-gcc.cc: Include "output.h".
(global_variable): Add is_unique_section parameter.
(global_variable_set_init): Adjust unique section if necessary.
* Make-lang.in (go/go-gcc.o): Add dependency on output.h.

From-SVN: r193945

11 years agoUpdate Copyright years in gcc/config/epiphany .
Joern Rennecke [Thu, 29 Nov 2012 18:05:53 +0000 (18:05 +0000)]
Update Copyright years in gcc/config/epiphany .

From-SVN: r193944

11 years agore PR target/55073 (Wrong Neon code generation at -O2 caused by -fschedule-insns)
Richard Earnshaw [Thu, 29 Nov 2012 17:51:40 +0000 (17:51 +0000)]
re PR target/55073 (Wrong Neon code generation at -O2 caused by -fschedule-insns)

PR target/55073
* arm/neon.md (neon_vtrn<mode>_internal): Split into expand
and insn patterns.  Re-order insn arguments to tie inputs to
outputs.
(neon_vzip<mode>_internal): Likewise.
(neon_vuzp<mode>_internal): Likewise.

* gcc.target/arm/pr55073.C: New test.

From-SVN: r193943

11 years agoAdd the missing file
H.J. Lu [Thu, 29 Nov 2012 17:00:38 +0000 (09:00 -0800)]
Add the missing file

From-SVN: r193942

11 years agoAdd --with-build-config=bootstrap-asan support
H.J. Lu [Thu, 29 Nov 2012 16:33:35 +0000 (16:33 +0000)]
Add --with-build-config=bootstrap-asan support

* Makefile.def (target_modules): Add bootstrap=true and
raw_cxx=true to libsanitizer.
* configure.ac (bootstrap_target_libs): Add libsanitizer.
* Makefile.in: Regenerated.
* configure: Likewise.

config/

* bootstrap-asan.mk: New file.

From-SVN: r193940

11 years agore PR c++/53094 (constexpr vector subscripting)
Marc Glisse [Thu, 29 Nov 2012 15:40:16 +0000 (16:40 +0100)]
re PR c++/53094 (constexpr vector subscripting)

2012-11-29  Marc Glisse  <marc.glisse@inria.fr>

PR c++/53094
gcc/
* fold-const.c (fold): Replace a CONSTRUCTOR with a VECTOR_CST.
gcc/cp/
* cvt.c (ocp_convert): Call convert_to_vector.
gcc/testsuite/
* g++.dg/ext/vector20.C: New testcase.

From-SVN: r193938

11 years agore PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for...
Kai Tietz [Thu, 29 Nov 2012 15:26:29 +0000 (16:26 +0100)]
re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)

PR target/53912
* class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t.
(dump_vtable): Likewise.

From-SVN: r193934

11 years agotree-ssa-pre.c (get_expr_value_id): Do not add expr to the set of value expressions...
Richard Biener [Thu, 29 Nov 2012 13:53:42 +0000 (13:53 +0000)]
tree-ssa-pre.c (get_expr_value_id): Do not add expr to the set of value expressions here.

2012-11-29  Richard Biener  <rguenther@suse.de>

* tree-ssa-pre.c (get_expr_value_id): Do not add expr
to the set of value expressions here.
(add_to_exp_gen, make_values_for_phi): Fold into ...
(compute_avail): ... here, and avoid useless work.  Dump
avail sets in processing order.
(do_pre): Do not dump avail sets here.

From-SVN: r193933

11 years agore PR target/54974 ([ARM] [thumb] Incorrect placement of constant pools)
Matthew Gretton-Dann [Thu, 29 Nov 2012 10:02:16 +0000 (10:02 +0000)]
re PR target/54974 ([ARM] [thumb] Incorrect placement of constant pools)

PR target/54974
* config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
Thumb pool ranges.
(thumb1_extendhisi2): Reduce Thumb pool range.
(arm_movdi): Likewise.
(thumb1_movdi_insn): Likewise.
(thumb1_movsi_insn): Likewise.
(pic_load_addr_unified): Likewise.
(pic_load_addr_32bit): Likewise.
(pic_load_addr_thumb1): Likewise.
(thumb1_movhf): Likewise.
(arm_movsf_soft_insn): Likewise.
(thumb1_movsf_soft_insn): Likewise.
(movdf_soft_insn): Likewise.
(thumb1_movdf_soft_insn): Likewise.
* config/arm/neon.md (*neon_mov<mode>): Likewise.
(*neon_mov<mode>): Likwise.
* config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
(*thumb2_movhi_insn): Likewise.
(*thumb2_extendqisi_v6): Likewise.
(*thumb2_zero_extendqisi_v6): Likewise.
(*thumb2_zero_extendqisi2_v6): Likewise.
* config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
(*movdi_vfp): Likewise.
(*movdi_vfp_cortexa8): Likewise.
(*thumb2_movsf_vfp): Likewise.
(*thumb2_movdf_vfp): Likewise.

From-SVN: r193930

11 years agore PR target/55445 (Always defined __SEH__ when build from trunk)
Kai Tietz [Thu, 29 Nov 2012 09:39:49 +0000 (10:39 +0100)]
re PR target/55445 (Always defined __SEH__ when build from trunk)

        PR target/55445
        * libsupc++/eh_personaltity.cc (__SEH__): Additional check
        for not being SjLj.

From-SVN: r193929

11 years agore PR target/55445 (Always defined __SEH__ when build from trunk)
Kai Tietz [Thu, 29 Nov 2012 09:36:41 +0000 (10:36 +0100)]
re PR target/55445 (Always defined __SEH__ when build from trunk)

        PR target/55445
        * unwind-c.c (__SEH__): Make sure SjLj isn't active.
        * unwind-generic.h: Likewise.
        * unwind-seh.c: Likewise.

From-SVN: r193928

11 years agore PR target/55171 (incorrect virtual thunk on mingw)
Kai Tietz [Thu, 29 Nov 2012 09:21:17 +0000 (10:21 +0100)]
re PR target/55171 (incorrect virtual thunk on mingw)

        PR target/55171
        * i386.c (get_scratch_register_on_entry): Handle
        thiscall-convention.
        (split_stack_prologue_scratch_regno): Likewise.
        (ix86_static_chain): Likewise.
        (x86_output_mi_thunk): Likewise.

From-SVN: r193926

11 years agore PR fortran/52161 (Internal compiler errors with -fcheck=bounds in coarray tests)
Tobias Burnus [Thu, 29 Nov 2012 08:43:48 +0000 (09:43 +0100)]
re PR fortran/52161 (Internal compiler errors with -fcheck=bounds in coarray tests)

2012-11-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52161
        * trans-stmt.c (gfc_trans_sync): Fix bound checking
        for -fcoarray=lib.

2012-11-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52161
        * coarray/sync_3.f90: Extend test.

From-SVN: r193924

11 years agore PR rtl-optimization/55512 (Various LRA ICEs with inline-asm)
Jakub Jelinek [Thu, 29 Nov 2012 08:32:32 +0000 (09:32 +0100)]
re PR rtl-optimization/55512 (Various LRA ICEs with inline-asm)

PR rtl-optimization/55512
* gcc.target/i386/pr55512-2.c: Remove unnecessary define.
* gcc.target/i386/pr55512-4.c: Likewise.

From-SVN: r193923

11 years agoImprove debug message.
Marek Polacek [Thu, 29 Nov 2012 07:40:44 +0000 (07:40 +0000)]
Improve debug message.

From-SVN: r193922

11 years agoepiphany.h (FIXED_REGISTERS, [...]): Make r40..r43 call-used.
Oleg Raikhman [Thu, 29 Nov 2012 03:05:23 +0000 (03:05 +0000)]
epiphany.h (FIXED_REGISTERS, [...]): Make r40..r43 call-used.

        * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS):
        Make r40..r43 call-used.
        (REG_ALLOC_ORDER): Sort r40..r43 into the call-used registers.

From-SVN: r193921

11 years agoepiphany.c (epiphany_adjust_cost): Use reg_overlap_mentioned_p.
Joern Rennecke [Thu, 29 Nov 2012 02:43:19 +0000 (02:43 +0000)]
epiphany.c (epiphany_adjust_cost): Use reg_overlap_mentioned_p.

        * config/epiphany/epiphany.c (epiphany_adjust_cost): Use
        reg_overlap_mentioned_p.

From-SVN: r193920

11 years ago* config/epiphany/epiphany.md (isub_i+1): Work around generator bug.
Joern Rennecke [Thu, 29 Nov 2012 02:39:20 +0000 (02:39 +0000)]
* config/epiphany/epiphany.md (isub_i+1): Work around generator bug.

From-SVN: r193919

11 years agore PR c++/52654 ([C++11] Warn on overflow in user-defined literals)
Ed Smith-Rowland [Thu, 29 Nov 2012 02:30:44 +0000 (02:30 +0000)]
re PR c++/52654 ([C++11] Warn on overflow in user-defined literals)

gcc/c-family/

2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>

PR c++/52654
* c-common.h (overflow_type): New enum.
(build_userdef_literal): Add overflow_type argument.
(tree_userdef_literal): Add overflow_type.
(USERDEF_LITERAL_OVERFLOW): New access macro.
* c-common.c (build_userdef_literal): Add overflow_type
argument.
* c-lex.c (c_lex_with_flags): Add overflow_type to
build_userdef_literal calls.
(interpret_integer, interpret_float): Add overflow_type argument.

gcc/cp/

2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>

PR c++/52654
* parser.c (cp_parser_string_literal): Add overflow_type arg.
(cp_parser_userdef_numeric_literal): Warn on numeric overflow.

gcc/testsuite/

2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>

PR c++/52654
* g++.dg/cpp0x/udlit-overflow.C: New.
* g++.dg/cpp0x/udlit-overflow-neg.C: New.

From-SVN: r193918

11 years agoepiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
Joern Rennecke [Thu, 29 Nov 2012 02:12:39 +0000 (02:12 +0000)]
epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.

        * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
        (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise.
        * config/epiphany/t-epiphany (SPECS): Set.
        (specs): New rule.

From-SVN: r193917

11 years agoShift get_attr_sched_use_fpu declaration from last change from...
Joern Rennecke [Thu, 29 Nov 2012 01:56:26 +0000 (01:56 +0000)]
Shift get_attr_sched_use_fpu declaration from last change from...

Shift get_attr_sched_use_fpu declaration from last change from
config/epiphany/epiphany.h to config/epiphany/epiphany-protos.h .

From-SVN: r193916

11 years agopredicates.md (addsub_operator): New predicate.
Joern Rennecke [Thu, 29 Nov 2012 01:46:47 +0000 (01:46 +0000)]
predicates.md (addsub_operator): New predicate.

        * config/epiphany/predicates.md (addsub_operator): New predicate.
        * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute.
        * config/epiphany/epiphany.md (isub_i+1): New peephole2.
        * config/epiphany/epiphany.h (get_attr_sched_use_fpu): Declare.

From-SVN: r193915

11 years agoDaily bump.
GCC Administrator [Thu, 29 Nov 2012 00:17:58 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r193914

11 years agore PR debug/36728 ([stack]: gdb doesn't work with stack alignment)
Jakub Jelinek [Wed, 28 Nov 2012 23:01:03 +0000 (00:01 +0100)]
re PR debug/36728 ([stack]: gdb doesn't work with stack alignment)

PR debug/36728
PR debug/55467
PR middle-end/55507
PR bootstrap/55511
* cselib.c (cselib_process_insn): If cselib_preserve_constants,
don't reset table and exit early on volatile insns and setjmp.
Reset table afterwards on setjmp.

* gcc.dg/guality/pr36728-1.c: Include "../nop.h", make sure the asm
are non-empty and add dependency between the first and second asm.
* gcc.dg/guality/pr36728-2.c: Likewise.
* gcc.dg/guality/pr36728-3.c: New test.
* gcc.dg/guality/pr36728-4.c: New test.

From-SVN: r193911

11 years agore PR other/54279 (first stage build with g++ fails with "." as the first component...
Andrew Pinski [Wed, 28 Nov 2012 22:11:29 +0000 (22:11 +0000)]
re PR other/54279 (first stage build with g++ fails with "." as the first component of $PATH)

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * configure.ac (CXX_FOR_TARGET): Change over to use xg++.
        * configure: Regenerate.
        * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Change over to use xg++.
        * Makefile.in: Regenerate.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * Make-lang.in (g++$(exeext)): Rename to
        (xg++$(exeext)): This.
        (g++-cross$(exeext)): Use xg++$(exeext) instead of g++$(exeext).
        (c++.start.encap): Likewise.
        (c++.install-common): Likewise.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * lib/g++.exp (g++_init): Search for xg++ instead of g++ in the build
        directories.
        * lib/obj-c++.exp (obj-c++_init): Likewise.

2012-11-28  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/54279
        * scripts/testsuite_flags.in (--build-cxx): Use xg++ instead of g++.
        * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise.

From-SVN: r193910

11 years agore PR tree-optimization/55052 (vect-widening tests are failing and giving wrong results)
Richard Sandiford [Wed, 28 Nov 2012 21:45:03 +0000 (21:45 +0000)]
re PR tree-optimization/55052 (vect-widening tests are failing and giving wrong results)

gcc/
PR rtl-optimization/55052
* simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.

From-SVN: r193909

11 years agore PR fortran/52161 (Internal compiler errors with -fcheck=bounds in coarray tests)
Tobias Burnus [Wed, 28 Nov 2012 21:42:17 +0000 (22:42 +0100)]
re PR fortran/52161 (Internal compiler errors with -fcheck=bounds in coarray tests)

2012-11-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52161
        * trans-stmt.c (gfc_trans_sync): Fix bound checking.

2012-11-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52161
        * coarray/sync_3.f90: New.

From-SVN: r193908

11 years agore PR libgcc/48076 (Unsafe double checked locking in __emutls_get_address)
Richard Henderson [Wed, 28 Nov 2012 21:01:26 +0000 (13:01 -0800)]
re PR libgcc/48076 (Unsafe double checked locking in __emutls_get_address)

PR libgcc/48076
        * emutls.c (__emutls_get_address): Avoid race condition between
        obj->loc.offset read and emutls_key initialization.

From-SVN: r193907

11 years agotarget.def (use_blocks_for_decl_p): New hook.
David Edelsohn [Wed, 28 Nov 2012 20:22:58 +0000 (20:22 +0000)]
target.def (use_blocks_for_decl_p): New hook.

        * target.def (use_blocks_for_decl_p): New hook.
        * varasm.c (use_blocks_for_decl_p): Apply hook as final condition.
        * doc/tm.texi.in (USE_BLOCKS_FOR_DECL_P): New description.
        * doc/tm.texi: Regenerated.

From-SVN: r193906

11 years agore PR middle-end/55438 (tmpdir-gcc.dg-struct-layout-1/t001 - t028, gcc.c-torture...
Richard Sandiford [Wed, 28 Nov 2012 20:13:22 +0000 (20:13 +0000)]
re PR middle-end/55438 (tmpdir-gcc.dg-struct-layout-1/t001 - t028,  gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE)

gcc/
PR middle-end/55438
* expmed.c (simple_mem_bitfield_p): New function, extracted from
store_bit_field_1 and extract_bit_field_1.  Use GET_MODE_ALIGNMENT
rather than bitsize when checking the alignment.
(store_bit_field_1, extract_bit_field_1): Call it.
* stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
Don't limit ALIGN_.  Assume that memory is mapped in chunks of at
least word size, regardless of BIGGEST_ALIGNMENT.
(bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather
than unit when checking the alignment.
(get_best_mode): Use GET_MODE_ALIGNMENT.

From-SVN: r193905

11 years agovalidate_failures.py: Use <target_alias> instead of <target>.
Doug Evans [Wed, 28 Nov 2012 19:25:24 +0000 (19:25 +0000)]
validate_failures.py: Use <target_alias> instead of <target>.

* testsuite-management/validate_failures.py: Use <target_alias> instead
of <target>.  Minor whitespace changes.

From-SVN: r193904

11 years agovalidate_failures.py: Record ordinal with TestResult.
Doug Evans [Wed, 28 Nov 2012 19:23:31 +0000 (19:23 +0000)]
validate_failures.py: Record ordinal with TestResult.

* testsuite-management/validate_failures.py: Record ordinal with
TestResult.

From-SVN: r193903

11 years agopr55458.c: Require ia32 target instead of ilp32.
Uros Bizjak [Wed, 28 Nov 2012 18:06:34 +0000 (19:06 +0100)]
pr55458.c: Require ia32 target instead of ilp32.

* gcc.target/i386/pr55458.c: Require ia32 target instead of ilp32.

From-SVN: r193902

11 years agore PR rtl-optimization/55512 (Various LRA ICEs with inline-asm)
Vladimir Makarov [Wed, 28 Nov 2012 17:42:39 +0000 (17:42 +0000)]
re PR rtl-optimization/55512 (Various LRA ICEs with inline-asm)

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

PR rtl-optimization/55512
* lra-assigns.c (assign_by_spills): Assigned arbitrary hard regs
to failed reload pseudos instead of changing asm pattern.
* lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Increase
value.

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

PR rtl-optimization/55512
* gcc.target/i386/pr55512-[1234].c: New tests.

From-SVN: r193901

11 years agore PR other/55358 (Valgrind errors)
Markus Trippelsdorf [Wed, 28 Nov 2012 16:49:35 +0000 (16:49 +0000)]
re PR other/55358 (Valgrind errors)

PR other/55358
* dse.c (rest_of_handle_dse): Remove superfluous clearing.

From-SVN: r193900

11 years agore PR testsuite/55505 (gcc.c-torture/execute/921202-1.c execution failures with ...
Jakub Jelinek [Wed, 28 Nov 2012 16:28:57 +0000 (17:28 +0100)]
re PR testsuite/55505 (gcc.c-torture/execute/921202-1.c execution failures with -fsanitize=address)

PR testsuite/55505
* gcc.c-torture/execute/921202-1.c: Increase size of dx and dy
arrays.

From-SVN: r193899

11 years agore PR testsuite/55504 (gcc.c-torture/execute/20071018-1.c execution failures with...
Jakub Jelinek [Wed, 28 Nov 2012 16:28:06 +0000 (17:28 +0100)]
re PR testsuite/55504 (gcc.c-torture/execute/20071018-1.c execution failures with -fsanitize=address)

PR testsuite/55504
* gcc.c-torture/execute/20071018-1.c (foo): Add noinline/noclone
attributes.  Avoid clobbering memory before malloced chunk.
(main): Pass 1 instead of 0 as argument.

From-SVN: r193898

11 years ago* config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern.
Joern Rennecke [Wed, 28 Nov 2012 16:11:47 +0000 (16:11 +0000)]
* config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern.

From-SVN: r193897

11 years agoepiphany.opt (mfp-iarith): New option.
Joern Rennecke [Wed, 28 Nov 2012 16:10:18 +0000 (16:10 +0000)]
epiphany.opt (mfp-iarith): New option.

        * config/epiphany/epiphany.opt (mfp-iarith): New option.
        * config/epiphany/epiphgany.md (addsi3): Check for TARGET_FP_IARITH.
        (subsi3, iadd, isub): Rename to ..
        (subsi3_i, iadd_i, isub_i): .. This.
        (subsi3, iadd, isub): New define_expands.

        * config/epiphany/epiphgany.md (attribute type): Add v2fp.
        (attribute fp_mode): Test for v2fp.
        (<float_operation:insn_opname>v2sf3_i): Change type to v2fp.
        * config/epiphany/epiphgany-sched.md (fp_arith_nearest, fp_arith_trunc):
        Combine to ..
        (fp_arith): .. this.
        (v2fp_arith): New insn reservation.

From-SVN: r193896

11 years agoAdjust last change to plus_constant change.
Joern Rennecke [Wed, 28 Nov 2012 16:03:00 +0000 (16:03 +0000)]
Adjust last change to plus_constant change.

From-SVN: r193895

11 years agopredicates.md (move_double_src_operand): Check that misaligned addresses are offsettable.
Joern Rennecke [Wed, 28 Nov 2012 15:36:13 +0000 (15:36 +0000)]
predicates.md (move_double_src_operand): Check that misaligned addresses are offsettable.

        * config/epiphany/predicates.md (move_double_src_operand):
        Check that misaligned addresses are offsettable.
        (move_dest_operand): Likewise.
        * config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a
        misaligned stack address to reg+index.

From-SVN: r193894

11 years agoepiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
Oleg Raikhman [Wed, 28 Nov 2012 13:56:28 +0000 (13:56 +0000)]
epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.

2012-11-28  Oleg Raikhman  <oleg@adapteva.com>

        * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.

From-SVN: r193892

11 years agoepiphany.opt (-may-round-for-trunc): New option.
Joern Rennecke [Wed, 28 Nov 2012 13:28:57 +0000 (13:28 +0000)]
epiphany.opt (-may-round-for-trunc): New option.

        * config/epiphany/epiphany.opt (-may-round-for-trunc): New option.
        * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it into account.

From-SVN: r193891

11 years agoepiphany.md (mov<mode>, [...]): Check for misaligned memory operands.
Joern Rennecke [Wed, 28 Nov 2012 13:21:59 +0000 (13:21 +0000)]
epiphany.md (mov<mode>, [...]): Check for misaligned memory operands.

        * config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
        for misaligned memory operands.
        * config/epiphany/predicates.md (misaligned_operand): New predicate.

From-SVN: r193890

11 years agoepiphany.h (HARD_REGNO_RENAME_OK): Define.
Joern Rennecke [Wed, 28 Nov 2012 13:18:25 +0000 (13:18 +0000)]
epiphany.h (HARD_REGNO_RENAME_OK): Define.

        * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define.
        * config/epiphany/epiphany-protos.h (epiphany_regno_rename_ok): Declare.
        * config/epiphany/epiphany.c (epiphany_regno_rename_ok): New function.

From-SVN: r193889

11 years agore PR tree-optimization/54547 (FAIL: gcc.dg/tree-ssa/pr37508.c scan-tree-dump-times...
Richard Biener [Wed, 28 Nov 2012 12:18:39 +0000 (12:18 +0000)]
re PR tree-optimization/54547 (FAIL: gcc.dg/tree-ssa/pr37508.c scan-tree-dump-times vrp1 "Folding" 3)

2012-11-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/54547
* tree-vrp.c (set_and_canonicalize_value_range): Handle
1-bit anti-ranges explicitely.
(extract_range_from_assert): Properly canonicalize all
built anti-ranges.

From-SVN: r193888

11 years agoFix date and trailing space in previous commit.
Eric Botcazou [Wed, 28 Nov 2012 10:58:11 +0000 (10:58 +0000)]
Fix date and trailing space in previous commit.

From-SVN: r193887

11 years agostor-layout.c (layout_type): Do not clear TREE_OVERFLOW on overflowed zeroes, except...
Eric Botcazou [Wed, 28 Nov 2012 10:51:19 +0000 (10:51 +0000)]
stor-layout.c (layout_type): Do not clear TREE_OVERFLOW on overflowed zeroes, except in one specific case.

* stor-layout.c (layout_type) <ARRAY_TYPE>: Do not clear TREE_OVERFLOW
on overflowed zeroes, except in one specific case.
ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
valid_constant_size_p to detect too large objects.
<E_Subprogram_Type>: Likewise for too large return types.
(allocatable_size_p): Call valid_constant_size_p in the fixed case.
(annotate_value) <INTEGER_CST>: Simplify.
<BIT_AND_EXPR>: Deal with negative values here.
* gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
valid_constant_size_p to detect too large objects on the LHS.
* gcc-interface/misc.c (default_pass_by_ref): Likewise for large types.
And use TYPE_SIZE_UNIT throughout.
(must_pass_by_ref): Likewise.
* gcc-interface/utils.c (max_size) <tcc_unary>: Split from common case.
<tcc_binary>: Likewise.  Call size_binop instead of fold_build2.
<tcc_expression>: Simplify.
* gcc-interface/utils2.c (build_allocator): Use valid_constant_size_p
to detect too large allocations.

From-SVN: r193886

11 years agore PR c++/55497 (Local array (char[]) initialized with a size taken from a static...
Paolo Carlini [Wed, 28 Nov 2012 10:49:39 +0000 (10:49 +0000)]
re PR c++/55497 (Local array (char[]) initialized with a size taken from a static variable creates an ICE)

2012-11-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55497
* g++.dg/init/pr55497.C: New.

From-SVN: r193885

11 years agore PR middle-end/55266 (vector expansion: 24 movs for 4 adds)
Marc Glisse [Wed, 28 Nov 2012 10:11:27 +0000 (11:11 +0100)]
re PR middle-end/55266 (vector expansion: 24 movs for 4 adds)

2012-11-28  Marc Glisse  <marc.glisse@inria.fr>

PR middle-end/55266
* fold-const.c (fold_ternary_loc) [BIT_FIELD_REF]: Handle
CONSTRUCTOR with vector elements.
* tree-ssa-propagate.c (valid_gimple_rhs_p): Handle CONSTRUCTOR
and BIT_FIELD_REF.

From-SVN: r193884

11 years agore PR testsuite/55327 (FAIL: gcc.dg/vect/slp-perm-8.c scan-tree-dump-times vect ...
Richard Biener [Wed, 28 Nov 2012 09:32:30 +0000 (09:32 +0000)]
re PR testsuite/55327 (FAIL: gcc.dg/vect/slp-perm-8.c scan-tree-dump-times vect "vectorized 1 loops" 2)

2012-11-28  Richard Biener  <rguenther@suse.de>

PR testsuite/55327
* gcc.dg/vect/slp-perm-8.c: Mark worker as noinline.
* gcc.dg/vect/slp-perm-9.c: Likewise.

From-SVN: r193883

11 years agore PR c/35634 (operand of pre-/postin-/decrement not promoted)
Richard Biener [Wed, 28 Nov 2012 09:27:10 +0000 (09:27 +0000)]
re PR c/35634 (operand of pre-/postin-/decrement not promoted)

2012-11-28  Richard Biener  <rguenther@suse.de>

PR c/35634
* gimple.h (gimplify_self_mod_expr): Declare.
* gimplify.c (gimplify_self_mod_expr): Export.  Take a different
type for performing the arithmetic in.
(gimplify_expr): Adjust.
* tree-vect-loop-manip.c (vect_can_advance_ivs_p): Strip
sign conversions we can re-apply after adjusting the IV.

c-family/
* c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
here and use a type with proper overflow behavior for types that would
need to be promoted for the arithmetic.

* gcc.dg/torture/pr35634.c: New testcase.
* g++.dg/torture/pr35634.C: Likewise.
* gcc.dg/vect/pr18536.c: Mark worker function noinline.

From-SVN: r193882

11 years agofunctional (_Mem_fn): Constrain function call operators to avoid ambiguities.
Jonathan Wakely [Wed, 28 Nov 2012 01:42:25 +0000 (01:42 +0000)]
functional (_Mem_fn): Constrain function call operators to avoid ambiguities.

* include/std/functional (_Mem_fn): Constrain function call operators
to avoid ambiguities. Use perfect forwarding.
* testsuite/20_util/function_objects/mem_fn/55463.cc: Additional
tests.
* testsuite/20_util/function_objects/mem_fn/forward.cc: New.
* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.

From-SVN: r193879

11 years agoDaily bump.
GCC Administrator [Wed, 28 Nov 2012 00:18:18 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r193878

11 years agore PR rtl-optimization/55006 (aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops...
Steven Bosscher [Wed, 28 Nov 2012 00:17:34 +0000 (00:17 +0000)]
re PR rtl-optimization/55006 (aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526)

PR rtl-optimization/55006
* loop-unroll.c (struct iv_to_split): Add new 'orig_var' member.
(analyze_iv_to_split_insn): Record it.
(maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL
notes that refer to IVs that are being split.
(apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv.  Twice.
Use FOR_BB_INSNS_SAFE.

From-SVN: r193876

11 years agocompiler: Implement //go:nointerface comments.
Ian Lance Taylor [Wed, 28 Nov 2012 00:08:16 +0000 (00:08 +0000)]
compiler: Implement //go:nointerface comments.

From-SVN: r193874

11 years agortl.h (debug_bb_n_slim, [...]): Remove prototypes.
Steven Bosscher [Tue, 27 Nov 2012 22:26:15 +0000 (22:26 +0000)]
rtl.h (debug_bb_n_slim, [...]): Remove prototypes.

* rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove
prototypes.
(debug_rtl_slim): Rename to dump_rtl_slim.
(print_value_slim): Rename to dump_value_slim.
* ira.c (ira_update_equiv_info_by_shuffle_insn): Update
print_value_slim user.
* lra.c (lra_process_new_insns): Use dump_insn_slim to dump single
insns.  Use dump_rtl_slim for insn chains.
* lra-constraints.c (get_reload_reg): Update print_value_slim user.
(process_addr_reg): Likewise.
(equiv_address_substitution): Likewise.
(inherit_reload_reg): Likewise.  Use dump_insn_slim to dump single
insns.
(check_and_process_move): Likewise.
(lra_constraints): Likewise.
(split_reg): Likewise.
(update_ebb_live_info): Likewise.
(remove_inheritance_pseudos): Likewise.
* sched-vis.c: Don't include sched-int.h.
Remove #ifdef INSN_SCHEDULING tests.
(print_value_slim): Rename to dump_value_slim.  Simplify a few
cases using GET_RTX_NAME.
(print_pattern): Do not handle UNSPEC and UNSPECV here, explain why.
(print_insn): Reorganize code to be independent of INSN_SCHEDULING.
Always print CALL_INSN patterns.  Harmonize INSN_UID dumping template.
Handle NOTE_INSN_CALL_ARG_LOCATION.
(dump_rtl_slim): Copied from debug_rtl_slim.
(debug_rtl_slim): Wrapper around dump_rtl_slim to stderr.
* haifa-sched.c (schedule_insn): Update print_insn user.

From-SVN: r193873

11 years agore PR fortran/55476 (Bogus warning "Pointer might outlive the pointer target")
Tobias Burnus [Tue, 27 Nov 2012 22:20:44 +0000 (23:20 +0100)]
re PR fortran/55476 (Bogus warning "Pointer might outlive the pointer target")

2012-11-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/55476
        * expr.c (gfc_check_pointer_assign): Fix check
        pointer-might-outlive-target check for host_assoc.

2012-11-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/55476
        * gfortran.dg/warn_target_lifetime_3.f90: New.

From-SVN: r193872

11 years agore PR rtl-optimization/55458 (ICE: in assign_by_spills, at lra-assigns.c:1212 with...
Vladimir Makarov [Tue, 27 Nov 2012 22:01:14 +0000 (22:01 +0000)]
re PR rtl-optimization/55458 (ICE: in assign_by_spills, at lra-assigns.c:1212 with -fPIC -m32 and simple asm volatile)

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

PR rtl-optimization/55458
* lra-assigns.c: Include rtl-error.h.
(assign_by_spills): Report about asm inpossible constraints.
* Makefile.in (lra-assigns.c): Add $(RTL_ERROR_H).

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

PR rtl-optimization/55458
* gcc.target/i386/pr55458.c: New test.

From-SVN: r193871

11 years agoFix incorrect @headername Doxygen macro invocation.
Ollie Wild [Tue, 27 Nov 2012 20:52:02 +0000 (20:52 +0000)]
Fix incorrect @headername Doxygen macro invocation.

Format is @headername{hdr1,hdr2} not @headername{hdr1 or hdr2}.

2012-11-27  Ollie Wild  <aaw@google.com>

* include/bits/stl_tree.h (@headername): Fix incorrect Doxygen macro
invocation.

From-SVN: r193869

11 years agore PR rtl-optimization/55489 (insane PRE memory usage with PIE (translate.i))
Paolo Bonzini [Tue, 27 Nov 2012 20:29:15 +0000 (20:29 +0000)]
re PR rtl-optimization/55489 (insane PRE memory usage with PIE (translate.i))

2012-11-27  Paolo Bonzini  <pbonzini@redhat.com>

PR rtl-optimization/55489
* gcse.c (compute_transp): Precompute a canonical version
of XEXP (x, 0), and pass it to canon_true_dependence.

* alias.c (init_alias_analysis): Fix allocation of reg_known_value.

From-SVN: r193868

11 years agoFix bootstrap failure with --enable-gather-detailed-mem-stats.
Diego Novillo [Tue, 27 Nov 2012 18:20:30 +0000 (13:20 -0500)]
Fix bootstrap failure with --enable-gather-detailed-mem-stats.

This patch restores bootstrap when detailed memory stats are enabled.
No functional changes.

Tested on x86_64.  Committed to trunk.

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

* vec.h: Replace 'class vec' with 'struct vec' everywhere.
(ggc_internal_cleared_alloc_stat): Remove.
(va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call.
(va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call.
(vec<T, A, vl_embed>::copy): Replace ALONE_MEM_STAT_DECL with
ALONE_CXX_MEM_STAT_INFO.
(vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO.
(vec_safe_reserve_exact): Likewise.
(vec_alloc): Likewise.
(vec_safe_grow): Likewise.
(vec_safe_grow_cleared): Likewise.
(vec_safe_push): Likewise.
(vec_safe_insert): Likewise.
(vec_safe_splice): Likewise.
(vec_alloc): Likewise.
(vec_check_alloc): Likewise.

From-SVN: r193864

11 years agotree-cfg.c (verify_gimple_comparison): Verify that vector comparison returns a vector.
Marc Glisse [Tue, 27 Nov 2012 18:01:45 +0000 (19:01 +0100)]
tree-cfg.c (verify_gimple_comparison): Verify that vector comparison returns a vector.

2012-11-27  Marc Glisse  <marc.glisse@inria.fr>

* tree-cfg.c (verify_gimple_comparison): Verify that vector
comparison returns a vector.

From-SVN: r193862

11 years agocollect2.c (main): Call find_file_set_debug.
Meador Inge [Tue, 27 Nov 2012 16:55:47 +0000 (16:55 +0000)]
collect2.c (main): Call find_file_set_debug.

2012-11-27  Meador Inge  <meadori@codesourcery.com>

* collect2.c (main): Call find_file_set_debug.
(find_a_find, add_prefix, prefix_from_env, prefix_from_string):
Factor out into ...
* file-find.c (New file): ... here and ...
* file-find.h (New file): ... here.
* gcc-ar.c (standard_exec_prefix): New variable.
(standard_libexec_prefix): Ditto.
(tooldir_base_prefix) Ditto.
(self_exec_prefix): Ditto.
(self_libexec_prefix): Ditto.
(self_tooldir_prefix): Ditto.
(target_version): Ditto.
(path): Ditto.
(target_path): Ditto.
(setup_prefixes): New function.
(main): Rework how wrapped programs are found.
* Makefile.in (OBJS-libcommon-target): Add file-find.o.
(AR_OBJS): New variable.
(gcc-ar$(exeext)): Add dependency on $(AR_OBJS).
(gcc-nm$(exeext)): Ditto.
(gcc-ranlib(exeext)): Ditto.
(COLLECT2_OBJS): Add file-find.o.
(collect2.o): Add file-find.h prerequisite.
(file-find.o): New rule.

From-SVN: r193859

11 years agoipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
Dehao Chen [Tue, 27 Nov 2012 16:16:10 +0000 (16:16 +0000)]
ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.

2010-11-27  Dehao Chen  <dehao@google.com>

* ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
* emit-rtl.c (last_location): Remove unused variable.

From-SVN: r193857

11 years agoi386.md (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove unneeded temporary.
Uros Bizjak [Tue, 27 Nov 2012 16:01:09 +0000 (17:01 +0100)]
i386.md (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove unneeded temporary.

* config/i386/i386.md
(*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove
unneeded temporary.

From-SVN: r193856

11 years agocfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
Dehao Chen [Tue, 27 Nov 2012 14:39:33 +0000 (14:39 +0000)]
cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.

2012-11-27  Dehao Chen  <dehao@google.com>

* cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
(cfg_layout_merge_blocks): Likewise.

From-SVN: r193852

11 years agopasses.c (init_optimization_passes): Add pass_asan and pass_tsan to -Og optimization...
Jakub Jelinek [Tue, 27 Nov 2012 14:14:02 +0000 (15:14 +0100)]
passes.c (init_optimization_passes): Add pass_asan and pass_tsan to -Og optimization passes.

* passes.c (init_optimization_passes): Add pass_asan and pass_tsan
to -Og optimization passes.

From-SVN: r193850

11 years ago[libsanitizer] merge from upstream r168699
Kostya Serebryany [Tue, 27 Nov 2012 14:01:46 +0000 (14:01 +0000)]
[libsanitizer] merge from upstream r168699

From-SVN: r193849

11 years agoHandle OPT_SPECIAL_XXX in LTO
H.J. Lu [Tue, 27 Nov 2012 13:56:31 +0000 (13:56 +0000)]
Handle OPT_SPECIAL_XXX in LTO

PR lto/54795
* lto-opts.c (lto_write_options): Also handle
OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
OPT_SPECIAL_program_name.

PR lto/55474
* lto-wrapper.c (merge_and_complain): Handle
OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.

Co-Authored-By: Markus Trippelsdorf <markus@trippelsdorf.de>
From-SVN: r193848

11 years agore PR middle-end/52650 (FAIL: gcc.dg/torture/pr51106-2.c * (internal compiler error))
Jakub Jelinek [Tue, 27 Nov 2012 13:38:32 +0000 (14:38 +0100)]
re PR middle-end/52650 (FAIL: gcc.dg/torture/pr51106-2.c  *  (internal compiler error))

PR middle-end/52650
* function.c (instantiate_virtual_regs_in_insn): Don't delete invalid
asm gotos, instead just clear their template and inputs.

From-SVN: r193846

11 years agore PR tree-optimization/55110 (Internal compiler error in vectorizable_reduction...
Jakub Jelinek [Tue, 27 Nov 2012 13:34:11 +0000 (14:34 +0100)]
re PR tree-optimization/55110 (Internal compiler error in vectorizable_reduction, at tree-vect-loop.c:4633)

PR tree-optimization/55110
* tree-vect-loop.c (vectorizable_reduction): Don't assert
that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.

* gcc.dg/pr55110.c: New test.

From-SVN: r193845

11 years agogimple-fold.c (fold_stmt_1): Remove unnecessary code.
Richard Biener [Tue, 27 Nov 2012 12:06:52 +0000 (12:06 +0000)]
gimple-fold.c (fold_stmt_1): Remove unnecessary code.

2012-11-27  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (fold_stmt_1): Remove unnecessary code.

From-SVN: r193844

11 years agoconfigure.ac: Disable libsanitizer if we're not building C++.
Siddhesh Poyarekar [Tue, 27 Nov 2012 10:52:54 +0000 (10:52 +0000)]
configure.ac: Disable libsanitizer if we're not building C++.

* configure.ac: Disable libsanitizer if we're not building C++.
* configure: Regenerate.

From-SVN: r193842

11 years agoarm.c (thumb1_reorg): New function.
Bin Cheng [Tue, 27 Nov 2012 09:55:33 +0000 (09:55 +0000)]
arm.c (thumb1_reorg): New function.

* config/arm/arm.c (thumb1_reorg): New function.
(arm_reorg): Call thumb1_reorg.
(thumb1_final_prescan_insn): Record src operand in thumb1_cc_op0.
* config/arm/arm.md : Remove peephole2 patterns which rewrite move
into subtract of ZERO.

From-SVN: r193841

11 years agore PR middle-end/55331 (ICE: SIGSEGV in substitute_and_fold with -O2 -fno-tree-fre)
Richard Biener [Tue, 27 Nov 2012 09:20:02 +0000 (09:20 +0000)]
re PR middle-end/55331 (ICE: SIGSEGV in substitute_and_fold with -O2 -fno-tree-fre)

2012-11-27  Richard Biener  <rguenther@suse.de>

PR middle-end/55331
* gimple-fold.c (gimplify_and_update_call_from_tree): Replace
stmt with a NOP instead of removing it.

* g++.dg/opt/pr55331.C: New testcase.

From-SVN: r193839

11 years agoDaily bump.
GCC Administrator [Tue, 27 Nov 2012 00:18:34 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r193836

11 years agoloop-invariant.c (check_invariant_table_size): Take sizeof of the right type.
Steven Bosscher [Tue, 27 Nov 2012 00:17:25 +0000 (00:17 +0000)]
loop-invariant.c (check_invariant_table_size): Take sizeof of the right type.

* loop-invariant.c (check_invariant_table_size): Take sizeof of
the right type.

* reorg.c (resource_conflicts_p): Use hard_reg_set_intersect_p.
(rare_destination): Remove.
(mostly_true_jump): Simplify.  Base result on REG_BR_PROP notes if
available, otherwise assume branches are not taken.
(fill_eager_delay_slots): Update mostly_true_jump call.
(relax_delay_slots): Likewise.

From-SVN: r193834

11 years agofunctional (__is_socketlike): Change from class template to alias template.
Jonathan Wakely [Mon, 26 Nov 2012 23:53:36 +0000 (23:53 +0000)]
functional (__is_socketlike): Change from class template to alias template.

* include/std/functional (__is_socketlike): Change from class
template to alias template.

From-SVN: r193832

11 years agore PR libstdc++/55463 (Result of std::mem_fn doesn't accept rvalues)
Jonathan Wakely [Mon, 26 Nov 2012 23:53:29 +0000 (23:53 +0000)]
re PR libstdc++/55463 (Result of std::mem_fn doesn't accept rvalues)

PR libstdc++/55463
* include/std/functional (_Mem_fn): Handle rvalue objects. Add
noexcept-specifications.
* testsuite/20_util/function_objects/mem_fn/55463.cc: New.
* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.

From-SVN: r193831

11 years ago* gcc.dg/20050811-2.c: Change -dv option to -graph option.
Steven Bosscher [Mon, 26 Nov 2012 22:58:41 +0000 (22:58 +0000)]
* gcc.dg/20050811-2.c: Change -dv option to -graph option.

From-SVN: r193830

11 years ago* reorg.c (redundant_insn): Do not handle DEBUG_INSNs.
Eric Botcazou [Mon, 26 Nov 2012 21:58:09 +0000 (21:58 +0000)]
* reorg.c (redundant_insn): Do not handle DEBUG_INSNs.

From-SVN: r193829

This page took 0.098804 seconds and 5 git commands to generate.