mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-21 03:55:15 +00:00
/devel/gcc-4.4:
- add gcc-4.4.0 patches, vampirised from the Gentoo patchset - gcc-4.4.0 auto-selects and uses appropriate companion linraries -------- diffstat follows -------- /devel/gcc-4.4/scripts/build/cc/gcc.sh | 20 18 2 0 + /devel/gcc-4.4/patches/gcc/4.4.0/280-freebsd.patch | 188 188 0 0 ++++++++++ /devel/gcc-4.4/patches/gcc/4.4.0/140-default-format-security.patch | 98 98 0 0 +++++ /devel/gcc-4.4/patches/gcc/4.4.0/290-freebsd.patch | 128 128 0 0 +++++++ /devel/gcc-4.4/patches/gcc/4.4.0/310-uclibc-conf.patch | 70 70 0 0 ++++ /devel/gcc-4.4/patches/gcc/4.4.0/240-libstdc++-pic.patch | 106 106 0 0 ++++++ /devel/gcc-4.4/patches/gcc/4.4.0/260-sh-libgcc-stacks.patch | 50 50 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/100-alpha-mieee-default.patch | 48 48 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/180-libgomp-no-werror.patch | 24 24 0 0 + /devel/gcc-4.4/patches/gcc/4.4.0/170-sparc64-bsd.patch | 58 58 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/200-libiberty.h-asprintf.patch | 30 30 0 0 ++ /devel/gcc-4.4/patches/gcc/4.4.0/220-libiberty-pic.patch | 22 22 0 0 + /devel/gcc-4.4/patches/gcc/4.4.0/110-trampolinewarn.patch | 54 54 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/160-netbsd-symbolic.patch | 22 22 0 0 + /devel/gcc-4.4/patches/gcc/4.4.0/190-flatten-switch-stmt-00.patch | 48 48 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/150-default-fortify-source.patch | 52 52 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/340-libmudflap-susv3-legacy.patch | 96 96 0 0 +++++ /devel/gcc-4.4/patches/gcc/4.4.0/120-java-nomulti.patch | 92 92 0 0 +++++ /devel/gcc-4.4/patches/gcc/4.4.0/270-sh-pr24836.patch | 48 48 0 0 +++ /devel/gcc-4.4/patches/gcc/4.4.0/330-c99-snprintf.patch | 24 24 0 0 + /devel/gcc-4.4/patches/gcc/4.4.0/230-superh-default-multilib.patch | 24 24 0 0 + /devel/gcc-4.4/patches/gcc/4.4.0/250-ia64-noteGNUstack.patch | 158 158 0 0 +++++++++ /devel/gcc-4.4/patches/gcc/4.4.0/300-pr40105.patch | 360 360 0 0 ++++++++++++++++++++ /devel/gcc-4.4/patches/gcc/4.4.0/210-arm-unbreak-armv4t.patch | 24 24 0 0 + /devel/gcc-4.4/patches/gcc/4.4.0/130-cross-compile.patch | 78 78 0 0 ++++ /devel/gcc-4.4/patches/gcc/4.4.0/320-missing-execinfo_h.patch | 24 24 0 0 + /devel/gcc-4.4/config/cc/gcc.in | 1 1 0 0 + 27 files changed, 1945 insertions(+), 2 deletions(-)
This commit is contained in:
parent
5801d8c588
commit
637b137512
@ -130,6 +130,7 @@ config CC_GCC_4_3_or_later
|
||||
config CC_GCC_4_4_or_later
|
||||
bool
|
||||
default n
|
||||
select PPL_CLOOG_MPC
|
||||
|
||||
config CC_VERSION
|
||||
string
|
||||
|
24
patches/gcc/4.4.0/100-alpha-mieee-default.patch
Normal file
24
patches/gcc/4.4.0/100-alpha-mieee-default.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/alpha/alpha.h gcc-4.4.0/gcc/config/alpha/alpha.h
|
||||
--- gcc-4.4.0.orig/gcc/config/alpha/alpha.h 2009-02-20 16:20:38.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/config/alpha/alpha.h 2009-05-27 21:37:58.000000000 +0200
|
||||
@@ -95,6 +95,8 @@
|
||||
while (0)
|
||||
#endif
|
||||
|
||||
+#define CPP_SPEC "%{!no-ieee:-mieee}"
|
||||
+
|
||||
#define WORD_SWITCH_TAKES_ARG(STR) \
|
||||
(!strcmp (STR, "rpath") || DEFAULT_WORD_SWITCH_TAKES_ARG(STR))
|
||||
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/alpha/alpha.opt gcc-4.4.0/gcc/config/alpha/alpha.opt
|
||||
--- gcc-4.4.0.orig/gcc/config/alpha/alpha.opt 2007-08-02 12:49:31.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/alpha/alpha.opt 2009-05-27 21:37:58.000000000 +0200
|
||||
@@ -39,7 +39,7 @@
|
||||
Request IEEE-conformant math library routines (OSF/1)
|
||||
|
||||
mieee
|
||||
-Target Report RejectNegative Mask(IEEE)
|
||||
+Target Report Mask(IEEE)
|
||||
Emit IEEE-conformant code, without inexact exceptions
|
||||
|
||||
mieee-with-inexact
|
27
patches/gcc/4.4.0/110-trampolinewarn.patch
Normal file
27
patches/gcc/4.4.0/110-trampolinewarn.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/builtins.c gcc-4.4.0/gcc/builtins.c
|
||||
--- gcc-4.4.0.orig/gcc/builtins.c 2009-03-30 19:42:27.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/builtins.c 2009-05-27 21:38:01.000000000 +0200
|
||||
@@ -5768,6 +5768,9 @@
|
||||
trampolines_created = 1;
|
||||
INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain);
|
||||
|
||||
+ if (warn_trampolines)
|
||||
+ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)");
|
||||
+
|
||||
return const0_rtx;
|
||||
}
|
||||
|
||||
diff -durN gcc-4.4.0.orig/gcc/common.opt gcc-4.4.0/gcc/common.opt
|
||||
--- gcc-4.4.0.orig/gcc/common.opt 2009-03-28 18:28:45.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/common.opt 2009-05-27 21:38:01.000000000 +0200
|
||||
@@ -197,6 +197,10 @@
|
||||
Common Var(warn_type_limits) Init(-1) Warning
|
||||
Warn if a comparison is always true or always false due to the limited range of the data type
|
||||
|
||||
+Wtrampolines
|
||||
+Common Var(warn_trampolines) Init(1)
|
||||
+Warn whenever a trampoline is generated
|
||||
+
|
||||
Wuninitialized
|
||||
Common Var(warn_uninitialized) Warning
|
||||
Warn about uninitialized automatic variables
|
46
patches/gcc/4.4.0/120-java-nomulti.patch
Normal file
46
patches/gcc/4.4.0/120-java-nomulti.patch
Normal file
@ -0,0 +1,46 @@
|
||||
diff -durN gcc-4.4.0.orig/libjava/configure gcc-4.4.0/libjava/configure
|
||||
--- gcc-4.4.0.orig/libjava/configure 2009-04-21 11:08:08.000000000 +0200
|
||||
+++ gcc-4.4.0/libjava/configure 2009-05-27 21:38:03.000000000 +0200
|
||||
@@ -1021,6 +1021,8 @@
|
||||
default=yes
|
||||
--enable-java-maintainer-mode
|
||||
allow rebuilding of .class and .h files
|
||||
+ --enable-libjava-multilib
|
||||
+ build libjava as multilib
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
@@ -1973,6 +1975,16 @@
|
||||
fi
|
||||
|
||||
|
||||
+# Check whether --enable-libjava-multilib was given.
|
||||
+if test "${enable_libjava_multilib+set}" = set; then
|
||||
+ enableval=$enable_libjava_multilib;
|
||||
+fi
|
||||
+
|
||||
+if test "$enable_libjava_multilib" = no; then
|
||||
+ multilib=no
|
||||
+ ac_configure_args="$ac_configure_args --disable-multilib"
|
||||
+fi
|
||||
+
|
||||
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
|
||||
|
||||
|
||||
diff -durN gcc-4.4.0.orig/libjava/configure.ac gcc-4.4.0/libjava/configure.ac
|
||||
--- gcc-4.4.0.orig/libjava/configure.ac 2009-04-09 23:54:28.000000000 +0200
|
||||
+++ gcc-4.4.0/libjava/configure.ac 2009-05-27 21:38:03.000000000 +0200
|
||||
@@ -139,6 +139,13 @@
|
||||
[allow rebuilding of .class and .h files]))
|
||||
AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes)
|
||||
|
||||
+AC_ARG_ENABLE(libjava-multilib,
|
||||
+ AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib]))
|
||||
+if test "$enable_libjava_multilib" = no; then
|
||||
+ multilib=no
|
||||
+ ac_configure_args="$ac_configure_args --disable-multilib"
|
||||
+fi
|
||||
+
|
||||
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
|
||||
GCC_NO_EXECUTABLES
|
||||
|
39
patches/gcc/4.4.0/130-cross-compile.patch
Normal file
39
patches/gcc/4.4.0/130-cross-compile.patch
Normal file
@ -0,0 +1,39 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure
|
||||
--- gcc-4.4.0.orig/gcc/configure 2009-03-24 18:46:03.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/configure 2009-05-27 21:38:06.000000000 +0200
|
||||
@@ -13997,7 +13997,7 @@
|
||||
| powerpc*-*-*,powerpc64*-*-*)
|
||||
CROSS="$CROSS -DNATIVE_CROSS" ;;
|
||||
esac
|
||||
-elif test "x$TARGET_SYSTEM_ROOT" != x; then
|
||||
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
|
||||
SYSTEM_HEADER_DIR=$build_system_header_dir
|
||||
fi
|
||||
|
||||
diff -durN gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac
|
||||
--- gcc-4.4.0.orig/gcc/configure.ac 2009-03-24 18:46:03.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/configure.ac 2009-05-27 21:38:06.000000000 +0200
|
||||
@@ -1720,7 +1720,7 @@
|
||||
| powerpc*-*-*,powerpc64*-*-*)
|
||||
CROSS="$CROSS -DNATIVE_CROSS" ;;
|
||||
esac
|
||||
-elif test "x$TARGET_SYSTEM_ROOT" != x; then
|
||||
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
|
||||
SYSTEM_HEADER_DIR=$build_system_header_dir
|
||||
fi
|
||||
|
||||
diff -durN gcc-4.4.0.orig/gcc/unwind-dw2.c gcc-4.4.0/gcc/unwind-dw2.c
|
||||
--- gcc-4.4.0.orig/gcc/unwind-dw2.c 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/unwind-dw2.c 2009-05-27 21:38:06.000000000 +0200
|
||||
@@ -329,9 +329,11 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+#ifndef inhibit_libc
|
||||
#ifdef MD_UNWIND_SUPPORT
|
||||
#include MD_UNWIND_SUPPORT
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* Extract any interesting information from the CIE for the translation
|
||||
unit F belongs to. Return a pointer to the byte after the augmentation,
|
49
patches/gcc/4.4.0/140-default-format-security.patch
Normal file
49
patches/gcc/4.4.0/140-default-format-security.patch
Normal file
@ -0,0 +1,49 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/c-common.c gcc-4.4.0/gcc/c-common.c
|
||||
--- gcc-4.4.0.orig/gcc/c-common.c 2009-03-30 19:42:27.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/c-common.c 2009-05-27 21:38:08.000000000 +0200
|
||||
@@ -301,7 +301,7 @@
|
||||
/* Warn about format/argument anomalies in calls to formatted I/O functions
|
||||
(*printf, *scanf, strftime, strfmon, etc.). */
|
||||
|
||||
-int warn_format;
|
||||
+int warn_format = 1;
|
||||
|
||||
/* Warn about using __null (as NULL in C++) as sentinel. For code compiled
|
||||
with GCC this doesn't matter as __null is guaranteed to have the right
|
||||
diff -durN gcc-4.4.0.orig/gcc/c.opt gcc-4.4.0/gcc/c.opt
|
||||
--- gcc-4.4.0.orig/gcc/c.opt 2009-03-18 22:14:53.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/c.opt 2009-05-27 21:38:08.000000000 +0200
|
||||
@@ -236,7 +236,7 @@
|
||||
Warn about format strings that contain NUL bytes
|
||||
|
||||
Wformat-security
|
||||
-C ObjC C++ ObjC++ Var(warn_format_security) Warning
|
||||
+C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning
|
||||
Warn about possible security problems with format functions
|
||||
|
||||
Wformat-y2k
|
||||
diff -durN gcc-4.4.0.orig/gcc/doc/invoke.texi gcc-4.4.0/gcc/doc/invoke.texi
|
||||
--- gcc-4.4.0.orig/gcc/doc/invoke.texi 2009-04-01 09:18:47.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/doc/invoke.texi 2009-05-27 21:38:08.000000000 +0200
|
||||
@@ -2867,6 +2867,9 @@
|
||||
@option{-Wformat-nonliteral}, @option{-Wformat-security}, and
|
||||
@option{-Wformat=2} are available, but are not included in @option{-Wall}.
|
||||
|
||||
+NOTE: In Gentoo, this option is enabled by default for C, C++, ObjC, ObjC++.
|
||||
+To disable, use @option{-Wformat=0}.
|
||||
+
|
||||
@item -Wformat-y2k
|
||||
@opindex Wformat-y2k
|
||||
@opindex Wno-format-y2k
|
||||
@@ -2920,6 +2923,11 @@
|
||||
in future warnings may be added to @option{-Wformat-security} that are not
|
||||
included in @option{-Wformat-nonliteral}.)
|
||||
|
||||
+NOTE: In Gentoo, this option is enabled by default for C, C++, ObjC, ObjC++.
|
||||
+To disable, use @option{-Wno-format-security}, or disable all format warnings
|
||||
+with @option{-Wformat=0}. To make format security warnings fatal, specify
|
||||
+@option{-Werror=format-security}.
|
||||
+
|
||||
@item -Wformat=2
|
||||
@opindex Wformat=2
|
||||
@opindex Wno-format=2
|
26
patches/gcc/4.4.0/150-default-fortify-source.patch
Normal file
26
patches/gcc/4.4.0/150-default-fortify-source.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/doc/invoke.texi gcc-4.4.0/gcc/doc/invoke.texi
|
||||
--- gcc-4.4.0.orig/gcc/doc/invoke.texi 2009-05-27 21:38:11.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/doc/invoke.texi 2009-05-27 21:38:11.000000000 +0200
|
||||
@@ -5411,6 +5411,11 @@
|
||||
Please note the warning under @option{-fgcse} about
|
||||
invoking @option{-O2} on programs that use computed gotos.
|
||||
|
||||
+NOTE: In Gentoo, @option{-D_FORTIFY_SOURCE=2} is set by default, and is
|
||||
+activated when @option{-O} is set to 2 or higher. This enables additional
|
||||
+compile-time and run-time checks for several libc functions. To disable,
|
||||
+specify either @option{-U_FORTIFY_SOURCE} or @option{-D_FORTIFY_SOURCE=0}.
|
||||
+
|
||||
@item -O3
|
||||
@opindex O3
|
||||
Optimize yet more. @option{-O3} turns on all optimizations specified
|
||||
diff -durN gcc-4.4.0.orig/gcc/gcc.c gcc-4.4.0/gcc/gcc.c
|
||||
--- gcc-4.4.0.orig/gcc/gcc.c 2009-03-17 22:25:59.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/gcc.c 2009-05-27 21:38:11.000000000 +0200
|
||||
@@ -807,6 +807,7 @@
|
||||
%{H} %C %{D*&U*&A*} %{i*} %Z %i\
|
||||
%{fmudflap:-D_MUDFLAP -include mf-runtime.h}\
|
||||
%{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\
|
||||
+ %{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:%{!U_FORTIFY_SOURCE:-D_FORTIFY_SOURCE=2}}}\
|
||||
%{E|M|MM:%W{o*}}";
|
||||
|
||||
/* This contains cpp options which are common with cc1_options and are passed
|
11
patches/gcc/4.4.0/160-netbsd-symbolic.patch
Normal file
11
patches/gcc/4.4.0/160-netbsd-symbolic.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/netbsd-elf.h gcc-4.4.0/gcc/config/netbsd-elf.h
|
||||
--- gcc-4.4.0.orig/gcc/config/netbsd-elf.h 2007-09-03 18:14:04.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/netbsd-elf.h 2009-05-27 21:38:14.000000000 +0200
|
||||
@@ -82,6 +82,7 @@
|
||||
#define NETBSD_LINK_SPEC_ELF \
|
||||
"%{assert*} %{R*} %{rpath*} \
|
||||
%{shared:-shared} \
|
||||
+ %{symbolic:-Bsymbolic} \
|
||||
%{!shared: \
|
||||
-dc -dp \
|
||||
%{!nostdlib: \
|
29
patches/gcc/4.4.0/170-sparc64-bsd.patch
Normal file
29
patches/gcc/4.4.0/170-sparc64-bsd.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/sparc/freebsd.h gcc-4.4.0/gcc/config/sparc/freebsd.h
|
||||
--- gcc-4.4.0.orig/gcc/config/sparc/freebsd.h 2007-08-02 12:49:31.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/sparc/freebsd.h 2009-05-27 21:38:16.000000000 +0200
|
||||
@@ -25,9 +25,22 @@
|
||||
/* FreeBSD needs the platform name (sparc64) defined.
|
||||
Emacs needs to know if the arch is 64 or 32-bits. */
|
||||
|
||||
-#undef CPP_CPU64_DEFAULT_SPEC
|
||||
-#define CPP_CPU64_DEFAULT_SPEC \
|
||||
- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
|
||||
+#undef FBSD_TARGET_CPU_CPP_BUILTINS
|
||||
+#define FBSD_TARGET_CPU_CPP_BUILTINS() \
|
||||
+ do \
|
||||
+ { \
|
||||
+ if (TARGET_ARCH64) \
|
||||
+ { \
|
||||
+ builtin_define ("__sparc64__"); \
|
||||
+ builtin_define ("__sparc_v9__"); \
|
||||
+ builtin_define ("__sparcv9"); \
|
||||
+ } \
|
||||
+ else \
|
||||
+ builtin_define ("__sparc"); \
|
||||
+ builtin_define ("__sparc__"); \
|
||||
+ } \
|
||||
+ while (0)
|
||||
+
|
||||
|
||||
#define LINK_SPEC "%(link_arch) \
|
||||
%{!mno-relax:%{!r:-relax}} \
|
12
patches/gcc/4.4.0/180-libgomp-no-werror.patch
Normal file
12
patches/gcc/4.4.0/180-libgomp-no-werror.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -durN gcc-4.4.0.orig/libgomp/configure gcc-4.4.0/libgomp/configure
|
||||
--- gcc-4.4.0.orig/libgomp/configure 2009-04-21 11:08:08.000000000 +0200
|
||||
+++ gcc-4.4.0/libgomp/configure 2009-05-27 21:38:19.000000000 +0200
|
||||
@@ -3334,7 +3334,7 @@
|
||||
|
||||
# Add -Wall -Werror if we are using GCC.
|
||||
if test "x$GCC" = "xyes"; then
|
||||
- XCFLAGS="$XCFLAGS -Wall -Werror"
|
||||
+ XCFLAGS="$XCFLAGS -Wall"
|
||||
fi
|
||||
|
||||
# Find other programs we need.
|
24
patches/gcc/4.4.0/190-flatten-switch-stmt-00.patch
Normal file
24
patches/gcc/4.4.0/190-flatten-switch-stmt-00.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/stmt.c gcc-4.4.0/gcc/stmt.c
|
||||
--- gcc-4.4.0.orig/gcc/stmt.c 2009-02-27 20:49:42.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/stmt.c 2009-05-27 21:38:21.000000000 +0200
|
||||
@@ -2376,7 +2376,11 @@
|
||||
use_cost_table
|
||||
= (TREE_CODE (orig_type) != ENUMERAL_TYPE
|
||||
&& estimate_case_costs (case_list));
|
||||
- balance_case_nodes (&case_list, NULL);
|
||||
+ /* When optimizing for size, we want a straight list to avoid
|
||||
+ jumps as much as possible. This basically creates an if-else
|
||||
+ chain. */
|
||||
+ if (!optimize_size)
|
||||
+ balance_case_nodes (&case_list, NULL);
|
||||
emit_case_nodes (index, case_list, default_label, index_type);
|
||||
if (default_label)
|
||||
emit_jump (default_label);
|
||||
@@ -2942,6 +2946,7 @@
|
||||
{
|
||||
if (!node_has_low_bound (node, index_type))
|
||||
{
|
||||
+ if (!optimize_size) /* don't jl to the .default_label. */
|
||||
emit_cmp_and_jump_insns (index,
|
||||
convert_modes
|
||||
(mode, imode,
|
15
patches/gcc/4.4.0/200-libiberty.h-asprintf.patch
Normal file
15
patches/gcc/4.4.0/200-libiberty.h-asprintf.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -durN gcc-4.4.0.orig/include/libiberty.h gcc-4.4.0/include/libiberty.h
|
||||
--- gcc-4.4.0.orig/include/libiberty.h 2008-06-24 03:42:31.000000000 +0200
|
||||
+++ gcc-4.4.0/include/libiberty.h 2009-05-27 21:38:24.000000000 +0200
|
||||
@@ -595,8 +595,11 @@
|
||||
/* Like sprintf but provides a pointer to malloc'd storage, which must
|
||||
be freed by the caller. */
|
||||
|
||||
+/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
|
||||
+#ifndef asprintf
|
||||
extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#if !HAVE_DECL_VASPRINTF
|
||||
/* Like vsprintf but provides a pointer to malloc'd storage, which
|
12
patches/gcc/4.4.0/210-arm-unbreak-armv4t.patch
Normal file
12
patches/gcc/4.4.0/210-arm-unbreak-armv4t.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h gcc-4.4.0/gcc/config/arm/linux-eabi.h
|
||||
--- gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h 2007-11-08 14:44:09.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/config/arm/linux-eabi.h 2009-05-27 21:38:26.000000000 +0200
|
||||
@@ -44,7 +44,7 @@
|
||||
The ARM10TDMI core is the default for armv5t, so set
|
||||
SUBTARGET_CPU_DEFAULT to achieve this. */
|
||||
#undef SUBTARGET_CPU_DEFAULT
|
||||
-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
|
||||
+#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi
|
||||
|
||||
/* TARGET_BIG_ENDIAN_DEFAULT is set in
|
||||
config.gcc for big endian configurations. */
|
11
patches/gcc/4.4.0/220-libiberty-pic.patch
Normal file
11
patches/gcc/4.4.0/220-libiberty-pic.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -durN gcc-4.4.0.orig/libiberty/Makefile.in gcc-4.4.0/libiberty/Makefile.in
|
||||
--- gcc-4.4.0.orig/libiberty/Makefile.in 2008-10-22 15:30:19.000000000 +0200
|
||||
+++ gcc-4.4.0/libiberty/Makefile.in 2009-05-27 21:38:29.000000000 +0200
|
||||
@@ -227,6 +227,7 @@
|
||||
$(AR) $(AR_FLAGS) $(TARGETLIB) \
|
||||
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
|
||||
$(RANLIB) $(TARGETLIB); \
|
||||
+ cp $(TARGETLIB) ../ ; \
|
||||
cd ..; \
|
||||
else true; fi
|
||||
|
12
patches/gcc/4.4.0/230-superh-default-multilib.patch
Normal file
12
patches/gcc/4.4.0/230-superh-default-multilib.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config.gcc gcc-4.4.0/gcc/config.gcc
|
||||
--- gcc-4.4.0.orig/gcc/config.gcc 2009-04-17 13:58:41.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config.gcc 2009-05-27 21:38:31.000000000 +0200
|
||||
@@ -2121,7 +2121,7 @@
|
||||
if test x${sh_multilibs} = x ; then
|
||||
case ${target} in
|
||||
sh64-superh-linux* | \
|
||||
- sh[1234]*) sh_multilibs=${sh_cpu_target} ;;
|
||||
+ sh[1234]*) sh_multilibs=`cd ${srcdir}/config/sh ; echo t-mlib-sh[1-4]* | sed 's:t-mlib-sh:,m:g;s: ::g'` ;;
|
||||
sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
|
||||
sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
|
||||
sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;;
|
53
patches/gcc/4.4.0/240-libstdc++-pic.patch
Normal file
53
patches/gcc/4.4.0/240-libstdc++-pic.patch
Normal file
@ -0,0 +1,53 @@
|
||||
diff -durN gcc-4.4.0.orig/libstdc++-v3/src/Makefile.am gcc-4.4.0/libstdc++-v3/src/Makefile.am
|
||||
--- gcc-4.4.0.orig/libstdc++-v3/src/Makefile.am 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/libstdc++-v3/src/Makefile.am 2009-05-27 21:38:34.000000000 +0200
|
||||
@@ -351,6 +351,13 @@
|
||||
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
|
||||
|
||||
|
||||
+install-exec-local:
|
||||
+ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \
|
||||
+ if [ x"$$pic_objs" != x ]; then \
|
||||
+ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \
|
||||
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \
|
||||
+ fi
|
||||
+
|
||||
# Added bits to build debug library.
|
||||
if GLIBCXX_BUILD_DEBUG
|
||||
all-local: build_debug
|
||||
diff -durN gcc-4.4.0.orig/libstdc++-v3/src/Makefile.in gcc-4.4.0/libstdc++-v3/src/Makefile.in
|
||||
--- gcc-4.4.0.orig/libstdc++-v3/src/Makefile.in 2009-01-17 03:03:25.000000000 +0100
|
||||
+++ gcc-4.4.0/libstdc++-v3/src/Makefile.in 2009-05-27 21:38:34.000000000 +0200
|
||||
@@ -726,7 +726,7 @@
|
||||
|
||||
install-data-am: install-data-local
|
||||
|
||||
-install-exec-am: install-toolexeclibLTLIBRARIES
|
||||
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
@@ -765,7 +765,7 @@
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags uninstall uninstall-am uninstall-info-am \
|
||||
- uninstall-toolexeclibLTLIBRARIES
|
||||
+ uninstall-toolexeclibLTLIBRARIES install-exec-local
|
||||
|
||||
|
||||
# Symbol versioning for shared libraries.
|
||||
@@ -942,6 +942,14 @@
|
||||
install_debug:
|
||||
(cd ${debugdir} && $(MAKE) \
|
||||
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
|
||||
+
|
||||
+install-exec-local:
|
||||
+ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \
|
||||
+ if [ x"$$pic_objs" != x ]; then \
|
||||
+ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \
|
||||
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \
|
||||
+ fi
|
||||
+
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
79
patches/gcc/4.4.0/250-ia64-noteGNUstack.patch
Normal file
79
patches/gcc/4.4.0/250-ia64-noteGNUstack.patch
Normal file
@ -0,0 +1,79 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.0/gcc/config/ia64/crtbegin.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/ia64/crtbegin.asm 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -252,3 +252,7 @@
|
||||
.weak __cxa_finalize
|
||||
#endif
|
||||
.weak _Jv_RegisterClasses
|
||||
+
|
||||
+#ifdef __linux__
|
||||
+.section .note.GNU-stack; .previous
|
||||
+#endif
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtend.asm gcc-4.4.0/gcc/config/ia64/crtend.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/ia64/crtend.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/ia64/crtend.asm 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -119,3 +119,7 @@
|
||||
|
||||
br.ret.sptk.many rp
|
||||
.endp __do_global_ctors_aux
|
||||
+
|
||||
+#ifdef __linux__
|
||||
+.section .note.GNU-stack; .previous
|
||||
+#endif
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/ia64/crti.asm gcc-4.4.0/gcc/config/ia64/crti.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/ia64/crti.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/ia64/crti.asm 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -51,3 +51,7 @@
|
||||
.body
|
||||
|
||||
# end of crti.asm
|
||||
+
|
||||
+#ifdef __linux__
|
||||
+.section .note.GNU-stack; .previous
|
||||
+#endif
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtn.asm gcc-4.4.0/gcc/config/ia64/crtn.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/ia64/crtn.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/ia64/crtn.asm 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -41,3 +41,7 @@
|
||||
br.ret.sptk.many b0
|
||||
|
||||
# end of crtn.asm
|
||||
+
|
||||
+#ifdef __linux__
|
||||
+.section .note.GNU-stack; .previous
|
||||
+#endif
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.0/gcc/config/ia64/lib1funcs.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/ia64/lib1funcs.asm 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -793,3 +793,7 @@
|
||||
.endp __floattitf
|
||||
#endif
|
||||
#endif
|
||||
+
|
||||
+#ifdef __linux__
|
||||
+.section .note.GNU-stack; .previous
|
||||
+#endif
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
|
||||
--- gcc-4.4.0.orig/gcc/config/ia64/linux.h 2009-02-12 17:30:53.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/config/ia64/linux.h 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
#define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
|
||||
|
||||
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
|
||||
+
|
||||
/* This is for -profile to use -lc_p instead of -lc. */
|
||||
#undef CC1_SPEC
|
||||
#define CC1_SPEC "%{profile:-p} %{G*}"
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.0/gcc/config/rs6000/ppc-asm.h
|
||||
--- gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h 2008-10-13 17:44:26.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/rs6000/ppc-asm.h 2009-05-27 21:38:37.000000000 +0200
|
||||
@@ -172,7 +172,7 @@
|
||||
.size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
|
||||
#endif
|
||||
|
||||
-#if defined __linux__ && !defined __powerpc64__
|
||||
+#if defined __linux__
|
||||
.section .note.GNU-stack
|
||||
.previous
|
||||
#endif
|
25
patches/gcc/4.4.0/260-sh-libgcc-stacks.patch
Normal file
25
patches/gcc/4.4.0/260-sh-libgcc-stacks.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/sh/lib1funcs.asm gcc-4.4.0/gcc/config/sh/lib1funcs.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/sh/lib1funcs.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/sh/lib1funcs.asm 2009-05-27 21:38:39.000000000 +0200
|
||||
@@ -30,6 +30,11 @@
|
||||
!! recoded in assembly by Toshiyasu Morita
|
||||
!! tm@netcom.com
|
||||
|
||||
+#if defined(__ELF__) && defined(__linux__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+.previous
|
||||
+#endif
|
||||
+
|
||||
/* SH2 optimizations for ___ashrsi3, ___ashlsi3, ___lshrsi3 and
|
||||
ELF local label prefixes by J"orn Rennecke
|
||||
amylaar@cygnus.com */
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/sh/linux-atomic.asm gcc-4.4.0/gcc/config/sh/linux-atomic.asm
|
||||
--- gcc-4.4.0.orig/gcc/config/sh/linux-atomic.asm 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/sh/linux-atomic.asm 2009-05-27 21:38:39.000000000 +0200
|
||||
@@ -136,3 +136,6 @@
|
||||
ATOMIC_FETCH_AND_COMBOP(nand,and,not,4,l,mov)
|
||||
|
||||
#endif /* ! __SH5__ */
|
||||
+
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+.previous
|
24
patches/gcc/4.4.0/270-sh-pr24836.patch
Normal file
24
patches/gcc/4.4.0/270-sh-pr24836.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure
|
||||
--- gcc-4.4.0.orig/gcc/configure 2009-05-27 21:38:08.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/configure 2009-05-27 21:38:42.000000000 +0200
|
||||
@@ -22205,7 +22205,7 @@
|
||||
tls_first_minor=14
|
||||
tls_as_opt="-m64 -Aesame --fatal-warnings"
|
||||
;;
|
||||
- sh-*-* | sh[34]-*-*)
|
||||
+ sh-*-* | sh[34]*-*-*)
|
||||
conftest_s='
|
||||
.section ".tdata","awT",@progbits
|
||||
foo: .long 25
|
||||
diff -durN gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac
|
||||
--- gcc-4.4.0.orig/gcc/configure.ac 2009-05-27 21:38:08.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/configure.ac 2009-05-27 21:38:42.000000000 +0200
|
||||
@@ -2673,7 +2673,7 @@
|
||||
tls_first_minor=14
|
||||
tls_as_opt="-m64 -Aesame --fatal-warnings"
|
||||
;;
|
||||
- sh-*-* | sh[34]-*-*)
|
||||
+ sh-*-* | sh[34]*-*-*)
|
||||
conftest_s='
|
||||
.section ".tdata","awT",@progbits
|
||||
foo: .long 25
|
94
patches/gcc/4.4.0/280-freebsd.patch
Normal file
94
patches/gcc/4.4.0/280-freebsd.patch
Normal file
@ -0,0 +1,94 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/freebsd-spec.h gcc-4.4.0/gcc/config/freebsd-spec.h
|
||||
--- gcc-4.4.0.orig/gcc/config/freebsd-spec.h 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/freebsd-spec.h 2009-05-27 21:38:45.000000000 +0200
|
||||
@@ -61,6 +61,8 @@
|
||||
builtin_assert ("system=unix"); \
|
||||
builtin_assert ("system=bsd"); \
|
||||
builtin_assert ("system=FreeBSD"); \
|
||||
+ if(!(flag_iso && (c_dialect_cxx () ? cxx_dialect == cxx98 : !flag_isoc99))) \
|
||||
+ builtin_define("_LONGLONG"); \
|
||||
FBSD_TARGET_CPU_CPP_BUILTINS(); \
|
||||
} \
|
||||
while (0)
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/t-freebsd-eh gcc-4.4.0/gcc/config/t-freebsd-eh
|
||||
--- gcc-4.4.0.orig/gcc/config/t-freebsd-eh 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/config/t-freebsd-eh 2009-05-27 21:38:45.000000000 +0200
|
||||
@@ -0,0 +1,4 @@
|
||||
+# Use unwind-dw2-fde-glibc
|
||||
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
|
||||
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
||||
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
|
||||
diff -durN gcc-4.4.0.orig/gcc/config.gcc gcc-4.4.0/gcc/config.gcc
|
||||
--- gcc-4.4.0.orig/gcc/config.gcc 2009-05-27 21:38:34.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config.gcc 2009-05-27 21:38:45.000000000 +0200
|
||||
@@ -456,7 +456,7 @@
|
||||
# pleases around the provided core setting.
|
||||
gas=yes
|
||||
gnu_ld=yes
|
||||
- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
|
||||
+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
|
||||
fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
|
||||
tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}"
|
||||
tmake_file="t-slibgcc-elf-ver t-freebsd"
|
||||
@@ -1042,6 +1042,10 @@
|
||||
;;
|
||||
i[34567]86-*-freebsd*)
|
||||
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
|
||||
+ fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
|
||||
+ if test ${fbsd_major} -ge 7; then
|
||||
+ tmake_file="${tmake_file} t-freebsd-eh"
|
||||
+ fi
|
||||
;;
|
||||
x86_64-*-freebsd*)
|
||||
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
|
||||
diff -durN gcc-4.4.0.orig/gcc/crtstuff.c gcc-4.4.0/gcc/crtstuff.c
|
||||
--- gcc-4.4.0.orig/gcc/crtstuff.c 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/crtstuff.c 2009-05-27 21:38:45.000000000 +0200
|
||||
@@ -85,13 +85,15 @@
|
||||
&& !defined(OBJECT_FORMAT_FLAT) \
|
||||
&& defined(HAVE_LD_EH_FRAME_HDR) \
|
||||
&& !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \
|
||||
- && defined(__GLIBC__) && __GLIBC__ >= 2
|
||||
+ && ((defined(__GLIBC__) && __GLIBC__ >= 2) \
|
||||
+ || (defined(__FreeBSD_version) && __FreeBSD_version >= 700022))
|
||||
#include <link.h>
|
||||
/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h.
|
||||
But it doesn't use PT_GNU_EH_FRAME ELF segment currently. */
|
||||
# if !defined(__UCLIBC__) \
|
||||
- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|
||||
- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
|
||||
+ || (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|
||||
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) \
|
||||
+ || (__FreeBSD_version >= 700022)
|
||||
# define USE_PT_GNU_EH_FRAME
|
||||
# endif
|
||||
#endif
|
||||
diff -durN gcc-4.4.0.orig/gcc/unwind-dw2-fde-glibc.c gcc-4.4.0/gcc/unwind-dw2-fde-glibc.c
|
||||
--- gcc-4.4.0.orig/gcc/unwind-dw2-fde-glibc.c 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/unwind-dw2-fde-glibc.c 2009-05-27 21:38:45.000000000 +0200
|
||||
@@ -46,8 +46,9 @@
|
||||
#include "gthr.h"
|
||||
|
||||
#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
|
||||
- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|
||||
- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
|
||||
+ && ((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|
||||
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) \
|
||||
+ || (__FreeBSD_version >= 700022 ))
|
||||
|
||||
#ifndef __RELOC_POINTER
|
||||
# define __RELOC_POINTER(ptr, base) ((ptr) + (base))
|
||||
@@ -63,6 +64,13 @@
|
||||
#define PT_GNU_EH_FRAME (PT_LOOS + 0x474e550)
|
||||
#endif
|
||||
|
||||
+/* Support FreeBSD */
|
||||
+#ifndef ElfW
|
||||
+# ifdef __ElfN
|
||||
+# define ElfW __ElfN
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
struct unw_eh_callback_data
|
||||
{
|
||||
_Unwind_Ptr pc;
|
64
patches/gcc/4.4.0/290-freebsd.patch
Normal file
64
patches/gcc/4.4.0/290-freebsd.patch
Normal file
@ -0,0 +1,64 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/config/freebsd-spec.h gcc-4.4.0/gcc/config/freebsd-spec.h
|
||||
--- gcc-4.4.0.orig/gcc/config/freebsd-spec.h 2009-05-27 21:38:47.000000000 +0200
|
||||
+++ gcc-4.4.0/gcc/config/freebsd-spec.h 2009-05-27 21:38:47.000000000 +0200
|
||||
@@ -86,9 +86,10 @@
|
||||
#define FBSD_STARTFILE_SPEC \
|
||||
"%{!shared: \
|
||||
%{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
|
||||
- %{!p:%{profile:gcrt1.o%s} \
|
||||
- %{!profile:crt1.o%s}}}} \
|
||||
- crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
|
||||
+ %{!p:%{profile:gcrt1.o%s} \
|
||||
+ %{!profile:crt1.o%s}}}} \
|
||||
+ crti.o%s \
|
||||
+ %{static:crtbeginT.o%s;shared:crtbeginS.o%s;:crtbegin.o%s}"
|
||||
|
||||
/* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on
|
||||
the magical crtend.o file (see crtstuff.c) which provides part of
|
||||
@@ -126,7 +127,8 @@
|
||||
%{pg: -lc_p} \
|
||||
}"
|
||||
#else
|
||||
-#if FBSD_MAJOR < 5
|
||||
+#include <sys/param.h>
|
||||
+#if __FreeBSD_version < 500016
|
||||
#define FBSD_LIB_SPEC " \
|
||||
%{!shared: \
|
||||
%{!pg: \
|
||||
@@ -136,17 +138,34 @@
|
||||
%{!pthread:-lc_p} \
|
||||
%{pthread:-lc_r_p}} \
|
||||
}"
|
||||
-#else
|
||||
+#elif __FreeBSD_version < 700022
|
||||
#define FBSD_LIB_SPEC " \
|
||||
%{!shared: \
|
||||
%{!pg: %{pthread:-lpthread} -lc} \
|
||||
%{pg: %{pthread:-lpthread_p} -lc_p} \
|
||||
}"
|
||||
+#else
|
||||
+#define FBSD_LIB_SPEC " \
|
||||
+ %{!shared: \
|
||||
+ %{!pg: %{pthread:-lpthread} -lc} \
|
||||
+ %{pg: %{pthread:-lpthread_p} -lc_p}} \
|
||||
+ %{shared: \
|
||||
+ %{pthread:-lpthread} -lc} \
|
||||
+ "
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#if FBSD_MAJOR < 6
|
||||
+#if FBSD_MAJOR < 5
|
||||
#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
|
||||
#else
|
||||
#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
|
||||
#endif
|
||||
+
|
||||
+#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||
+#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||
+#endif
|
||||
+
|
||||
+/* Use --as-needed -lgcc_s for eh support. */
|
||||
+#ifdef HAVE_LD_AS_NEEDED
|
||||
+#define USE_LD_AS_NEEDED 1
|
||||
+#endif
|
180
patches/gcc/4.4.0/300-pr40105.patch
Normal file
180
patches/gcc/4.4.0/300-pr40105.patch
Normal file
@ -0,0 +1,180 @@
|
||||
diff -durN gcc-4.4.0.orig/gcc/Makefile.in gcc-4.4.0/gcc/Makefile.in
|
||||
--- gcc-4.4.0.orig/gcc/Makefile.in 2009-03-25 13:00:32.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/Makefile.in 2009-05-27 21:38:50.000000000 +0200
|
||||
@@ -2785,7 +2785,8 @@
|
||||
value-prof.h $(TREE_INLINE_H) $(TARGET_H)
|
||||
cfgrtl.o : cfgrtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
|
||||
$(FLAGS_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
|
||||
- output.h $(TOPLEV_H) $(FUNCTION_H) except.h $(TM_P_H) insn-config.h $(EXPR_H) \
|
||||
+ output.h $(TOPLEV_H) $(FUNCTION_H) except.h $(TM_P_H) $(INSN_ATTR_H) \
|
||||
+ insn-config.h $(EXPR_H) \
|
||||
$(CFGLAYOUT_H) $(CFGLOOP_H) $(OBSTACK_H) $(TARGET_H) $(TREE_H) \
|
||||
tree-pass.h $(DF_H) $(GGC_H)
|
||||
cfganal.o : cfganal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
|
||||
diff -durN gcc-4.4.0.orig/gcc/cfgrtl.c gcc-4.4.0/gcc/cfgrtl.c
|
||||
--- gcc-4.4.0.orig/gcc/cfgrtl.c 2008-12-12 22:16:09.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/cfgrtl.c 2009-05-27 21:38:50.000000000 +0200
|
||||
@@ -53,6 +53,7 @@
|
||||
#include "toplev.h"
|
||||
#include "tm_p.h"
|
||||
#include "obstack.h"
|
||||
+#include "insn-attr.h"
|
||||
#include "insn-config.h"
|
||||
#include "cfglayout.h"
|
||||
#include "expr.h"
|
||||
@@ -427,13 +428,27 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
+static unsigned int
|
||||
+rest_of_pass_free_cfg (void)
|
||||
+{
|
||||
+#ifdef DELAY_SLOTS
|
||||
+ /* The resource.c machinery uses DF but the CFG isn't guaranteed to be
|
||||
+ valid at that point so it would be too late to call df_analyze. */
|
||||
+ if (optimize > 0 && flag_delayed_branch)
|
||||
+ df_analyze ();
|
||||
+#endif
|
||||
+
|
||||
+ free_bb_for_insn ();
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
struct rtl_opt_pass pass_free_cfg =
|
||||
{
|
||||
{
|
||||
RTL_PASS,
|
||||
NULL, /* name */
|
||||
NULL, /* gate */
|
||||
- free_bb_for_insn, /* execute */
|
||||
+ rest_of_pass_free_cfg, /* execute */
|
||||
NULL, /* sub */
|
||||
NULL, /* next */
|
||||
0, /* static_pass_number */
|
||||
diff -durN gcc-4.4.0.orig/gcc/resource.c gcc-4.4.0/gcc/resource.c
|
||||
--- gcc-4.4.0.orig/gcc/resource.c 2009-02-20 16:20:38.000000000 +0100
|
||||
+++ gcc-4.4.0/gcc/resource.c 2009-05-27 21:38:50.000000000 +0200
|
||||
@@ -135,8 +135,6 @@
|
||||
static int
|
||||
find_basic_block (rtx insn, int search_limit)
|
||||
{
|
||||
- basic_block bb;
|
||||
-
|
||||
/* Scan backwards to the previous BARRIER. Then see if we can find a
|
||||
label that starts a basic block. Return the basic block number. */
|
||||
for (insn = prev_nonnote_insn (insn);
|
||||
@@ -157,11 +155,8 @@
|
||||
for (insn = next_nonnote_insn (insn);
|
||||
insn && LABEL_P (insn);
|
||||
insn = next_nonnote_insn (insn))
|
||||
- {
|
||||
- FOR_EACH_BB (bb)
|
||||
- if (insn == BB_HEAD (bb))
|
||||
- return bb->index;
|
||||
- }
|
||||
+ if (BLOCK_FOR_INSN (insn))
|
||||
+ return BLOCK_FOR_INSN (insn)->index;
|
||||
|
||||
return -1;
|
||||
}
|
||||
@@ -848,13 +843,12 @@
|
||||
(with no intervening active insns) to see if any of them start a basic
|
||||
block. If we hit the start of the function first, we use block 0.
|
||||
|
||||
- Once we have found a basic block and a corresponding first insns, we can
|
||||
- accurately compute the live status from basic_block_live_regs and
|
||||
- reg_renumber. (By starting at a label following a BARRIER, we are immune
|
||||
- to actions taken by reload and jump.) Then we scan all insns between
|
||||
- that point and our target. For each CLOBBER (or for call-clobbered regs
|
||||
- when we pass a CALL_INSN), mark the appropriate registers are dead. For
|
||||
- a SET, mark them as live.
|
||||
+ Once we have found a basic block and a corresponding first insn, we can
|
||||
+ accurately compute the live status (by starting at a label following a
|
||||
+ BARRIER, we are immune to actions taken by reload and jump.) Then we
|
||||
+ scan all insns between that point and our target. For each CLOBBER (or
|
||||
+ for call-clobbered regs when we pass a CALL_INSN), mark the appropriate
|
||||
+ registers are dead. For a SET, mark them as live.
|
||||
|
||||
We have to be careful when using REG_DEAD notes because they are not
|
||||
updated by such things as find_equiv_reg. So keep track of registers
|
||||
@@ -954,13 +948,10 @@
|
||||
TARGET. Otherwise, we must assume everything is live. */
|
||||
if (b != -1)
|
||||
{
|
||||
- regset regs_live = DF_LR_IN (BASIC_BLOCK (b));
|
||||
+ regset regs_live = df_get_live_in (BASIC_BLOCK (b));
|
||||
rtx start_insn, stop_insn;
|
||||
|
||||
- /* Compute hard regs live at start of block -- this is the real hard regs
|
||||
- marked live, plus live pseudo regs that have been renumbered to
|
||||
- hard regs. */
|
||||
-
|
||||
+ /* Compute hard regs live at start of block. */
|
||||
REG_SET_TO_HARD_REG_SET (current_live_regs, regs_live);
|
||||
|
||||
/* Get starting and ending insn, handling the case where each might
|
||||
@@ -1046,10 +1037,24 @@
|
||||
|
||||
else if (LABEL_P (real_insn))
|
||||
{
|
||||
+ basic_block bb;
|
||||
+
|
||||
/* A label clobbers the pending dead registers since neither
|
||||
reload nor jump will propagate a value across a label. */
|
||||
AND_COMPL_HARD_REG_SET (current_live_regs, pending_dead_regs);
|
||||
CLEAR_HARD_REG_SET (pending_dead_regs);
|
||||
+
|
||||
+ /* We must conservatively assume that all registers that used
|
||||
+ to be live here still are. The fallthrough edge may have
|
||||
+ left a live register uninitialized. */
|
||||
+ bb = BLOCK_FOR_INSN (real_insn);
|
||||
+ if (bb)
|
||||
+ {
|
||||
+ HARD_REG_SET extra_live;
|
||||
+
|
||||
+ REG_SET_TO_HARD_REG_SET (extra_live, df_get_live_in (bb));
|
||||
+ IOR_HARD_REG_SET (current_live_regs, extra_live);
|
||||
+ }
|
||||
}
|
||||
|
||||
/* The beginning of the epilogue corresponds to the end of the
|
||||
@@ -1121,6 +1126,7 @@
|
||||
init_resource_info (rtx epilogue_insn)
|
||||
{
|
||||
int i;
|
||||
+ basic_block bb;
|
||||
|
||||
/* Indicate what resources are required to be valid at the end of the current
|
||||
function. The condition code never is and memory always is. If the
|
||||
@@ -1189,6 +1195,11 @@
|
||||
/* Allocate and initialize the tables used by mark_target_live_regs. */
|
||||
target_hash_table = XCNEWVEC (struct target_info *, TARGET_HASH_PRIME);
|
||||
bb_ticks = XCNEWVEC (int, last_basic_block);
|
||||
+
|
||||
+ /* Set the BLOCK_FOR_INSN of each label that starts a basic block. */
|
||||
+ FOR_EACH_BB (bb)
|
||||
+ if (LABEL_P (BB_HEAD (bb)))
|
||||
+ BLOCK_FOR_INSN (BB_HEAD (bb)) = bb;
|
||||
}
|
||||
|
||||
/* Free up the resources allocated to mark_target_live_regs (). This
|
||||
@@ -1197,6 +1208,8 @@
|
||||
void
|
||||
free_resource_info (void)
|
||||
{
|
||||
+ basic_block bb;
|
||||
+
|
||||
if (target_hash_table != NULL)
|
||||
{
|
||||
int i;
|
||||
@@ -1222,6 +1235,10 @@
|
||||
free (bb_ticks);
|
||||
bb_ticks = NULL;
|
||||
}
|
||||
+
|
||||
+ FOR_EACH_BB (bb)
|
||||
+ if (LABEL_P (BB_HEAD (bb)))
|
||||
+ BLOCK_FOR_INSN (BB_HEAD (bb)) = NULL;
|
||||
}
|
||||
|
||||
/* Clear any hashed information that we have stored for INSN. */
|
35
patches/gcc/4.4.0/310-uclibc-conf.patch
Normal file
35
patches/gcc/4.4.0/310-uclibc-conf.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff -durN gcc-4.4.0.orig/contrib/regression/objs-gcc.sh gcc-4.4.0/contrib/regression/objs-gcc.sh
|
||||
--- gcc-4.4.0.orig/contrib/regression/objs-gcc.sh 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/contrib/regression/objs-gcc.sh 2009-05-27 21:38:53.000000000 +0200
|
||||
@@ -106,6 +106,10 @@
|
||||
then
|
||||
make all-gdb all-dejagnu all-ld || exit 1
|
||||
make install-gdb install-dejagnu install-ld || exit 1
|
||||
+elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
|
||||
+ then
|
||||
+ make all-gdb all-dejagnu all-ld || exit 1
|
||||
+ make install-gdb install-dejagnu install-ld || exit 1
|
||||
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
|
||||
make bootstrap || exit 1
|
||||
make install || exit 1
|
||||
diff -durN gcc-4.4.0.orig/libjava/classpath/ltconfig gcc-4.4.0/libjava/classpath/ltconfig
|
||||
--- gcc-4.4.0.orig/libjava/classpath/ltconfig 2007-06-04 01:18:43.000000000 +0200
|
||||
+++ gcc-4.4.0/libjava/classpath/ltconfig 2009-05-27 21:38:53.000000000 +0200
|
||||
@@ -603,7 +603,7 @@
|
||||
|
||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||
case $host_os in
|
||||
-linux-gnu*) ;;
|
||||
+linux-gnu*|linux-uclibc*) ;;
|
||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||
esac
|
||||
|
||||
@@ -1251,7 +1251,7 @@
|
||||
;;
|
||||
|
||||
# This must be Linux ELF.
|
||||
-linux-gnu*)
|
||||
+linux*)
|
||||
version_type=linux
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
12
patches/gcc/4.4.0/320-missing-execinfo_h.patch
Normal file
12
patches/gcc/4.4.0/320-missing-execinfo_h.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -durN gcc-4.4.0.orig/boehm-gc/include/gc.h gcc-4.4.0/boehm-gc/include/gc.h
|
||||
--- gcc-4.4.0.orig/boehm-gc/include/gc.h 2007-04-23 23:10:09.000000000 +0200
|
||||
+++ gcc-4.4.0/boehm-gc/include/gc.h 2009-05-27 21:38:55.000000000 +0200
|
||||
@@ -503,7 +503,7 @@
|
||||
#if defined(__linux__) || defined(__GLIBC__)
|
||||
# include <features.h>
|
||||
# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
|
||||
- && !defined(__ia64__)
|
||||
+ && !defined(__ia64__) && !defined(__UCLIBC__)
|
||||
# ifndef GC_HAVE_BUILTIN_BACKTRACE
|
||||
# define GC_HAVE_BUILTIN_BACKTRACE
|
||||
# endif
|
12
patches/gcc/4.4.0/330-c99-snprintf.patch
Normal file
12
patches/gcc/4.4.0/330-c99-snprintf.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -durN gcc-4.4.0.orig/libstdc++-v3/include/c_global/cstdio gcc-4.4.0/libstdc++-v3/include/c_global/cstdio
|
||||
--- gcc-4.4.0.orig/libstdc++-v3/include/c_global/cstdio 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/libstdc++-v3/include/c_global/cstdio 2009-05-27 21:38:58.000000000 +0200
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
_GLIBCXX_END_NAMESPACE
|
||||
|
||||
-#if _GLIBCXX_USE_C99
|
||||
+#if _GLIBCXX_USE_C99 || defined __UCLIBC__
|
||||
|
||||
#undef snprintf
|
||||
#undef vfscanf
|
48
patches/gcc/4.4.0/340-libmudflap-susv3-legacy.patch
Normal file
48
patches/gcc/4.4.0/340-libmudflap-susv3-legacy.patch
Normal file
@ -0,0 +1,48 @@
|
||||
diff -durN gcc-4.4.0.orig/libmudflap/mf-hooks2.c gcc-4.4.0/libmudflap/mf-hooks2.c
|
||||
--- gcc-4.4.0.orig/libmudflap/mf-hooks2.c 2009-04-10 01:23:07.000000000 +0200
|
||||
+++ gcc-4.4.0/libmudflap/mf-hooks2.c 2009-05-27 21:39:00.000000000 +0200
|
||||
@@ -421,7 +421,7 @@
|
||||
{
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region");
|
||||
- bzero (s, n);
|
||||
+ memset (s, 0, n);
|
||||
}
|
||||
|
||||
|
||||
@@ -431,7 +431,7 @@
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src");
|
||||
MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest");
|
||||
- bcopy (src, dest, n);
|
||||
+ memmove (dest, src, n);
|
||||
}
|
||||
|
||||
|
||||
@@ -441,7 +441,7 @@
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg");
|
||||
MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg");
|
||||
- return bcmp (s1, s2, n);
|
||||
+ return n == 0 ? 0 : memcmp (s1, s2, n);
|
||||
}
|
||||
|
||||
|
||||
@@ -450,7 +450,7 @@
|
||||
size_t n = strlen (s);
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region");
|
||||
- return index (s, c);
|
||||
+ return strchr (s, c);
|
||||
}
|
||||
|
||||
|
||||
@@ -459,7 +459,7 @@
|
||||
size_t n = strlen (s);
|
||||
TRACE ("%s\n", __PRETTY_FUNCTION__);
|
||||
MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region");
|
||||
- return rindex (s, c);
|
||||
+ return strrchr (s, c);
|
||||
}
|
||||
|
||||
/* XXX: stpcpy, memccpy */
|
@ -132,12 +132,20 @@ do_cc_core() {
|
||||
extra_config="${extra_config} ${CT_ARCH_WITH_TUNE}"
|
||||
extra_config="${extra_config} ${CT_ARCH_WITH_FPU}"
|
||||
extra_config="${extra_config} ${CT_ARCH_WITH_FLOAT}"
|
||||
[ "${CT_GMP_MPFR}" = "y" ] && extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
|
||||
if [ "${CT_CC_CXA_ATEXIT}" = "y" ]; then
|
||||
extra_config="${extra_config} --enable-__cxa_atexit"
|
||||
else
|
||||
extra_config="${extra_config} --disable-__cxa_atexit"
|
||||
fi
|
||||
if [ "${CT_GMP_MPFR}" = "y" ]; then
|
||||
extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR}"
|
||||
extra_config="${extra_config} --with-mpfr=${CT_PREFIX_DIR}"
|
||||
fi
|
||||
if [ "${CT_PPL_CLOOG_MPC}" = "y" ]; then
|
||||
extra_config="${extra_config} --with-ppl=${CT_PREFIX_DIR}"
|
||||
extra_config="${extra_config} --with-cloog=${CT_PREFIX_DIR}"
|
||||
extra_config="${extra_config} --with-mpc=${CT_PREFIX_DIR}"
|
||||
fi
|
||||
|
||||
CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
|
||||
|
||||
@ -266,7 +274,6 @@ do_cc() {
|
||||
extra_config="${extra_config} ${CT_ARCH_WITH_FPU}"
|
||||
extra_config="${extra_config} ${CT_ARCH_WITH_FLOAT}"
|
||||
[ "${CT_SHARED_LIBS}" = "y" ] || extra_config="${extra_config} --disable-shared"
|
||||
[ "${CT_GMP_MPFR}" = "y" ] && extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
|
||||
[ -n "${CT_CC_PKGVERSION}" ] && extra_config="${extra_config} --with-pkgversion=${CT_CC_PKGVERSION}"
|
||||
[ -n "${CT_CC_BUGURL}" ] && extra_config="${extra_config} --with-bugurl=${CT_CC_BUGURL}"
|
||||
[ "${CT_CC_SJLJ_EXCEPTIONS_USE}" = "y" ] && extra_config="${extra_config} --enable-sjlj-exceptions"
|
||||
@ -276,6 +283,15 @@ do_cc() {
|
||||
else
|
||||
extra_config="${extra_config} --disable-__cxa_atexit"
|
||||
fi
|
||||
if [ "${CT_GMP_MPFR}" = "y" ]; then
|
||||
extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR}"
|
||||
extra_config="${extra_config} --with-mpfr=${CT_PREFIX_DIR}"
|
||||
fi
|
||||
if [ "${CT_PPL_CLOOG_MPC}" = "y" ]; then
|
||||
extra_config="${extra_config} --with-ppl=${CT_PREFIX_DIR}"
|
||||
extra_config="${extra_config} --with-cloog=${CT_PREFIX_DIR}"
|
||||
extra_config="${extra_config} --with-mpc=${CT_PREFIX_DIR}"
|
||||
fi
|
||||
|
||||
CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user