OSDN Git Service

2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Feb 2010 16:56:09 +0000 (16:56 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Feb 2010 16:56:09 +0000 (16:56 +0000)
PR c/24577
* c-decl.c (undeclared_variable): Use an informative note.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157095 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-decl.c

index 91b9555..e3d5e71 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       PR c/24577
+       * c-decl.c (undeclared_variable): Use an informative note.
+
 2010-02-26  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/43186
index e8e7a45..f0b6463 100644 (file)
@@ -2949,11 +2949,10 @@ undeclared_variable (location_t loc, tree id)
   else
     {
       error_at (loc, "%qE undeclared (first use in this function)", id);
-
       if (!already)
        {
-         error_at (loc, "(Each undeclared identifier is reported only once");
-         error_at (loc, "for each function it appears in.)");
+          inform (loc, "each undeclared identifier is reported only"
+                  " once for each function it appears in");
          already = true;
        }