From patchwork Wed Nov 10 18:02:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 70671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5F111B70F6 for ; Thu, 11 Nov 2010 05:02:42 +1100 (EST) Received: (qmail 28687 invoked by alias); 10 Nov 2010 18:02:37 -0000 Received: (qmail 28672 invoked by uid 22791); 10 Nov 2010 18:02:36 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Nov 2010 18:02:28 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 84421169 for ; Wed, 10 Nov 2010 19:02:26 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ua0Uh2KnGzJH for ; Wed, 10 Nov 2010 19:02:24 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id CEBBC168 for ; Wed, 10 Nov 2010 19:02:24 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id oAAI2OR9006279; Wed, 10 Nov 2010 19:02:24 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: Don't pass -nocpp to Tru64 UNIX assembler Date: Wed, 10 Nov 2010 19:02:24 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp. 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