apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: gcc3 and Solaris atomic: (Was: Re: Volunteering to be RM, WAS: RE: Release 2.0.36)
Date Wed, 24 Apr 2002 16:12:00 GMT
Jim Jagielski wrote:
> Could you edit your Makefile (in atomic/solaris_sparc) to add the
> '-traditional-cpp' option to 'gcc -E' and see what happens? (If
> you could 'mv apr_atomic_sparc.S apr_atomic_sparc.S.bak' first so
> we can compare that would be cool).

$ gcc -v -traditional-cpp -Wa,-xarch=v8plus -D_ASM -D__STDC__=0 -c apr_atomic>
Reading specs from /opt/SMAW/gnu/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/specs
Configured with: ./configure --prefix=/opt/SMAW/gnu : (reconfigured) ./configure 
--prefix=/opt/SMAW/gnu : (reconfigured) ./configure --prefix=/opt/SMAW/gnu : 
(reconfigured) ./configure --prefix=/opt/SMAW/gnu
Thread model: posix
gcc version 3.0.3
  /opt/SMAW/gnu/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/tradcpp0 -lang-asm -v 
-D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -Dsparc -Dsun -Dunix 
-D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 
-D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ 
-D__STDC_HOSTED__=1 -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc -D_ASM 
-D__STDC__=0 apr_atomic_sparc.S -o /var/tmp/ccDlMlua.s
GNU traditional CPP version 3.0.3

-V -Qy -s -xarch=v8plus -o apr_atomic_sparc.lo /var/tmp/ccDlMlua.s
GNU assembler version (sparc-sun-solaris2.8) using BFD version 20020207
<command line>: warning: "__STDC__" redefined has dispaired.

$ make
make[1]: Entering directory 
gcc -E -traditional-cpp -D_ASM -D__STDC__=0 - < 

 > apr_atomic_sparc.S
/opt/SMAW/gnu/bin/as -xarch=v8plus -K PIC -o apr_atomic_sparc.lo apr_atomic_sparc.S
make[1]: Leaving directory 

The diff.txt attachement is the result of diff of the "gcc -traditional-cpp -E 
-D_ASM -D__STDC__=0 - < " and the "gcc -E  -D_ASM -D__STDC__=0 - < ".
Funny no?

View raw message