[Bug lto/109263] [10/11/12 Regression] '-g0 -ggdb -flto' gives linker error

2023-04-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109263

--- Comment #5 from CVS Commits  ---
The releases/gcc-12 branch has been updated by Richard Biener
:

https://gcc.gnu.org/g:42b3d387f7335a4bc8846e3b7a2a78fb47be68b2

commit r12-9410-g42b3d387f7335a4bc8846e3b7a2a78fb47be68b2
Author: Richard Biener 
Date:   Thu Mar 23 16:56:53 2023 +0100

lto/109263 - lto-wrapper and -g0 -ggdb

The following makes lto-wrapper deal with non-combined debug
disabling / enabling option combinations properly.  Interestingly
-gno-dwarf also enables debug.

PR lto/109263
* lto-wrapper.cc (run_gcc): Parse alternate debug options
as well, they always enable debug.

(cherry picked from commit 4cbd5ef0350d8ab04993eb4c48ab80999fb4f358)

[Bug lto/109263] [10/11/12 Regression] '-g0 -ggdb -flto' gives linker error

2023-03-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109263

Richard Biener  changed:

   What|Removed |Added

  Known to work||13.0
Summary|[10/11/12/13 Regression]|[10/11/12 Regression] '-g0
   |'-g0 -ggdb -flto' gives |-ggdb -flto' gives linker
   |linker error|error
  Known to fail||12.2.0

--- Comment #4 from Richard Biener  ---
Fixed on trunk sofar.