This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/67056] [5/6 regression] Wrong code generated


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

--- Comment #17 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Wed Oct 21 21:14:06 2015
New Revision: 229148

URL: https://gcc.gnu.org/viewcvs?rev=229148&root=gcc&view=rev
Log:
        PR ipa/67056
        * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
        is negative we don't know the type.
        (check_stmt_for_type_change): Skip constructors of non-polymorphic
        types as those won't help devirutalization.
        * g++.dg/ipa/pr67056.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/ipa/pr67056.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-polymorphic-call.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]