Patchwork Don't pass -nocpp to Tru64 UNIX assembler

login
register
mail settings
Submitter Rainer Orth
Date Nov. 10, 2010, 6:02 p.m.
Message ID <yddoc9xdplb.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/70671/
State New
Headers show

Comments

Rainer Orth - Nov. 10, 2010, 6:02 p.m.
I've noticed that pr44707.c fails on Tru64 UNIX:

FAIL: gcc.c-torture/compile/pr44707.c  -O0  (test for excess errors)

Excess errors:
as0: Error: pr44707.c, line 1: malformed statement
      /* 16($15) 20($15) 24($15) 28($15) 32($15) */

While the OSF/1 assembler can handle CPP constructs in its input, this
is currently disabled by passing -nocpp.  Since this is only a
performance optimization at best and works on other platforms, I've
simply removed that option.

Bootstrapped without regressions on alpha-dec-osf5.1b, installed.

	Rainer


2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.

Patch

diff -r 727cafa03e9e gcc/config/alpha/osf5.h
--- a/gcc/config/alpha/osf5.h	Mon Nov 08 18:46:32 2010 +0100
+++ b/gcc/config/alpha/osf5.h	Mon Nov 08 20:42:14 2010 +0100
@@ -127,12 +127,11 @@ 
    it always means that we get slightly larger than necessary object files
    if the user does not specify -g.  If we don't pass -g, then mips-tfile
    will need to be fixed to work in this case.  Pass -O0 since some
-   optimization are broken and don't help us anyway.  Pass -nocpp because
-   there's no point in running CPP on our assembler output.  */
+   optimization are broken and don't help us anyway.  */
 #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GAS) != 0
-#define ASM_SPEC "%{malpha-as:-g " ASM_OLDAS_SPEC " -nocpp %{pg} -O0}"
+#define ASM_SPEC "%{malpha-as:-g " ASM_OLDAS_SPEC " %{pg} -O0}"
 #else
-#define ASM_SPEC "%{!mgas:-g " ASM_OLDAS_SPEC " -nocpp %{pg} -O0}"
+#define ASM_SPEC "%{!mgas:-g " ASM_OLDAS_SPEC " %{pg} -O0}"
 #endif
 
 /* Specify to run a post-processor, mips-tfile after the assembler