X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fc-errors.c;h=bee534c44fe5c6cd3d19d311383f6e452cfa1c57;hp=999743259f1c1d6848e9848856020c376d56e601;hb=01a092a90fe904c37fb4cce1c254f8ee01cbe17e;hpb=a52d5726b14e904406c69435e6b2955dfdb68735 diff --git a/gcc/c-errors.c b/gcc/c-errors.c index 999743259f1..bee534c44fe 100644 --- a/gcc/c-errors.c +++ b/gcc/c-errors.c @@ -1,5 +1,5 @@ /* Various diagnostic subroutines for the GNU C language. - Copyright (C) 2000, 2001, 2003, 2007 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2003, 2007, 2008 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis This file is part of GCC. @@ -31,13 +31,13 @@ along with GCC; see the file COPYING3. If not see /* Issue an ISO C99 pedantic warning MSGID. */ void -pedwarn_c99 (int opt, const char *gmsgid, ...) +pedwarn_c99 (location_t location, int opt, const char *gmsgid, ...) { diagnostic_info diagnostic; va_list ap; va_start (ap, gmsgid); - diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location, + diagnostic_set_info (&diagnostic, gmsgid, &ap, location, flag_isoc99 ? DK_PEDWARN : DK_WARNING); diagnostic.option_index = opt; report_diagnostic (&diagnostic); @@ -50,13 +50,13 @@ pedwarn_c99 (int opt, const char *gmsgid, ...) (There is no flag_c90.) */ void -pedwarn_c90 (int opt, const char *gmsgid, ...) +pedwarn_c90 (location_t location, int opt, const char *gmsgid, ...) { diagnostic_info diagnostic; va_list ap; va_start (ap, gmsgid); - diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location, + diagnostic_set_info (&diagnostic, gmsgid, &ap, location, flag_isoc99 ? DK_WARNING : DK_PEDWARN); diagnostic.option_index = opt; report_diagnostic (&diagnostic);