This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC 1/5] xtensa: don't expect XCHAL_* macros to be constant
- From: Max Filippov <jcmvbkbc at gmail dot com>
- To: "augustine dot sterling at gmail dot com" <augustine dot sterling at gmail dot com>
- Cc: binutils at sourceware dot org, David Weatherford <weath at cadence dot com>
- Date: Wed, 14 Jun 2017 11:10:11 -0700
- Subject: Re: [RFC 1/5] xtensa: don't expect XCHAL_* macros to be constant
- Authentication-results: sourceware.org; auth=none
- References: <1495487553-19078-1-git-send-email-jcmvbkbc@gmail.com> <1495487553-19078-2-git-send-email-jcmvbkbc@gmail.com> <CAGSvup9g9C5xrmAA=m6c2vzmj5fr4FaO+32N5g+NvEO2ELCLvg@mail.gmail.com>
On Fri, May 26, 2017 at 10:36 AM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Mon, May 22, 2017 at 2:12 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> Get rid of the assumption that XCHAL_* macros are preprocessor
>> constants: don't use them in preprocessor conditionals or in static
>> variable initializers.
>>
>> 2017-05-22 Max Filippov <jcmvbkbc@gmail.com>
>> bfd/
>> * elf32-xtensa.c (elf_xtensa_be_plt_entry,
>> elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays,
>> keep both windowed and call0 ABI PLT definitions.
>> (elf_xtensa_create_plt_entry): Use selected ABI to choose upper
>> elf_xtensa_*_plt_entry endex.
>> (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size.
>>
>> gas/
>> * config/tc-xtensa.c (density_supported, xtensa_fetch_width,
>> absolute_literals_supported): Leave definitions uninitialized.
>> (directive_state): Leave entries for directive_density and
>> directive_absolute_literals initialized to false.
>> (xg_init_global_config, xtensa_init): New functions.
>> * config/tc-xtensa.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
>> (HOST_SPECIAL_INIT): New definition.
>> (xtensa_init): New declaration.
>
> This is ok.
Applied to master. Thanks!
-- Max