Subject: bin/5167: cc -traditional can't compile calls to stat()
To: None <>
From: Michael Eriksson T/D <>
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
>Originator:     Michael Eriksson
Ericsson Radio Systems AB
>Release:        NetBSD 1.3 (sparc and i386)
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


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


% 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


Not known.