Re: [PATCH] Improve target pass registration

2016-10-09 Thread Jakub Jelinek
On Sun, Oct 09, 2016 at 10:51:10PM +0200, Eric Botcazou wrote: > > This breaks bootstrap on Solaris with nawk: > > > > nawk -f /homes/botcazou/gcc-head/src/gcc/gen-pass-instances.awk \ > > /homes/botcazou/gcc-head/src/gcc/passes.def > pass-instances.def > > nawk: you can only delete arr

Re: [PATCH] Improve target pass registration

2016-10-09 Thread Eric Botcazou
> This breaks bootstrap on Solaris with nawk: > > nawk -f /homes/botcazou/gcc-head/src/gcc/gen-pass-instances.awk \ > /homes/botcazou/gcc-head/src/gcc/passes.def > pass-instances.def > nawk: you can only delete array[element] at source line 196 > context is > delete >>> pass

Re: [PATCH] Improve target pass registration

2016-10-09 Thread Eric Botcazou
> Here is updated patch, bootstrapped/regtested on x86_64-linux and > i686-linux. I'll still wait a few days before committing to see if somebody > likes to comment on the awk implementation of the script. > > 2016-10-05 Jakub Jelinek > > * gen-pass-instances.awk: Rewritten. This break

Re: [PATCH] Improve target pass registration

2016-10-05 Thread Jakub Jelinek
On Tue, Oct 04, 2016 at 04:54:34PM +0200, Jakub Jelinek wrote: > > Typo in the comment: duplicated 'after'. > > Will fix. ... Here is updated patch, bootstrapped/regtested on x86_64-linux and i686-linux. I'll still wait a few days before committing to see if somebody likes to comment on the awk

Re: [PATCH] Improve target pass registration

2016-10-04 Thread Jakub Jelinek
On Tue, Oct 04, 2016 at 05:48:15PM +0300, Alexander Monakov wrote: > On Fri, 30 Sep 2016, Jakub Jelinek wrote: > > This patch allows backends to provide their *-passes.def file with > > instructions how to ammend passes.def, which then can be inspected in > > pass-instances.def the script generates

Re: [PATCH] Improve target pass registration

2016-10-04 Thread Alexander Monakov
On Fri, 30 Sep 2016, Jakub Jelinek wrote: > This patch allows backends to provide their *-passes.def file with > instructions how to ammend passes.def, which then can be inspected in > pass-instances.def the script generates. A few minor comments: > --- gcc/gen-pass-instances.awk.jj 2016-09-2

Re: [PATCH] Improve target pass registration

2016-10-04 Thread Uros Bizjak
On Tue, Oct 4, 2016 at 10:53 AM, Richard Biener wrote: > On Fri, 30 Sep 2016, Jakub Jelinek wrote: > >> Hi! >> >> As discussed earlier on IRC, the current way of registering target specific >> passes has various issues: >> 1) for -da, the target specific dump files appear last, regardless on where

Re: [PATCH] Improve target pass registration

2016-10-04 Thread Richard Biener
On Fri, 30 Sep 2016, Jakub Jelinek wrote: > Hi! > > As discussed earlier on IRC, the current way of registering target specific > passes has various issues: > 1) for -da, the target specific dump files appear last, regardless on where >exactly they appear in the pass queue, so one has to look

[PATCH] Improve target pass registration

2016-09-30 Thread Jakub Jelinek
Hi! As discussed earlier on IRC, the current way of registering target specific passes has various issues: 1) for -da, the target specific dump files appear last, regardless on where exactly they appear in the pass queue, so one has to look up the sources or remember where the pass is invoke