On Thu, 2007-11-15 at 20:09 +0100, Jacek M. Holeczek wrote:
> > > The "doc" mentions __CEGCC__ and __CEGCC32__, but I couldn't find any
> > > place where they are defined.
> >
> > src/gcc/gcc/config/arm/{wince-cegcc,mingw32}.h
> 
> Sorry, I've been looking for them in the include files.
> Anyhow, I don't really understand how the user is getting these macros.

They're passed to the compiler utilities on their command line. An
example is copied below.

> There must be some magic command which explicitely lists all predefined
> macros (one cannot really expect that every user will search the source
> code of the compiler to find them). I just somehow miss it.

Use -v as shown below.

> In a normal situation I would do the following:
>       gcc -dumpspecs
> but this is NOT working with ming32ce ...

> Well, one could "reuse" the standard __CEGCC__/__CEGCC__/__MINGW32CE__
> They are already there, so ... why not:
> 
>       #define __CEGCC32__ CEGCC32_VERSION(0,60,00)
>       #define __MINGW32CE__ MINGW32CE_VERSION(0,60,00)
> 
> Then it would be sufficient to implement the CEGCC32_VERSION and
> MINGW32CE_VERSION macros as proposed in my last mail.

I understand your point, but the gcc build system is rather complicated
already. Introducing this into it is not something I'd like to do for
two reasons : the complexity, and the same argument as with the include
files (you can't keep this in sync with the original tool sources).

Besides, even though I understand the need for supporting a cegcc
version number, it is hardly something I want to encourage. So I don't
mind if using it is a little hard :-)

        Danny
dannypc: {2987} arm-wince-cegcc-g++ -o t.exe t.C
Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
Info: resolving std::cout by linking to __imp__ZSt4cout (auto-import)
dannypc: {2988} arm-wince-cegcc-g++ -o t.exe t.C -v
Using built-in specs.
Target: arm-wince-cegcc
Configured
with: /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc/configure 
--with-gcc --with-gnu-ld --with-gnu-as --target=arm-wince-cegcc 
--prefix=/opt/cegcc --enable-threads=win32 --disable-nls 
--enable-languages=c,c++ --disable-win32-registry --disable-multilib 
--disable-interwork --without-newlib --enable-checking --with-headers : 
(reconfigured) 
/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc/configure --with-gcc 
--with-gnu-ld --with-gnu-as --target=arm-wince-cegcc --prefix=/opt/cegcc 
--enable-threads=win32 --disable-nls --enable-languages=c,c++ 
--disable-win32-registry --disable-multilib --disable-interwork 
--without-newlib --enable-checking --with-headers : (reconfigured) 
/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc/configure --with-gcc 
--with-gnu-ld --with-gnu-as --target=arm-wince-cegcc --prefix=/opt/cegcc 
--enable-threads=win32 --disable-nls --enable-languages=c,c++ 
--disable-win32-registry --disable-multilib --disable-interwork --without-new
 lib --enable-checking --with-headers
Thread model: win32
gcc version 4.1.0
 /opt/cegcc/libexec/gcc/arm-wince-cegcc/4.1.0/cc1plus -quiet -v
-D__CEGCC32__ -D__CEGCC__ -Dunix -D__unix__ -D__unix
-idirafter 
/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/lib/../include/w32api
 -idirafter ../../include/w32api t.C -quiet -dumpbase t.C -auxbase t -version 
-o /home/danny/tmp/cci35DNK.s
ignoring nonexistent directory
"/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/sys-include"
ignoring nonexistent directory "../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../include/c++/4.1.0
 /opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../include/c
++/4.1.0/arm-wince-cegcc
 /opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../include/c
++/4.1.0/backward
 /opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/include
 /opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/include
 
/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/lib/../include/w32api
End of search list.
GNU C++ version 4.1.0 (arm-wince-cegcc)
        compiled by GNU C version 4.1.1 20060724 (prerelease)
(4.1.1-3mdk).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 2a0d65b7cd8c069c9057aca411914c7f
 /opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/bin/as -o 
/home/danny/tmp/ccBMRirQ.o /home/danny/tmp/cci35DNK.s
 /opt/cegcc/libexec/gcc/arm-wince-cegcc/4.1.0/collect2 -Bdynamic -o
t.exe 
/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/lib/crt0.o 
/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/lib/crtst.o
 -L/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0 
-L/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/lib 
/home/danny/tmp/ccBMRirQ.o -lstdc++ -lcegcc -lgcc -lcoredll -lcegcc -lgcc
Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
Info: resolving std::cout by linking to __imp__ZSt4cout (auto-import)


-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to