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

           Summary: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute
                    constructor/destructor doesn't work)
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


Output:
$ gcc gcc.dg/initpri1.c && ./a.out
$ gcc gcc.dg/initpri1.c -flto && ./a.out
Aborted
$ gcc gcc.dg/initpri1.c -fwhopr && ./a.out
Aborted

With another testcase, -flto worked fine, but -fwhopr failed.
Constructors and destructors are executed, but not in expected order.

Tested revisions:
r165699 - fail

Reply via email to