From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8964 invoked by alias); 30 Jul 2009 14:05:15 -0000 Received: (qmail 8806 invoked by uid 22791); 30 Jul 2009 14:05:14 -0000 X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.250) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Jul 2009 14:05:09 +0000 Received: by an-out-0708.google.com with SMTP id c3so761851ana.26 for ; Thu, 30 Jul 2009 07:05:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.38.134 with SMTP id b6mr310744ibe.37.1248962707509; Thu, 30 Jul 2009 07:05:07 -0700 (PDT) Date: Thu, 30 Jul 2009 14:05:00 -0000 Message-ID: Subject: need help on GCC driver From: Vikram KS To: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00618.txt.bz2 Hi, I have some question on gcc driver. Whenever we invoke gcc, it'll pass some default options to the compiler, assembler linker etc. But if i dont want to pass all these default options but only some of them, what should i do? For eg: gcc will pass the following option to cc1 /usr/libexec/gcc/i386-redhat-linux/4.1.1/cc1 -quiet -v test.c -quiet -dumpbase test.c -mtune=3Dgeneric -auxbase test -version -o /tmp/ccM89Tz7.s and to "as" =A0as -V -Qy -o /tmp/ccP6YP4n.o /tmp/ccM89Tz7.s Now i dont want to generate "-o /tmp/ccM89Tz7.s" instead i want to generate "/tmp/ccM89Tz7.sl" and this generated ".sl" should be picked by my assembler and it should generate the o/p with ".ol" extension. as -V -Qy -o /tmp/ccP6YP4n.ol /tmp/ccM89Tz7.sl Also if i give "-S" switch, it should generate the the output with the ".sl" extension instead of=A0 ".s". Is this possible to do it in "gcc/config/.h" or do i need to write a separate spec file. Please help me out. Thanks, Vikram