Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to gcc-4.8.0 #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions patches/patch-gcc-4.8.0-libgcc-divide-exceptions.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- libgcc/Makefile.in.orig Mon Feb 4 23:06:20 2013
+++ libgcc/Makefile.in Mon Mar 25 15:46:52 2013
@@ -492,7 +492,7 @@
ifeq ($(LIB2_DIVMOD_EXCEPTION_FLAGS),)
# Provide default flags for compiling divmod functions, if they haven't been
# set already by a target-specific Makefile fragment.
-LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions -fnon-call-exceptions
+LIB2_DIVMOD_EXCEPTION_FLAGS := -fno-exceptions -fnon-call-exceptions
endif

# Build LIB2_DIVMOD_FUNCS.
@@ -813,7 +813,7 @@
# libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and
# LIB2ADDEHSHARED matter. (Usually all three are identical.)

-c_flags := -fexceptions
+c_flags := -fno-exceptions

ifeq ($(enable_shared),yes)

6 changes: 3 additions & 3 deletions summon-arm-toolchain
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ echo "CPUS=$CPUS"
##############################################################################
if [ ${USE_LINARO} == 0 ] ; then
# For FSF GCC:
GCCVERSION=4.7.2
GCCVERSION=4.8.0
GCC=gcc-${GCCVERSION}
GCCURL=http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.gz
GCCURL=http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2

# For FSF GDB:
GDBVERSION=7.5.1
Expand Down Expand Up @@ -426,7 +426,7 @@ if [ ! -e ${STAMPS}/${GCC}-${NEWLIB}.build ]; then
log "Patching gcc to add multilib support"
cd ${GCC}
patch -p0 -i ../patches/patch-gcc-config-arm-t-arm-elf.diff
patch -p0 -i ../patches/patch-libgcc-divide-exceptions.diff
patch -p0 -i ../patches/patch-${GCC}-libgcc-divide-exceptions.diff
cd ..
fi

Expand Down