[PATCH] aix: Default to DWARF 4

David Edelsohn dje.gcc@gmail.com
Mon Jan 18 17:42:45 GMT 2021


On Mon, Jan 18, 2021 at 11:49 AM Jakub Jelinek <jakub@redhat.com> wrote:
>
> On Mon, Jan 18, 2021 at 11:31:37AM -0500, David Edelsohn via Gcc-patches wrote:
> > On Mon, Jan 18, 2021 at 6:01 AM Mark Wielaard <mark@klomp.org> wrote:
> > >
> > > Hi David,
> > >
> > > On Sun, Jan 17, 2021 at 06:12:06PM -0500, David Edelsohn wrote:
> > > >     GCC now defaults to DWARF 5.  AIX only supports DWARF 4 (3.5).
> > > >
> > > >     This patch overrides the default DWARF version to 4 unless explicitly
> > > >     stated.
> > > >
> > > >     gcc/ChangeLog:
> > > >
> > > >             * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
> > > >             dwarf_version to 4.
> > > >             * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
> > >
> > > Thanks, I hadn't tested against AIX.  Could you also update
> > > gcc/doc/invoke.texi (-gdwarf) with the defaults for AIX?
> >
> > Other targets override the default DWARF level and I don't see it documented.
>
> We certainly document that Darwin and VxWorks default to dwarf_version 2.
> Which other targets do you have in mind?

s390 TPF.

- David


More information about the Gcc-patches mailing list