This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch,avr] Simplify genmultilib.awk
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Senthil Kumar Selvaraj <senthilkumar dot selvaraj at microchip dot com>, Pitchumani Sivanupandi <pitchumani dot sivanupandi at microchip dot com>
- Date: Mon, 22 May 2017 15:47:55 +0400
- Subject: Re: [patch,avr] Simplify genmultilib.awk
- Authentication-results: sourceware.org; auth=none
- References: <f5960d0e-a68f-6c56-4c76-27430c25fa16@gjlay.de>
2017-05-22 15:37 GMT+04:00 Georg-Johann Lay <avr@gjlay.de>:
> This patch simplifies genmultilib.awk so that it generates
> MULTILIB_REQUIRED instead of the complement, MULTILIB_EXCEPTIONS.
>
> The current awk script dates back to the days when we mapped
> all the > 200 devices to the mmcu core and also parts of
> --help=target to list all devices were generated from avr-mmcus.
> That code rot is also cleaned up. Moreover, the structure now allows
> for simpler addition of new multilib options which are likely to come
> in the near future.
>
> The result of -print-multi-lib is:
>
> .;
> avr25;@mmcu=avr25
> avr3;@mmcu=avr3
> avr31;@mmcu=avr31
> avr35;@mmcu=avr35
> avr4;@mmcu=avr4
> avr5;@mmcu=avr5
> avr51;@mmcu=avr51
> avr6;@mmcu=avr6
> avrxmega2;@mmcu=avrxmega2
> avrxmega4;@mmcu=avrxmega4
> avrxmega5;@mmcu=avrxmega5
> avrxmega6;@mmcu=avrxmega6
> avrxmega7;@mmcu=avrxmega7
> avrtiny;@mmcu=avrtiny
> tiny-stack;@msp8
> avr25/tiny-stack;@mmcu=avr25@msp8
>
> hence unchanged.
>
> Ok for trunk?
>
> Johann
>
>
> * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
> command option from $(AWK) call.
> * config/avr/genmultilib.awk: Simplify and rewrite so that it
> generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
> [FORMAT]: Remove handling of variable.
> * config/avr/t-multilib: Regenerate.
Approved.
Please commit.