This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
native 3.x for m68k
- From: Gunther Nikl <gni at gecko dot de>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 21 Mar 2003 15:58:40 +0100
- Subject: native 3.x for m68k
Hello!
Did any tried and succeed in building a working native GCC 3.x for any m68k
target? I am trying to build GCC 3.2.2 without luck and I am out of ideas.
I have used native GCC 2.95.2 and 2.7.2.1 on the target to bootstrap 3.2.2
(without optimization in each case) The result was the same (!) with both
compilers. The preprocessor doesn't handle "defined" conditionals correctly.
Then I used a cross GCC 3.2.2 for my target to build the native compiler
(this time with -O because the build machine is fast :-). That didn't work
either and again its the preprocessor that doesn't work for "defined"
conditionals albeit slightly different :-/
The natively built compilers chooke on
#if defined(foo)
...
#endif
The #if succeeds when foo isn't defined. If the condition is "!defined" then
it succeeds _if_ its defined. The above construct works with the cross-built
native compiler as it should. That compiler fails for:
#if defined foo
...
#endif
in the same way as the natively built 3.2.2 compiler fails for "defined(...)"
Is it possible that there is a longstanding m68k bug that gets hit with
GCC 3.x?
Gunther Nikl