[Bug ld/12758] LTO doesn't work with --start-group and archive

2012-01-14 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at sources dot   |amodra at gmail dot com
   |redhat.com  |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2012-01-14 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 CC|amodra at gmail dot com |

--- Comment #4 from Alan Modra amodra at gmail dot com 2012-01-15 01:44:50 
UTC ---
testing a fix

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2012-01-14 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

--- Comment #5 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-01-15 01:57:19 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:amo...@sourceware.org2012-01-15 01:57:15

Modified files:
ld : ChangeLog ldlang.c 

Log message:
PR ld/12758
* ldlang.c (lang_process): Don't reopen all files, just those
newly added by plugin.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=srcr1=1.2400r2=1.2401
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=srcr1=1.380r2=1.381

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2012-01-14 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

URL||http://sourceware.org/ml/bi
   ||nutils/2012-01/msg00180.htm
   ||l

--- Comment #6 from Alan Modra amodra at gmail dot com 2012-01-15 02:01:50 
UTC ---
Fixed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2012-01-14 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #7 from Alan Modra amodra at gmail dot com 2012-01-15 02:02:08 
UTC ---
.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2011-05-13 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2011-05-14 04:25:29 
UTC ---
It may be a compiler bug.  For some reason, LTO symbol
table is totally different from normal symbol table:

[hjl@gnu-mic-1 liba-failure]$ nm --plugin
/export/build/gnu/gcc-4.6/release/usr/gcc-4.6.1/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/liblto_plugin.so
lib/string.o 
 U _ctype
 T memscan
 T skip_spaces
 T strim
 T strlcat
 T strlcpy
 T strnchr
 T strnicmp
 T strnlen
 T strnstr
 T strsep
 T sysfs_streq
[hjl@gnu-mic-1 liba-failure]$ nm lib/string.o  r .LC0
0001 C __gnu_lto_v1
 r __kstrtab_memchr
001e r __kstrtab_memcmp
0016 r __kstrtab_memscan
0064 r __kstrtab_skip_spaces
00d0 r __kstrtab_strcasecmp
00a6 r __kstrtab_strcat
0080 r __kstrtab_strchr
008f r __kstrtab_strcmp
00bd r __kstrtab_strcpy
0040 r __kstrtab_strcspn
005e r __kstrtab_strim
0096 r __kstrtab_strlcat
00ad r __kstrtab_strlcpy
0057 r __kstrtab_strlen
00c4 r __kstrtab_strncasecmp
009e r __kstrtab_strncat
0070 r __kstrtab_strnchr
0087 r __kstrtab_strncmp
00b5 r __kstrtab_strncpy
00db r __kstrtab_strnicmp
004f r __kstrtab_strnlen
0007 r __kstrtab_strnstr
0038 r __kstrtab_strpbrk
0078 r __kstrtab_strrchr
0031 r __kstrtab_strsep
0048 r __kstrtab_strspn
000f r __kstrtab_strstr
0025 r __kstrtab_sysfs_streq
 r __ksymtab_memchr
0040 r __ksymtab_memcmp
0030 r __ksymtab_memscan
00d0 r __ksymtab_skip_spaces
01a0 r __ksymtab_strcasecmp
0150 r __ksymtab_strcat
0100 r __ksymtab_strchr
0120 r __ksymtab_strcmp
0180 r __ksymtab_strcpy
0080 r __ksymtab_strcspn
00c0 r __ksymtab_strim
0130 r __ksymtab_strlcat
0160 r __ksymtab_strlcpy
00b0 r __ksymtab_strlen
0190 r __ksymtab_strncasecmp
0140 r __ksymtab_strncat
00e0 r __ksymtab_strnchr
0110 r __ksymtab_strncmp
0170 r __ksymtab_strncpy
01b0 r __ksymtab_strnicmp
00a0 r __ksymtab_strnlen
0010 r __ksymtab_strnstr
0070 r __ksymtab_strpbrk
00f0 r __ksymtab_strrchr
0060 r __ksymtab_strsep
0090 r __ksymtab_strspn
0020 r __ksymtab_strstr
0050 r __ksymtab_sysfs_streq
 U _ctype
03bd T memchr
02d2 T memcmp
02ef T memscan
0156 T skip_spaces
 T strcasecmp
00be T strcat
011f T strchr
00e1 T strcmp
008c T strcpy
021e T strcspn
017c T strim
04a1 T strlcat
03d9 T strlcpy
016b T strlen
0042 T strncasecmp
046a T strncat
0136 T strnchr
00fb T strncmp
009f T strncpy
040f T strnicmp
01de T strnlen
036a T strnstr
0242 T strpbrk
01bb T strrchr
0268 T strsep
01f7 T strspn
0307 T strstr
0292 T sysfs_streq

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2011-05-13 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

--- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2011-05-14 04:52:06 
UTC ---
[hjl@gnu-6 foo]$ cat x.i
int memcmp(const void *cs, const void *ct, unsigned long count)
{
 const unsigned char *su1, *su2;
 int res = 0;

 for (su1 = cs, su2 = ct; 0  count; ++su1, ++su2, count--)
  if ((res = *su1 - *su2) != 0)
   break;
 return res;
}
[hjl@gnu-6 foo]$ cat y.s
.text
.globl _start
_start:
call memcmp
[hjl@gnu-6 foo]$ make
as   -o y.o y.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -nostdlib -o x1 y.o
-Wl,--start-group libx.a -Wl,--end-group
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -nostdlib -O2
-fuse-linker-plugin -flto=jobserver -o x2 y.o -Wl,--start-group libx.a
-Wl,--end-group
libx.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [x2] Error 1
[hjl@gnu-6 foo]$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12758] LTO doesn't work with --start-group and archive

2011-05-13 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12758

--- Comment #3 from H.J. Lu hjl.tools at gmail dot com 2011-05-14 05:07:05 
UTC ---
We should load LTO output before rescanning an archive.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils