From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24149 invoked by alias); 15 Oct 2011 22:45:01 -0000 Received: (qmail 24132 invoked by uid 22791); 15 Oct 2011 22:45:00 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-qy0-f182.google.com (HELO mail-qy0-f182.google.com) (209.85.216.182) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Oct 2011 22:44:47 +0000 Received: by qyg14 with SMTP id 14so1155373qyg.20 for ; Sat, 15 Oct 2011 15:44:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.101.142 with SMTP id c14mr2941041qco.246.1318718686517; Sat, 15 Oct 2011 15:44:46 -0700 (PDT) Received: by 10.229.83.146 with HTTP; Sat, 15 Oct 2011 15:44:46 -0700 (PDT) Date: Sun, 16 Oct 2011 10:32:00 -0000 Message-ID: Subject: RFC: Add --plugin-gcc option to ar/nm From: "H.J. Lu" To: GCC Development , Binutils Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2011-10/txt/msg00238.txt.bz2 Hi, ---plugin option for ar/nm is very long. I am proposing to add a --plugin-gcc option. It can be implemented with 1. Move LTOPLUGINSONAME from gcc to config/plugins.m4. 2. Define LTOPLUGINSONAME for ar/nm. 3. For --plugin-gcc, ar/nm call popen using environment variable GCC if set, or gcc with -print-prog-name=$LTOPLUGINSONAM to get plugin name. Any comments? -- H.J.