public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "davek at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/41596] handling of library-related options by g++spec.c causes a failure when generating pch.
Date: Thu, 17 Dec 2009 19:58:00 -0000	[thread overview]
Message-ID: <20091217195829.23612.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41596-17110@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from davek at gcc dot gnu dot org  2009-12-17 19:58 -------
(In reply to comment #2)
> Created an attachment (id=19339)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19339&action=view) [edit]
> updated patch to allow specification of -static-libstdc++ on the CL while
> generating PCH
> 

The maintainers will probably point out you've got a few bits of stray
formatting there (relative to the gcc coding standard); for example here:

-           {
-             library = library >= 0 ? 2 : library;
-             args[i] |= SKIPOPT;
-           }
+           {
+             library |= library >= 0 ? 2 : library;
+             args[i] |= SKIPOPT;
+           }

you've replaced a leading TAB by eight spaces, where the coding standard wants
all groups of 8 spaces at the start of a line to be real hard TABs.  That may
be something you'll have to fix elsewhere too, I guess your editor probably
gave you spaces for indentation throughout.  The only other nit I noticed was:

-         if (library == 0)
+         if ( library >= 0 && (library & 1) == 0)

an excess space before library there that you might as well tidy up while
you're at it.


-- 


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


  parent reply	other threads:[~2009-12-17 19:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05 20:18 [Bug c++/41596] New: " developer at sandoe-acoustics dot co dot uk
2009-10-05 20:26 ` [Bug c++/41596] " developer at sandoe-acoustics dot co dot uk
2009-12-17 19:52 ` developer at sandoe-acoustics dot co dot uk
2009-12-17 19:54 ` developer at sandoe-acoustics dot co dot uk
2009-12-17 19:58 ` davek at gcc dot gnu dot org [this message]
     [not found] <bug-41596-4@http.gcc.gnu.org/bugzilla/>
2011-09-28 23:08 ` paolo.carlini at oracle dot com
2012-01-03 16:37 ` paolo.carlini at oracle dot com
2012-01-03 16:50 ` iains at gcc dot gnu.org
2021-05-04 12:17 ` rguenth at gcc dot gnu.org
2024-03-17  5:13 ` iains at gcc dot gnu.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=20091217195829.23612.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: link
Be 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).