[Bug c/84298] Shared TYPE_SIZE_UNIT ends up with freed SSA names

2018-02-09 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84298

--- Comment #4 from joseph at codesourcery dot com  ---
On Fri, 9 Feb 2018, rguenth at gcc dot gnu.org wrote:

> The fix is to place a DECL_EXPR somewhere by the FE.  We have some duplicates
> with similar issues.

Should c_fully_fold_internal then generate something involving a DECL_EXPR 
for C_MAYBE_CONST_EXPR, instead of just a COMPOUND_EXPR?  (In the general 
case where the size expression has side effects, it must be evaluated at 
that exact point in the expression, if and only if that point is reached 
in evaluation.)

(MOVED = bug filed in a different bug tracker for a different project.  
That's for e.g. something that's actually a binutils or glibc bug; I don't 
see how it applies here.)

[Bug c/84298] Shared TYPE_SIZE_UNIT ends up with freed SSA names

2018-02-09 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84298

rsandifo at gcc dot gnu.org  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |MOVED

--- Comment #3 from rsandifo at gcc dot gnu.org  
---
Moved.

[Bug c/84298] Shared TYPE_SIZE_UNIT ends up with freed SSA names

2018-02-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84298

--- Comment #2 from Richard Biener  ---
The fix is to place a DECL_EXPR somewhere by the FE.  We have some duplicates
with similar issues.

[Bug c/84298] Shared TYPE_SIZE_UNIT ends up with freed SSA names

2018-02-08 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84298

rsandifo at gcc dot gnu.org  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2018-02-08
   Assignee|unassigned at gcc dot gnu.org  |rsandifo at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #1 from rsandifo at gcc dot gnu.org  
---
Testing a fix.