[RFA] finish warning_at -> warning transition
Manuel López-Ibáñez
lopezibanez@gmail.com
Wed Apr 29 16:53:00 GMT 2009
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.
More information about the Fortran
mailing list