http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51887
Bug #: 51887
Summary: wrapped function with LTO - multiple prevailing defs
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 26358
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26358
lto build error - multiple prevailing defs
This command, "gcc -flto -Wl,-wrap,WrapMe -o a a.c b.c", fails for the attached
testcase with the following error message:
lto1: fatal error: multiple prevailing defs for 'WrapMe'
compilation terminated.
This works if "-flto" is removed.
Neil.