Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by shap
Fri, 01 Jan 1993 00:12
Bug in config/i386bsd.h
Author: shap
Date: Fri, 01 Jan 1993 00:12
Date: Fri, 01 Jan 1993 00:12
29 lines
1461 bytes
1461 bytes
Encountered in GCC versions: 2.2.*, 2.3, 2.3.* Configuration: configure -host=i386v4 -target=i386-bsd (but see note below) This is a pretty simple one. When compiling i386bsd.h with a compiler which is attempting to be pre-ansi compatible, stringification occurs. This can be verified with gcc by cd'ing to the config/ subdirectory of the GCC distribution, and typing: gcc -Wtraditional -I. -I.. -E i386bsd.h > /dev/null String replacement is definitely NOT wanted in these macros. The problem is that the macro argument names appear within the strings. Suggested solution is to rename the arguments from 'a' to 'aa', 'b' to 'bb', etc. Recommend that while you're there you check any other headers you think might be suspect. I'ld have sworn that I've reported this one before. Note about the configuration: This problem was encountered on a private configuration that is similar to i386-bsd (identical in all but name, in fact, but it may not stay that way over time). Jonathan S. Shapiro Synergistic Computing Associates shap@halifax.syncomas.com
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