This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] finish warning_at -> warning transition
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 29 Apr 2009 18:53:02 +0200
- Subject: Re: [RFA] finish warning_at -> warning transition
- References: <6c33472e0904290858u631969e3h8c2b92d6153dcd49@mail.gmail.com> <84fc9c000904290943j1e1c3ab9x44f4bd8cb8397d1d@mail.gmail.com>
2009/4/29 Richard Guenther <richard.guenther@gmail.com>:
> On Wed, Apr 29, 2009 at 5:58 PM, Manuel López-Ibáñez
> <lopezibanez@gmail.com> wrote:
> Is it the case that whenever a location argument is missing you
> simply add input_location? ?In this case all changes in the middle-end
> and backends are ok if lines are wrapped properly. ?(I would nearly
> call the patch obvious in that case - but obviously it's too large for
> that to apply ;))
Yes. Hopefully, the location work going on somewhere else will
eventually replace input_location with something better.
Some changes were done manually but most changes were generated by the
following:
find ${ROOT} -name '*libgfortran*' -prune -o -name '*libstdc++-v3*'
-prune -o -name '*testsuite*' -prune -o -name '*.svn*' -prune -o
-name '*~' -prune \
-o -name '*.c' -print -o -name '*.h' -print \
| xargs sed -r -i 's/(\s+)warning\s*\(0/\1warning (input_location, 0/'
find ${ROOT} -name '*libgfortran*' -prune -o -name '*libstdc++-v3*'
-prune -o -name '*testsuite*' -prune -o -name '*.svn*' -prune -o
-name '*~' -prune \
-o -name '*.c' -print -o -name '*.h' -print \
| xargs sed -r -i 's/(\s+)warning\s*\(OPT/\1warning (input_location, OPT/'
find ${ROOT} -name '*libgfortran*' -prune -o -name '*libstdc++-v3*'
-prune -o -name '*testsuite*' -prune -o -name '*.svn*' -prune -o
-name '*~' -prune \
-o -name '*.c' -print -o -name '*.h' -print \
| xargs sed -r -i 's/(\s+)warning_at/\1warning/'
Cheers,
Manuel.