public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/31107] --target-help doesn't say which options are compiler, assembler or linker options
2007-03-09 15:18 [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options fxcoudert at gcc dot gnu dot org
@ 2007-03-09 15:18 ` fxcoudert at gcc dot gnu dot org
2007-03-09 15:23 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-09 15:18 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |4.1.1 4.2.0 4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-03-09 15:18:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31107
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options
@ 2007-03-09 15:18 fxcoudert at gcc dot gnu dot org
2007-03-09 15:18 ` [Bug driver/31107] " fxcoudert at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-09 15:18 UTC (permalink / raw)
To: gcc-bugs
--target-help shows compiler, assembler and linker options together, without
saying which is which. It can confuse users (see PR31073 for example).
Example: on i686-pc-linux-gnu, with mainline:
$ gcc --target-help | tail -n 35
-mtune= Schedule code for given CPU
-muclibc Use uClibc instead of GNU libc
-Q ignored
-V print assembler version number
-k ignored
-n Do not optimize code alignment
-q quieten some warnings
-s ignored
--divide ignored
elf_i386:
-Bgroup Selects group name lookup rules for DSO
--disable-new-dtags Disable new dynamic tags
--enable-new-dtags Enable new dynamic tags
--eh-frame-hdr Create .eh_frame_hdr section
-z combreloc Merge dynamic relocs into one section and sort
-z defs Report unresolved symbols in object files.
-z execstack Mark executable as requiring executable stack
-z initfirst Mark DSO to be initialized first at runtime
-z interpose Mark object to interpose all DSOs but executable
-z loadfltr Mark object requiring immediate process
-z muldefs Allow multiple definitions
-z nocombreloc Don't merge dynamic relocs into one section
-z nocopyreloc Don't create copy relocs
-z nodefaultlib Mark object not to use default search paths
-z nodelete Mark DSO non-deletable at runtime
-z nodlopen Mark DSO not available to dlopen
-z nodump Mark DSO not available to dldump
-z noexecstack Mark executable as not requiring executable stack
-z norelro Don't create RELRO program header
-z now Mark object non-lazy runtime binding
-z origin Mark object requiring immediate $ORIGIN processing
at runtime
-z relro Create RELRO program header
-z KEYWORD Ignored for Solaris compatibility
The first options displayed above are the last of the compiler options,
followed (without any explicit mention) by the assembler options, and the
linker options.
Users then want to try an option in the list, and it doesn't work:
$ gcc --eh-frame-hdr a.c
cc1: error: unrecognized command line option "-feh-frame-hdr"
--
Summary: --target-help doesn't say which options are compiler,
assembler or linker options
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31107
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/31107] --target-help doesn't say which options are compiler, assembler or linker options
2007-03-09 15:18 [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options fxcoudert at gcc dot gnu dot org
2007-03-09 15:18 ` [Bug driver/31107] " fxcoudert at gcc dot gnu dot org
@ 2007-03-09 15:23 ` pinskia at gcc dot gnu dot org
2007-04-25 15:58 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-09 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-09 15:23 -------
I think gas should be fixed instead of the driver.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31107
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/31107] --target-help doesn't say which options are compiler, assembler or linker options
2007-03-09 15:18 [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options fxcoudert at gcc dot gnu dot org
2007-03-09 15:18 ` [Bug driver/31107] " fxcoudert at gcc dot gnu dot org
2007-03-09 15:23 ` pinskia at gcc dot gnu dot org
@ 2007-04-25 15:58 ` fxcoudert at gcc dot gnu dot org
2007-04-26 7:16 ` rsandifo at gcc dot gnu dot org
2007-04-26 7:19 ` rsandifo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-04-25 15:58 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rsandifo at sources dot
| |redhat dot com
AssignedTo|unassigned at gcc dot gnu |richard at codesourcery dot
|dot org |com
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31107
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/31107] --target-help doesn't say which options are compiler, assembler or linker options
2007-03-09 15:18 [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options fxcoudert at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-04-25 15:58 ` fxcoudert at gcc dot gnu dot org
@ 2007-04-26 7:16 ` rsandifo at gcc dot gnu dot org
2007-04-26 7:19 ` rsandifo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2007-04-26 7:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rsandifo at gcc dot gnu dot org 2007-04-26 08:15 -------
Subject: Bug 31107
Author: rsandifo
Date: Thu Apr 26 08:15:41 2007
New Revision: 124175
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124175
Log:
gcc/
PR driver/31107
* doc/invoke.texi (%:print-asm-header): Document.
* gcc.c (asm_options): Use %:print-asm-header() for --target-help
and -ftarget-help.
(static_spec_functions): Add print-asm-header.
(main): Print a banner before the --target-help linker options.
(print_asm_header_spec_function): New function.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/invoke.texi
trunk/gcc/gcc.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31107
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/31107] --target-help doesn't say which options are compiler, assembler or linker options
2007-03-09 15:18 [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options fxcoudert at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-04-26 7:16 ` rsandifo at gcc dot gnu dot org
@ 2007-04-26 7:19 ` rsandifo at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2007-04-26 7:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rsandifo at gcc dot gnu dot org 2007-04-26 08:19 -------
Patch committed to mainline. This isn't a regression,
and I don't think the bug is serious enough for it to be
worth bending the usual backport rules.
--
rsandifo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31107
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-26 7:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-09 15:18 [Bug driver/31107] New: --target-help doesn't say which options are compiler, assembler or linker options fxcoudert at gcc dot gnu dot org
2007-03-09 15:18 ` [Bug driver/31107] " fxcoudert at gcc dot gnu dot org
2007-03-09 15:23 ` pinskia at gcc dot gnu dot org
2007-04-25 15:58 ` fxcoudert at gcc dot gnu dot org
2007-04-26 7:16 ` rsandifo at gcc dot gnu dot org
2007-04-26 7:19 ` rsandifo 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).