From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19314 invoked by alias); 9 May 2012 15:34:59 -0000 Received: (qmail 19145 invoked by uid 22791); 9 May 2012 15:34:58 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from youngberry.canonical.com (HELO youngberry.canonical.com) (91.189.89.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 May 2012 15:34:45 +0000 Received: from [216.64.156.98] (helo=[10.155.43.193]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1SS8uV-0007HO-3g; Wed, 09 May 2012 15:34:39 +0000 Message-ID: <4FAA8E89.3040800@ubuntu.com> Date: Wed, 09 May 2012 15:34:00 -0000 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Paolo Bonzini CC: "Joseph S. Myers" , GCC Patches Subject: Re: [patch] support for multiarch systems References: <4E501045.40102@ubuntu.com> <4FA8711D.3030507@ubuntu.com> <4FA9BC73.3080009@ubuntu.com> <4FAA730E.9020608@gnu.org> In-Reply-To: <4FAA730E.9020608@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-05/txt/msg00676.txt.bz2 On 09.05.2012 15:37, Paolo Bonzini wrote: > Il 09/05/2012 02:38, Matthias Klose ha scritto: >> Index: gcc/doc/invoke.texi >> =================================================================== >> --- gcc/doc/invoke.texi (revision 187271) >> +++ gcc/doc/invoke.texi (working copy) >> @@ -6110,6 +6110,11 @@ >> @file{../lib32}, or if OS libraries are present in @file{lib/@var{subdir}} >> subdirectories it prints e.g.@: @file{amd64}, @file{sparcv9} or @file{ev6}. >> >> +@item -print-multiarch >> +@opindex print-multiarch >> +Print the path to OS libraries for the selected multiarch, >> +relative to some @file{lib} subdirectory. >> + >> @item -print-prog-name=@var{program} >> @opindex print-prog-name >> Like @option{-print-file-name}, but searches for a program such as @samp{cpp}. > > So -print-multiarch is like --print-multi-os-directory? the former prints the part before the `:' in the MULTILIB_OSDIRNAMES, the latter the part after the `':', e.g. ../lib32 and i386-linux-gnu. > What is the difference, and where is it documented? Not sure how it should be further documented. > Should it fail if multiarch support is not compiled in? All the -print options always succeed. I would prefer if it just prints the empty string if it is not configured (as it does now). Matthias