[Bug rtl-optimization/64818] User specified register don't work correctly in inline-asm operands.

2015-06-03 Thread halewang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64818

--- Comment #2 from halewang at gcc dot gnu.org ---
Author: halewang
Date: Wed Jun  3 07:17:23 2015
New Revision: 224057

URL: https://gcc.gnu.org/viewcvs?rev=224057&root=gcc&view=rev
Log:
2015-06-03  Hale Wang  

Backport from mainline r222306
2015-04-22  Hale Wang  
Terry Guo  

PR rtl-optimization/64818
* combine.c (can_combine_p): Don't combine user-specified
register if it is in an asm input.


Added:
branches/ARM/embedded-4_9-branch/gcc/testsuite/gcc.target/arm/pr64818.c
Modified:
branches/ARM/embedded-4_9-branch/gcc/ChangeLog.arm
branches/ARM/embedded-4_9-branch/gcc/combine.c


[Bug tree-optimization/66388] [6 Regression] Test gcc.target/i386/pr49781-1.c failed because of recent scev overflow patches.

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66388

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
   Target Milestone|--- |6.0
Summary|Test|[6 Regression] Test
   |gcc.target/i386/pr49781-1.c |gcc.target/i386/pr49781-1.c
   |failed because of recent|failed because of recent
   |scev overflow patches.  |scev overflow patches.
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Confirmed.


[Bug rtl-optimization/66391] suboptimal code for assignment of SImode struct with bitfields

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66391

Richard Biener  changed:

   What|Removed |Added

   Keywords||missed-optimization
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 Ever confirmed|0   |1


[Bug c++/66383] [5/6 Regression] ICE in gimplify_expr on this passed in inline initialization

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
  Known to work||4.9.3
   Target Milestone|--- |5.2
Summary|ICE in gimplify_expr on |[5/6 Regression] ICE in
   |this passed in inline   |gimplify_expr on this
   |initialization  |passed in inline
   ||initialization
 Ever confirmed|0   |1

--- Comment #3 from Richard Biener  ---
Confirmed, 4.9 seems to work fine.

#1  0x00d9f9be in gimplify_expr (expr_p=0x76a384f8, 
pre_p=0x7fffd178, post_p=0x7fffcbc8, 
gimple_test_f=0xd7e8aa , fallback=3)
at /space/rguenther/tramp3d/trunk/gcc/gimplify.c:8810
warning: Source file is more recent than executable.
8810  goto dont_recalculate;
(gdb) l
8805  }
8806
8807case tcc_declaration:
8808case tcc_constant:
8809  ret = GS_ALL_DONE;
8810  goto dont_recalculate;
8811
8812default:
8813  gcc_unreachable ();
8814}
(gdb) p debug_generic_expr (*expr_p)

$1 = void


[Bug tree-optimization/66272] [4.8/4.9/5 Regression] wrong code at -O3 on x86_64-linux-gnu

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66272

--- Comment #6 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:39:06 2015
New Revision: 224059

URL: https://gcc.gnu.org/viewcvs?rev=224059&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-06-01  Richard Biener  

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-21  Richard Biener  

PR c++/66211
* match.pd: Guard pattern optimzing (int)(float)int
conversions to apply only on GIMPLE.

* g++.dg/conversion/pr66211.C: New testcase.
* gcc.dg/tree-ssa/forwprop-18.c: Adjust.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/conversion/pr66211.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280-2.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/dwarf2out.c
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
branches/gcc-5-branch/gcc/tree-data-ref.c
branches/gcc-5-branch/gcc/tree-data-ref.h
branches/gcc-5-branch/gcc/tree-ssa-dom.c
branches/gcc-5-branch/gcc/tree-vect-slp.c


[Bug tree-optimization/62031] [4.8 Regression] Different results between O2 and O2 -fpredictive-commoning

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62031

--- Comment #18 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:39:06 2015
New Revision: 224059

URL: https://gcc.gnu.org/viewcvs?rev=224059&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-06-01  Richard Biener  

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-21  Richard Biener  

PR c++/66211
* match.pd: Guard pattern optimzing (int)(float)int
conversions to apply only on GIMPLE.

* g++.dg/conversion/pr66211.C: New testcase.
* gcc.dg/tree-ssa/forwprop-18.c: Adjust.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/conversion/pr66211.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280-2.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/dwarf2out.c
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
branches/gcc-5-branch/gcc/tree-data-ref.c
branches/gcc-5-branch/gcc/tree-data-ref.h
branches/gcc-5-branch/gcc/tree-ssa-dom.c
branches/gcc-5-branch/gcc/tree-vect-slp.c


[Bug tree-optimization/66123] [4.8/4.9/5 Regression] Array of labels as values + ternary operator + pointer arithmetic = internal compiler error

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66123

--- Comment #8 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:39:06 2015
New Revision: 224059

URL: https://gcc.gnu.org/viewcvs?rev=224059&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-06-01  Richard Biener  

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-21  Richard Biener  

PR c++/66211
* match.pd: Guard pattern optimzing (int)(float)int
conversions to apply only on GIMPLE.

* g++.dg/conversion/pr66211.C: New testcase.
* gcc.dg/tree-ssa/forwprop-18.c: Adjust.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/conversion/pr66211.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280-2.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/dwarf2out.c
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
branches/gcc-5-branch/gcc/tree-data-ref.c
branches/gcc-5-branch/gcc/tree-data-ref.h
branches/gcc-5-branch/gcc/tree-ssa-dom.c
branches/gcc-5-branch/gcc/tree-vect-slp.c


[Bug c++/66211] [5 Regression] Rvalue conversion in ternary operator causes internal compiler error

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66211

--- Comment #9 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:39:06 2015
New Revision: 224059

URL: https://gcc.gnu.org/viewcvs?rev=224059&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-06-01  Richard Biener  

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-21  Richard Biener  

PR c++/66211
* match.pd: Guard pattern optimzing (int)(float)int
conversions to apply only on GIMPLE.

* g++.dg/conversion/pr66211.C: New testcase.
* gcc.dg/tree-ssa/forwprop-18.c: Adjust.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/conversion/pr66211.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280-2.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/dwarf2out.c
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
branches/gcc-5-branch/gcc/tree-data-ref.c
branches/gcc-5-branch/gcc/tree-data-ref.h
branches/gcc-5-branch/gcc/tree-ssa-dom.c
branches/gcc-5-branch/gcc/tree-vect-slp.c


[Bug debug/65549] [4.9 Regression] crash in htab_hash_string with -flto -g

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65549

--- Comment #34 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:39:06 2015
New Revision: 224059

URL: https://gcc.gnu.org/viewcvs?rev=224059&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-06-01  Richard Biener  

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-21  Richard Biener  

PR c++/66211
* match.pd: Guard pattern optimzing (int)(float)int
conversions to apply only on GIMPLE.

* g++.dg/conversion/pr66211.C: New testcase.
* gcc.dg/tree-ssa/forwprop-18.c: Adjust.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/conversion/pr66211.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280-2.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/dwarf2out.c
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
branches/gcc-5-branch/gcc/tree-data-ref.c
branches/gcc-5-branch/gcc/tree-data-ref.h
branches/gcc-5-branch/gcc/tree-ssa-dom.c
branches/gcc-5-branch/gcc/tree-vect-slp.c


[Bug tree-optimization/66280] [4.8/4.9/5 Regression] ICE: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1472

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66280

--- Comment #10 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:39:06 2015
New Revision: 224059

URL: https://gcc.gnu.org/viewcvs?rev=224059&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-06-01  Richard Biener  

PR tree-optimization/66280
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
def-use walking.

* g++.dg/torture/pr66280.C: New testcase.
* g++.dg/torture/pr66280-2.C: Likewise.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-21  Richard Biener  

PR c++/66211
* match.pd: Guard pattern optimzing (int)(float)int
conversions to apply only on GIMPLE.

* g++.dg/conversion/pr66211.C: New testcase.
* gcc.dg/tree-ssa/forwprop-18.c: Adjust.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/conversion/pr66211.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280-2.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/torture/pr66280.C
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/dwarf2out.c
branches/gcc-5-branch/gcc/match.pd
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
branches/gcc-5-branch/gcc/tree-data-ref.c
branches/gcc-5-branch/gcc/tree-data-ref.h
branches/gcc-5-branch/gcc/tree-ssa-dom.c
branches/gcc-5-branch/gcc/tree-vect-slp.c


[Bug c++/66211] [5 Regression] Rvalue conversion in ternary operator causes internal compiler error

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66211

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||5.2.0
 Resolution|--- |FIXED

--- Comment #10 from Richard Biener  ---
Fixed.


[Bug tree-optimization/65961] [6 Regression] ice in vect_is_simple_use_1 with -O3

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65961

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Richard Biener  ---
Fixed.


[Bug libstdc++/59048] operator== between std::string and const char* slower than strcmp

2015-06-03 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59048

Marc Glisse  changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|DUPLICATE   |---

--- Comment #15 from Marc Glisse  ---
(In reply to Ondrej Bilka from comment #13)
> Yes, this is duplicate of following.
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052

No it isn't. I made a comment related to that other PR, but IIRC the main point
here is that the function is not pulled out of the loop, which is independent
of how memcmp gets expanded.


[Bug middle-end/66375] [4.8/4.9/5/6 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66375

--- Comment #10 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 07:57:13 2015
New Revision: 224060

URL: https://gcc.gnu.org/viewcvs?rev=224060&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

PR tree-optimization/66375
* tree-scalar-evolution.c (follow_ssa_edge_binary): First
add to the evolution before following SSA edges.

* gcc.dg/torture/pr66375.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/torture/pr66375.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-scalar-evolution.c


[Bug tree-optimization/63916] value-numbering fails to forward variable addresses

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63916

--- Comment #2 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 08:02:10 2015
New Revision: 224061

URL: https://gcc.gnu.org/viewcvs?rev=224061&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

PR tree-optimization/63916
* tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
Forward-propagate non-invariant addresses by splicing their
reference ops if the result isn't going to be used by PRE.
(vn_reference_lookup_3): Remove pointless assert.

* gcc.dg/tree-ssa/ssa-fre-45.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-45.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-sccvn.c


[Bug tree-optimization/66142] Loop is not vectorized because not sufficient support for GOMP_SIMD_LANE

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66142
Bug 66142 depends on bug 63916, which changed state.

Bug 63916 Summary: value-numbering fails to forward variable addresses
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63916

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED


[Bug tree-optimization/63916] value-numbering fails to forward variable addresses

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63916

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Richard Biener  ---
Fixed.


[Bug c++/66392] New: rejects-valid: copy-initialization through user-defined conversion sequence fails

2015-06-03 Thread filip.roseen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66392

Bug ID: 66392
   Summary: rejects-valid: copy-initialization through
user-defined conversion sequence fails
   Product: gcc
   Version: 5.1.0
Status: UNCONFIRMED
  Keywords: rejects-valid
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: filip.roseen at gmail dot com
  Target Milestone: ---

Created attachment 35687
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35687&action=edit
testcase.cpp - inaccurately rejected

There are many variants of the supplied testcase, but the following shall
compile due to the wording of `[dcl.init]p17` (and relevant sections) - `gcc`
inaccurately rejects the snippet:

struct B { };

struct A { 
  explicit A (A const&);
   A (B const&);
};  

int main () {
  A x = B {}; // legal
}   

---

testcase.cpp: In function ‘int main()’:
testcase.cpp:9:12: error: no matching function for call to ‘A::A(A)’
   A x = B {}; // legal
^
testcase.cpp:5:12: note: candidate: A::A(const B&)
A (B const&);
^
testcase.cpp:5:12: note:   no known conversion for argument 1 from ‘A’ to
‘const B&’
testcase.cpp:5:12: note:   after user-defined conversion: A::A(const B&)

---

[ Note: `msvc`, `clang`, `icc` all accept the above snippet ]

---

In short the ISO C++ Standard says that if copy-initialization takes place
where the source type is not the same as the destination type, but there is a
user-defined conversion sequence that can convert the source type into the
destination type - such will be used to construct a temporary, and that
temporary will then be used to _direct-initialize_ the destination object.

It should be noted, as directly addressed in the standard wording, that
copy-elision may be used to skip the construction of the temporary object.

[ Note: it is important to note that the wording talks about "user-defined
conversion sequences", as such one must properly take into account usage of
`operator T`, where `T` is the destination type, in the source type which shall
yield the same described behavior as the attached testcase ]

--

Relevant part of `[dcl.init]p17`:

> Otherwise (i.e., for the remaining copy-initialization cases), user-defined
> conversion sequences that can convert from the source type to the destination
> type or (when a conversion function is used) to a derived class thereof are
> enumerated as described in [over.match.copy], and the best one is chosen 
> through
> overload resolution ([over.match]). If the conversion cannot be done or is
> ambiguous, the initialization is ill-formed. The function selected is called
> with the initializer expression as its argument; if the function is a
> constructor, the call initializes a temporary of the cv-unqualified version of
> the destination type. The temporary is a prvalue. The result of the call 
> (which
> is the temporary for the constructor case) is then used to direct-initialize,
> according to the rules above, the object that is the destination of the
> copy-initialization. In certain cases, an implementation is permitted to
> eliminate the copying inherent in this direct-initialization by constructing 
> the
> intermediate result directly into the object being initialized; see
> [class.temporary], [class.copy]

[Bug c/29358] Warning issued two times with snprintf

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358

--- Comment #8 from Marek Polacek  ---
Author: mpolacek
Date: Wed Jun  3 08:24:50 2015
New Revision: 224062

URL: https://gcc.gnu.org/viewcvs?rev=224062&root=gcc&view=rev
Log:
PR c/64223
PR c/29358
* tree.c (attribute_value_equal): Handle attribute format.
(cmp_attrib_identifiers): Factor out of lookup_ident_attribute.

* gcc.dg/pr64223-1.c: New test.
* gcc.dg/pr64223-2.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/pr64223-1.c
trunk/gcc/testsuite/gcc.dg/pr64223-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c


[Bug c/64223] same warning repeated twice with same line number

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64223

--- Comment #6 from Marek Polacek  ---
Author: mpolacek
Date: Wed Jun  3 08:24:50 2015
New Revision: 224062

URL: https://gcc.gnu.org/viewcvs?rev=224062&root=gcc&view=rev
Log:
PR c/64223
PR c/29358
* tree.c (attribute_value_equal): Handle attribute format.
(cmp_attrib_identifiers): Factor out of lookup_ident_attribute.

* gcc.dg/pr64223-1.c: New test.
* gcc.dg/pr64223-2.c: New test.

Added:
trunk/gcc/testsuite/gcc.dg/pr64223-1.c
trunk/gcc/testsuite/gcc.dg/pr64223-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c


[Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic

2015-06-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

--- Comment #10 from Manuel López-Ibáñez  ---
Created attachment 35688
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35688&action=edit
WIP patch

A WIP patch. I took a different approach: Move the handling of the pragma to
the preprocessor. 

It is a bit ugly, but the problem is that we cannot access diagnostic.h and
similar headers from the preprocessor. In my ideal world, we would have a
libdiagnostic.a that can be linked to the preprocessor and the FEs, and avoid
those callbacks (if someone wants to implement a different diagnostic output,
they can simply implement a basic libdiagnostic.a).

The main problem I didn't know how to solve is that, once processed, the
preprocessor removes the pragmas. Ideally, the pragmas should be evaluated when
lexing, independently of whether the file is preprocessed or not. Otherwise, it
will break things like ccache.

[Bug c/64223] same warning repeated twice with same line number

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64223

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Marek Polacek  ---
Should be fixed.


[Bug other/65366] gdbhooks.py is incompatible with Python3

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366

Richard Biener  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
   Last reconfirmed||2015-06-03
 Resolution|FIXED   |---
 Ever confirmed|0   |1

--- Comment #4 from Richard Biener  ---
Re-open.  Broke python 2 support.

Python Exception  Cannot convert value to int.: 
Python Exception  Cannot convert value to int.: 
Python Exception  Cannot convert value to int.: 

for anything that resembles an address


[Bug c/29358] Warning issued two times with snprintf

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org
   Target Milestone|--- |6.0

--- Comment #9 from Marek Polacek  ---
Should be fixed now.


[Bug c/66098] #pragma diagnostic 'ignored' not fully undone by pop for strict-overflow

2015-06-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66098

Manuel López-Ibáñez  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 CC||manu at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Manuel López-Ibáñez  ---
This is my fault. When I fixed the handling of defaults in the command-line
(PR59304), I failed to handle the case of using -Werror.

This should fix it:

Index: diagnostic.c
===
--- diagnostic.c(revision 223651)
+++ diagnostic.c(working copy)
@@ -695,13 +695,14 @@ diagnostic_classify_diagnostic (diagnost
   int i;

   /* Record the command-line status, so we can reset it back on DK_POP. */
   if (old_kind == DK_UNSPECIFIED)
{
- old_kind = context->option_enabled (option_index,
+ old_kind = !context->option_enabled (option_index,
  context->option_state)
-   ? DK_WARNING : DK_IGNORED;
+   ? DK_IGNORED : (context->warning_as_error_requested
+   ? DK_ERROR: DK_WARNING);
  context->classify_diagnostic[option_index] = old_kind;
}

   for (i = context->n_classification_history - 1; i >= 0; i --)
if (context->classification_history[i].option == option_index)

[Bug c++/66387] [5/6 Regression] ICE in make_decl_rtl with lambda

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66387

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
Confirmed.


[Bug c++/66099] _Pragma diagnostic 'ignored' in macro with strict-overflow not suppressing warning fully with -Werror

2015-06-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66099

Manuel López-Ibáñez  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 CC||manu at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Manuel López-Ibáñez  ---
This is because the location of the warning is given at 21:19, which is not
within the range affected by the #pragmas. Whether the warning should be given
at the macro definition point or at the expansion point is a matter of debate
(there are at least two PRs open about this, but I don't remember the numbers).

Differences between C and C++ are spurious and may lead to the pragmas applying
or not:

cc1:
/home/manuel/test2/pr66099.cc:21:3: error: assuming signed overflow does not
occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
   TESTING(i + 4 < i);
   ^

cc1plus:

/home/manuel/test2/pr66099.cc:21:19: error: assuming signed overflow does not
occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
   TESTING(i + 4 < i);
   ^

Someone would need to track the locations in GDB and understand why they
diverge. Unfortunately, this is not something that usual devs will spend time
on given the amount of other things waiting to be fixed. If this is important
to you, I would recommend to try to figure out the reason yourself. Once the
problem is clear, it is far more likely that a GCC dev will produce a patch and
fix it.

[Bug target/66358] [5/6 Regression] [SH] ICE: in extract_constrain_insn, at recog.c:2232

2015-06-03 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66358

--- Comment #8 from Oleg Endo  ---
(In reply to Kazumoto Kojima from comment #7)
> (In reply to Oleg Endo from comment #6)
> > There could be some negative side effects with the patch above, because it
> > forces the R0 usage quite early (at RTL expansion).
> 
> Yes, the comment part says it and it was discussed in #c83
> and #c82 of PR55212.  This patch will be a 'micro-degradation',
> though it wins CSiBE for the code size at least, even without LRA.

Ah, right.  If it fixes the problem, then I think it's the only option we have
for the release branch.


[Bug rtl-optimization/66393] New: register asm input for inline asm not respected when using a template

2015-06-03 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66393

Bug ID: 66393
   Summary: register asm input for inline asm not respected when
using a template
   Product: gcc
   Version: 4.8.5
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

In the following example r1 is being used as input to the inline asm although
the register asm definition forces it into r2:

typedef unsigned long long int uint64_t;

template < typename T > static inline void
bar (T c)
{
  int a;
  register uint64_t b __asm__ ("r2") = (uint64_t)&a;
  __asm__ volatile (".long 0"::"d" (b):);
}

void
foo (uint64_t c)
{
  bar (c);
}

cc1plus -O1

_Z3fooy:
.LFB1:
stg %r15,120(%r15)
.LCFI0:
aghi%r15,-168
.LCFI1:
lgr %r1,%r15
aghi%r1,164<--
#APP
# 8 "t.cc" 1
.long 0
# 0 "" 2
#NO_APP
lg  %r15,288(%r15)
.LCFI2:
br  %r14


234r.ira:

  Loop 0 (parent -1, header bb2, depth 0)
bbs: 2
all: 0r62
modified regnos: 62
border:
Pressure: GENERAL_REGS=2<--
Hard reg set forest:
  0:( 0-14 16-31)@0
1:( 0-13)@8000
  Allocno a0r62 of GENERAL_REGS(15) has 14 avail. regs  0-13, node:  0-13
(confl regs =  14-52)
  Pushing a0(r62,l0)(cost 0)
  Popping a0(r62,l0)  -- assign reg 1   <---




The example can be made working just by removing the type template:

typedef unsigned long long int uint64_t;

static inline void
bar (uint64_t c)
{
  int a;
  register uint64_t b __asm__ ("r2") = (uint64_t)&a;
  __asm__ volatile (".long 0"::"d" (b):);
}

void
foo (uint64_t c)
{
  bar (c);
}



_Z3fooy:
.LFB1:
stg %r15,120(%r15)
.LCFI0:
aghi%r15,-168
.LCFI1:
lgr %r2,%r15
aghi%r2,164
#APP
# 8 "t.cc" 1
.long 0
# 0 "" 2
#NO_APP
lg  %r15,288(%r15)
.LCFI2:
br  %r14


[Bug c++/33661] template methods forget explicit local reg vars

2015-06-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33661

Andrew Pinski  changed:

   What|Removed |Added

 CC||krebbel at gcc dot gnu.org

--- Comment #12 from Andrew Pinski  ---
*** Bug 66393 has been marked as a duplicate of this bug. ***


[Bug c++/66393] register asm input for inline asm not respected when using a template

2015-06-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66393

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from Andrew Pinski  ---
Exact dup of bug 33661.

*** This bug has been marked as a duplicate of bug 33661 ***


[Bug other/66394] New: ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32

2015-06-03 Thread sthalik at misaki dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66394

Bug ID: 66394
   Summary: ICE in -flto -fmerge-all-constants
-fno-use-linker-plugin targetting i686-w64-mingw32
   Product: gcc
   Version: 5.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
  Assignee: unassigned at gcc dot gnu.org
  Reporter: sthalik at misaki dot pl
  Target Milestone: ---

Compiling as follows:

[ 76%] Building CXX object
modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color.cpp.obj
cd /d C:\Users\Administrator\dev\opentrack-win32\opencv\build2\modules\imgproc
&& C:\mingw-w64\i686-5.1.0-posix-dwarf-rt
_v4-rev0\mingw32\bin\i686-w64-mingw32-g++.exe-fmerge-all-constants
--save-temps -fPIC   -fsigned-char -mstackrealign
 -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat
-Werror=format-security -Wmissing-declarat
ions -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing
-Wno-delete-non-virtual-dtor -fdiagnostics
-show-option -fomit-frame-pointer -ffast-math -msse -msse2 -mfpmath=sse
-ffunction-sections -O2 -ffast-math -flto -fno-u
se-linker-plugin -march=i686 -mtune=corei7-avx -mfpmath=both -msse -msse2
-mno-sse3 -mno-avx -frename-registers  -DNDEBU
G @CMakeFiles/opencv_imgproc.dir/includes_CXX.rsp-Winvalid-pch -o
CMakeFiles\opencv_imgproc.dir\src\color.cpp.obj -c

C:\Users\Administrator\dev\opentrack-win32\opencv\modules\imgproc\src\color.cpp

C:\Users\Administrator\dev\opentrack-win32\opencv\modules\imgproc\src\color.cpp:4425:1:
internal compiler error: Segmentation fault

Not all flags are needed, enough to trigger is -O3 -flto -fno-use-linker-plugin
-fmerge-all-constants


[Bug other/66394] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32

2015-06-03 Thread sthalik at misaki dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66394

--- Comment #1 from Stanisław Halik  ---
Created attachment 35689
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35689&action=edit
preprocessed source of ICE

[Bug middle-end/66251] [6 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1484

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66251

--- Comment #10 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev=224072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/dwarf2out.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-data-ref.c
branches/gcc-4_9-branch/gcc/tree-data-ref.h
branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/66272] [4.8/4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66272

--- Comment #7 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev=224072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/dwarf2out.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-data-ref.c
branches/gcc-4_9-branch/gcc/tree-data-ref.h
branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/65518] [4.8/4.9 Regression] gcc consumes all memory with -O3

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65518

--- Comment #6 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev=224072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/dwarf2out.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-data-ref.c
branches/gcc-4_9-branch/gcc/tree-data-ref.h
branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/66123] [4.8/4.9 Regression] Array of labels as values + ternary operator + pointer arithmetic = internal compiler error

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66123

--- Comment #9 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev=224072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/dwarf2out.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-data-ref.c
branches/gcc-4_9-branch/gcc/tree-data-ref.h
branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/62031] [4.8 Regression] Different results between O2 and O2 -fpredictive-commoning

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62031

--- Comment #19 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev=224072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/dwarf2out.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-data-ref.c
branches/gcc-4_9-branch/gcc/tree-data-ref.h
branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


[Bug debug/65549] [4.9 Regression] crash in htab_hash_string with -flto -g

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65549

--- Comment #35 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 11:03:26 2015
New Revision: 224072

URL: https://gcc.gnu.org/viewcvs?rev=224072&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-06-02  Richard Biener  

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lto/pr65549_0.C
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_9-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/dwarf2out.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-data-ref.c
branches/gcc-4_9-branch/gcc/tree-data-ref.h
branches/gcc-4_9-branch/gcc/tree-ssa-dom.c
branches/gcc-4_9-branch/gcc/tree-vect-stmts.c


[Bug target/66395] New: [SH]: error: insn does not satisfy its constraints: when building gcc-5

2015-06-03 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66395

Bug ID: 66395
   Summary: [SH]: error: insn does not satisfy its constraints:
when building gcc-5
   Product: gcc
   Version: unknown
   URL: http://buildd.debian-ports.org/status/fetch.php?pkg=gc
c-5&arch=sh4&ver=5.1.1-8&stamp=1433309037
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: glaubitz at physik dot fu-berlin.de
CC: kkojima at gcc dot gnu.org, olegendo at gcc dot gnu.org
  Target Milestone: ---
  Host: sh4-linux-gnu
Target: sh*-*-*

Created attachment 35690
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35690&action=edit
Pre-processed source file ccX4t1ID.out mentioned in bug report

Hello!

Trying to build the latest gcc-5 snapshot (), I ran into another compiler
error:

(insn 16799 13070 16800 391 (set:SI (reg:SI 2 r2)
(sign_extend:SI (mem:QI (plus:SI (reg/v/f:SI 1 r1 [orig:262 p2 ] [262])
(const_int 2 [0x2])) [0 MEM[(unsigned char *)p2_97 + 2B]+0
S1 A8]))) ../../src/libiberty/regex.c:7109 231 {*extendqisi2_compact_mem_disp}
 (nil))
../../src/libiberty/regex.c:7486:1: internal compiler error: in
extract_constrain_insn, at recog.c:2246
0xd1ae2b _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
../../src/gcc/rtl-error.c:110
0xd1aeb7 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../src/gcc/rtl-error.c:121
0xcb867b extract_constrain_insn(rtx_insn*)
../../src/gcc/recog.c:2246
0xcc0767 copyprop_hardreg_forward_1
../../src/gcc/regcprop.c:793
0xcc208d execute
../../src/gcc/regcprop.c:1289
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
Preprocessed source stored into /tmp/ccX4t1ID.out file, please attach this to
your bugreport.

Attaching the pre-processed output file ccX4t1ID.out.

Adrian


[Bug tree-optimization/66396] New: [6 regression] FAIL: gcc.dg/graphite/run-id-pr47593.c execution test

2015-06-03 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66396

Bug ID: 66396
   Summary: [6 regression] FAIL: gcc.dg/graphite/run-id-pr47593.c
execution test
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: sch...@linux-m68k.org
CC: amker at gcc dot gnu.org
Blocks: 48052
  Target Milestone: ---
Target: m68k-*-*

$ gcc/xgcc -Bgcc/ ../gcc/testsuite/gcc.dg/graphite/run-id-pr47593.c   -O2
-fgraphite-identity  -lm-o ./run-id-pr47593.exe -g
$ ./run-id-pr47593.exe
Segmentation fault

Program received signal SIGSEGV, Segmentation fault.
0x84e6 in bar () at ../gcc/testsuite/gcc.dg/graphite/run-id-pr47593.c:21
21return ***(int ***)p;
(gdb) p p
$1 = 0xe594 "\200\r\266\b"
(gdb) p {int**}p
$2 = (int **) 0x800db608
(gdb) p *$
Cannot access memory at address 0x800db608
(gdb) i local
f = {p = 0x800db608, q = 0x0}
j = 4
p = 0xe5c4 "\200\r\266\b"
x = 
y = 0xe5c0
(gdb) disass
Dump of assembler code for function bar:
   0x84d8 <+0>: linkw %fp,#-12
   0x84dc <+4>: moveq #4,%d0
   0x84de <+6>: movel %d0,%fp@(-12)
   0x84e2 <+10>:moveal %fp@(-4),%a0
=> 0x84e6 <+14>:moveal %a0@,%a0
   0x84e8 <+16>:movel %a0@,%d0
   0x84ea <+18>:unlk %fp
   0x84ec <+20>:rts
End of assembler dump.

Before r224020:
(gdb) disass bar
Dump of assembler code for function bar:
   0x84d8 <+0>: linkw %fp,#-24
   0x84dc <+4>: moveq #1,%d0
   0x84de <+6>: unlk %fp
   0x84e0 <+8>: rts
End of assembler dump.


05032b10839cf0498c992c819bf2358e86c22bb0 is the first bad commit
commit 05032b10839cf0498c992c819bf2358e86c22bb0
Author: amker 
Date:   Tue Jun 2 10:19:18 2015 +

PR tree-optimization/48052
...
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224020
138bc75d-0d04-0410-961f-82ee72b054a4


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48052
[Bug 48052] loop not vectorized if index is "unsigned int"


[Bug go/66303] runtime.Caller() returns infinitely deep stack frames on s390x

2015-06-03 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66303

--- Comment #9 from Dominik Vogt  ---
The problem is reproduceable with the makecontext C testcases in Glibc (with
some manual intervention).  So, this isn't a Go related problem.  Our analysis
so far seems to indicate that it's a bug in the s390x specific code of Glibc or
maybe the s390x unwinding code in libgcc (less likely).  We'll take care of the
problem.


[Bug tree-optimization/66396] [6 regression] FAIL: gcc.dg/graphite/run-id-pr47593.c execution test

2015-06-03 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66396

Andreas Schwab  changed:

   What|Removed |Added

   Keywords||wrong-code
   Target Milestone|--- |6.0


[Bug target/66395] [SH]: error: insn does not satisfy its constraints: when building gcc-5

2015-06-03 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66395

Oleg Endo  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from Oleg Endo  ---
Dup of PR 66358.

*** This bug has been marked as a duplicate of bug 66358 ***


[Bug target/66358] [5/6 Regression] [SH] ICE: in extract_constrain_insn, at recog.c:2232

2015-06-03 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66358

Oleg Endo  changed:

   What|Removed |Added

 CC||glaubitz at physik dot 
fu-berlin.d
   ||e

--- Comment #9 from Oleg Endo  ---
*** Bug 66395 has been marked as a duplicate of this bug. ***


[Bug target/66395] [SH]: error: insn does not satisfy its constraints: when building gcc-5

2015-06-03 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66395

--- Comment #2 from John Paul Adrian Glaubitz  ---
(In reply to Oleg Endo from comment #1)
> Dup of PR 66358.
> 
> *** This bug has been marked as a duplicate of bug 66358 ***

Hmm, I thought 66358 was already fixed.


[Bug target/66395] [SH]: error: insn does not satisfy its constraints: when building gcc-5

2015-06-03 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66395

--- Comment #3 from John Paul Adrian Glaubitz  ---
(In reply to John Paul Adrian Glaubitz from comment #2)
> Hmm, I thought 66358 was already fixed.

Oh, that's a different one. Sorry, my bad.


[Bug c/66397] New: sanitize=undefined triggers extra -Warray-bounds warning

2015-06-03 Thread sirl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66397

Bug ID: 66397
   Summary: sanitize=undefined triggers extra -Warray-bounds
warning
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: sirl at gcc dot gnu.org
  Target Milestone: ---

Created attachment 35691
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35691&action=edit
testcase, warns with gcc-6 -c -O2 -fsanitize=undefined

The attached testcase derived from a C++ iterator implementation relies on the
fact that the undefined pCurrent-1 is immediately nullified again by the
following pCurrent++ by the optimizer. But in current trunk r224064 the
following warning is issued:

test.c: In function 'test':
test.c:19:53: warning: array subscript is below array bounds [-Warray-bounds]
 ths->pCurrent = (ths->pStart) ? ths->pStart - 1 : (stru *) 0;
 ^

Though the warning is not completely wrong, -Warray-bounds usually triggers
only when the value is really accessed, or? gcc-5.1 compiles the testcase
without warning.


[Bug c/66397] sanitize=undefined triggers extra -Warray-bounds warning

2015-06-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66397

--- Comment #1 from Andrew Pinski  ---
Comment on attachment 35691
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35691
testcase, warns with gcc-6 -c -O2 -fsanitize=undefined

Except it is undefined behavior to have one element before the start of an
array. And that is why it is warning. Does not matter if there is a ++ later
on.


[Bug c/66397] sanitize=undefined triggers extra -Warray-bounds warning

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66397

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek  ---
Yeah, I think this isn't a bug.


[Bug tree-optimization/66396] [6 regression] FAIL: gcc.dg/graphite/run-id-pr47593.c execution test

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66396

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Confirmed.


[Bug c/66397] sanitize=undefined triggers extra -Warray-bounds warning

2015-06-03 Thread sirl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66397

--- Comment #3 from Franz Sirl  ---
Yeah, I feared so :-(. This is a bit unfortunate though, as for our code base
we compile with -Werror=array-bounds, now when I add -fsanitize=undefined I
need to downgrade the error to a warning again. Another special casing in the
build system... From this POV I would prefer to get only the
-fsanitize=undefined runtime error.


[Bug tree-optimization/66396] [6 regression] FAIL: gcc.dg/graphite/run-id-pr47593.c execution test

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66396

--- Comment #2 from Richard Biener  ---
on x86_64 with -m32 btw


[Bug go/66368] [5 Regression] go tool crashes on powerpc-linux-gnu

2015-06-03 Thread boger at us dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66368

--- Comment #6 from boger at us dot ibm.com ---
I think you've said the problem only occurs when using -fstack-protector-strong
and when building with glibc-2.21.

Have you tried using gdb to see where the segv actually occurs?

>gdb go
.


>run version
(Once it hits the segv)
>x/20ni $pc-24
>bt

The panic stacktrace is showing a line in proc.c:2328 which is making a call to
__builtin_return_address according to my source.  Does that match your source?

If that is the case then I have a feeling this isn't go specific, but a problem
with calling __builtin_return_address on ppc32 when using
-fstack-protector-strong and possibly glibc-2.21 has some affect.


[Bug fortran/66386] ICE: FORALL reading multiple elements from one array

2015-06-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66386

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Dominique d'Humieres  ---
Duplicate.

*** This bug has been marked as a duplicate of bug 66385 ***


[Bug fortran/66385] ICE: FORALL writing multiple elements of one array

2015-06-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66385

--- Comment #2 from Dominique d'Humieres  ---
*** Bug 66386 has been marked as a duplicate of this bug. ***


[Bug c++/66398] New: g++.dg/abi/anon1.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66398

Bug ID: 66398
   Summary: g++.dg/abi/anon1.C FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
 Build: x86_64-unknown-linux-gnu

With --enable-default-pie, g++.dg/abi/anon1.C FAILs on Linux/x86_64 with -m32:

+FAIL: g++.dg/abi/anon1.C  -std=c++11  scan-assembler-not globl
+FAIL: g++.dg/abi/anon1.C  -std=c++14  scan-assembler-not globl
+FAIL: g++.dg/abi/anon1.C  -std=c++98  scan-assembler-not globl

anon1.s contains

.globl  __x86.get_pc_thunk.ax

  Rainer


[Bug c++/66398] g++.dg/abi/anon1.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66398

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug go/66303] runtime.Caller() returns infinitely deep stack frames on s390x

2015-06-03 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66303

--- Comment #10 from Dominik Vogt  ---
Just a short update before the bank holiday weekend in Germany.  The problem is
caused by missing cfi directives in the Glibc sources.  We'll open a Glibc bug
report and provide a patch next week.

Gdb has some safety checks in its unwinding code to catch such pathological
situations.  It might be worthwhile to add something similar to the unwinding
code in libgcc.


[Bug c++/66399] New: g++.dg/abi/anon4.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66399

Bug ID: 66399
   Summary: g++.dg/abi/anon4.C FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
 Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, g++.dg/abi/anon4.C FAILs on both Linux/x86_64 and
Solaris 12/x86 with -m32:

+FAIL: g++.dg/abi/anon4.C  -std=c++11  scan-assembler-not comdat
+FAIL: g++.dg/abi/anon4.C  -std=c++14  scan-assembler-not comdat
+FAIL: g++.dg/abi/anon4.C  -std=c++98  scan-assembler-not comdat

On Linux, anon4.s contains

.section   
.text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat

  Rainer


[Bug c++/66399] g++.dg/abi/anon4.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66399

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug c++/66400] New: g++.dg/stackprotectexplicit2.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66400

Bug ID: 66400
   Summary: g++.dg/stackprotectexplicit2.C FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
 Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, g++.dg/stackprotectexplicit2.C FAILs on both
Linux/x86_64
and Solaris 12/x86 with -m32:

+FAIL: g++.dg/stackprotectexplicit2.C  -std=gnu++11  scan-assembler-times
stack_chk_fail 2
+FAIL: g++.dg/stackprotectexplicit2.C  -std=gnu++14  scan-assembler-times
stack_chk_fail 2
+FAIL: g++.dg/stackprotectexplicit2.C  -std=gnu++98  scan-assembler-times
stack_chk_fail 2

On Linux/x86_64, stackprotectexplicit2.s contains

call__stack_chk_fail_local
call__stack_chk_fail_local
.hidden __stack_chk_fail_local

  Rainer


[Bug c++/66400] g++.dg/stackprotectexplicit2.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66400

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug fortran/66385] [4.9/5/6 Regression] ICE: FORALL writing multiple elements of one array

2015-06-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66385

Dominique d'Humieres  changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
  Known to work||4.8.4
   Keywords||ice-on-valid-code
   Last reconfirmed||2015-06-03
 CC||tkoenig at gcc dot gnu.org
 Ever confirmed|0   |1
Summary|ICE: FORALL writing |[4.9/5/6 Regression] ICE:
   |multiple elements of one|FORALL writing multiple
   |array   |elements of one array
  Known to fail||4.9.2, 5.1.0, 6.0

--- Comment #3 from Dominique d'Humieres  ---
The ICE appeared between revisions r197010 (2013-03-23, OK) and r197238
(2013-03-29, ICE), likely r197216 (pr55806) or r197217 (pr45159).


[Bug sanitizer/66401] New: g++.dg/ubsan/vla-1.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66401

Bug ID: 66401
   Summary: g++.dg/ubsan/vla-1.C FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: sanitizer
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
hjl at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at 
gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
 Build: x86_64-unknown-linux-gnu

With --enable-default-pie, g++.dg/ubsan/vla-1.C FAILs with -m32 on Linux/x86_64
at -O1 only:

FAIL: g++.dg/ubsan/vla-1.C   -O1  execution test

  Rainer


[Bug sanitizer/66401] g++.dg/ubsan/vla-1.C FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66401

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug c/66402] New: gcc.dg/uninit-19.c FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66402

Bug ID: 66402
   Summary: gcc.dg/uninit-19.c FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12,
sparc-sun-solaris2.12
Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12,
sparc-sun-solaris2.12
 Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12,
sparc-sun-solaris2.12

With --enable-default-pie, gcc.dg/uninit-19.c FAILs on all of Linux/x86_64,
Solaris 12/SPARC and x86, both 32 and 64-bit:

+FAIL: gcc.dg/uninit-19.c  (test for warnings, line 22)
+FAIL: gcc.dg/uninit-19.c (test for excess errors)

  Rainer


[Bug c/66402] gcc.dg/uninit-19.c FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66402

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug c/66403] New: gcc.dg/torture/builtin-self.c FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66403

Bug ID: 66403
   Summary: gcc.dg/torture/builtin-self.c FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
 Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, gcc.dg/torture/builtin-self.c FAILs on both
Linux/x86_64
and Solaris 12/x86 with -m32:

+FAIL: gcc.dg/torture/builtin-self.c   -O0   scan-assembler-not \\tcall

On Linux, builtin-self.s contains

call__x86.get_pc_thunk.ax

  Rainer


[Bug c/66403] gcc.dg/torture/builtin-self.c FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66403

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug c/66404] New: gcc.target/i386/pad-10.c etc. FAIL with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66404

Bug ID: 66404
   Summary: gcc.target/i386/pad-10.c etc. FAIL with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
 Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, gcc.target/i386/pad-10.c and gcc.target/i386/pad-3.c
FAIL on both Linux/x86_64 and Solaris 12/x86 with -m32:

+FAIL: gcc.target/i386/pad-10.c scan-assembler-not nop
+FAIL: gcc.target/i386/pad-3.c scan-assembler-not nop

On Linux/x86_64, pad-10.s contains:

__x86.get_pc_thunk.bx:
.LFB1:
.cfi_startproc
nop
nop
nop
nop
nop
nop
nop
nop
movl(%esp), %ebx
ret
.cfi_endproc

  Rainer


[Bug c/66404] gcc.target/i386/pad-10.c etc. FAIL with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66404

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug fortran/66366] ICE on invalid with non-allocatable CLASS variable [OOP]

2015-06-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66366

Dominique d'Humieres  changed:

   What|Removed |Added

   Keywords||error-recovery,
   ||ice-on-invalid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
With gfortran 4.5.4 I get

pr66366.f90:9.27:

 class(t1d) :: transfer
   1
Error: Component 'transfer' with CLASS at (1) must be allocatable or pointer

twice, from 4.6 to 4.8, I get a segmentation fault, and from 4.9 to trunk 6.0,
I get the ICE after the error.


[Bug c++/66405] New: [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984

2015-06-03 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66405

Bug ID: 66405
   Summary: [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: trippels at gcc dot gnu.org
  Target Milestone: ---

% g++ -std=c++11 -c zip.ii
...
/home/trippels/range-v3/include/meta/meta.hpp:887:66: internal compiler error:
in tsubst, at cp/pt.c:12021
integer_sequence>;
  ^
0x10162107 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:12021
0x10171293 tsubst_copy
../../gcc/gcc/cp/pt.c:13391
0x1015e0bb tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../gcc/gcc/cp/pt.c:15756
0x1015e737 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../gcc/gcc/cp/pt.c:14789
0x101678c7 tsubst_expr
../../gcc/gcc/cp/pt.c:14424
0x1016bda7 gen_elem_of_pack_expansion_instantiation
../../gcc/gcc/cp/pt.c:9939
0x1016bda7 tsubst_pack_expansion
../../gcc/gcc/cp/pt.c:10142
0x10170343 tsubst_template_args
../../gcc/gcc/cp/pt.c:10242
0x1017028f tsubst_template_args
../../gcc/gcc/cp/pt.c:10260
0x101707d7 tsubst_aggr_type
../../gcc/gcc/cp/pt.c:10475
0x101614af tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11935
0x101701ab tsubst_template_args
../../gcc/gcc/cp/pt.c:10278
0x101707d7 tsubst_aggr_type
../../gcc/gcc/cp/pt.c:10475
0x101614af tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11935
0x1016a6d7 tsubst_decl
../../gcc/gcc/cp/pt.c:11365
0x10161733 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11856
0x10172fab instantiate_template_1
../../gcc/gcc/cp/pt.c:15991
0x10172fab instantiate_template(tree_node*, tree_node*, int)
../../gcc/gcc/cp/pt.c:16041
0x101616d7 instantiate_alias_template
../../gcc/gcc/cp/pt.c:16071
0x101616d7 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11883
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.


[Bug c++/66405] [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984

2015-06-03 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66405

--- Comment #1 from Markus Trippelsdorf  ---
Created attachment 35692
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35692&action=edit
unreduced testcase


[Bug go/66406] New: go.test/test/nilptr.go FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66406

Bug ID: 66406
   Summary: go.test/test/nilptr.go FAILs with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: go
  Assignee: ian at airs dot com
  Reporter: ro at gcc dot gnu.org
CC: cmang at google dot com, hjl at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
 Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, go.test/test/nilptr.go FAILs on both Linux/x86_64
and
Solaris 12/x86 for 32 and 64-bit:

+FAIL: go.test/test/nilptr.go execution,  -O2 -g 

panic: dummy too far out

goroutine 16 [running]:
main.main
/vol/gcc/src/hg/trunk/solaris/gcc/testsuite/go.test/test/nilptr.go:28
created by main
/vol/gcc/src/hg/trunk/solaris/libgo/runtime/go-main.c:48

  Rainer


[Bug go/66406] go.test/test/nilptr.go FAILs with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66406

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug middle-end/66251] [6 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1484

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66251

--- Comment #11 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 13:50:11 2015
New Revision: 224081

URL: https://gcc.gnu.org/viewcvs?rev=224081&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-data-ref.c
branches/gcc-4_8-branch/gcc/tree-data-ref.h
branches/gcc-4_8-branch/gcc/tree-ssa-dom.c
branches/gcc-4_8-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/62031] [4.8 Regression] Different results between O2 and O2 -fpredictive-commoning

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62031

--- Comment #20 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 13:50:11 2015
New Revision: 224081

URL: https://gcc.gnu.org/viewcvs?rev=224081&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-data-ref.c
branches/gcc-4_8-branch/gcc/tree-data-ref.h
branches/gcc-4_8-branch/gcc/tree-ssa-dom.c
branches/gcc-4_8-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/65518] [4.8 Regression] gcc consumes all memory with -O3

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65518

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Known to fail|4.8.3   |4.8.4

--- Comment #8 from Richard Biener  ---
Fixed.


[Bug tree-optimization/65518] [4.8 Regression] gcc consumes all memory with -O3

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65518

--- Comment #7 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 13:50:11 2015
New Revision: 224081

URL: https://gcc.gnu.org/viewcvs?rev=224081&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-data-ref.c
branches/gcc-4_8-branch/gcc/tree-data-ref.h
branches/gcc-4_8-branch/gcc/tree-ssa-dom.c
branches/gcc-4_8-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/66272] [4.8 Regression] wrong code at -O3 on x86_64-linux-gnu

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66272

--- Comment #8 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 13:50:11 2015
New Revision: 224081

URL: https://gcc.gnu.org/viewcvs?rev=224081&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-data-ref.c
branches/gcc-4_8-branch/gcc/tree-data-ref.h
branches/gcc-4_8-branch/gcc/tree-ssa-dom.c
branches/gcc-4_8-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/66123] [4.8 Regression] Array of labels as values + ternary operator + pointer arithmetic = internal compiler error

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66123

--- Comment #10 from Richard Biener  ---
Author: rguenth
Date: Wed Jun  3 13:50:11 2015
New Revision: 224081

URL: https://gcc.gnu.org/viewcvs?rev=224081&root=gcc&view=rev
Log:
2015-06-03  Richard Biener  

Backport from mainline
2015-05-26  Michael Matz  

PR middle-end/66251
* tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
STMT_VINFO_VEC_STMT, also with SLP.

* gcc.dg/vect/pr66251.c: New test.

2015-05-22  Richard Biener  

PR tree-optimization/66251
* tree-vect-stmts.c (vectorizable_conversion): Properly
set STMT_VINFO_VEC_STMT even for the SLP case.

* gfortran.fortran-torture/compile/pr66251.f90: New testcase.

2015-03-23  Richard Biener  

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

* gcc.dg/vect/pr65518.c: New testcase.

2015-05-13  Richard Biener  

PR tree-optimization/66123
* tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
a taken edge.

* gcc.dg/torture/pr66123.c: New testcase.

2015-05-27  Richard Biener  

PR tree-optimization/66272
Revert parts of
2014-08-15  Richard Biener  

PR tree-optimization/62031
* tree-data-ref.c (dr_analyze_indices): Do not set
DR_UNCONSTRAINED_BASE.
(dr_may_alias_p): All indirect accesses have to go the
formerly DR_UNCONSTRAINED_BASE path.
* tree-data-ref.h (struct indices): Remove
unconstrained_base member.
(DR_UNCONSTRAINED_BASE): Remove.

* gcc.dg/torture/pr66272.c: New testcase.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66123.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr66272.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr65518.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr66251.c
   
branches/gcc-4_8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr66251.f90
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-data-ref.c
branches/gcc-4_8-branch/gcc/tree-data-ref.h
branches/gcc-4_8-branch/gcc/tree-ssa-dom.c
branches/gcc-4_8-branch/gcc/tree-vect-stmts.c


[Bug tree-optimization/66123] [4.8 Regression] Array of labels as values + ternary operator + pointer arithmetic = internal compiler error

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66123

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Known to fail||4.8.4

--- Comment #11 from Richard Biener  ---
Fixed.


[Bug tree-optimization/66272] [4.8 Regression] wrong code at -O3 on x86_64-linux-gnu

2015-06-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66272

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work|4.8.4   |
 Resolution|--- |FIXED

--- Comment #9 from Richard Biener  ---
Fixed.


[Bug libgomp/66407] New: libgomp.c/examples-4/e.53.5.c etc. FAIL with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66407

Bug ID: 66407
   Summary: libgomp.c/examples-4/e.53.5.c etc. FAIL with PIE
   Product: gcc
   Version: 6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgomp
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ro at gcc dot gnu.org
CC: hjl at gcc dot gnu.org, jakub at gcc dot gnu.org
  Target Milestone: ---
  Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
 Build: x86_64-unknown-linux-gnu

With --enable-default-pie, libgomp.c/examples-4/e.53.5.c and
libgomp.fortran/examples-4/e.53.5.f90 FAIL on Linux/x86_64 with -m32:

+FAIL: libgomp.c/examples-4/e.53.5.c execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O0  execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O1  execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O2  execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O3 -fomit-frame-pointer 
execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O3 -fomit-frame-pointer
-funroll-loops  execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -O3 -g  execution test
+FAIL: libgomp.fortran/examples-4/e.53.5.f90   -Os  execution test

The first test SEGVs on execution, but succeeds when run under gdb.

  Rainer


[Bug libgomp/66407] libgomp.c/examples-4/e.53.5.c etc. FAIL with PIE

2015-06-03 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66407

Rainer Orth  changed:

   What|Removed |Added

   Target Milestone|--- |6.0


[Bug c++/66405] [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984

2015-06-03 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66405

--- Comment #2 from Markus Trippelsdorf  ---
Creduce came up with:

template  struct A;
template  struct enable_if;
template  struct B;
template  using and_c = A>;
template  using Constructible = int;
template  struct common_tuple {
  template <
  typename... Us,
  typename enable_if()...>::value>::type>
  common_tuple();
  void foo();
};
template <> void common_tuple<>::foo(){};


[Bug c++/66405] [5/6 Regression] ICE: in tsubst, at cp/pt.c:11984

2015-06-03 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66405

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-03
 CC||mpolacek at gcc dot gnu.org
   Target Milestone|--- |5.2
 Ever confirmed|0   |1

--- Comment #3 from Marek Polacek  ---
Confirmed.


[Bug rtl-optimization/32394] some operations to not work properly in df_deferred_rescan mode.

2015-06-03 Thread zadeck at naturalbridge dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32394

--- Comment #2 from Kenneth Zadeck  ---
yeh


[Bug c++/30044] ICE in tsubst, at cp/pt.c:7359

2015-06-03 Thread ppalka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30044

ppalka at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||ppalka at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |ppalka at gcc dot 
gnu.org

--- Comment #3 from ppalka at gcc dot gnu.org ---
I have a patch for this.


[Bug libgomp/65611] examples-4/e.53.5.c examples-4/e.53.5.f90 don't work with -fPIE -pie

2015-06-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65611

H.J. Lu  changed:

   What|Removed |Added

 CC||ro at gcc dot gnu.org

--- Comment #1 from H.J. Lu  ---
*** Bug 66407 has been marked as a duplicate of this bug. ***


[Bug libgomp/66407] libgomp.c/examples-4/e.53.5.c etc. FAIL with PIE

2015-06-03 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66407

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #1 from H.J. Lu  ---
Dup

*** This bug has been marked as a duplicate of bug 65611 ***


[Bug middle-end/66251] [6 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1484

2015-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66251

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #12 from Jakub Jelinek  ---
I'm getting:
FAIL: gcc.dg/vect/pr66251.c scan-tree-dump-times vect "vectorized 1 loops" 2
FAIL: gcc.dg/vect/pr66251.c -flto -ffat-lto-objects  scan-tree-dump-times vect
"vectorized 1 loops" 2
on the 4.9 branch (both x86_64 and i686-linux).


[Bug other/66394] [5/6 Regression] ICE in -flto -fmerge-all-constants -fno-use-linker-plugin targetting i686-w64-mingw32

2015-06-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66394

--- Comment #2 from Martin Liška  ---
Reduced test case:

$ cat color.ii
template  void CvtColorLoop(int, int, const Cvt &);
enum { R2Y, G2Y, B2Y };
struct RGB2Gray {
  RGB2Gray(int, int, int coeffs) {
const int coeffs0[]{G2Y, B2Y};
coeffs = coeffs0;
tab[2] = coeffs;
  }
  int tab[];
};

cvtColor_bidx() {
  int src, dst;
  CvtColorLoop(src, dst, RGB2Gray(0, cvtColor_bidx, 0));
}

$ g++ -fmerge-all-constants -flto -c color.ii -c -fpermissive

0xa8395f crash_signal
../../gcc/toplev.c:380
0x985325 compute_ltrans_boundary(lto_symtab_encoder_d*)
../../gcc/lto-cgraph.c:1024
0x9da94f ipa_write_summaries()
../../gcc/passes.c:2519
0x76c300 ipa_passes
../../gcc/cgraphunit.c:2215
0x76c300 symbol_table::compile()
../../gcc/cgraphunit.c:2311
0x76d8b0 symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2460
0x5f8cf2 cp_write_global_declarations()
../../gcc/cp/decl2.c:4793

[Bug target/65368] [4.8/4.9 Regression]_bzhi_u32 intrinsic generates incorrect code when -O1 or above is specified and index is an immediate

2015-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65368

--- Comment #11 from Jakub Jelinek  ---
Author: jakub
Date: Wed Jun  3 15:26:15 2015
New Revision: 224085

URL: https://gcc.gnu.org/viewcvs?rev=224085&root=gcc&view=rev
Log:
Backported from mainline
2015-03-10  Jakub Jelinek  

PR target/65368
* config/i386/i386.md (bmi2_bzhi_3): Removed define_insn,
new define_expand.
(*bmi2_bzhi_3, *bmi2_bzhi_3_1): New define_insns.

* gcc.target/i386/bmi2-bzhi-2.c: New test.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/bmi2-bzhi-2.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/i386/i386.md
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


[Bug tree-optimization/65427] [4.8/4.9 Regression] ICE in emit_move_insn with wide vector types

2015-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65427

--- Comment #8 from Jakub Jelinek  ---
Author: jakub
Date: Wed Jun  3 15:26:56 2015
New Revision: 224086

URL: https://gcc.gnu.org/viewcvs?rev=224086&root=gcc&view=rev
Log:
Backported from mainline
2015-03-16  Jakub Jelinek  

PR tree-optimization/65427
* tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
functions.
(expand_vector_operations_1): Handle BLKmode vector COND_EXPR.

* gcc.c-torture/execute/pr65427.c: New test.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr65427.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-vect-generic.c


[Bug tree-optimization/65450] [4.9 Regression]: Unaligned access with -O3 -mtune=k8

2015-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65450

--- Comment #19 from Jakub Jelinek  ---
Author: jakub
Date: Wed Jun  3 15:27:43 2015
New Revision: 224087

URL: https://gcc.gnu.org/viewcvs?rev=224087&root=gcc&view=rev
Log:
Backported from mainline
2015-03-18  Jakub Jelinek  

PR tree-optimization/65450
* tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
function.
(vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
it instead of duplicate_ssa_name_ptr_info.

* gfortran.dg/pr65450.f90: New test.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/pr65450.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-vect-data-refs.c


[Bug target/65504] [4.9 Regression] select case with strings and -fgcse -O

2015-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65504

--- Comment #20 from Jakub Jelinek  ---
Author: jakub
Date: Wed Jun  3 15:30:58 2015
New Revision: 224089

URL: https://gcc.gnu.org/viewcvs?rev=224089&root=gcc&view=rev
Log:
2015-06-03  Jakub Jelinek  

Backported from mainline
2015-03-23  Jakub Jelinek  

PR target/65504
* config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
on the pseudo.
(expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
REG_POINTER on *destptr after adjusting it for prologue size.

* gfortran.dg/pr65504.f90: New test.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/pr65504.f90
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/i386/i386.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


[Bug gcov-profile/64634] [4.8/4.9 Regression] gcov reports catch(...) as not executed

2015-06-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64634

--- Comment #7 from Jakub Jelinek  ---
Author: jakub
Date: Wed Jun  3 15:25:15 2015
New Revision: 224084

URL: https://gcc.gnu.org/viewcvs?rev=224084&root=gcc&view=rev
Log:
Backported from mainline
2015-02-18  Jakub Jelinek  

PR gcov-profile/64634
* tree-eh.c (frob_into_branch_around): Fix up typos
in function comment.
(lower_catch): Put eh_seq resulting from EH lowering of
the cleanup sequence after the cleanup rather than before
it.

* g++.dg/gcov/gcov-15.C: New test.

Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/gcov/gcov-15.C
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
branches/gcc-4_9-branch/gcc/tree-eh.c


  1   2   >