[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-09 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

Eric Botcazou  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #18 from Eric Botcazou  ---
Thanks for reporting the problem.

[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

--- Comment #17 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Eric Botcazou
:

https://gcc.gnu.org/g:d9d954ebd507572a460f93f404bba71e271e2dda

commit r11-8711-gd9d954ebd507572a460f93f404bba71e271e2dda
Author: Eric Botcazou 
Date:   Fri Jul 9 12:08:52 2021 +0200

Fix build failure on Windows with older binutils

This is the build failure on Windows with binutils for which GNU as accepts
the --gdwarf-5 switch but GNU ld generates broken binaries with DWARF 5.

We already have the HAVE_LD_BROKEN_PE_DWARF5 kludge to disable DWARF 5 in
this case but it only tames the DWARF version in the compiler, so the
driver still passes --gdwarf-5 when invoked on an assembly file with -g.

gcc/
PR target/101377
* gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
and HAVE_LD_BROKEN_PE_DWARF5 is defined.

[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

--- Comment #16 from CVS Commits  ---
The master branch has been updated by Eric Botcazou :

https://gcc.gnu.org/g:e37e175e7dc3376244eb7705269ada6755616831

commit r12-2189-ge37e175e7dc3376244eb7705269ada6755616831
Author: Eric Botcazou 
Date:   Fri Jul 9 12:08:52 2021 +0200

Fix build failure on Windows with older binutils

This is the build failure on Windows with binutils for which GNU as accepts
the --gdwarf-5 switch but GNU ld generates broken binaries with DWARF 5.

We already have the HAVE_LD_BROKEN_PE_DWARF5 kludge to disable DWARF 5 in
this case but it only tames the DWARF version in the compiler, so the
driver still passes --gdwarf-5 when invoked on an assembly file with -g.

gcc/
PR target/101377
* gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
and HAVE_LD_BROKEN_PE_DWARF5 is defined.

[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-08 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

--- Comment #15 from LIU Hao  ---
I have bootstrapped GCC 11.1.1 on both {x86_64,i686}-w64-mingw32 and seen no
problem so far.

[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

Andrew Pinski  changed:

   What|Removed |Added

 CC||mckelvey at maskull dot com

--- Comment #14 from Andrew Pinski  ---
*** Bug 101369 has been marked as a duplicate of this bug. ***

[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-08 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

--- Comment #13 from Eric Botcazou  ---
> I will try rebuilding tomorrow (~11hrs later).

OK, thanks in advance.

[Bug target/101377] [11/12 Regression] 'exec format error' on x86_64-w64-mingw32

2021-07-08 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377

--- Comment #12 from LIU Hao  ---
I will try rebuilding tomorrow (~11hrs later).