bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23350] multiple prevailing defs for unused variable in lto mode


From: mliska at suse dot cz
Subject: [Bug ld/23350] multiple prevailing defs for unused variable in lto mode
Date: Tue, 03 Jul 2018 08:59:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23350

Martin Liska <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Martin Liska <mliska at suse dot cz> ---
(In reply to H.J. Lu from comment #1)
> Which version of ld are you using?  Master branch works for me:
> 
> address@hidden pr23350]$ make clean
> rm -f *.o *.so
> address@hidden pr23350]$ cat x.c
> int wrl;
> 
> int main()
> {
> }
> address@hidden pr23350]$ cat y.c
> int wrl;
> int wrl2;
> address@hidden pr23350]$ make
> /usr/gcc-7.2.1-x32/bin/gcc -flto -O2   -c -o x.o x.c
> /usr/gcc-7.2.1-x32/bin/gcc -flto -O2   -c -o y.o y.c
> ar --plugin `/usr/gcc-7.2.1-x32/bin/gcc -print-prog-name=liblto_plugin.so`
> -rusc liby.a y.o
> /usr/gcc-7.2.1-x32/bin/gcc -o x x.o liby.a liby.a
> address@hidden pr23350]$

I've just updated to
GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.30.0.20180320-5

and the issue is gone. Thus closing as invalid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]