[Bug ld/32083] lto1: fatal error: multiple prevailing defs for ‘func’

2024-08-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32083

--- Comment #3 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

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

commit a6f8fe0a9e9cbe871652e46ba7c22d5e9fb86208
Author: H.J. Lu 
Date:   Wed Aug 14 20:50:02 2024 -0700

lto: Don't include unused LTO archive members in output

When plugin_object_p is called by elf_link_is_defined_archive_symbol to
check if a symbol in archive is a real definition, set archive member
plugin_format to bfd_plugin_yes_unused to avoid including the unused LTO
archive members in linker output.  When plugin_object_p is called as
known used, call plugin claim_file if plugin_format is bfd_plugin_unknown
or bfd_plugin_yes_unused.

To get the proper support for archives with LTO common symbols with GCC,
the GCC fix for

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116361

is needed.

bfd/

PR ld/32083
* archures.c (bfd_arch_get_compatible): Treat bfd_plugin_yes_unused
the same as bfd_plugin_yes.
* elflink.c (elf_link_is_defined_archive_symbol): Likewise.
* bfd.c (bfd_plugin_format): Add bfd_plugin_yes_unused.
* plugin.c (try_claim): Try claim_file_v2 first.
* bfd-in2.h: Regenerated.

ld/

PR ld/32083
* plugin.c (plugin_call_claim_file): Add an argument to return
if LDPT_REGISTER_CLAIM_FILE_HOOK_V2 is used.
(plugin_object_p): When KNOWN_USED is false, we call plugin
claim_file if plugin_format is bfd_plugin_unknown and set
plugin_format to bfd_plugin_yes_unused on LTO object.  When
KNOWN_USED is true, we call plugin claim_file if plugin_format
is bfd_plugin_unknown or bfd_plugin_yes_unused.

Signed-off-by: H.J. Lu 

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


[Bug gprofng/32085] Source file not recognized for gcc 11.4.0-compiled code

2024-08-15 Thread itzkowitzmarty at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32085

--- Comment #2 from Marty Itzkowitz  ---
msi3@ufront ~/gits/QAHPCT/minitest $ gper_print --version
GNU gp-display-text binutils version 2.43
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

(Note the alias I used to restore the names I’m used to.) 🙂

I see the same problem with gcc/12.3.0 and gcc/13.2.0.

I am running on ufront.cs.rice.edu
OSNAME: Linux RHEL_(Ootpa) (4.18.0-477.64.1.el8_8.x86_64)
NCPUs: 96
CPUTYPE: AMD EPYC 7402 24-Core Processor AMD EPYC 7402 24-Core Processor

Question: how can I get the sources of gprofng?

Thanks,
Marty

> On Aug 14, 2024, at 20:19, vladimir.mezentsev at oracle dot com 
>  wrote:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=32085
> 
> Vladimir Mezentsev  changed:
> 
>   What|Removed |Added
> 
>   Last reconfirmed||2024-08-15
> Ever confirmed|0   |1
>   See Also||https://sourceware.org/bugz
>   ||illa/show_bug.cgi?id=31169
> Status|UNCONFIRMED |ASSIGNED
> 
> --- Comment #1 from Vladimir Mezentsev  
> ---
> I cannot reproduce the problem on OL8 (x86_64).
> I don't have gcc-11.4.0.
> I use this gcc:
> % /opt/rh/gcc-toolset-11/root/usr/bin/gcc --version
> gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3.0.1)
> 
> What is a version of your gp-display-text ?
> I use:
> % gp-display-text --version
> GNU gp-display-text binutils version 2.42
> 
> If you are using version 2.41, this may be a duplicate of bug
> 31169 - [display text] Source code locations can not be found in a C++
> application (edit)
> 
> This bug is fixed in 2.42.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
> You are on the CC list for the bug.

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


[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32073

--- Comment #27 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

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

commit 4184396d5878a49c3e25d28d76a278940f5fbe6b
Author: H.J. Lu 
Date:   Wed Aug 14 09:54:33 2024 -0700

Revert "MIPS: correct macro use in gas and ld testsuites"

This reverts commit c0e9aca554e33e900efbd6425c1830f0a20012f5.

commit 6ae8a30d44f016cafb46a75843b5109316eb1996
Author: Jan Beulich 
Date:   Fri Aug 9 11:59:31 2024 +0200

gas: have scrubber retain more whitespace

has been reverted to fix PR gas/32073.

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


[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32073

--- Comment #30 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

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

commit 5e3c96bded40e0f3a953288675742317cc35535e
Author: H.J. Lu 
Date:   Wed Aug 14 09:54:36 2024 -0700

Revert "Arm: correct macro use in gas testsuite"

This reverts commit cfa18744d435b55c5ef1ae1df67e84aa1777.

commit 6ae8a30d44f016cafb46a75843b5109316eb1996
Author: Jan Beulich 
Date:   Fri Aug 9 11:59:31 2024 +0200

gas: have scrubber retain more whitespace

has been reverted to fix PR gas/32073.

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


[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32073

--- Comment #29 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

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

commit a1299dc71ecd5cb89b85ab405c36b1ad76b8614c
Author: H.J. Lu 
Date:   Wed Aug 14 09:54:35 2024 -0700

Revert "bfin: correct macro use in gas testsuite"

This reverts commit a1b7023447d19d70bc36d71b7627f457dbfae5ce.

commit 6ae8a30d44f016cafb46a75843b5109316eb1996
Author: Jan Beulich 
Date:   Fri Aug 9 11:59:31 2024 +0200

gas: have scrubber retain more whitespace

has been reverted to fix PR gas/32073.

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


[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32073

--- Comment #28 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

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

commit 5835278179d574b36fe916654f9197f2c6a02f3c
Author: H.J. Lu 
Date:   Wed Aug 14 09:54:34 2024 -0700

Revert "ia64: correct macro use in gas testsuite"

This reverts commit 2231ac9b9e88191178001d0ae5845e292acb2a56.

commit 6ae8a30d44f016cafb46a75843b5109316eb1996
Author: Jan Beulich 
Date:   Fri Aug 9 11:59:31 2024 +0200

gas: have scrubber retain more whitespace

has been reverted to fix PR gas/32073.

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


[Bug gprofng/31116] gprofng test fails with "comparison of results in synprog failed" on x86_64-linux-gnu

2024-08-15 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31116

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

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


[Bug gprofng/32085] Source file not recognized for gcc 11.4.0-compiled code

2024-08-15 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32085

Ruud van der Pas  changed:

   What|Removed |Added

 CC||ruud.vanderpas at oracle dot 
com

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


[Bug ld/32083] lto1: fatal error: multiple prevailing defs for ‘func’

2024-08-15 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=32083

--- Comment #4 from Sourceware Commits  ---
The binutils-2_43-branch branch has been updated by H.J. Lu
:

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

commit 92b6ecd5589fb7db9f28dba41978f87974312aa5
Author: H.J. Lu 
Date:   Wed Aug 14 20:50:02 2024 -0700

lto: Don't include unused LTO archive members in output

When plugin_object_p is called by elf_link_is_defined_archive_symbol to
check if a symbol in archive is a real definition, set archive member
plugin_format to bfd_plugin_yes_unused to avoid including the unused LTO
archive members in linker output.  When plugin_object_p is called as
known used, call plugin claim_file if plugin_format is bfd_plugin_unknown
or bfd_plugin_yes_unused.

To get the proper support for archives with LTO common symbols with GCC,
the GCC fix for

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116361

is needed.

bfd/

PR ld/32083
* archures.c (bfd_arch_get_compatible): Treat bfd_plugin_yes_unused
the same as bfd_plugin_yes.
* elflink.c (elf_link_is_defined_archive_symbol): Likewise.
* bfd.c (bfd_plugin_format): Add bfd_plugin_yes_unused.
* plugin.c (try_claim): Try claim_file_v2 first.
* bfd-in2.h: Regenerated.

ld/

PR ld/32083
* plugin.c (plugin_call_claim_file): Add an argument to return
if LDPT_REGISTER_CLAIM_FILE_HOOK_V2 is used.
(plugin_object_p): When KNOWN_USED is false, we call plugin
claim_file if plugin_format is bfd_plugin_unknown and set
plugin_format to bfd_plugin_yes_unused on LTO object.  When
KNOWN_USED is true, we call plugin claim_file if plugin_format
is bfd_plugin_unknown or bfd_plugin_yes_unused.

Signed-off-by: H.J. Lu 
(cherry picked from commit a6f8fe0a9e9cbe871652e46ba7c22d5e9fb86208)

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