summaryrefslogtreecommitdiffstats
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-22 08:35:11 +0000
committerburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-22 08:35:11 +0000
commit482465ac7a978c67c5bf4d92dad9723a2c9af4a8 (patch)
tree32843906094e7f9114ba80354abb0cac412ac66f /gcc/varasm.c
parent70f1d25bfd91e8af4abae548c1c9b958d8982bb7 (diff)
downloadppe42-gcc-482465ac7a978c67c5bf4d92dad9723a2c9af4a8.tar.gz
ppe42-gcc-482465ac7a978c67c5bf4d92dad9723a2c9af4a8.zip
fix -fsyntax-only ICEs
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25365 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 213c07c9a58..a247cd775af 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -1062,6 +1062,10 @@ void
assemble_zeros (size)
int size;
{
+ /* Do no output if -fsyntax-only. */
+ if (flag_syntax_only)
+ return;
+
#ifdef ASM_NO_SKIP_IN_TEXT
/* The `space' pseudo in the text section outputs nop insns rather than 0s,
so we must output 0s explicitly in the text section. */
@@ -1168,6 +1172,10 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
return;
TREE_ASM_WRITTEN (decl) = 1;
+ /* Do no output if -fsyntax-only. */
+ if (flag_syntax_only)
+ return;
+
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
/* File-scope global variables are output here. */
if ((write_symbols == DBX_DEBUG || write_symbols == XCOFF_DEBUG)
@@ -1235,6 +1243,10 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
TREE_ASM_WRITTEN (decl) = 1;
+ /* Do no output if -fsyntax-only. */
+ if (flag_syntax_only)
+ return;
+
app_disable ();
if (! dont_output_data)
@@ -3017,7 +3029,12 @@ output_constant_def (exp)
}
}
else
- output_constant_def_contents (exp, reloc, const_labelno++);
+ {
+ /* Do no output if -fsyntax-only. */
+ if (! flag_syntax_only)
+ output_constant_def_contents (exp, reloc, const_labelno);
+ ++const_labelno;
+ }
}
return TREE_CST_RTL (exp);
OpenPOWER on IntegriCloud