From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30723 invoked by alias); 21 Feb 2011 20:39:52 -0000 Received: (qmail 30715 invoked by uid 22791); 21 Feb 2011 20:39:51 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Feb 2011 20:39:45 +0000 Received: by iwn10 with SMTP id 10so2544036iwn.20 for ; Mon, 21 Feb 2011 12:39:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.19.131 with SMTP id c3mr2518119icb.68.1298320783693; Mon, 21 Feb 2011 12:39:43 -0800 (PST) Received: by 10.231.35.129 with HTTP; Mon, 21 Feb 2011 12:39:43 -0800 (PST) Date: Mon, 21 Feb 2011 20:58:00 -0000 Message-ID: Subject: options for later passes From: kevin diggs To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00339.txt.bz2 Hi, Is there an easy way to figure out which options need to be passed to later compilation passes? If I do a: gcc -S -dA -fverbose-asm -mcpu=750 -O2 -mmultiple -fpic gcc1test.c What should be used for assembly: gcc -c ??? gcc1test.s and linking: gcc -ogcc1test gcc1test.s I am pretty sure the link will need the -fpic. Probably also something like -pthread? Maybe the assembler would need to allow something like altivec? So as a general rule should it see the cpu (or arch) option? Does anyone else need the -O2? kevin P.S.: Do the order of the optimization options matter: '-O2 -mcpu=750 -mmultiple' the same as '-mmultiple -mcpu=750 -O2'?