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/52634] multiple definition error when using alias


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52634

--- Comment #3 from Bin Tian <tianbin at cernet dot edu.cn> 2012-03-20 14:16:49 UTC ---
The bug is reproducable with -r -flto-partition=1to1, and not with -r
-flto-partition=none.

My project is hard to reduce because of complex dependencies. It seems that if
the call graph is too simple, the bug never shows up.

Finally, I make a testcase based on make-3.82
(http://ftp.gnu.org/gnu/make/make-3.82.tar.gz).

Please apply the attached patch on make-3.82, and compile it with the following
instructions:

$ autoreconf -vif
$ ./configure CFLAGS='-g -O2 -flto' CC=gcc-4.7
$ make

The patch is produced with git format-patch.


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