🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Karl Berry Wed, 26 Aug 1992 10:53
GCC manual errors?
#1000
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads