This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/69217] [6 Regression] ICE at var-tracking.c:5038 Segmentation fault
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Jan 2016 09:33:09 +0000
- Subject: [Bug rtl-optimization/69217] [6 Regression] ICE at var-tracking.c:5038 Segmentation fault
- Auto-submitted: auto-generated
- References: <bug-69217-4 at http dot gcc dot gnu dot org/bugzilla/>
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.