public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
@ 2010-10-19 16:55 zsojka at seznam dot cz
2010-10-20 10:07 ` [Bug lto/46083] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-19 16:55 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
@ 2010-10-20 10:07 ` rguenth at gcc dot gnu.org
2010-10-21 5:32 ` hubicka at ucw dot cz
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-20 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-20 10:06:54 UTC ---
Honza, maybe your constructor re-ordering doesn't honor priority?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
2010-10-20 10:07 ` [Bug lto/46083] " rguenth at gcc dot gnu.org
@ 2010-10-21 5:32 ` hubicka at ucw dot cz
2010-10-21 7:42 ` zsojka at seznam dot cz
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at ucw dot cz @ 2010-10-21 5:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
--- Comment #2 from Jan Hubicka <hubicka at ucw dot cz> 2010-10-21 05:32:00 UTC ---
> Honza, maybe your constructor re-ordering doesn't honor priority?
It should via the same logic as non-ELF ctor/dtor code does, but I will double
check.
Honza
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
2010-10-20 10:07 ` [Bug lto/46083] " rguenth at gcc dot gnu.org
2010-10-21 5:32 ` hubicka at ucw dot cz
@ 2010-10-21 7:42 ` zsojka at seznam dot cz
2011-01-08 20:44 ` hubicka at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-21 7:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.5.2
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-21 07:41:48 UTC ---
I tested r165740, r163636, r161659, r158095, r153685, 4.5 r163761 and 4.5.1.
All of them failed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-10-21 7:42 ` zsojka at seznam dot cz
@ 2011-01-08 20:44 ` hubicka at gcc dot gnu.org
2011-01-10 22:07 ` hubicka at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-08 20:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.01.08 20:14:33
AssignedTo|unassigned at gcc dot |hubicka at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-08 20:14:33 UTC ---
mine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
` (3 preceding siblings ...)
2011-01-08 20:44 ` hubicka at gcc dot gnu.org
@ 2011-01-10 22:07 ` hubicka at gcc dot gnu.org
2011-01-10 22:10 ` hubicka at gcc dot gnu.org
2024-06-05 7:03 ` cvs-commit at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-10 22:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-10 21:54:37 UTC ---
Author: hubicka
Date: Mon Jan 10 21:54:33 2011
New Revision: 168642
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168642
Log:
PR lto/46083
* lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
DECL_FINI_PRIORITY.
* lto-streamer-in.c (unpack_ts_function_decl_value_fields):
Restore DECL_FINI_PRIORITY.
* gcc.dg/initpri3.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/initpri3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/lto-streamer-in.c
trunk/gcc/lto-streamer-out.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
` (4 preceding siblings ...)
2011-01-10 22:07 ` hubicka at gcc dot gnu.org
@ 2011-01-10 22:10 ` hubicka at gcc dot gnu.org
2024-06-05 7:03 ` cvs-commit at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-10 22:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-10 21:55:01 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/46083] gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work)
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
` (5 preceding siblings ...)
2011-01-10 22:10 ` hubicka at gcc dot gnu.org
@ 2024-06-05 7:03 ` cvs-commit at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-06-05 7:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46083
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:
https://gcc.gnu.org/g:38dd7419324490b386bbac06ddc5fafbfe8629d3
commit r15-1024-g38dd7419324490b386bbac06ddc5fafbfe8629d3
Author: Thomas Schwinge <tschwinge@baylibre.com>
Date: Wed Apr 24 10:11:02 2024 +0200
Clarify that 'gcc.dg/initpri3.c' is a LTO variant of 'gcc.dg/initpri1.c':
'gcc.dg/initpri1-lto.c' [PR46083]
Added in commit 06c9eb5136fe0e778cc3a643131eba2a3dfb77a8 (Subversion
r168642)
"re PR lto/46083 (gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute
constructor/destructor doesn't work))".
PR lto/46083
gcc/testsuite/
* gcc.dg/initpri3.c: Remove.
* gcc.dg/initpri1-lto.c: New.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-06-05 7:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-19 16:55 [Bug lto/46083] New: gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work) zsojka at seznam dot cz
2010-10-20 10:07 ` [Bug lto/46083] " rguenth at gcc dot gnu.org
2010-10-21 5:32 ` hubicka at ucw dot cz
2010-10-21 7:42 ` zsojka at seznam dot cz
2011-01-08 20:44 ` hubicka at gcc dot gnu.org
2011-01-10 22:07 ` hubicka at gcc dot gnu.org
2011-01-10 22:10 ` hubicka at gcc dot gnu.org
2024-06-05 7:03 ` cvs-commit at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).