[Bug lto/82687] [8 regression] g++.dg/asan/default-options-1.C fails starting with r253914

2017-10-24 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82687

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Blocks||82575
 Resolution|--- |FIXED

--- Comment #3 from Alan Modra  ---
Fixed


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82575
[Bug 82575] [8 Regression] lto debugobj references __gnu_lto_slim, ld test
liblto-17 fails

[Bug lto/82687] [8 regression] g++.dg/asan/default-options-1.C fails starting with r253914

2017-10-24 Thread amodra at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82687

--- Comment #2 from Alan Modra  ---
Author: amodra
Date: Tue Oct 24 12:45:01 2017
New Revision: 254042

URL: https://gcc.gnu.org/viewcvs?rev=254042=gcc=rev
Log:
PR82687, g++.dg/asan/default-options-1.C fails with PR82575 fix

The problem with making discarded symbols hidden is that the
non-default visibility is sticky.  When symbols other than the
__gnu_lto ones are discarded that turns out to be a bad idea.

PR lto/82687
PR lto/82575
* simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
Only make __gnu_lto symbols hidden.  Delete outdated comment.
Silence ISO C warning.


Modified:
trunk/libiberty/ChangeLog
trunk/libiberty/simple-object-elf.c

[Bug lto/82687] [8 regression] g++.dg/asan/default-options-1.C fails starting with r253914

2017-10-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82687

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |8.0

[Bug lto/82687] [8 regression] g++.dg/asan/default-options-1.C fails starting with r253914

2017-10-23 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82687

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-10-24
 CC||amodra at gmail dot com,
   ||marxin at gcc dot gnu.org
  Component|other   |lto
 Ever confirmed|0   |1

--- Comment #1 from Alan Modra  ---
Confirmed.  default-options-1.exe is missing a dynamic __asan_default_options
symbol, presumably because the early debug object contained that symbol and it
needed to be discarded for some reason.  The problem with making discarded
symbols hidden is that the non-default visibility is sticky.