*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Fri, 22 May 1992 19:43:56 +0000 (19:43 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 22 May 1992 19:43:56 +0000 (19:43 +0000)
From-SVN: r1051

gcc/c-lex.c

index 34c83569505a816dfa991612d4ee3d423771626c..95efad586bb1a935d9210ab1f6c6a4365ab5fd9c 100644 (file)
@@ -1446,10 +1446,10 @@ yylex ()
                      warn = 1;
                    }
                if (warn)
-                 warning ("integer constant out of range");
+                 pedwarn ("integer constant out of range");
              }
            else if (overflow)
-             warning ("integer constant larger than compiler can handle");
+             pedwarn ("integer constant larger than compiler can handle");
 
            /* If it overflowed our internal buffer, then make it unsigned.
               We can't distinguish based on the tree node because
@@ -1602,6 +1602,9 @@ yylex ()
              }
 #endif
 
+           if (!int_fits_type_p (yylval.ttype, type))
+             pedwarn ("integer constant out of range");
+
            TREE_TYPE (yylval.ttype) = type;
            *p = 0;
          }