[Bug gas/26359] FAIL: .xstabs

2020-08-13 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26359

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8118fd4346e353323cda683c5158f90efedf1002

commit 8118fd4346e353323cda683c5158f90efedf1002
Author: Nick Clifton 
Date:   Thu Aug 13 11:50:13 2020 +0100

Fix an internal compiler error when attempting to create a second
$GDB_DEBUG$ section.

PR 26359
* config/obj-som.c (obj_som_init_stab_section): Do nothing if the
$GDB_DEBUG$ section has already been created.

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


[Bug gas/26359] FAIL: .xstabs

2020-08-13 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26359

Nick Clifton  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton  ---
Hi John,

  Thanks for reporting this.  It was a simple case of trying to create 
  a debug section when it already existed.  Fixed with the applied patch.

Cheers
  Nick

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


[Bug gas/26359] FAIL: .xstabs

2020-08-13 Thread dave.anglin at bell dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=26359

--- Comment #3 from dave.anglin at bell dot net ---
On 2020-08-13 6:53 a.m., nickc at redhat dot com wrote:
>   Thanks for reporting this.  It was a simple case of trying to create 
>   a debug section when it already existed.  Fixed with the applied patch.
Thanks Nick.

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


[Bug gas/26381] New: gas: speed of LTO LTRANS units

2020-08-13 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26381

Bug ID: 26381
   Summary: gas: speed of LTO LTRANS units
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

Created attachment 12767
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12767&action=edit
One ltrans of libxul.so (of 128)

I noticed that gas takes quite some time on Firefox LTRANS files:

$ time as /tmp/libxul-ltrans.s -o /dev/null

real0m4.978s
user0m4.761s
sys 0m0.214s

with the following perf profile:

46.95%  as   as   [.] hash_lookup
 5.37%  as   libc-2.31.so [.] __strncmp_avx2
 5.24%  as   as   [.] resolve_symbol_value
 4.25%  as   as   [.] do_scrub_chars
 1.98%  as   libc-2.31.so [.] __strlen_avx2
 1.89%  as   libz.so.1.2.11   [.] longest_match

After I applied the following fix:
https://sourceware.org/pipermail/binutils/2020-August/112831.html

I can get to:

$ time ./gas/as-new /tmp/libxul-ltrans.s -o /dev/null --hash-size=100 

real0m3.333s
user0m3.192s
sys 0m0.139s

So one needs to use a bigger hash table. With that I get the following profile:

20.86%  as-new   as-new[.] hash_lookup
 7.62%  as-new   as-new[.] resolve_symbol_value
 6.89%  as-new   libc-2.31.so  [.] __strncmp_avx2
 5.63%  as-new   as-new[.] do_scrub_chars
 3.04%  as-new   as-new[.] read_a_source_file
 2.89%  as-new   as-new[.] get_symbol_name
 2.83%  as-new   libc-2.31.so  [.] __strlen_avx2
 2.68%  as-new   as-new[.] longest_match
 2.21%  as-new   as-new[.] check_eh_frame

So apparently, most of the time is spent in memory load of hash table entries
and their strcmp comparison. Can we do something about it in order to make it
faster?
Would it be possible to deduce hash tables sizes automatically (not using
--hash-size argument)?

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


[Bug binutils/26382] New: Inconsistent undefined versioned symbols

2020-08-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26382

Bug ID: 26382
   Summary: Inconsistent undefined versioned symbols
   Product: binutils
   Version: 2.36 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

nm -D is consistent with readelf -sW and nm on undefined versioned symbol:

[hjl@gnu-cfl-2 tmp]$ cat x.c
#include 

void
foo (void)
{
  printf ("foo\n");
}
[hjl@gnu-cfl-2 tmp]$ gcc -shared -fPIC x.c
[hjl@gnu-cfl-2 tmp]$ readelf -sW a.out | grep UND | grep @@
47:  0 FUNCGLOBAL DEFAULT  UND puts@@GLIBC_2.2.5
51:  0 FUNCWEAK   DEFAULT  UND
__cxa_finalize@@GLIBC_2.2.5
[hjl@gnu-cfl-2 tmp]$ nm a.out | grep " U "  | grep @@
 U puts@@GLIBC_2.2.5
[hjl@gnu-cfl-2 tmp]$ nm -D a.out | grep " U "  | grep @@
 U puts@@GLIBC_2.2.5
[hjl@gnu-cfl-2 tmp]$

But readelf --dyn-syms only displays a single @.

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


[Bug ld/26382] Inconsistent undefined versioned symbols

2020-08-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26382

H.J. Lu  changed:

   What|Removed |Added

  Component|binutils|ld

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


[Bug gas/26381] gas: speed of LTO LTRANS units

2020-08-13 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26381

--- Comment #1 from Martin Liska  ---
And I would like to mention that it consumes ~625MB of memory which is quite
high..

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


[Bug gas/26381] gas: speed of LTO LTRANS units

2020-08-13 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26381

Martin Liska  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

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


[Bug gas/26381] gas: speed of LTO LTRANS units

2020-08-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26381

--- Comment #2 from H.J. Lu  ---
Created attachment 12768
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12768&action=edit
A patch

Try this.

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


[Bug gas/26381] gas: speed of LTO LTRANS units

2020-08-13 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26381

H.J. Lu  changed:

   What|Removed |Added

  Attachment #12768|0   |1
is obsolete||

--- Comment #3 from H.J. Lu  ---
Created attachment 12769
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12769&action=edit
A patch

Try this.

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