public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/12949] New: gcc --target-help tries to assemble and link
@ 2003-11-07 21:33 gcc-bugzilla at gcc dot gnu dot org
  2003-11-08  7:15 ` [Bug driver/12949] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-11-07 21:33 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12949

           Summary: gcc --target-help tries to assemble and link
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8

Running gcc --target-help, the driver tries to assemble and link, which
obviously fails and gives confusing errors:

Environment:
System: SunOS xayide 5.10 s10_42 sun4u sparc SUNW,Ultra-1
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: /vol/gnu/src/gcc/gcc/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls

How-To-Repeat:
$ ./xgcc -B./ -v --target-help
Reading specs from ./specs
Configured with: /vol/gnu/src/gcc/gcc/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls
Thread model: posix
gcc version 3.4 20031106 (experimental)
 ./cc1 -quiet -v -iprefix /amnt/figaro/volumes/obj-gcc/gcc/obj.sol2/gcc-3.4-20031106/8-gcc/gcc/../lib/gcc/sparc-sun-solaris2.8/3.4/ -isystem ./include help-dummy -quiet -dumpbase help-dummy -mcpu=v7 -auxbase help-dummy -version --target-help -o /var/tmp//ccOectLx.s

Target specific options:
  -mno-relax                Do not optimize tail call instructions in assembler or linker
  -mrelax                   Optimize tail call instructions in assembler and linker
  -mno-faster-structs       Do not use structs on stronger alignment for double-word copies
  -mfaster-structs          Use structs on stronger alignment for double-word copies
  -mno-stack-bias           Do not use stack bias
  -mstack-bias              Use stack bias
  -m64                      Use 64-bit ABI
  -m32                      Use 32-bit ABI
  -mptr32                   Pointers are 32-bit
  -mptr64                   Pointers are 64-bit
  -msupersparc              Optimize for SuperSPARC processors
  -mv8                      Use V8 SPARC ISA
  -mf934                    Optimize for F934 processors
  -mf930                    Optimize for F930 processors
  -msparclite               Optimize for SPARCLite processors
  -mcypress                 Optimize for Cypress processors
  -mno-vis                  Do not utilize Visual Instruction Set
  -mvis                     Utilize Visual Instruction Set
  -mno-v8plus               Do not compile for v8plus ABI
  -mv8plus                  Compile for v8plus ABI
  -msoft-quad-float         Do not use hardware quad fp instructions
  -mhard-quad-float         Use hardware quad fp instructions
  -mno-app-regs             Do not use ABI reserved registers
  -mapp-regs                Use ABI reserved registers
  -mno-flat                 Do not use flat register window model
  -mflat                    Use flat register window model
  -mno-impure-text          Do not pass -assert pure-text to linker
  -mimpure-text             Pass -assert pure-text to linker
  -mno-unaligned-doubles    Assume all doubles are aligned
  -munaligned-doubles       Assume possible double misalignment
  -msoft-float              Do not use hardware fp
  -mhard-float              Use hardware fp
  -mno-fpu                  Do not use hardware fp
  -mfpu                     Use hardware fp
  -mcmodel=                 Use given SPARC code model
  -mtune=                   Schedule code for given CPU
  -mcpu=                    Use features of and schedule code for given CPU

There are undocumented target specific options as well.
 /usr/ccs/bin/as -V -Qy -s -xarch=v8 --target-help -o /var/tmp//ccNFwIxZ.o /var/tmp//ccOectLx.s
/usr/ccs/bin/as: Sun Compiler Common 7.1 SunOS_10 2003/05/09
/usr/ccs/bin/as: error: unknown option '-'
/usr/ccs/bin/as: error: unknown option 't'
/usr/ccs/bin/as: error: unknown option 'arget-help'
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
	  [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
	  [-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
	  [-m [-Ym,path]] [-n] [-ul] [-xF] [-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b}]  [-xcode={pic13,pic32}] [-g] file.s...


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/12949] gcc --target-help tries to assemble and link
  2003-11-07 21:33 [Bug driver/12949] New: gcc --target-help tries to assemble and link gcc-bugzilla at gcc dot gnu dot org
@ 2003-11-08  7:15 ` pinskia at gcc dot gnu dot org
  2003-11-12 21:45 ` ro at techfak dot uni-bielefeld dot de
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-08  7:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-08 07:15 -------
I think the reason why --target-help tries to call as and ld with --target-help is because the 
GNU tools understand them so I do not know if this is expected behavior though.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12949


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/12949] gcc --target-help tries to assemble and link
  2003-11-07 21:33 [Bug driver/12949] New: gcc --target-help tries to assemble and link gcc-bugzilla at gcc dot gnu dot org
  2003-11-08  7:15 ` [Bug driver/12949] " pinskia at gcc dot gnu dot org
@ 2003-11-12 21:45 ` ro at techfak dot uni-bielefeld dot de
  2003-11-18  5:41 ` pinskia at gcc dot gnu dot org
  2004-11-22  3:42 ` [Bug driver/12949] gcc --target-help tries to run as and ld even though they do not understand the option pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-11-12 21:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2003-11-12 21:45 -------
Subject: Re:  gcc --target-help tries to assemble and link


> I think the reason why --target-help tries to call as and ld with --target-help is because the 
> GNU tools understand them so I do not know if this is expected behavior though.

While this is true (at least for recent versions of GNU as and ld), I don't
think a casual user asking gcc for its target-specific options wants (or
needs) to be flooded with target-specific assembler and linker options.

And when GNU as/ld are not in use, passing --target-help to the native
tools unconditionally is certainly a bug.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12949


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/12949] gcc --target-help tries to assemble and link
  2003-11-07 21:33 [Bug driver/12949] New: gcc --target-help tries to assemble and link gcc-bugzilla at gcc dot gnu dot org
  2003-11-08  7:15 ` [Bug driver/12949] " pinskia at gcc dot gnu dot org
  2003-11-12 21:45 ` ro at techfak dot uni-bielefeld dot de
@ 2003-11-18  5:41 ` pinskia at gcc dot gnu dot org
  2004-11-22  3:42 ` [Bug driver/12949] gcc --target-help tries to run as and ld even though they do not understand the option pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18  5:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 05:41 -------
As I said before gcc passes it for as and ld but they should pass it on if either of them do not 
accept it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-18 05:41:09
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12949


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/12949] gcc --target-help tries to run as and ld even though they do not understand the option
  2003-11-07 21:33 [Bug driver/12949] New: gcc --target-help tries to assemble and link gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-11-18  5:41 ` pinskia at gcc dot gnu dot org
@ 2004-11-22  3:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-22  3:42 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|2004-06-06 01:29:18         |2004-11-22 03:42:03
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12949


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-22  3:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-07 21:33 [Bug driver/12949] New: gcc --target-help tries to assemble and link gcc-bugzilla at gcc dot gnu dot org
2003-11-08  7:15 ` [Bug driver/12949] " pinskia at gcc dot gnu dot org
2003-11-12 21:45 ` ro at techfak dot uni-bielefeld dot de
2003-11-18  5:41 ` pinskia at gcc dot gnu dot org
2004-11-22  3:42 ` [Bug driver/12949] gcc --target-help tries to run as and ld even though they do not understand the option pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).