This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to distinguish EGCS


> QUESTION:
> 
> Can anyone tell me how to dump the predefined macros? 
> 
bash-2.01$ gcc -v test.cc
Reading specs from
\usr\local\lib\gcc-lib\i586-pc-cygwin32\egcs-2.91.57\specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 \usr\local\lib\gcc-lib\i586-pc-cygwin32\egcs-2.91.57\cpp.exe -lang-c++
-v -ipre
fix
C:/Cygnus/B19/H-i386-cygwin32/lib/gcc-lib/i586-pc-cygwin32\egcs-2.91.57\
-un
def -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Di386
-D_WIN32
-D__CYGWIN32__ -DWINNT -D_X86_=1 -D__STDC__=1
-D__stdcall=__attribute__((__stdca
ll__)) -D__cdecl=__attribute__((__cdecl__))
-D__declspec(x)=__attribute__((x)) -
D__i386__ -D_WIN32 -D__CYGWIN32__ -D__WINNT__ -D_X86_=1 -D__STDC__=1
-D__stdcall
=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__))
-D__declspec(
x)=__attribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386)
-Amachine(i
386) -D__EXCEPTIONS -remap -Asystem(unix) -Acpu(i386) -Amachine(i386)
-Di386 -D_
_i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium
-D__pentium__


> And
> whether there is a special macro identifying the current compiler
> version?
> 
Looks like you want __GNUC_MINOR__

> Lot of Thanks   
> 
> rch
> 
> -- 
> Dr.-Ing. Rostislav Chudoba           
> Institut fuer Baustatik und Baudynamik  
> Fakultaet fuer Bauingeniurwesen, RWTH Aachen
> 
> mail:  rch@baustatik.rwth-aachen.de
> www:   www.sd.bi.ruhr-uni-bochum.de:/global/staff/chudoba (still in
> Bcchum)
> phone: +49 (241) 80-3510
> fax:   +49 (241) 8888-303
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]