* varasm.c (output_constant): Do nothing if -fsyntax-only.
authorAndreas Schwab <schwab@issan.cs.uni-dortmund.de>
Sat, 8 May 1999 01:25:41 +0000 (01:25 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 8 May 1999 01:25:41 +0000 (18:25 -0700)
From-SVN: r26833

gcc/ChangeLog
gcc/varasm.c

index e2644207aecba27d3db626ada8cb78af30c971ac..3081ed59d60d9928e2de339af1ab0e97b1a0d308 100644 (file)
@@ -1,3 +1,7 @@
+Sat May  8 01:25:09 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
+
+       * varasm.c (output_constant): Do nothing if -fsyntax-only.
+
 Fri May  7 19:10:15 1999  Vladimir Makarov  <vmakarov@tofu.to.cygnus.com>
 
        * sparc.h (GO_IF_LEGITIMATE_ADDRESS): Prohibit REG+REG addressing
index 3f70814a6d592ac4bcdde754e167e70531d36e04..84746f6dba32f9f2909f8705e56d300b5ed1b0cc 100644 (file)
@@ -3870,7 +3870,7 @@ output_constant (exp, size)
 {
   register enum tree_code code = TREE_CODE (TREE_TYPE (exp));
 
-  if (size == 0)
+  if (size == 0 || flag_syntax_only)
     return;
 
   /* Eliminate the NON_LVALUE_EXPR_EXPR that makes a cast not be an lvalue.