Subject: bin/5167: cc -traditional can't compile calls to stat()
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Eriksson T/D <Michael.Eriksson@era-t.ericsson.se>
List: netbsd-bugs
Date: 03/16/1998 14:36:40
>Number:         5167
>Category:       bin
>Synopsis:       cc -traditional can't compile calls to stat()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 16 05:50:01 1998
>Last-Modified:
>Originator:     Michael Eriksson
>Organization:
Ericsson Radio Systems AB
>Release:        NetBSD 1.3 (sparc and i386)
>Environment:
System: NetBSD abro 1.3 NetBSD 1.3 (SS5) #1: Mon Feb 2 20:51:27 MET 1998 eramer@abro:/usr/src/sys/arch/sparc/compile/SS5 sparc

>Description:

cc -traditional fails when compiling code using renamed functions,
i.e., stat(2) and others.

>How-To-Repeat:

% cat foo.c
#include <sys/types.h>
#include <sys/stat.h>

int main()
{
  return stat("foo", 0);
}
% cc -traditional foo.c -o foo
/tmp/cc02734a.s: Assembler messages:
/tmp/cc02734a.s:21: Error: Illegal operands

>Fix:

Not known.
>Audit-Trail:
>Unformatted: