re PR lto/46083 (gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor...
authorJan Hubicka <jh@suse.cz>
Mon, 10 Jan 2011 21:54:33 +0000 (22:54 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 10 Jan 2011 21:54:33 +0000 (21:54 +0000)
commit06c9eb5136fe0e778cc3a643131eba2a3dfb77a8
tree6b65373a74635a6fc6d17e3e730f07357c92cc14
parentb88e4ef16ca4ccaee24c9399977977e349cbe0cd
re PR lto/46083 (gcc.dg/initpri1.c FAILs with -flto/-fwhopr (attribute constructor/destructor doesn't work))

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.

From-SVN: r168642
gcc/ChangeLog
gcc/lto-streamer-in.c
gcc/lto-streamer-out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/initpri3.c [new file with mode: 0644]