aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@issan.cs.uni-dortmund.de>1999-05-08 01:25:41 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-05-07 18:25:41 -0700
commite9996db7413238dcd6a71b110d0e7ed30d6d4207 (patch)
treec926f2b38142a2ac4f9add54a9dc29d3b561f10a /gcc/varasm.c
parent2d9e0ce793d00a43ffbeef0e0231364a7345d9cd (diff)
downloadgcc-e9996db7413238dcd6a71b110d0e7ed30d6d4207.zip
gcc-e9996db7413238dcd6a71b110d0e7ed30d6d4207.tar.gz
gcc-e9996db7413238dcd6a71b110d0e7ed30d6d4207.tar.bz2
* varasm.c (output_constant): Do nothing if -fsyntax-only.
From-SVN: r26833
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 3f70814..84746f6 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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.