On 15/01/2021 17:16, Jakub Jelinek via Gcc-patches wrote:

On Sun, Nov 15, 2020 at 11:41:24PM +0100, Mark Wielaard wrote:
On Tue, 2020-09-29 at 15:56 +0200, Mark Wielaard wrote:
On Thu, 2020-09-10 at 13:16 +0200, Jakub Jelinek wrote:
On Wed, Sep 09, 2020 at 09:57:54PM +0200, Mark Wielaard wrote:
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -9057,13 +9057,14 @@ possible.
  @opindex gdwarf
  Produce debugging information in DWARF format (if that is supported).
  The value of @var{version} may be either 2, 3, 4 or 5; the default version
-for most targets is 4.  DWARF Version 5 is only experimental.
+for most targets is 5 (with the exception of vxworks and darwin which
+default to version 2).
I think in documentation we should spell these VxWorks and Darwin/Mac OS X
OK. As attached.

Are we ready to flip the default to 5?
Ping. It would be good to get this in now so that we can fix issues (if
any) with the DWARF5 support in the general bugfixing stage 3.

Thanks,

Mark
 From c04727b6209ad4d52d1b9ba86873961bda0e1724 Mon Sep 17 00:00:00 2001
From: Mark Wielaard<m...@klomp.org>
Date: Tue, 29 Sep 2020 15:52:44 +0200
Subject: [PATCH] Default to DWARF5

gcc/ChangeLog:

        * common.opt (gdwarf-): Init(5).
        * doc/invoke.texi (-gdwarf): Document default to 5.
Ok for trunk.

I noticed a build error with aarch64-rtems recently:

libtool: compile: /home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/./gcc/xgcc -shared-libgcc -B/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/./gcc -nostdinc++ -L/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/libstdc++-v3/src -L/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/libstdc++-v3/src/.libs -L/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/libstdc++-v3/libsupc++/.libs -nostdinc -B/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/newlib/ -isystem /home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/newlib/targ-include -isystem /home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/gnu-mirror-gcc-0f951b3/newlib/libc/include -B/tmp/sh/rtems/7/aarch64-rtems7/bin/ -B/tmp/sh/rtems/7/aarch64-rtems7/lib/ -isystem /tmp/sh/rtems/7/aarch64-rtems7/include -isystem /tmp/sh/rtems/7/aarch64-rtems7/sys-include -I/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/gnu-mirror-gcc-0f951b3/libstdc++-v3/../libgcc -I/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/libstdc++-v3/include/aarch64-rtems7 -I/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/build/aarch64-rtems7/libstdc++-v3/include -I/home/EB/sebastian_h/src/rtems-source-builder/rtems/build/aarch64-rtems7-gcc-0f951b3-newlib-9ad86f6-x86_64-linux-gnu-1/gnu-mirror-gcc-0f951b3/libstdc++-v3/libsupc++ -std=gnu++11 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=cxx11-ios_failure.lo -g -O2 -g0 -c cxx11-ios_failure-lt.s -o cxx11-ios_failure.o
cxx11-ios_failure-lt.s: Assembler messages:
cxx11-ios_failure-lt.s:38443: Error: file number less than one

This is the related code:

.Ldebug_line0:
    .file 0 "/tmp/sh/b-gcc-git-aarch64-rtems6/aarch64-rtems6/libstdc++-v3/src/c++11" "/home/EB/sebastian_h/src/gcc/libstdc++-v3/src/c++11/cxx11-ios_failure.cc"
    .section    .debug_str,"MS",@progbits,1

I am not sure if this is related to the change:

commit 3804e937b0e252a7e42632fe6d9f898f1851a49c
Author:     Mark Wielaard <m...@klomp.org>
AuthorDate: Tue Sep 29 15:52:44 2020 +0200
Commit:     Mark Wielaard <m...@klomp.org>
CommitDate: Sun Jan 17 01:36:39 2021 +0100

    Default to DWARF5

    gcc/ChangeLog:

            * common.opt (gdwarf-): Init(5).
            * doc/invoke.texi (-gdwarf): Document default to 5.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

Reply via email to