🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1000

GCC manual errors?

#1000
From: Karl Berry
Date: Wed, 26 Aug 1992 10:53
40 lines
1679 bytes
A few possible buglets in the GCC 2.2.2 manual:

Node: Incompatibilities

   * Programs that use preprocessor directives in the middle of macro
     arguments do not work with GNU CC.  For example, a program like
     this will not work:

          foobar (
          #define luser
                  hack)

I'm probably just being dense, but I don't understand this example.  Is
there supposed to be a `#define foobar(arg)' before this?


Node: Disappointments

     This code really is erroneous, because the scope of `struct
     mumble' the prototype is limited to the argument list containing

I think the word `in' is missing before `the prototype'.


Node: Non-bugs

   * Assuming (for optimization) that the address of an external
     symbol is never zero.

     This assumption is false on certain systems when `#pragma weak' is
     used.

Since the GNU C preprocessor doesn't recognize `#pragma weak' (as far as
I can tell), maybe changing the second sentence to something like:

     This assumption is false on certain systems when you use
     `#pragma weak' and a compiler other than GNU CC.

would make it clearer that #pragma weak is not a GNU feature, and it's
pointless to look through the GNU documentation for it.
Technical Details
Message-ID: <199208261853.AA05454@claude.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!claude.cs.umb.edu!karl

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!claude.cs.umb.edu!karl
From: karl@claude.cs.umb.edu (Karl Berry)
Subject: GCC manual errors?
Message-ID: <199208261853.AA05454@claude.cs.umb.edu>
Sender: gnulists@ai.mit.edu
Reply-To: karl@cs.umb.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 26 Aug 1992 10:53:33 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 42