Article View: gnu.gdb.bug
Article #10116cpp warning when compiling sun4os4 with gcc
From: "Bill Bailey"
Date: Tue, 22 May 1990 00:13
Date: Tue, 22 May 1990 00:13
40 lines
1441 bytes
1441 bytes
You get: gcc -c -I. -g -Bstatic expread.tab.c /usr/include/alloca.h:3: warning: alloca redefined mv expread.tab.o expread.o This is fixable as follows: diff -c -r1.1 defs.h *** /tmp/,RCSt1a12229 Mon May 21 17:11:09 1990 --- defs.h Thu May 17 10:59:11 1990 *************** *** 29,39 **** extern char *reg_names[]; /* Various possibilities for alloca. */ - #ifdef __GNUC__ - #define alloca __builtin_alloca - #else #ifdef sparc #include <alloca.h> #else extern char *alloca (); #endif --- 33,43 ---- extern char *reg_names[]; /* Various possibilities for alloca. */ #ifdef sparc #include <alloca.h> + #else + #ifdef __GNUC__ + #define alloca __builtin_alloca #else extern char *alloca (); #endif thanks wbailey@oracle.com
Technical Details
Message-ID:
<9005220013.AA12241@hqsun7.oracle.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!tut.cis.ohio-state.edu!hqsun7.oracle.com!WBAILEY.US1.oramailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,7a9a2cbae2817c8c,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-05-21 22:25:36 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!tut.cis.ohio-state.edu!hqsun7.oracle.com!WBAILEY.US1.oramail
From: WBAILEY.US1.oramail@hqsun7.oracle.com ("Bill Bailey")
Newsgroups: gnu.gdb.bug
Subject: cpp warning when compiling sun4os4 with gcc
Message-ID: <9005220013.AA12241@hqsun7.oracle.com>
Date: 22 May 90 00:13:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 40
Posted: Tue May 22 01:13:35 1990