This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] DWARF support for AIX v4
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 24 Sep 2015 14:40:07 -0400
- Subject: Re: [PATCH] DWARF support for AIX v4
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnymx60pqzK9HmAet9wD0qEXEXS8stCcho_E-244t5zzhNg at mail dot gmail dot com> <560428D4 dot 1060400 at redhat dot com>
>> + else if (TARGET_XCOFF && GET_CODE (x) == SYMBOL_REF
>> + && SYMBOL_REF_TLS_MODEL (x) != 0)
>> + {
>> + if (SYMBOL_REF_TLS_MODEL (x) == TLS_MODEL_LOCAL_EXEC)
>> + fputs ("@le", file);
>> + else if (SYMBOL_REF_TLS_MODEL (x) == TLS_MODEL_INITIAL_EXEC)
>> + fputs ("@ie", file);
>> + else if (SYMBOL_REF_TLS_MODEL (x) == TLS_MODEL_GLOBAL_DYNAMIC
>> + || SYMBOL_REF_TLS_MODEL (x) == TLS_MODEL_LOCAL_DYNAMIC)
>> + fputs ("@m", file);
>> + }
>
> FWIW, I would have written this:
>
>
> else if (TARGET_XCOFF && GET_CODE (x) == SYMBOL_REF)
> {
> switch (SYMBOL_REF_TLS_MODEL (x))
> {
> case 0:
> break;
> case TLS_MODEL_LOCAL_EXEC:
> fputs ("@le", file);
> break;
> case TLS_MODEL_INITIAL_EXEC:
> fputs ("@ie", file);
> break;
> case TLS_MODEL_GLOBAL_DYNAMIC:
> case TLS_MODEL_LOCAL_DYNAMIC:
> fputs ("@m", file);
> break;
> default:
> gcc_unreachable ();
> }
> }
Okay, I will retest with that.
I separately have some good news and some bad news.
Good news: AIX added support for the initially missing DWARF sections.
Bad news: The support is in an AIX service pack whose presence on a
system requires effort to determine.
Thanks, David