This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/5059: BUG in STAT-macro-expansion?
- From: Jules dot vanWeerden at vet dot uu dot nl
- To: gcc-gnats at gcc dot gnu dot org
- Date: Mon, 10 Dec 2001 10:56:14 +0100 (MET)
- Subject: c/5059: BUG in STAT-macro-expansion?
>Number: 5059
>Category: c
>Synopsis: Compiling s/w containing the use of DIR.H fails on other stat-calls
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Dec 10 02:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jules van Weerden. DIVA
>Release: 3.0.2
>Organization:
Faculty of Arts, UU, NL
>Environment:
System: OSF1 deen.vet.uu.nl V5.1 732 alpha
Machine: alpha
host: alphaev67-dec-osf5.1
build: alphaev67-dec-osf5.1
target: alphaev67-dec-osf5.1
configured with: ./configure
>Description:
If I compile SAMBA-2.2.2 on named machine, GCC fails on smbd/dir.h:
it tries to expand the STAT macro wrong:
smbd/dir.c:628:70: macro "stat" passed 3 arguments, but takes just 2
smbd/dir.c:677:13: macro "stat" passed 3 arguments, but takes just 2
gmake: *** [smbd/dir.o] Error 1
Same for the teTeX-distribution of 20011207 in texk/ps2pkm/basics.c
>How-To-Repeat:
>Fix:
I can compile the s/w with the CC for COMPAQ itself.
>Release-Note:
>Audit-Trail:
>Unformatted: