[Bug tree-optimization/67794] [6 regression] internal compiler error: Segmentation fault

aoliva at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 6 19:55:00 GMT 2015


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

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |aoliva at gcc dot gnu.org

--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Created attachment 36454
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36454&action=edit
Patch that removes the crash

This patch fixes the problem by tolerating IPA ESRA's leaving removed
PARM_DECLs alone, instead of replacing them with VAR_DECLs.  I would rather we
used a VAR_DECL instead, because I'm concerned about other places that
distinguish between PARM_DECLs and VAR_DECLs, at least when it comes to
handling their default defs.  I haven't looked into this possibility yet,
though; it might be that other pieces of the compiler rely on the decls
remaining as PARM_DECLs for other purposes.



More information about the Gcc-bugs mailing list