summarylogtreecommitdiffstats
path: root/0200-gcc-no-exceptions.patch
blob: 0113bd8256714a112e708bb31f3162b0b99ffbdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/libgcc/Makefile.in	2013-06-01 23:57:51.711127513 +0200
+++ b/libgcc/Makefile.in	2013-06-01 23:59:13.940660435 +0200
@@ -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)