This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] finish warning_at -> warning transition


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]