From 538a55d1a28c5926653bbba0be513da89f63769e Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 26 Jan 2009 09:56:29 +0000 Subject: [PATCH] - added '-mno-gpopt' Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@289 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/CPUs/MIPS/bsp/examples/Makefile | 4 ++-- lib/CPUs/MIPS/bsp/examples/bootloader/Makefile | 4 ++-- lib/CPUs/MIPS/bsp/toolchain/howto_build.txt | 13 ++++++------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/CPUs/MIPS/bsp/examples/Makefile b/lib/CPUs/MIPS/bsp/examples/Makefile index 7f5ab05..39387ca 100644 --- a/lib/CPUs/MIPS/bsp/examples/Makefile +++ b/lib/CPUs/MIPS/bsp/examples/Makefile @@ -1,7 +1,7 @@ TOOLS_DIR=../../tools -CFLAGS=-G 0 -msoft-float -O2 -march=r3000 -I. -LFLAGS=-G 0 -M -T link.ld +CFLAGS=-mno-gpopt -msoft-float -O2 -march=r3000 -I. +LFLAGS=-M -T link.ld LIB_DIRS=-L /usr/local/mipsel-elf/lib -L /usr/local/lib/gcc/mipsel-elf/4.3.2 LIBS=-lc -lm -lgcc diff --git a/lib/CPUs/MIPS/bsp/examples/bootloader/Makefile b/lib/CPUs/MIPS/bsp/examples/bootloader/Makefile index c16d928..11ca029 100644 --- a/lib/CPUs/MIPS/bsp/examples/bootloader/Makefile +++ b/lib/CPUs/MIPS/bsp/examples/bootloader/Makefile @@ -1,8 +1,8 @@ ROM_WORDADDR_WIDTH=11 TOOLS_DIR=../../../tools -CFLAGS=-G 0 -O2 -I. -I../ -msoft-float -march=r3000 -LFLAGS=-G 0 -M -T bootloader.ld +CFLAGS=-mno-gpopt -O2 -I. -I../ -msoft-float -march=r3000 +LFLAGS=-M -T bootloader.ld LIB_DIRS=-L /usr/local/mipsel-elf/lib -L /usr/local/lib/gcc/mipsel-elf/4.3.2 LIBS=-lc -lm -lgcc diff --git a/lib/CPUs/MIPS/bsp/toolchain/howto_build.txt b/lib/CPUs/MIPS/bsp/toolchain/howto_build.txt index c9cde65..270be3b 100644 --- a/lib/CPUs/MIPS/bsp/toolchain/howto_build.txt +++ b/lib/CPUs/MIPS/bsp/toolchain/howto_build.txt @@ -15,8 +15,8 @@ > tar -xzf gcc-4.3.2.tar.gz > mkdir gcc-4.3.2_build > cd gcc-4.3.2_build -> ../gcc-4.3.2/configure --target=mipsel-elf --prefix=/usr/local --enable-languages=c,c++ --without-headers --with-newlib --with-float=soft -> CFLAGS_FOR_TARGET="-G 0 -g -O2" make all-gcc +> ../gcc-4.3.2/configure --target=mipsel-elf --prefix=/usr/local --enable-languages="c,c++" --without-headers --with-newlib --with-float=soft --disable-multilib +> CFLAGS_FOR_TARGET="-mno-gpopt" make all-gcc > make info-gcc > make install-gcc @@ -32,16 +32,15 @@ > mkdir newlib-1.16.0_build > cd newlib-1.16.0_build -> ../newlib-1.16.0/configure --target=mipsel-elf --prefix=/usr/local --with-float=soft -> TARGET_CFLAGS="-G 0 -g -O2" make all +> ../newlib-1.16.0/configure --target=mipsel-elf --prefix=/usr/local --with-float=soft --disable-multilib +> TARGET_CFLAGS="-mno-gpopt" make all > make install # --------------------------------------------------------------- # 4. GCC bauen und installieren # --------------------------------------------------------------- > cd gcc-4.3.2_build -> ../gcc-4.3.2/configure --target=mipsel-elf --prefix=/usr/local --enable-languages=c,c++ --disable-shared --with-newlib --with-float=soft -> CFLAGS_FOR_TARGET="-G 0 -g -O2" make all +> ../gcc-4.3.2/configure --target=mipsel-elf --prefix=/usr/local --enable-languages="c,c++" --disable-shared --with-newlib --with-float=soft --disable-multilib +> CFLAGS_FOR_TARGET="-mno-gpopt" make all > make info > make install -