public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "nickc at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/31353] gcc --help=target gives a linker error. Date: Wed, 28 Mar 2007 10:38:00 -0000 [thread overview] Message-ID: <20070328103819.14088.qmail@sourceware.org> (raw) In-Reply-To: <bug-31353-13350@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from nickc at redhat dot com 2007-03-28 11:38 ------- Subject: Re: gcc --help=target gives a linker error. Hi Brooks, I have a patch to fix this problem (attached). Unfortunately due to an internal bugzilla error I cannot (currently) upload the patch to this PR. Cheers Nick gcc/ChangeLog 2007-03-28 Nick Clifton <nickc@redhat.com> PR driver/31353 * gcc.c (process_command): Pass --help= switch on to pre-processor, assembler and linker sub-processes. Index: gcc/gcc.c =================================================================== --- gcc/gcc.c (revision 123290) +++ gcc/gcc.c (working copy) @@ -3607,11 +3607,26 @@ warranty; not even for MERCHANTABILITY o else if (strncmp (argv[i], "-fhelp=", 7) == 0) { /* translate_options () has turned --help into -fhelp. */ - print_subprocess_help = 2; + print_subprocess_help = 1; /* We will be passing a dummy file on to the sub-processes. */ n_infiles++; n_switches++; + + if (strcmp (argv[i] + 7, "target") == 0) + { + if (is_cpp_driver) + add_preprocessor_option ("--target-help", 13); + add_assembler_option ("--target-help", 13); + add_linker_option ("--target-help", 13); + } + else + { + if (is_cpp_driver) + add_preprocessor_option ("--help", 6); + add_assembler_option ("--help", 6); + add_linker_option ("--help", 6); + } } else if (strcmp (argv[i], "-ftarget-help") == 0) { -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31353
next prev parent reply other threads:[~2007-03-28 10:38 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-03-25 22:21 [Bug other/31353] New: " brooks at gcc dot gnu dot org 2007-03-25 22:33 ` [Bug driver/31353] " pinskia at gcc dot gnu dot org 2007-03-25 23:21 ` brooks at gcc dot gnu dot org 2007-03-28 10:38 ` nickc at redhat dot com [this message] 2007-03-28 18:17 ` brooks at gcc dot gnu dot org 2007-03-29 10:06 ` nickc at redhat dot com 2007-04-04 18:10 ` brooks at gcc dot gnu dot org 2007-04-04 18:24 ` brooks at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070328103819.14088.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).