This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27767] Problem: gcc 4.0.3 on Unix_SV
- From: "mirko dot bruzzone at primeur dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2006 13:59:35 -0000
- Subject: [Bug target/27767] Problem: gcc 4.0.3 on Unix_SV
- References: <bug-27767-12737@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from mirko dot bruzzone at primeur dot com 2006-06-13 13:59 -------
(In reply to comment #5)
> Subject: Re: Problem: gcc 4.0.3 on Unix_SV
>
> mirko dot bruzzone at primeur dot com wrote:
> > gt-c-pragma.h:46: parse error before `__attribute__'
>
> gt-c-pragma.h uses attribute unused in a parameter list, before the
> parameter type. Like so:
> void sub (__attribute__ ((unused)) int i) { }
> This is a syntax that gcc-2.7.2 doesn't support. It was added later.
> You could try hacking this out, but it might be simpler to try baby
> steps. Use 2.7.2 to compile gcc-2.95.3, use 2.95.3 to compile
> gcc-3.3.4, use 3.3.4 to compile gcc-4.x.
>
> I see that 2.95.3 supports this syntax, so it might be able to compile
> gcc-4.x, but there may also be other problems, so going from 2.95.e to a
> 3.x release, and then to a 4.x release is more likely to work.
>
> We could probably fix this with some ifdefs, but gcc-2.7.2 is so old
> that it doesn't seem worth the hassle. Plus there are probably other
> issues that haven't been noticed yet.
>
Thank you very much for your reply.
I tried with success to compile gcc 2.95, but when I try to compile gcc 3.3.4
with gcc 2.95, I see this error:
gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H
-DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
./gengenrtl -h > tmp-genrtl.h
Segmentation Fault - core dumped
make[1]: *** [s-genrtl] Error 139
make[1]: Leaving directory `/usr1/bruzzonem/obj334/gcc'
make: *** [all-gcc] Error 2
So, could you help me again?
all the best.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27767