This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52634] multiple definition error when using alias
- From: "tianbin at cernet dot edu.cn" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Mar 2012 14:16:49 +0000
- Subject: [Bug lto/52634] multiple definition error when using alias
- Auto-submitted: auto-generated
- References: <bug-52634-4@http.gcc.gnu.org/bugzilla/>
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.