[Bug middle-end/51949] [4.7 Regression] expand_call: seg fault caused by IPA split

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 22 22:00:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51949

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.7 Regression]            |[4.7 Regression]
                   |expand_call: seg fault      |expand_call: seg fault
                   |                            |caused by IPA split

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-22 21:24:56 UTC ---
The problem is IPA split is splitting the function mem_alloc correctly, though
it should have removed the malloc attribute on the split function.
This was introduced by:
2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>

...
        * ipa-split.c (split_function): Skip the return value for the split
        part if it doesn't return.

Though it was always there really.



More information about the Gcc-bugs mailing list