[Bug rtl-optimization/69217] [6 Regression] ICE at var-tracking.c:5038 Segmentation fault

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 11 09:33:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69217

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2016-01-11
     Ever confirmed|0                           |1

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> While I should get round to fixing the gimplify stage to conform, I think
> the middle-end should do something other than SEGV when this happens.
> 
> e.g:
> 
>   if (TYPE_FIELDS (type) == NULL_TREE
>       || DECL_CHAIN (TYPE_FIELDS (type)) == NULL_TREE)
>     return false;

Yes, that's the correct thing to do, please test it and post the patch on the
gcc-patches@ list once done.


More information about the Gcc-bugs mailing list