Moved constant_expression_warning into c-common.c.
authorBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 7 Sep 1992 23:42:39 +0000 (19:42 -0400)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 7 Sep 1992 23:42:39 +0000 (19:42 -0400)
From-SVN: r2076

gcc/c-common.c
gcc/c-typeck.c

index b3579f6..f647b40 100644 (file)
@@ -281,6 +281,16 @@ decl_attributes (decl, attributes)
       }
 }
 \f
+/* Print a warning if a constant expression had overflow in folding.  */
+
+void
+constant_expression_warning (value)
+     tree value;
+{
+  if (TREE_CODE (value) == INTEGER_CST && TREE_CONSTANT_OVERFLOW (value))
+    pedwarn ("overflow in constant expression");
+}
+\f
 void
 c_expand_expr_stmt (expr)
      tree expr;
index 6a0247a..145a27b 100644 (file)
@@ -785,16 +785,6 @@ c_alignof (type)
 
   return size_int (TYPE_ALIGN (type) / BITS_PER_UNIT);
 }
-
-/* Print a warning if a constant expression had overflow in folding.  */
-
-void
-constant_expression_warning (value)
-     tree value;
-{
-  if (TREE_CODE (value) == INTEGER_CST && TREE_CONSTANT_OVERFLOW (value))
-    pedwarn ("overflow in constant expression");
-}
 \f
 /* Implement the __alignof keyword: Return the minimum required
    alignment of EXPR, measured in bytes.  For VAR_DECL's and