FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 01-23-2012, 10:26 AM
Jonathan Nieder
 
Default Bug#656998: gcc --help: please document the -print-multiarch option

Package: gcc-4.7
Version: 4.7-20120112-1
Severity: important
Tags: patch

Hi Matthias,

Bill Allombert wrote:
> On Fri, Jan 20, 2012 at 03:45:34PM -0600, Jonathan Nieder wrote:

>> I believe "gcc -print-multiarch" is supposed to do that.
>>
>> $ gcc -m32 -print-multiarch
>> i386-linux-gnu
>> $ gcc -m64 -print-multiarch
>> x86_64-linux-gnu
>
> Thanks a lot for mentionning it. Is that documented ?

Hmm, it doesn't seem to be in "gcc --help" output[1]. (FWIW I learned
about the option at [2].) Here's a rough patch to fix that.

[1] though in the patch proposed upstream it is covered in the texinfo docs
http://thread.gmane.org/gmane.comp.gcc.patches/244403
[2] http://wiki.debian.org/Multiarch/Tuples
---
gcc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git i/gcc.c w/gcc.c
index c43e45ab..0adc0320 100644
--- i/gcc.c
+++ w/gcc.c
@@ -2954,6 +2954,9 @@ display_help (void)
fputs (_(" -print-libgcc-file-name Display the name of the compiler's companion library
"), stdout);
fputs (_(" -print-file-name=<lib> Display the full path to library <lib>
"), stdout);
fputs (_(" -print-prog-name=<prog> Display the full path to compiler component <prog>
"), stdout);
+ fputs (_("
+ -print-multiarch Display the target's normalized GNU triplet, used as

+ a component in the library path
"), stdout);
fputs (_(" -print-multi-directory Display the root directory for versions of libgcc
"), stdout);
fputs (_("
-print-multi-lib Display the mapping between command line options and

--
1.7.9.rc2



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120123112653.GA29435@burratino">http://lists.debian.org/20120123112653.GA29435@burratino
 

Thread Tools




All times are GMT. The time now is 01:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org