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 lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)


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: unassigned@gcc.gnu.org
        ReportedBy: zsojka@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


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