This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Oct 2010 16:55:50 +0000
- Subject: [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
- Auto-submitted: auto-generated
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