* varasm.c (output_constant): Do nothing if -fsyntax-only.

From-SVN: r26833
This commit is contained in:
Andreas Schwab 1999-05-08 01:25:41 +00:00 committed by Richard Henderson
parent 2d9e0ce793
commit e9996db741
2 changed files with 5 additions and 1 deletions

View 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

View 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.