"Simmons, Aaron" <asimmons@rosettastone.com> writes:
> The patch works fine on Ubuntu 9.10 with gcc-4.2, though I misspoke
> when I said 4.x as it doesn't work with gcc-4.4. I haven't tried it
> with gcc-4.3 yet. While not the default on newer Ubuntu systems,
> gcc-4.2 is at least available. :)
> I'm currently blocked from building nestedvm on Mac as darcs is broken
> in macports (!), but I'm sure the patch will work there also with
> gcc-4.2 (which is the default on 10.6).
> Incidentally, I figured out how to itegrate this patch into nestedvm's
> build. Attached to this email is a new patch for nestedvm itself. To
> make it work do this:
> 1) download the patch to your home dir (nestedvm.new-gcc-fix.patch)
> 2) git clone http://nestedvm.ibex.org/.git/
> 3) cd nestedvm.ibex.org
> 4) patch -p0 ~/nestedvm.new-gcc-fix.patch
> 5) make cxxtest CC=gcc-4.2
> 6) wait
>
>
> Let me know how it goes,
> aaron
url_gcc-c++ = http://mirrors.kernel.org/gnu/gcc/gcc-$(version_gcc)/gcc-g++-$(version_gcc).tar.gz
url_gcc-g77 = http://mirrors.kernel.org/gnu/gcc/gcc-$(version_gcc)/gcc-g77-$(version_gcc).tar.gz
url_gcc-c++ = http://mirrors.kernel.org/gnu/gcc/gcc-$(version_gcc)/gcc-g++-$(version_gcc).tar.gz
url_gcc-g77 = http://mirrors.kernel.org/gnu/gcc/gcc-$(version_gcc)/gcc-g77-$(version_gcc).tar.gz
-patches_gcc = gcc-fixes.patch gcc-fdata-sections-bss.patch gcc-64bitclean.patch
+patches_gcc = gcc-fixes.patch gcc-fdata-sections-bss.patch gcc-64bitclean.patch gcc-with-newer-version.patch
configure_gcc = --target=mips-unknown-elf --disable-threads --with-gnu-ld --with-gnu-as --with-newlib=yes --enable-sjlj-exceptions --enable-languages="c"
configure_gcc_step2 = $(configure_gcc) --enable-languages="c,c++,f77"
configure_gcc = --target=mips-unknown-elf --disable-threads --with-gnu-ld --with-gnu-as --with-newlib=yes --enable-sjlj-exceptions --enable-languages="c"
configure_gcc_step2 = $(configure_gcc) --enable-languages="c,c++,f77"
--- /dev/null
+--- gcc/f/com.orig.h 2010-05-06 16:31:53.000000000 +0000
++++ gcc/f/com.h 2010-05-06 16:32:03.000000000 +0000
+@@ -233,7 +233,7 @@
+ void ffecom_finish_progunit (void);
+ tree ffecom_get_invented_identifier (const char *pattern, ...)
+ ATTRIBUTE_PRINTF_1;
+-ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix);
++ffeinfoBasictype ffecom_gfrt_basictype (ffecomGfrt gfrt);
+ ffeinfoKindtype ffecom_gfrt_kindtype (ffecomGfrt ix);
+ void ffecom_init_0 (void);
+ void ffecom_init_2 (void);