platform/upstream/linaro-gcc.git
11 years ago PR target/54974
mgretton [Thu, 29 Nov 2012 10:02:16 +0000 (10:02 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193930 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/55445
ktietz [Thu, 29 Nov 2012 09:39:49 +0000 (09:39 +0000)]
    PR target/55445
        * libsupc++/eh_personaltity.cc (__SEH__): Additional check
        for not being SjLj.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193929 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/55445
ktietz [Thu, 29 Nov 2012 09:36:41 +0000 (09:36 +0000)]
    PR target/55445
        * unwind-c.c (__SEH__): Make sure SjLj isn't active.
        * unwind-generic.h: Likewise.
        * unwind-seh.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193928 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/55171
ktietz [Thu, 29 Nov 2012 09:21:17 +0000 (09:21 +0000)]
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193926 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 29 Nov 2012 08:43:48 +0000 (08:43 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193924 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR rtl-optimization/55512
jakub [Thu, 29 Nov 2012 08:32:32 +0000 (08:32 +0000)]
PR rtl-optimization/55512
* gcc.target/i386/pr55512-2.c: Remove unnecessary define.
* gcc.target/i386/pr55512-4.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193923 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193922 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS):
amylaar [Thu, 29 Nov 2012 03:05:23 +0000 (03:05 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193921 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.c (epiphany_adjust_cost): Use
amylaar [Thu, 29 Nov 2012 02:43:19 +0000 (02:43 +0000)]
    * config/epiphany/epiphany.c (epiphany_adjust_cost): Use
        reg_overlap_mentioned_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193920 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193919 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/c-family/
emsr [Thu, 29 Nov 2012 02:30:44 +0000 (02:30 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193918 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
amylaar [Thu, 29 Nov 2012 02:12:39 +0000 (02:12 +0000)]
    * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
        (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise.
        * config/epiphany/t-epiphany (SPECS): Set.
        (specs): New rule.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193917 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoShift get_attr_sched_use_fpu declaration from last change from
amylaar [Thu, 29 Nov 2012 01:56:26 +0000 (01:56 +0000)]
Shift get_attr_sched_use_fpu declaration from last change from
config/epiphany/epiphany.h to config/epiphany/epiphany-protos.h .

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193916 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/predicates.md (addsub_operator): New predicate.
amylaar [Thu, 29 Nov 2012 01:46:47 +0000 (01:46 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193915 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193914 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/36728
jakub [Wed, 28 Nov 2012 23:01:03 +0000 (23:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193911 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Andrew Pinski <apinski@cavium.com>
pinskia [Wed, 28 Nov 2012 22:11:29 +0000 (22:11 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193910 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
rsandifo [Wed, 28 Nov 2012 21:45:03 +0000 (21:45 +0000)]
gcc/
PR rtl-optimization/55052
* simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193909 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 28 Nov 2012 21:42:17 +0000 (21:42 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193908 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR libgcc/48076
rth [Wed, 28 Nov 2012 21:01:26 +0000 (21:01 +0000)]
PR libgcc/48076
        * emutls.c (__emutls_get_address): Avoid race condition between
        obj->loc.offset read and emutls_key initialization.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193907 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * target.def (use_blocks_for_decl_p): New hook.
dje [Wed, 28 Nov 2012 20:22:58 +0000 (20:22 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193906 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
rsandifo [Wed, 28 Nov 2012 20:13:22 +0000 (20:13 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193905 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * testsuite-management/validate_failures.py: Use <target_alias> instead
devans [Wed, 28 Nov 2012 19:25:24 +0000 (19:25 +0000)]
* testsuite-management/validate_failures.py: Use <target_alias> instead
of <target>.  Minor whitespace changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193904 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * testsuite-management/validate_failures.py: Record ordinal with
devans [Wed, 28 Nov 2012 19:23:31 +0000 (19:23 +0000)]
* testsuite-management/validate_failures.py: Record ordinal with
TestResult.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193903 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/i386/pr55458.c: Require ia32 target instead of ilp32.
uros [Wed, 28 Nov 2012 18:06:34 +0000 (18:06 +0000)]
* gcc.target/i386/pr55458.c: Require ia32 target instead of ilp32.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193902 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Wed, 28 Nov 2012 17:42:39 +0000 (17:42 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193901 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR other/55358
jakub [Wed, 28 Nov 2012 16:49:35 +0000 (16:49 +0000)]
PR other/55358
* dse.c (rest_of_handle_dse): Remove superfluous clearing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193900 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/55505
jakub [Wed, 28 Nov 2012 16:28:57 +0000 (16:28 +0000)]
PR testsuite/55505
* gcc.c-torture/execute/921202-1.c: Increase size of dx and dy
arrays.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193899 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/55504
jakub [Wed, 28 Nov 2012 16:28:06 +0000 (16:28 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193898 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193897 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.opt (mfp-iarith): New option.
amylaar [Wed, 28 Nov 2012 16:10:18 +0000 (16:10 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193896 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193895 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/predicates.md (move_double_src_operand):
amylaar [Wed, 28 Nov 2012 15:36:13 +0000 (15:36 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193894 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Oleg Raikhman <oleg@adapteva.com>
amylaar [Wed, 28 Nov 2012 13:56:28 +0000 (13:56 +0000)]
2012-11-28  Oleg Raikhman  <oleg@adapteva.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193892 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.opt (-may-round-for-trunc): New option.
amylaar [Wed, 28 Nov 2012 13:28:57 +0000 (13:28 +0000)]
    * config/epiphany/epiphany.opt (-may-round-for-trunc): New option.
        * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it into account.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193891 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
amylaar [Wed, 28 Nov 2012 13:21:59 +0000 (13:21 +0000)]
    * config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
        for misaligned memory operands.
        * config/epiphany/predicates.md (misaligned_operand): New predicate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193890 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define.
amylaar [Wed, 28 Nov 2012 13:18:25 +0000 (13:18 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193889 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 Nov 2012 12:18:39 +0000 (12:18 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193888 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193887 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not clear TREE_OVERFLOW
ebotcazou [Wed, 28 Nov 2012 10:51:19 +0000 (10:51 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193886 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 28 Nov 2012 10:49:39 +0000 (10:49 +0000)]
2012-11-28  Paolo Carlini  <paolo.carlini@oracle.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193885 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Marc Glisse <marc.glisse@inria.fr>
glisse [Wed, 28 Nov 2012 10:11:27 +0000 (10:11 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193884 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 Nov 2012 09:32:30 +0000 (09:32 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193883 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-28 Richard Biener <rguenther@suse.de>
rguenth [Wed, 28 Nov 2012 09:27:10 +0000 (09:27 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193882 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * include/std/functional (_Mem_fn): Constrain function call operators
redi [Wed, 28 Nov 2012 01:42:25 +0000 (01:42 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193879 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193878 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR rtl-optimization/55006
steven [Wed, 28 Nov 2012 00:17:34 +0000 (00:17 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193876 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193874 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove
steven [Tue, 27 Nov 2012 22:26:15 +0000 (22:26 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193873 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 27 Nov 2012 22:20:44 +0000 (22:20 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193872 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 27 Nov 2012 22:01:14 +0000 (22:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193871 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix incorrect @headername Doxygen macro invocation.
aaw [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193869 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Paolo Bonzini <pbonzini@redhat.com>
bonzini [Tue, 27 Nov 2012 20:29:15 +0000 (20:29 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193868 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix bootstrap failure with --enable-gather-detailed-mem-stats.
dnovillo [Tue, 27 Nov 2012 18:20:30 +0000 (18:20 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193864 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Marc Glisse <marc.glisse@inria.fr>
glisse [Tue, 27 Nov 2012 18:01:45 +0000 (18:01 +0000)]
2012-11-27  Marc Glisse  <marc.glisse@inria.fr>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193862 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Meador Inge <meadori@codesourcery.com>
meadori [Tue, 27 Nov 2012 16:55:47 +0000 (16:55 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193859 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-11-27 Dehao Chen <dehao@google.com>
dehao [Tue, 27 Nov 2012 16:16:10 +0000 (16:16 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193857 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/i386/i386.md
uros [Tue, 27 Nov 2012 16:01:09 +0000 (16:01 +0000)]
* config/i386/i386.md
(*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove
unneeded temporary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193856 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Dehao Chen <dehao@google.com>
dehao [Tue, 27 Nov 2012 14:39:33 +0000 (14:39 +0000)]
2012-11-27  Dehao Chen  <dehao@google.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193852 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * passes.c (init_optimization_passes): Add pass_asan and pass_tsan
jakub [Tue, 27 Nov 2012 14:14:02 +0000 (14:14 +0000)]
* passes.c (init_optimization_passes): Add pass_asan and pass_tsan
to -Og optimization passes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193850 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193849 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoHandle OPT_SPECIAL_XXX in LTO
hjl [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193848 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/52650
jakub [Tue, 27 Nov 2012 13:38:32 +0000 (13:38 +0000)]
PR middle-end/52650
* function.c (instantiate_virtual_regs_in_insn): Don't delete invalid
asm gotos, instead just clear their template and inputs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193846 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/55110
jakub [Tue, 27 Nov 2012 13:34:11 +0000 (13:34 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193845 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Richard Biener <rguenther@suse.de>
rguenth [Tue, 27 Nov 2012 12:06:52 +0000 (12:06 +0000)]
2012-11-27  Richard Biener  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193844 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193842 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/arm/arm.c (thumb1_reorg): New function.
amker [Tue, 27 Nov 2012 09:55:33 +0000 (09:55 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193841 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-27 Richard Biener <rguenther@suse.de>
rguenth [Tue, 27 Nov 2012 09:20:02 +0000 (09:20 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193839 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193836 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * loop-invariant.c (check_invariant_table_size): Take sizeof of
steven [Tue, 27 Nov 2012 00:17:25 +0000 (00:17 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193834 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * include/std/functional (__is_socketlike): Change from class
redi [Mon, 26 Nov 2012 23:53:36 +0000 (23:53 +0000)]
* include/std/functional (__is_socketlike): Change from class
template to alias template.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193832 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR libstdc++/55463
redi [Mon, 26 Nov 2012 23:53:29 +0000 (23:53 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193831 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193830 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193829 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/54455.c: Require scheduling.
gjl [Mon, 26 Nov 2012 18:47:23 +0000 (18:47 +0000)]
* gcc.dg/54455.c: Require scheduling.
* gcc.dg/c1x-align-4.c: Skip avr.
* gcc.dg/pr44024.c: Skip avr in final scan.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193827 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/52641
gjl [Mon, 26 Nov 2012 18:46:12 +0000 (18:46 +0000)]
PR testsuite/52641
* gcc.c-torture/execute/20120919-1.x: New file (int32plus).
* gcc.dg/pr54676.c: Make work for 16-bit int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193826 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-26 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Mon, 26 Nov 2012 18:08:44 +0000 (18:08 +0000)]
2012-11-26  Vladimir Makarov  <vmakarov@redhat.com>

PR target/55277
* gcc.target/i386/pr55227.c: New test.

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

PR target/55277
* lra-constraints.c (in_class_p): Check reg class contents too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193824 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
jgreenhalgh [Mon, 26 Nov 2012 17:48:13 +0000 (17:48 +0000)]
gcc/
* config/aarch64/aarch64-builtins.c (aarch64_builtin_decls): New.
(aarch64_init_simd_builtins): Store declaration after builtin
initialisation.
(aarch64_builtin_decl): New.
* config/aarch64/aarch64-protos.h (aarch64_builtin_decl): New.
* config/aarch64/aarch64.c (TARGET_BUILTIN_DECL): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193823 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
steven [Mon, 26 Nov 2012 16:47:58 +0000 (16:47 +0000)]
gcc/
* doc/invoke.texi: Remove -dv documentation.  Fix up graph dump related
documentation.  Document the '-graph' dump option.  Complete the '-slim'
dump option documentation.

* common.opt (Variable graph_dump_format): Remove.
* flag-types.h (enum graph_dump_types): Remove.
* flags.h (dump_for_graph): Remove.
* opts.c (decode_d_option): Remove -dv handling.
* sched-int.h (print_insn, print_pattern, print_value): Move prototypes
from here ...
* rtl.h: ...to here.  Add note that these functions ought to be in
another file.
* sched-vis.c (print_insn): Add detailed dump for insn notes.
* print-rtl.c (dump_for_graph): Remove.
(print_rtx): Remove dump_for_graph related code.
* graph.c: Almost complete re-write to dump DOT (GraphViz) dumps
instead of VCG dumps.
* graph.h (print_rtl_graph_with_bb): Update prototype.
* passes.c (finish_optimization_passes): Fix profile dump finishing.
Unconditionally loop over graph dumps to finalize.
(execute_function_dump): Split code to dump graphs to separate block.
(execute_one_pass): Don't set TDF_GRAPH here, let the dump option
decoders do their job.

* ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION.
* toplev.c: Don't include graph.h.
* tree-optimize.c: Don't include graph.h.

testsuite/
* testsuite/gcc.dg/20050811-1.c: Change -dv option to -graph option
to -fdump-rtl-all.
* testsuite/gcc.dg/pr37858.c: Remove -dv option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193821 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRemove redundant variable in hash_set.
mpolacek [Mon, 26 Nov 2012 16:38:32 +0000 (16:38 +0000)]
Remove redundant variable in hash_set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193820 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree.h (DECL_RESTRICTED_P): Delete.
ebotcazou [Mon, 26 Nov 2012 13:56:23 +0000 (13:56 +0000)]
* tree.h (DECL_RESTRICTED_P): Delete.
(DECL_READ_P): Add comment.
(DECL_NONSHAREABLE): Likewise.
(TYPE_NO_FORCE_BLK): Fix comment.
(struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3.
* tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P.
* tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
* tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
fortran/
* trans-decl.c (gfc_finish_var_decl): Do not set DECL_RESTRICTED_P.

* alias.c (nonoverlapping_component_refs_p): Fix thinko.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193815 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
gretay [Mon, 26 Nov 2012 12:37:55 +0000 (12:37 +0000)]
gcc/

2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* doc/sourcebuild.texi: Document arm_v8_vfp_ok.

gcc/testsuite/

2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* lib/target-supports.exp (check_effective_target_arm_v8_vfp_ok):
 New procedure.
(add_options_for_arm_v8_vfp): New procedure.
* gcc.target/arm/vrintaf32.c: New test.
* gcc.target/arm/vrintaf64.c: Likewise.
* gcc.target/arm/vrintmf32.c: Likewise.
* gcc.target/arm/vrintmf64.c: Likewise.
* gcc.target/arm/vrintpf32.c: Likewise.
* gcc.target/arm/vrintpf64.c: Likewise.
* gcc.target/arm/vrintrf32.c: Likewise.
* gcc.target/arm/vrintrf64.c: Likewise.
* gcc.target/arm/vrintxf32.c: Likewise.
* gcc.target/arm/vrintxf64.c: Likewise.
* gcc.target/arm/vrintzf32.c: Likewise.
* gcc.target/arm/vrintzf64.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193814 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
gretay [Mon, 26 Nov 2012 12:33:02 +0000 (12:33 +0000)]
gcc/

2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/arm/arm.h (TARGET_FPU_ARMV8): New macro.
* config/arm/arm.md (UNSPEC_VRINTZ, UNSPEC_VRINTP, UNSPEC_VRINTM)
(UNSPEC_VRINTR, UNSPEC_VRINTX, UNSPEC_VRINTA): New unspecs.
(f_rints, f_rintd): New types.
* config/arm/iterators.md (VRINT): New int iterator.
(F_fma_type): Remove.
(vfp_type): New mode attribute.
(vfp_double_cond): Likewise.
(vrint_pattern, vrint_variant, vrint_predicable): New int attribute.
* config/arm/vfp.md (fma<SDF:mode>4): Use vfp_type iterator
instead of F_fma_type.
(*fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4): Likewise.
(<vrint_pattern><SDF:mode>2): New pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193813 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * fold-const.c (const_binop): Adjust comment.
ebotcazou [Mon, 26 Nov 2012 12:01:07 +0000 (12:01 +0000)]
* fold-const.c (const_binop): Adjust comment.
(extract_muldiv_1): Likewise.
(fold_comparison): Likewise.
* stor-layout.c (place_field): Fix typo.
* tree.c (double_int_fits_to_tree_p): Remove obsolete comment.
(force_fit_type_double): Likewise.  Fix long line.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193812 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-26 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 26 Nov 2012 11:16:31 +0000 (11:16 +0000)]
2012-11-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/54997
* decl.c (match_procedure_decl): Don't set 'referenced' attribute
for PROCEDURE declarations.
* parse.c (gfc_fixup_sibling_symbols,parse_contained): Don't set
'referenced' attribute for all contained procedures.
* trans-decl.c (gfc_get_symbol_decl): Allow for unreferenced procedures.
(build_function_decl): Set TREE_USED for referenced procedures.

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

PR fortran/54997
* gfortran.dg/warn_unused_function_2.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193811 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-26 Greta Yorsh <Greta.Yorsh@arm.com>
gretay [Mon, 26 Nov 2012 10:38:23 +0000 (10:38 +0000)]
2012-11-26  Greta Yorsh  <Greta.Yorsh@arm.com>

* config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193810 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-26 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 26 Nov 2012 10:30:12 +0000 (10:30 +0000)]
2012-11-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/54881
* match.c (select_derived_set_tmp,select_class_set_tmp): Removed and
unified into ...
(select_type_set_tmp): ... this one. Set POINTER argument according to
selector.
* trans-intrinsic.c (gfc_conv_associated): Use 'gfc_class_data_get'
instead of 'gfc_add_data_component'.

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

PR fortran/54881
* gfortran.dg/associated_6.f90: New.
* gfortran.dg/select_type_30.f03: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193809 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-26 Matthias Klose <doko@ubuntu.com>
doko [Mon, 26 Nov 2012 09:41:45 +0000 (09:41 +0000)]
2012-11-26  Matthias Klose  <doko@ubuntu.com>

        * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix unbalanced
        parentheses.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193807 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/54471
jakub [Mon, 26 Nov 2012 09:19:30 +0000 (09:19 +0000)]
PR tree-optimization/54471
* tree-vrp.c (extract_range_from_binary_expr_1): For MULT_EXPR,
don't canonicalize range if min2 is zero.

* gcc.dg/tree-ssa/vrp86.c: New test.
* gcc.c-torture/execute/pr54471.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193806 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/55030
hp [Mon, 26 Nov 2012 03:25:57 +0000 (03:25 +0000)]
PR middle-end/55030
* gcc.dg/guality/pr36728-1.c, gcc.dg/guality/pr36728-2.c (foo): Don't
use volatile asms, use plain asms.   Where the output value for the
asm is unused, write a global variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193803 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/55030
hp [Mon, 26 Nov 2012 03:22:15 +0000 (03:22 +0000)]
PR middle-end/55030
* builtins.c (expand_builtin_setjmp_receiver): Update comment
regarding purpose of blockage.
* emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for
the head comment.
* rtlanal.c (volatile_insn_p): Ditto.
* doc/md.texi (blockage): Update similarly.  Change wording to
require one of two forms, rather than implying a wider choice.
* cse.c (cse_insn): Where checking for blocking insns, use
volatile_insn_p instead of manual check for volatile ASM.
* dse.c (scan_insn): Ditto.
* cselib.c (cselib_process_insn): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193802 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Mon, 26 Nov 2012 00:18:38 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193801 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/i386/sw-1.c (dg-options): Add -mtune=generic.
uros [Sun, 25 Nov 2012 22:04:02 +0000 (22:04 +0000)]
* gcc.target/i386/sw-1.c (dg-options): Add -mtune=generic.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193798 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/i386/sse.md (<sse>_loadu<ssemodesuffix><avxsizesuffix>):
uros [Sun, 25 Nov 2012 20:36:38 +0000 (20:36 +0000)]
* config/i386/sse.md (<sse>_loadu<ssemodesuffix><avxsizesuffix>):
Do not depend on TARGET_SSE_TYPELESS_STORES.
(<sse2>_loaddqu<avxsizesuffix>): Ditto.
(<sse>_storeu<ssemodesuffix><avxsizesuffix>): Fix handling of
TARGET_SSE_TYPELESS_STORES.
(<sse2>_storedqu<avxsizesuffix>): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193797 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-25 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 25 Nov 2012 19:59:07 +0000 (19:59 +0000)]
2012-11-25  Tobias Burnus  <burnus@net-b.de>

        PR libquadmath/55462
        * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
        instead of nonexisting HAVE_GET_ROUNDING_MODE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193796 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2012-11-25 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 25 Nov 2012 17:24:09 +0000 (17:24 +0000)]
2012-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30146
* frontend-passes.c (doloop_warn):  New function.
(doloop_list):  New static variable.
(doloop_size):  New static variable.
(doloop_level):  New static variable.
(gfc_run_passes): Call doloop_warn.
(doloop_code):  New function.
(doloop_function):  New function.
(gfc_code_walker):  Keep track of DO level.

2012-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/30146
* gfortran.dg/do_check_6.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193793 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Don't use memcmp for equality if struct has trailing padding.
ian [Sun, 25 Nov 2012 00:55:35 +0000 (00:55 +0000)]
compiler: Don't use memcmp for equality if struct has trailing padding.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193791 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sun, 25 Nov 2012 00:18:12 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193790 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
steven [Sun, 25 Nov 2012 00:05:33 +0000 (00:05 +0000)]
gcc/
* doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation.
(ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
* doc/tm.texi: Regenerate.
* reorg.c (fill_simple_delay_slots): Remove code conditional on
DELAY_SLOTS_FOR_EPILOGUE being defined.
(make_return_insns, dbr_schedule): Likewise.
* system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison.
(ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193787 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago/cp
paolo [Sat, 24 Nov 2012 23:45:45 +0000 (23:45 +0000)]
/cp
2012-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55446
* init.c (build_vec_init): Do not early return error_mark_mode
when integer_all_onesp (maxindex).

/testsuite
2012-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55446
* g++.dg/init/new41.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193785 138bc75d-0d04-0410-961f-82ee72b054a4