Article View: gnu.gcc.bug
Article #1514Bug in config/i386bsd.h
From: 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
Technical Details
Message-ID:
<9301010327.AA20245@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!halifax.syncomas.com!shapShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!halifax.syncomas.com!shap From: shap@halifax.syncomas.com Subject: Bug in config/i386bsd.h Message-ID: <9301010327.AA20245@life.ai.mit.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 1 Jan 1993 00:12:00 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 30