[Bug tree-optimization/59149] diagnose_tm_1 calls flags_from_decl_or_type on an ADDR_EXPR

2013-12-13 Thread aldyh at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59149

--- Comment #3 from Aldy Hernandez aldyh at gcc dot gnu.org ---
Author: aldyh
Date: Fri Dec 13 17:50:18 2013
New Revision: 205967

URL: http://gcc.gnu.org/viewcvs?rev=205967root=gccview=rev
Log:
PR tree-optimization/59149
* calls.c (flags_from_decl_or_type): Fail on non decl or type.
* trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
if no type or decl.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/trans-mem.c


[Bug tree-optimization/59149] diagnose_tm_1 calls flags_from_decl_or_type on an ADDR_EXPR

2013-12-13 Thread aldyh at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59149

Aldy Hernandez aldyh at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Aldy Hernandez aldyh at gcc dot gnu.org ---
fix committed


[Bug tree-optimization/59149] diagnose_tm_1 calls flags_from_decl_or_type on an ADDR_EXPR

2013-12-12 Thread aldyh at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59149

Aldy Hernandez aldyh at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-12-12
 CC||aldyh at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |aldyh at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Aldy Hernandez aldyh at gcc dot gnu.org ---
Mine.

Proposed patch:

http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01209.html


[Bug tree-optimization/59149] diagnose_tm_1 calls flags_from_decl_or_type on an ADDR_EXPR

2013-11-18 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59149

--- Comment #1 from Richard Biener rguenth at gcc dot gnu.org ---
Agreed - the code should have a gcc_unreachable () else.