[PATCH] DWARF support for AIX v4

David Edelsohn dje.gcc@gmail.com
Fri Sep 25 00:18:00 GMT 2015


On Thu, Sep 24, 2015 at 4:05 PM, Richard Henderson <rth@redhat.com> wrote:

>> If the assembler and linker generate errors, it further
>> delays deployment in GCC.
>
> If the assembler generates errors, then surely it's easy to error out at
> configure time, printing a note about the service pack.
>
> So, assuming this is true, when configuring for aix7.1,
>
>  * configure --without-dwarf2 disables support for dwarf2 entirely,
>    avoiding problems with any missing SP.  Presumably by *not* including
>    config/rs6000/aix71.h.
>
>  * configure checks as/ld as required, erroring out if the SP isn't present;
>    dwarf2out always emits all of the usual dwarf data.
>
> Sound good?

Older assemblers produce an error when presented with the new sections.

I was planning to commit the current patch, which is supported by AIX
7.1.  And follow up with another patch that adds a configure test for
the additional sections support (HAVE_XCOFF_DWARF_EXTRA?) to tweak the
output.  As you mentioned, the minimal sections should allow debugging
with -O0 -g2, which is equivalent to the stabs functionality.

Thanks, David



More information about the Gcc-patches mailing list