🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Orest Zborowski COMP Tue, 03 Nov 1992 19:41
gcc-2.3.1: gcc -Uxxx doesn't workk
#63
Author: Orest Zborowski COMP
Date: Tue, 03 Nov 1992 19:41
37 lines
1714 bytes
[gcc-2.3.1 sparc-sun-sunos4.1]

gcc -U doesn't work properly:

143!% cat florp.c
#ifdef FLORP
THIS SHOULD APPEAR ONLY IF FLORP IS DEFINED
#endif
144!% /usr/local/bin/gcc-2.2.2/gcc -v -DFLORP -UFLORP -E florp.c
Reading specs from /usr/local/lib/gcc-2.2.2/gcc-lib/sun4/2.2.2/specs
gcc version 2.2.2
 /usr/local/lib/gcc-2.2.2/gcc-lib/sun4/2.2.2/cpp -lang-c -v -DFLORP -UFLORP -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix florp.c
GNU CPP version 2.2.2 (sparc)
# 1 "florp.c"



145!% /usr/local/bin/gcc-2.3.1/gcc -v -DFLORP -UFLORP -E florp.c
Reading specs from /usr/local/lib/gcc-2.3.1/gcc-lib/sparc-sun-sunos4.1/2.3.1/specs
gcc version 2.3.1
 /usr/local/lib/gcc-2.3.1/gcc-lib/sparc-sun-sunos4.1/2.3.1/cpp -lang-c -v -DFLORP -UFLORP -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix florp.c
GNU CPP version 2.3.1 (sparc)
# 1 "florp.c"

THIS SHOULD APPEAR ONLY IF 1  IS DEFINED

146!% cc -DFLORP -UFLORP -E florp.c
# 1 "florp.c" 
# 3 "florp.c" 

so the handling of -U for gcc-2.3.1 isn't working properly.

zorst
[obz@raster.Kodak.COM]
-- 
zorst (orest zborowski)
[obz@raster.Kodak.COM]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads