mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
gcc: Add 3.4.6 gcc-native
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4342 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
require gcc-common.inc
|
||||||
|
|
||||||
|
SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
|
||||||
|
file://gcc34-reverse-compare.patch;patch=1 \
|
||||||
|
file://gcc34-arm-ldm.patch;patch=1 \
|
||||||
|
file://gcc34-arm-ldm-peephole.patch;patch=1 \
|
||||||
|
file://gcc34-arm-tune.patch;patch=1 \
|
||||||
|
file://gcc-3.4.1-uclibc-100-conf.patch;patch=1 \
|
||||||
|
file://gcc-3.4.1-uclibc-200-locale.patch;patch=1 \
|
||||||
|
file://gcc-3.4.0-arm-lib1asm.patch;patch=1 \
|
||||||
|
file://gcc-3.4.0-arm-nolibfloat.patch;patch=1 \
|
||||||
|
file://gcc-3.4.0-arm-bigendian.patch;patch=1 \
|
||||||
|
file://gcc-3.4.0-arm-bigendian-uclibc.patch;patch=1 \
|
||||||
|
file://GCC3.4.0VisibilityPatch.diff;patch=1 \
|
||||||
|
file://jarfix.patch;patch=1 \
|
||||||
|
file://always-fixincperm.patch;patch=1 \
|
||||||
|
file://GCOV_PREFIX_STRIP-cross-profile_3.4.patch;patch=1 \
|
||||||
|
file://zecke-xgcc-cpp.patch;patch=1 \
|
||||||
|
file://gcc4-mtune-compat.patch;patch=1"
|
||||||
|
|
||||||
|
SRC_URI += "file://gcc34-configure.in.patch;patch=1"
|
||||||
|
SRC_URI += "file://gcc34-thumb-support.patch;patch=1"
|
||||||
|
SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,389 @@
|
|||||||
|
2005-05-04 Grigory Zagorodnev <grigory.zagorodnev@intel.com>
|
||||||
|
H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
|
||||||
|
Cross-profiling support: relocate .gcda files when
|
||||||
|
running at system other than executable been built on.
|
||||||
|
|
||||||
|
|
||||||
|
* gcov-io.c (gcov_open): When in libgcov library
|
||||||
|
use given data file relocation prefix to build file name.
|
||||||
|
* gcov-io.h (gcov_open): Updated proto to accept
|
||||||
|
data file relocation prefix.
|
||||||
|
* libgcov.c (create_file_directory): New function.
|
||||||
|
(gcov_prefix): New static variable to hold data file
|
||||||
|
relocation prefix.
|
||||||
|
(gcov_version): Use relocation prefix.
|
||||||
|
(gcov_exit): Always try to create directory for output
|
||||||
|
file. Relocate filename at each use.
|
||||||
|
(__gcov_init): Initialize directory relocation prefix
|
||||||
|
if required. Strip off leading directories from
|
||||||
|
the initial filename.
|
||||||
|
* tsystem.h: include filenames.h
|
||||||
|
(DIR_SEPARATOR): Macro copied from system.h.
|
||||||
|
(DIR_SEPARATOR_2): Likewise.
|
||||||
|
* doc/gcov.texi (Cross-profiling): New node documenting
|
||||||
|
cross-profiling management.
|
||||||
|
* doc/invoke.texi (-fprofile-arcs): xref to cross-profiling.
|
||||||
|
|
||||||
|
Grigory Zagorodnev
|
||||||
|
Intel Corporation
|
||||||
|
|
||||||
|
--- gcc-3.4/gcc/gcov-io.c.prefix 2004-02-26 13:54:47.000000000 -0800
|
||||||
|
+++ gcc-3.4/gcc/gcov-io.c 2005-05-04 11:46:01.000000000 -0700
|
||||||
|
@@ -55,13 +55,14 @@ static inline gcov_unsigned_t from_file
|
||||||
|
|
||||||
|
GCOV_LINKAGE int
|
||||||
|
#if IN_LIBGCOV
|
||||||
|
-gcov_open (const char *name)
|
||||||
|
+gcov_open (const char *prefix, const char *name)
|
||||||
|
#else
|
||||||
|
gcov_open (const char *name, int mode)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
#if IN_LIBGCOV
|
||||||
|
const int mode = 0;
|
||||||
|
+ char *tmp;
|
||||||
|
#endif
|
||||||
|
#if GCOV_LOCKED
|
||||||
|
struct flock s_flock;
|
||||||
|
@@ -83,6 +84,14 @@ gcov_open (const char *name, int mode)
|
||||||
|
#if !IN_LIBGCOV
|
||||||
|
gcov_var.endian = 0;
|
||||||
|
#endif
|
||||||
|
+
|
||||||
|
+#if IN_LIBGCOV
|
||||||
|
+ /* Build complete filename with prefix */
|
||||||
|
+ tmp = alloca( strlen(prefix) + strlen(name) + 1);
|
||||||
|
+ *tmp = '\0';
|
||||||
|
+ name = strcat( strcat(tmp, prefix), name);
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if GCOV_LOCKED
|
||||||
|
if (mode > 0)
|
||||||
|
fd = open (name, O_RDWR);
|
||||||
|
--- gcc-3.4/gcc/gcov-io.h.prefix 2005-05-02 15:37:58.000000000 -0700
|
||||||
|
+++ gcc-3.4/gcc/gcov-io.h 2005-05-04 11:46:01.000000000 -0700
|
||||||
|
@@ -502,7 +502,7 @@ GCOV_LINKAGE struct gcov_var
|
||||||
|
functions for writing. Your file may become corrupted if you break
|
||||||
|
these invariants. */
|
||||||
|
#if IN_LIBGCOV
|
||||||
|
-GCOV_LINKAGE int gcov_open (const char */*name*/) ATTRIBUTE_HIDDEN;
|
||||||
|
+GCOV_LINKAGE int gcov_open (const char */*prefix*/, const char */*name*/) ATTRIBUTE_HIDDEN;
|
||||||
|
#else
|
||||||
|
GCOV_LINKAGE int gcov_open (const char */*name*/, int /*direction*/);
|
||||||
|
GCOV_LINKAGE int gcov_magic (gcov_unsigned_t, gcov_unsigned_t);
|
||||||
|
--- gcc-3.4/gcc/libgcov.c.prefix 2004-02-26 13:54:47.000000000 -0800
|
||||||
|
+++ gcc-3.4/gcc/libgcov.c 2005-05-04 12:01:58.000000000 -0700
|
||||||
|
@@ -92,6 +92,70 @@ static struct gcov_info *gcov_list;
|
||||||
|
object file included in multiple programs. */
|
||||||
|
static gcov_unsigned_t gcov_crc32;
|
||||||
|
|
||||||
|
+/* Directory prefix to relocate coverage data file names */
|
||||||
|
+static char *gcov_prefix = 0;
|
||||||
|
+
|
||||||
|
+/* Level of dirs to strip off the initial filename to relocate */
|
||||||
|
+static int gcov_prefix_strip = 0;
|
||||||
|
+
|
||||||
|
+static int
|
||||||
|
+create_file_directory (const char *prefix, const char *filename)
|
||||||
|
+{
|
||||||
|
+ char *dname;
|
||||||
|
+ char sep, *r, *s;
|
||||||
|
+ size_t plen, flen;
|
||||||
|
+
|
||||||
|
+ /* Detect directory separator */
|
||||||
|
+ s = strrchr (prefix, DIR_SEPARATOR);
|
||||||
|
+#ifdef DIR_SEPARATOR_2
|
||||||
|
+ if (! s)
|
||||||
|
+ s = strrchr (prefix, DIR_SEPARATOR_2);
|
||||||
|
+#endif
|
||||||
|
+ if (s)
|
||||||
|
+ sep = *s;
|
||||||
|
+ else
|
||||||
|
+ sep = DIR_SEPARATOR;
|
||||||
|
+
|
||||||
|
+ /* join prefix and filename, split path */
|
||||||
|
+ plen = strlen(prefix);
|
||||||
|
+ flen = strlen(filename);
|
||||||
|
+ r = alloca(plen + flen + 1);
|
||||||
|
+ strncpy(r, prefix, plen);
|
||||||
|
+ strncpy(r + plen, filename, flen);
|
||||||
|
+ r[plen + flen] = '\0';
|
||||||
|
+ s = strrchr(r, sep);
|
||||||
|
+ if (s)
|
||||||
|
+ *(s + 1) = '\0';
|
||||||
|
+
|
||||||
|
+ if (access (r, F_OK) == 0)
|
||||||
|
+ return 0;
|
||||||
|
+
|
||||||
|
+ /* Skip consecutive separators. */
|
||||||
|
+ for (dname = r; *dname && *dname == sep; ++dname);
|
||||||
|
+ while (1)
|
||||||
|
+ {
|
||||||
|
+ char *s = strchr (dname, sep);
|
||||||
|
+ if (s == 0)
|
||||||
|
+ break;
|
||||||
|
+ *s = '\0';
|
||||||
|
+ /* Try to make directory if it doesn't already exist. */
|
||||||
|
+ if (access (r, F_OK) == -1
|
||||||
|
+ && mkdir (r, 0755) == -1
|
||||||
|
+ /* The directory might have been made by another process. */
|
||||||
|
+ && errno != EEXIST)
|
||||||
|
+ {
|
||||||
|
+ *s = sep;
|
||||||
|
+ fprintf (stderr, "profiling:%s:Cannot create directory\n", r);
|
||||||
|
+ return -1;
|
||||||
|
+ };
|
||||||
|
+ *s = sep;
|
||||||
|
+ /* Skip consecutive separators. */
|
||||||
|
+ for (dname = s + 1; *dname && *dname == sep; ++dname)
|
||||||
|
+ ;
|
||||||
|
+ }
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
static int
|
||||||
|
gcov_version (struct gcov_info *ptr, gcov_unsigned_t version)
|
||||||
|
{
|
||||||
|
@@ -103,8 +167,8 @@ gcov_version (struct gcov_info *ptr, gco
|
||||||
|
GCOV_UNSIGNED2STRING (e, GCOV_VERSION);
|
||||||
|
|
||||||
|
fprintf (stderr,
|
||||||
|
- "profiling:%s:Version mismatch - expected %.4s got %.4s\n",
|
||||||
|
- ptr->filename, e, v);
|
||||||
|
+ "profiling:%s%s:Version mismatch - expected %.4s got %.4s\n",
|
||||||
|
+ gcov_prefix, ptr->filename, e, v);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
@@ -204,9 +268,14 @@ gcov_exit (void)
|
||||||
|
fi_stride &= ~(__alignof__ (struct gcov_fn_info) - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (!gcov_open (gi_ptr->filename))
|
||||||
|
+ if (create_file_directory (gcov_prefix, gi_ptr->filename))
|
||||||
|
{
|
||||||
|
- fprintf (stderr, "profiling:%s:Cannot open\n", gi_ptr->filename);
|
||||||
|
+ fprintf (stderr, "profiling:%s%s:Skip\n", gcov_prefix, gi_ptr->filename);
|
||||||
|
+ continue;
|
||||||
|
+ }
|
||||||
|
+ else if (!gcov_open (gcov_prefix, gi_ptr->filename))
|
||||||
|
+ {
|
||||||
|
+ fprintf (stderr, "profiling:%s%s:Cannot open\n", gcov_prefix, gi_ptr->filename);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -216,8 +285,8 @@ gcov_exit (void)
|
||||||
|
/* Merge data from file. */
|
||||||
|
if (tag != GCOV_DATA_MAGIC)
|
||||||
|
{
|
||||||
|
- fprintf (stderr, "profiling:%s:Not a gcov data file\n",
|
||||||
|
- gi_ptr->filename);
|
||||||
|
+ fprintf (stderr, "profiling:%s%s:Not a gcov data file\n",
|
||||||
|
+ gcov_prefix, gi_ptr->filename);
|
||||||
|
read_fatal:;
|
||||||
|
gcov_close ();
|
||||||
|
continue;
|
||||||
|
@@ -250,8 +319,8 @@ gcov_exit (void)
|
||||||
|
|| gcov_read_unsigned () != fi_ptr->checksum)
|
||||||
|
{
|
||||||
|
read_mismatch:;
|
||||||
|
- fprintf (stderr, "profiling:%s:Merge mismatch for %s\n",
|
||||||
|
- gi_ptr->filename,
|
||||||
|
+ fprintf (stderr, "profiling:%s%s:Merge mismatch for %s\n",
|
||||||
|
+ gcov_prefix, gi_ptr->filename,
|
||||||
|
f_ix + 1 ? "function" : "summaries");
|
||||||
|
goto read_fatal;
|
||||||
|
}
|
||||||
|
@@ -309,8 +378,8 @@ gcov_exit (void)
|
||||||
|
if (!gcov_is_eof ())
|
||||||
|
{
|
||||||
|
read_error:;
|
||||||
|
- fprintf (stderr, error < 0 ? "profiling:%s:Overflow merging\n"
|
||||||
|
- : "profiling:%s:Error merging\n", gi_ptr->filename);
|
||||||
|
+ fprintf (stderr, error < 0 ? "profiling:%s%s:Overflow merging\n"
|
||||||
|
+ : "profiling:%s%s:Error merging\n", gcov_prefix, gi_ptr->filename);
|
||||||
|
goto read_fatal;
|
||||||
|
}
|
||||||
|
rewrite:;
|
||||||
|
@@ -357,8 +426,8 @@ gcov_exit (void)
|
||||||
|
&& (!GCOV_LOCKED || cs_all->runs == cs_prg->runs)
|
||||||
|
&& memcmp (cs_all, cs_prg, sizeof (*cs_all)))
|
||||||
|
{
|
||||||
|
- fprintf (stderr, "profiling:%s:Invocation mismatch - some data files may have been removed%s",
|
||||||
|
- gi_ptr->filename, GCOV_LOCKED
|
||||||
|
+ fprintf (stderr, "profiling:%s%s:Invocation mismatch - some data files may have been removed%s",
|
||||||
|
+ gcov_prefix, gi_ptr->filename, GCOV_LOCKED
|
||||||
|
? "" : " or concurrent update without locking support");
|
||||||
|
all.checksum = ~0u;
|
||||||
|
}
|
||||||
|
@@ -418,9 +487,9 @@ gcov_exit (void)
|
||||||
|
gcov_write_summary (GCOV_TAG_PROGRAM_SUMMARY, &program);
|
||||||
|
if ((error = gcov_close ()))
|
||||||
|
fprintf (stderr, error < 0 ?
|
||||||
|
- "profiling:%s:Overflow writing\n" :
|
||||||
|
- "profiling:%s:Error writing\n",
|
||||||
|
- gi_ptr->filename);
|
||||||
|
+ "profiling:%s%s:Overflow writing\n" :
|
||||||
|
+ "profiling:%s%s:Error writing\n",
|
||||||
|
+ gcov_prefix, gi_ptr->filename);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -430,11 +499,69 @@ gcov_exit (void)
|
||||||
|
void
|
||||||
|
__gcov_init (struct gcov_info *info)
|
||||||
|
{
|
||||||
|
+ /* Save initial filename pointer to calculate CRC. */
|
||||||
|
+ const char *ptr = info->filename;
|
||||||
|
+
|
||||||
|
if (!info->version)
|
||||||
|
return;
|
||||||
|
+
|
||||||
|
+ /* Initialize directory prefix if requred */
|
||||||
|
+ if (gcov_prefix == 0)
|
||||||
|
+ {
|
||||||
|
+ if ((gcov_prefix = getenv("GCOV_PREFIX")))
|
||||||
|
+ {
|
||||||
|
+ char *tmp;
|
||||||
|
+
|
||||||
|
+ /* Normalize prefix: take off trailing separator. */
|
||||||
|
+ tmp = gcov_prefix + strlen(gcov_prefix) - 1;
|
||||||
|
+ if (IS_DIR_SEPARATOR(*tmp))
|
||||||
|
+ *tmp = '\0';
|
||||||
|
+
|
||||||
|
+ /* Check if the level of dirs to strip off specified */
|
||||||
|
+ if ((tmp = getenv("GCOV_PREFIX_STRIP")))
|
||||||
|
+ {
|
||||||
|
+ gcov_prefix_strip = atoi (tmp);
|
||||||
|
+ /* Do not consider negative values. */
|
||||||
|
+ if (gcov_prefix_strip < 0)
|
||||||
|
+ gcov_prefix_strip = 0;
|
||||||
|
+ };
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ gcov_prefix = (char *) "";
|
||||||
|
+ };
|
||||||
|
+
|
||||||
|
+ /* Strip off leading directories from the initial filename */
|
||||||
|
+ if (gcov_prefix_strip > 0)
|
||||||
|
+ {
|
||||||
|
+ char sep, *s;
|
||||||
|
+ int level;
|
||||||
|
+ const char *fname = info->filename;
|
||||||
|
+
|
||||||
|
+ /* Detect directory separator */
|
||||||
|
+ s = strrchr (fname, DIR_SEPARATOR);
|
||||||
|
+#ifdef DIR_SEPARATOR_2
|
||||||
|
+ if (! s)
|
||||||
|
+ s = strrchr (fname, DIR_SEPARATOR_2);
|
||||||
|
+#endif
|
||||||
|
+ if (s)
|
||||||
|
+ sep = *s;
|
||||||
|
+ else
|
||||||
|
+ sep = DIR_SEPARATOR;
|
||||||
|
+
|
||||||
|
+ /* Skip selected directory levels */
|
||||||
|
+ for ( level = gcov_prefix_strip; level > 0; level--)
|
||||||
|
+ if ((s = strchr(fname + 1, sep)))
|
||||||
|
+ fname = s;
|
||||||
|
+ else
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ /* From this point info block refers stripped file name and
|
||||||
|
+ further operations must add prefix to get complete name.*/
|
||||||
|
+ info->filename = fname;
|
||||||
|
+ };
|
||||||
|
+
|
||||||
|
if (gcov_version (info, info->version))
|
||||||
|
{
|
||||||
|
- const char *ptr = info->filename;
|
||||||
|
gcov_unsigned_t crc32 = gcov_crc32;
|
||||||
|
|
||||||
|
do
|
||||||
|
--- gcc-3.4/gcc/tsystem.h.prefix 2003-11-12 16:07:48.000000000 -0800
|
||||||
|
+++ gcc-3.4/gcc/tsystem.h 2005-05-04 12:12:08.000000000 -0700
|
||||||
|
@@ -106,4 +106,15 @@ extern int errno;
|
||||||
|
#define NULL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+/* Filename handling macros. */
|
||||||
|
+#include "filenames.h"
|
||||||
|
+
|
||||||
|
+/* These should be phased out in favor of IS_DIR_SEPARATOR, where possible. */
|
||||||
|
+#ifndef DIR_SEPARATOR
|
||||||
|
+# define DIR_SEPARATOR '/'
|
||||||
|
+# ifdef HAVE_DOS_BASED_FILE_SYSTEM
|
||||||
|
+# define DIR_SEPARATOR_2 '\\'
|
||||||
|
+# endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#endif /* ! GCC_TSYSTEM_H */
|
||||||
|
Index: gcc-3.4/gcc/doc/gcov.texi
|
||||||
|
===================================================================
|
||||||
|
RCS file: /cvsroot/gcc/gcc/gcc/doc/gcov.texi,v
|
||||||
|
retrieving revision 1.19.4.3
|
||||||
|
diff -u -p -r1.19.4.3 gcov.texi
|
||||||
|
--- gcc-3.4/gcc/doc/gcov.texi 14 Mar 2004 22:31:20 -0000 1.19.4.3
|
||||||
|
+++ gcc-3.4/gcc/doc/gcov.texi 4 May 2005 13:44:25 -0000
|
||||||
|
@@ -42,6 +42,7 @@ test code coverage in your programs.
|
||||||
|
* Invoking Gcov:: How to use gcov.
|
||||||
|
* Gcov and Optimization:: Using gcov with GCC optimization.
|
||||||
|
* Gcov Data Files:: The files used by gcov.
|
||||||
|
+* Cross-profiling:: Data files relocation.
|
||||||
|
@end menu
|
||||||
|
|
||||||
|
@node Gcov Intro
|
||||||
|
@@ -510,3 +511,36 @@ information.
|
||||||
|
The full details of the file format is specified in @file{gcov-io.h},
|
||||||
|
and functions provided in that header file should be used to access the
|
||||||
|
coverage files.
|
||||||
|
+
|
||||||
|
+@node Cross-profiling
|
||||||
|
+@section Data files relocation to support cross-profiling
|
||||||
|
+
|
||||||
|
+Running the program will cause profile output to be generated. For each
|
||||||
|
+source file compiled with @option{-fprofile-arcs}, an accompanying @file{.gcda}
|
||||||
|
+file will be placed in the object file directory. That implicitly requires
|
||||||
|
+running the program at the same system as it was build or having same
|
||||||
|
+absolute directory structure on the target system (program will try
|
||||||
|
+to create needed directory structure).
|
||||||
|
+
|
||||||
|
+To support cross-profiling, program compiled with @option{-fprofile-arcs}
|
||||||
|
+performs data file relocation basing on two environment variables:
|
||||||
|
+
|
||||||
|
+@itemize @bullet
|
||||||
|
+@item
|
||||||
|
+GCOV_PREFIX contains the prefix to add to the absolute paths
|
||||||
|
+in the object file.
|
||||||
|
+
|
||||||
|
+@item
|
||||||
|
+GCOV_PREFIX_STRIP indicates the how many initial directory names to strip off
|
||||||
|
+the hardwired absolute paths. Default value is 0.
|
||||||
|
+@end itemize
|
||||||
|
+
|
||||||
|
+For example, if object file @file{/user/build/foo.o} was build with
|
||||||
|
+@option{-fprofile-arcs}, the final executable will try to create data file
|
||||||
|
+@file{/user/build/foo.gcda} when running at the target system and will
|
||||||
|
+fail if corresponding directory does not exists and is not allowed to create.
|
||||||
|
+
|
||||||
|
+In this case, manipulating environment variables you can relocate data file
|
||||||
|
+to the suitable local directory. For our example, setting @samp{GCOV_PREFIX=/target/run}
|
||||||
|
+and @samp{GCOV_PREFIX_STRIP=1} values will force use of @file{/target/run/build/foo.gcda}
|
||||||
|
+file name.
|
||||||
|
Index: gcc-3.4/gcc/doc/invoke.texi
|
||||||
|
===================================================================
|
||||||
|
RCS file: /cvsroot/gcc/gcc/gcc/doc/invoke.texi,v
|
||||||
|
retrieving revision 1.390.2.40
|
||||||
|
diff -u -p -r1.390.2.40 invoke.texi
|
||||||
|
--- gcc-3.4/gcc/doc/invoke.texi 22 Apr 2005 06:49:59 -0000 1.390.2.40
|
||||||
|
+++ gcc-3.4/gcc/doc/invoke.texi 4 May 2005 13:44:25 -0000
|
||||||
|
@@ -3158,6 +3158,7 @@ explicitly specified and it is not the f
|
||||||
|
the basename of the source file. In both cases any suffix is removed
|
||||||
|
(e.g. @file{foo.gcda} for input file @file{dir/foo.c}, or
|
||||||
|
@file{dir/foo.gcda} for output file specified as @option{-o dir/foo.o}).
|
||||||
|
+@xref{Cross-profiling}.
|
||||||
|
|
||||||
|
@itemize
|
||||||
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
Index: gcc-3.4.3/gcc/configure
|
||||||
|
===================================================================
|
||||||
|
--- gcc-3.4.3.orig/gcc/configure 2004-11-04 23:14:05.000000000 -0500
|
||||||
|
+++ gcc-3.4.3/gcc/configure 2005-03-11 14:41:06.373910320 -0500
|
||||||
|
@@ -9916,11 +9916,6 @@
|
||||||
|
BUILD_PREFIX=build-
|
||||||
|
BUILD_PREFIX_1=build-
|
||||||
|
BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
|
||||||
|
-
|
||||||
|
- if test "x$TARGET_SYSTEM_ROOT" = x; then
|
||||||
|
- STMP_FIXINC=
|
||||||
|
- STMP_FIXPROTO=
|
||||||
|
- fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Expand extra_headers to include complete path.
|
||||||
|
Index: gcc-3.4.3/gcc/configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- gcc-3.4.3.orig/gcc/configure.ac 2004-09-23 20:43:53.000000000 -0400
|
||||||
|
+++ gcc-3.4.3/gcc/configure.ac 2005-03-11 14:40:55.256600408 -0500
|
||||||
|
@@ -1524,11 +1524,6 @@
|
||||||
|
BUILD_PREFIX=build-
|
||||||
|
BUILD_PREFIX_1=build-
|
||||||
|
BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
|
||||||
|
-
|
||||||
|
- if test "x$TARGET_SYSTEM_ROOT" = x; then
|
||||||
|
- STMP_FIXINC=
|
||||||
|
- STMP_FIXPROTO=
|
||||||
|
- fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Expand extra_headers to include complete path.
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
|
||||||
|
#
|
||||||
|
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||||
|
#
|
||||||
|
|
||||||
|
--- gcc-3.4.1/gcc/config.gcc~gcc-3.4.0-arm-bigendian-uclibc
|
||||||
|
+++ gcc-3.4.1/gcc/config.gcc
|
||||||
|
@@ -666,6 +666,11 @@
|
||||||
|
;;
|
||||||
|
arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||||
|
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||||
|
+ case $target in
|
||||||
|
+ arm*b-*)
|
||||||
|
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
|
tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||||
|
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||||
|
gnu_ld=yes
|
||||||
|
--- gcc-3.4.1/gcc/config/arm/linux-elf.h~gcc-3.4.0-arm-bigendian-uclibc
|
||||||
|
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||||
|
@@ -120,7 +120,7 @@
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
|
||||||
|
-X \
|
||||||
|
- %{mbig-endian:-EB}" \
|
||||||
|
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||||
|
SUBTARGET_EXTRA_LINK_SPEC
|
||||||
|
#endif
|
||||||
|
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
By Lennert Buytenhek <buytenh@wantstofly.org>
|
||||||
|
Adds support for arm*b-linux* big-endian ARM targets
|
||||||
|
|
||||||
|
See http://gcc.gnu.org/PR16350
|
||||||
|
|
||||||
|
diff -urN gcc-3.4.0.orig/gcc/config/arm/linux-elf.h gcc-3.4.0/gcc/config/arm/linux-elf.h
|
||||||
|
--- gcc-3.4.0.orig/gcc/config/arm/linux-elf.h 2004-01-31 07:18:11.000000000 +0100
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/linux-elf.h 2004-07-02 14:46:29.225443757 +0200
|
||||||
|
@@ -30,17 +30,34 @@
|
||||||
|
/* Do not assume anything about header files. */
|
||||||
|
#define NO_IMPLICIT_EXTERN_C
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
|
||||||
|
+ * (big endian) configurations.
|
||||||
|
+ */
|
||||||
|
+#if TARGET_BIG_ENDIAN_DEFAULT
|
||||||
|
+#define TARGET_ENDIAN_DEFAULT ARM_FLAG_BIG_END
|
||||||
|
+#define TARGET_ENDIAN_OPTION "mbig-endian"
|
||||||
|
+#define TARGET_LINKER_EMULATION "armelfb_linux"
|
||||||
|
+#else
|
||||||
|
+#define TARGET_ENDIAN_DEFAULT 0
|
||||||
|
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
|
||||||
|
+#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* Default is to use APCS-32 mode. */
|
||||||
|
#undef TARGET_DEFAULT
|
||||||
|
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
|
||||||
|
+#define TARGET_DEFAULT \
|
||||||
|
+ ( ARM_FLAG_APCS_32 | \
|
||||||
|
+ ARM_FLAG_MMU_TRAPS | \
|
||||||
|
+ TARGET_ENDIAN_DEFAULT )
|
||||||
|
|
||||||
|
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||||
|
|
||||||
|
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
|
||||||
|
+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
|
||||||
|
|
||||||
|
#undef MULTILIB_DEFAULTS
|
||||||
|
#define MULTILIB_DEFAULTS \
|
||||||
|
- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||||
|
+ { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||||
|
|
||||||
|
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||||
|
|
||||||
|
@@ -89,7 +106,7 @@
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
|
||||||
|
-X \
|
||||||
|
- %{mbig-endian:-EB}" \
|
||||||
|
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||||
|
SUBTARGET_EXTRA_LINK_SPEC
|
||||||
|
|
||||||
|
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
|
||||||
|
diff -urN gcc-3.4.0.orig/gcc/config.gcc gcc-3.4.0/gcc/config.gcc
|
||||||
|
--- gcc-3.4.0.orig/gcc/config.gcc 2004-04-17 04:28:24.000000000 +0200
|
||||||
|
+++ gcc-3.4.0/gcc/config.gcc 2004-07-02 14:44:40.045822542 +0200
|
||||||
|
@@ -666,6 +666,11 @@
|
||||||
|
;;
|
||||||
|
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||||
|
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||||
|
+ case $target in
|
||||||
|
+ arm*b-*)
|
||||||
|
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
|
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||||
|
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||||
|
gnu_ld=yes
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Fixes errors like the following when building glibc (or any other executable
|
||||||
|
# or shared library) when using gcc 3.4.0 for ARM with softfloat:
|
||||||
|
#
|
||||||
|
# .../libc_pic.os(.text+0x15834): In function `__modf': undefined reference to `__subdf3'
|
||||||
|
# .../libc_pic.os(.text+0x158b8): In function `__modf': undefined reference to `__subdf3'
|
||||||
|
# .../libc_pic.os(.text+0x1590c): In function `scalbn': undefined reference to `__muldf3'
|
||||||
|
# .../libc_pic.os(.text+0x15e94): In function `__ldexpf': undefined reference to `__eqsf2'
|
||||||
|
# .../libc_pic.os(.text+0xcee4c): In function `monstartup': undefined reference to `__fixsfsi'
|
||||||
|
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/t-linux gcc-3.4.0/gcc/config/arm/t-linux
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/t-linux 2003-09-20 23:09:07.000000000 +0200
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/t-linux 2004-05-01 20:31:59.102846400 +0200
|
||||||
|
@@ -4,7 +4,10 @@
|
||||||
|
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||||
|
|
||||||
|
LIB1ASMSRC = arm/lib1funcs.asm
|
||||||
|
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||||
|
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||||
|
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||||
|
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||||
|
+ _fixsfsi _fixunssfsi
|
||||||
|
|
||||||
|
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||||
|
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||||
|
#
|
||||||
|
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||||
|
# anymore. (The required functions are now in libgcc.)
|
||||||
|
#
|
||||||
|
# Fixes errors like
|
||||||
|
# arm-softfloat-linux-gnu/3.4.0/../../../../arm-softfloat-linux-gnu/bin/ld: cannot find -lfloat
|
||||||
|
# collect2: ld returned 1 exit status
|
||||||
|
# make[2]: *** [arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/iconvdata/ISO8859-1.so] Error 1
|
||||||
|
# when building glibc-2.3.3 with gcc-3.4.0 for arm-softfloat
|
||||||
|
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/linux-elf.h gcc-3.4.0/gcc/config/arm/linux-elf.h
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/linux-elf.h 2004-01-31 07:18:11.000000000 +0100
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/linux-elf.h 2004-05-01 19:19:06.935979200 +0200
|
||||||
|
@@ -55,7 +73,7 @@
|
||||||
|
%{shared:-lc} \
|
||||||
|
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
|
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||||
|
+#define LIBGCC_SPEC "-lgcc"
|
||||||
|
|
||||||
|
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||||
|
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||||
|
|
||||||
@@ -0,0 +1,256 @@
|
|||||||
|
#
|
||||||
|
# Submitted:
|
||||||
|
#
|
||||||
|
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||||
|
#
|
||||||
|
# Description:
|
||||||
|
#
|
||||||
|
# Nicholas Pitre released this patch for gcc soft-float support here:
|
||||||
|
# http://lists.arm.linux.org.uk/pipermail/linux-arm/2003-October/006436.html
|
||||||
|
#
|
||||||
|
# This version has been adapted to work with gcc 3.4.0.
|
||||||
|
#
|
||||||
|
# The original patch doesn't distinguish between softfpa and softvfp modes
|
||||||
|
# in the way Nicholas Pitre probably meant. His description is:
|
||||||
|
#
|
||||||
|
# "Default is to use APCS-32 mode with soft-vfp. The old Linux default for
|
||||||
|
# floats can be achieved with -mhard-float or with the configure
|
||||||
|
# --with-float=hard option. If -msoft-float or --with-float=soft is used then
|
||||||
|
# software float support will be used just like the default but with the legacy
|
||||||
|
# big endian word ordering for double float representation instead."
|
||||||
|
#
|
||||||
|
# Which means the following:
|
||||||
|
#
|
||||||
|
# * If you compile without -mhard-float or -msoft-float, you should get
|
||||||
|
# software floating point, using the VFP format. The produced object file
|
||||||
|
# should have these flags in its header:
|
||||||
|
#
|
||||||
|
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||||
|
#
|
||||||
|
# * If you compile with -mhard-float, you should get hardware floating point,
|
||||||
|
# which always uses the FPA format. Object file header flags should be:
|
||||||
|
#
|
||||||
|
# private flags = 0: [APCS-32] [FPA float format]
|
||||||
|
#
|
||||||
|
# * If you compile with -msoft-float, you should get software floating point,
|
||||||
|
# using the FPA format. This is done for compatibility reasons with many
|
||||||
|
# existing distributions. Object file header flags should be:
|
||||||
|
#
|
||||||
|
# private flags = 200: [APCS-32] [FPA float format] [software FP]
|
||||||
|
#
|
||||||
|
# The original patch from Nicholas Pitre contained the following constructs:
|
||||||
|
#
|
||||||
|
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||||
|
# %{mhard-float:-mfpu=fpa} \
|
||||||
|
# %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||||
|
#
|
||||||
|
# However, gcc doesn't accept this ";:" notation, used in the 3rd line. This
|
||||||
|
# is probably the reason Robert Schwebel modified it to:
|
||||||
|
#
|
||||||
|
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||||
|
# %{mhard-float:-mfpu=fpa} \
|
||||||
|
# %{!mhard-float: %{msoft-float:-mfpu=softfpa -mfpu=softvfp}}"
|
||||||
|
#
|
||||||
|
# But this causes the following behaviour:
|
||||||
|
#
|
||||||
|
# * If you compile without -mhard-float or -msoft-float, the compiler generates
|
||||||
|
# software floating point instructions, but *nothing* is passed to the
|
||||||
|
# assembler, which results in an object file which has flags:
|
||||||
|
#
|
||||||
|
# private flags = 0: [APCS-32] [FPA float format]
|
||||||
|
#
|
||||||
|
# This is not correct!
|
||||||
|
#
|
||||||
|
# * If you compile with -mhard-float, the compiler generates hardware floating
|
||||||
|
# point instructions, and passes "-mfpu=fpa" to the assembler, which results
|
||||||
|
# in an object file which has the same flags as in the previous item, but now
|
||||||
|
# those *are* correct.
|
||||||
|
#
|
||||||
|
# * If you compile with -msoft-float, the compiler generates software floating
|
||||||
|
# point instructions, and passes "-mfpu=softfpa -mfpu=softvfp" (in that
|
||||||
|
# order) to the assembler, which results in an object file with flags:
|
||||||
|
#
|
||||||
|
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||||
|
#
|
||||||
|
# This is not correct, because the last "-mfpu=" option on the assembler
|
||||||
|
# command line determines the actual FPU convention used (which should be FPA
|
||||||
|
# in this case).
|
||||||
|
#
|
||||||
|
# Therefore, I modified this patch to get the desired behaviour. Every
|
||||||
|
# instance of the notation:
|
||||||
|
#
|
||||||
|
# %{msoft-float:-mfpu=softfpa -mfpu=softvfp}
|
||||||
|
#
|
||||||
|
# was changed to:
|
||||||
|
#
|
||||||
|
# %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}
|
||||||
|
#
|
||||||
|
# I also did the following:
|
||||||
|
#
|
||||||
|
# * Modified all TARGET_DEFAULT macros I could find to include ARM_FLAG_VFP, to
|
||||||
|
# be consistent with Nicholas' original patch.
|
||||||
|
# * Removed any "msoft-float" or "mhard-float" from all MULTILIB_DEFAULTS
|
||||||
|
# macros I could find. I think that if you compile without any options, you
|
||||||
|
# would like to get the defaults. :)
|
||||||
|
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||||
|
# anymore. (The required functions are now in libgcc.)
|
||||||
|
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/coff.h gcc-3.4.0/gcc/config/arm/coff.h
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/coff.h 2004-02-24 15:25:22.000000000 +0100
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/coff.h 2004-05-01 19:07:06.059409600 +0200
|
||||||
|
@@ -31,11 +31,16 @@
|
||||||
|
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
|
||||||
|
|
||||||
|
#undef TARGET_DEFAULT
|
||||||
|
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||||
|
+#define TARGET_DEFAULT \
|
||||||
|
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||||
|
+ | ARM_FLAG_VFP \
|
||||||
|
+ | ARM_FLAG_APCS_32 \
|
||||||
|
+ | ARM_FLAG_APCS_FRAME \
|
||||||
|
+ | ARM_FLAG_MMU_TRAPS )
|
||||||
|
|
||||||
|
#ifndef MULTILIB_DEFAULTS
|
||||||
|
#define MULTILIB_DEFAULTS \
|
||||||
|
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
|
||||||
|
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This is COFF, but prefer stabs. */
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/elf.h gcc-3.4.0/gcc/config/arm/elf.h
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/elf.h 2004-02-24 15:25:22.000000000 +0100
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/elf.h 2004-05-01 19:12:16.976486400 +0200
|
||||||
|
@@ -46,7 +46,9 @@
|
||||||
|
|
||||||
|
#ifndef SUBTARGET_ASM_FLOAT_SPEC
|
||||||
|
#define SUBTARGET_ASM_FLOAT_SPEC "\
|
||||||
|
-%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
|
||||||
|
+%{mapcs-float:-mfloat} \
|
||||||
|
+%{mhard-float:-mfpu=fpa} \
|
||||||
|
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ASM_SPEC
|
||||||
|
@@ -106,12 +108,17 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef TARGET_DEFAULT
|
||||||
|
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||||
|
+#define TARGET_DEFAULT \
|
||||||
|
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||||
|
+ | ARM_FLAG_VFP \
|
||||||
|
+ | ARM_FLAG_APCS_32 \
|
||||||
|
+ | ARM_FLAG_APCS_FRAME \
|
||||||
|
+ | ARM_FLAG_MMU_TRAPS )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MULTILIB_DEFAULTS
|
||||||
|
#define MULTILIB_DEFAULTS \
|
||||||
|
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||||
|
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define TARGET_ASM_FILE_START_APP_OFF true
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/linux-elf.h gcc-3.4.0/gcc/config/arm/linux-elf.h
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/linux-elf.h 2004-01-31 07:18:11.000000000 +0100
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/linux-elf.h 2004-05-01 19:19:06.935979200 +0200
|
||||||
|
@@ -30,9 +30,27 @@
|
||||||
|
/* Do not assume anything about header files. */
|
||||||
|
#define NO_IMPLICIT_EXTERN_C
|
||||||
|
|
||||||
|
-/* Default is to use APCS-32 mode. */
|
||||||
|
+/*
|
||||||
|
+ * Default is to use APCS-32 mode with soft-vfp.
|
||||||
|
+ * The old Linux default for floats can be achieved with -mhard-float
|
||||||
|
+ * or with the configure --with-float=hard option.
|
||||||
|
+ * If -msoft-float or --with-float=soft is used then software float
|
||||||
|
+ * support will be used just like the default but with the legacy
|
||||||
|
+ * big endian word ordering for double float representation instead.
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
#undef TARGET_DEFAULT
|
||||||
|
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
|
||||||
|
+#define TARGET_DEFAULT \
|
||||||
|
+ ( ARM_FLAG_APCS_32 \
|
||||||
|
+ | ARM_FLAG_SOFT_FLOAT \
|
||||||
|
+ | ARM_FLAG_VFP \
|
||||||
|
+ | ARM_FLAG_MMU_TRAPS )
|
||||||
|
+
|
||||||
|
+#undef SUBTARGET_EXTRA_ASM_SPEC
|
||||||
|
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||||
|
+%{!mcpu=*:-mcpu=xscale} \
|
||||||
|
+%{mhard-float:-mfpu=fpa} \
|
||||||
|
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||||
|
|
||||||
|
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||||
|
|
||||||
|
@@ -40,7 +58,7 @@
|
||||||
|
|
||||||
|
#undef MULTILIB_DEFAULTS
|
||||||
|
#define MULTILIB_DEFAULTS \
|
||||||
|
- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||||
|
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||||
|
|
||||||
|
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||||
|
|
||||||
|
@@ -55,7 +73,7 @@
|
||||||
|
%{shared:-lc} \
|
||||||
|
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
|
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||||
|
+#define LIBGCC_SPEC "-lgcc"
|
||||||
|
|
||||||
|
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||||
|
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/t-linux gcc-3.4.0/gcc/config/arm/t-linux
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/t-linux 2003-09-20 23:09:07.000000000 +0200
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/t-linux 2004-05-01 20:31:59.102846400 +0200
|
||||||
|
@@ -4,7 +4,10 @@
|
||||||
|
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||||
|
|
||||||
|
LIB1ASMSRC = arm/lib1funcs.asm
|
||||||
|
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||||
|
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||||
|
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||||
|
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||||
|
+ _fixsfsi _fixunssfsi
|
||||||
|
|
||||||
|
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||||
|
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/unknown-elf.h gcc-3.4.0/gcc/config/arm/unknown-elf.h
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/unknown-elf.h 2004-02-24 15:25:22.000000000 +0100
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/unknown-elf.h 2004-05-01 19:09:09.016212800 +0200
|
||||||
|
@@ -30,7 +30,12 @@
|
||||||
|
|
||||||
|
/* Default to using APCS-32 and software floating point. */
|
||||||
|
#ifndef TARGET_DEFAULT
|
||||||
|
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||||
|
+#define TARGET_DEFAULT \
|
||||||
|
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||||
|
+ | ARM_FLAG_VFP \
|
||||||
|
+ | ARM_FLAG_APCS_32 \
|
||||||
|
+ | ARM_FLAG_APCS_FRAME \
|
||||||
|
+ | ARM_FLAG_MMU_TRAPS )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Now we define the strings used to build the spec file. */
|
||||||
|
diff -urNd gcc-3.4.0-orig/gcc/config/arm/xscale-elf.h gcc-3.4.0/gcc/config/arm/xscale-elf.h
|
||||||
|
--- gcc-3.4.0-orig/gcc/config/arm/xscale-elf.h 2003-07-02 01:26:43.000000000 +0200
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/xscale-elf.h 2004-05-01 20:15:36.620105600 +0200
|
||||||
|
@@ -49,11 +49,12 @@
|
||||||
|
endian, regardless of the endian-ness of the memory
|
||||||
|
system. */
|
||||||
|
|
||||||
|
-#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||||
|
- %{mhard-float:-mfpu=fpa} \
|
||||||
|
- %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||||
|
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||||
|
+%{!mcpu=*:-mcpu=xscale} \
|
||||||
|
+%{mhard-float:-mfpu=fpa} \
|
||||||
|
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||||
|
|
||||||
|
#ifndef MULTILIB_DEFAULTS
|
||||||
|
#define MULTILIB_DEFAULTS \
|
||||||
|
- { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
|
||||||
|
+ { "mlittle-endian", "mno-thumb-interwork", "marm" }
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,442 @@
|
|||||||
|
diff -urN gcc-3.4.1-dist/boehm-gc/configure gcc-3.4.1/boehm-gc/configure
|
||||||
|
--- gcc-3.4.1-dist/boehm-gc/configure 2004-07-01 14:14:03.000000000 -0500
|
||||||
|
+++ gcc-3.4.1/boehm-gc/configure 2004-08-12 16:22:57.000000000 -0500
|
||||||
|
@@ -1947,6 +1947,11 @@
|
||||||
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd*)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||||
|
diff -urN gcc-3.4.1-dist/boehm-gc/ltconfig gcc-3.4.1/boehm-gc/ltconfig
|
||||||
|
--- gcc-3.4.1-dist/boehm-gc/ltconfig 2002-11-20 09:59:06.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/boehm-gc/ltconfig 2004-08-12 15:54:42.000000000 -0500
|
||||||
|
@@ -1981,6 +1981,23 @@
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ version_type=linux
|
||||||
|
+ need_lib_prefix=no
|
||||||
|
+ need_version=no
|
||||||
|
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||||
|
+ soname_spec='${libname}${release}.so$major'
|
||||||
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||||
|
+ shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
+ shlibpath_overrides_runpath=no
|
||||||
|
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
||||||
|
+ file_magic_cmd=/usr/bin/file
|
||||||
|
+ file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+
|
||||||
|
+ # Assume using the uClibc dynamic linker.
|
||||||
|
+ dynamic_linker="uClibc ld.so"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd*)
|
||||||
|
version_type=sunos
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-12 15:54:42.000000000 -0500
|
||||||
|
@@ -81,6 +81,18 @@
|
||||||
|
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||||
|
|
||||||
|
#undef LINK_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define LINK_SPEC "%{h*} %{version:-v} \
|
||||||
|
+ %{b} %{Wl,*:%*} \
|
||||||
|
+ %{static:-Bstatic} \
|
||||||
|
+ %{shared:-shared} \
|
||||||
|
+ %{symbolic:-Bsymbolic} \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||||
|
+ -X \
|
||||||
|
+ %{mbig-endian:-EB}" \
|
||||||
|
+ SUBTARGET_EXTRA_LINK_SPEC
|
||||||
|
+#else
|
||||||
|
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||||
|
%{b} %{Wl,*:%*} \
|
||||||
|
%{static:-Bstatic} \
|
||||||
|
@@ -91,6 +103,7 @@
|
||||||
|
-X \
|
||||||
|
%{mbig-endian:-EB}" \
|
||||||
|
SUBTARGET_EXTRA_LINK_SPEC
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
|
||||||
|
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/cris/linux.h gcc-3.4.1/gcc/config/cris/linux.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/cris/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -79,6 +79,25 @@
|
||||||
|
#undef CRIS_DEFAULT_CPU_VERSION
|
||||||
|
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||||
|
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+
|
||||||
|
+#undef CRIS_SUBTARGET_VERSION
|
||||||
|
+#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
|
||||||
|
+
|
||||||
|
+#undef CRIS_LINK_SUBTARGET_SPEC
|
||||||
|
+#define CRIS_LINK_SUBTARGET_SPEC \
|
||||||
|
+ "-mcrislinux\
|
||||||
|
+ -rpath-link include/asm/../..%s\
|
||||||
|
+ %{shared} %{static}\
|
||||||
|
+ %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
|
||||||
|
+ %{!shared: \
|
||||||
|
+ %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
|
||||||
|
+ %{!r:%{O2|O3: --gc-sections}}"
|
||||||
|
+
|
||||||
|
+#else /* USE_UCLIBC */
|
||||||
|
+
|
||||||
|
#undef CRIS_SUBTARGET_VERSION
|
||||||
|
#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
|
||||||
|
|
||||||
|
@@ -93,6 +112,8 @@
|
||||||
|
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
|
||||||
|
%{!r:%{O2|O3: --gc-sections}}"
|
||||||
|
|
||||||
|
+#endif /* USE_UCLIBC */
|
||||||
|
+
|
||||||
|
|
||||||
|
/* Node: Run-time Target */
|
||||||
|
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc gcc-3.4.1/gcc/config/cris/t-linux-uclibc
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/cris/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+T_CFLAGS = -DUSE_UCLIBC
|
||||||
|
+TARGET_LIBGCC2_CFLAGS += -fPIC
|
||||||
|
+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/i386/linux.h gcc-3.4.1/gcc/config/i386/linux.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/i386/linux.h 2003-11-28 21:08:10.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/i386/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -118,6 +118,15 @@
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
|
||||||
|
%{static:-static}}}"
|
||||||
|
#else
|
||||||
|
+#if defined USE_UCLIBC
|
||||||
|
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||||
|
+ %{!shared: \
|
||||||
|
+ %{!ibcs: \
|
||||||
|
+ %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||||
|
+ %{static:-static}}}"
|
||||||
|
+#else
|
||||||
|
#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||||
|
%{!shared: \
|
||||||
|
%{!ibcs: \
|
||||||
|
@@ -126,6 +135,7 @@
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
%{static:-static}}}"
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* A C statement (sans semicolon) to output to the stdio stream
|
||||||
|
FILE the assembler definition of uninitialized global DECL named
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/mips/linux.h gcc-3.4.1/gcc/config/mips/linux.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/mips/linux.h 2004-06-15 20:42:24.000000000 -0500
|
||||||
|
+++ gcc-3.4.1/gcc/config/mips/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -109,6 +109,17 @@
|
||||||
|
|
||||||
|
/* Borrowed from sparc/linux.h */
|
||||||
|
#undef LINK_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define LINK_SPEC \
|
||||||
|
+ "%(endian_spec) \
|
||||||
|
+ %{shared:-shared} \
|
||||||
|
+ %{!shared: \
|
||||||
|
+ %{!ibcs: \
|
||||||
|
+ %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||||
|
+ %{static:-static}}}"
|
||||||
|
+#else
|
||||||
|
#define LINK_SPEC \
|
||||||
|
"%(endian_spec) \
|
||||||
|
%{shared:-shared} \
|
||||||
|
@@ -118,6 +129,7 @@
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||||
|
%{static:-static}}}"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#undef SUBTARGET_ASM_SPEC
|
||||||
|
#define SUBTARGET_ASM_SPEC "\
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/linux.h gcc-3.4.1/gcc/config/rs6000/linux.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/rs6000/linux.h 2004-02-25 09:11:19.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/rs6000/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -61,7 +61,11 @@
|
||||||
|
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||||
|
|
||||||
|
#undef LINK_OS_DEFAULT_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||||
|
+#else
|
||||||
|
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||||
|
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h gcc-3.4.1/gcc/config/rs6000/sysv4.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h 2004-06-10 01:39:50.000000000 -0500
|
||||||
|
+++ gcc-3.4.1/gcc/config/rs6000/sysv4.h 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -947,6 +947,7 @@
|
||||||
|
mcall-linux : %(link_os_linux) ; \
|
||||||
|
mcall-gnu : %(link_os_gnu) ; \
|
||||||
|
mcall-netbsd : %(link_os_netbsd) ; \
|
||||||
|
+ mcall-linux-uclibc : %(link_os_linux_uclibc); \
|
||||||
|
mcall-openbsd: %(link_os_openbsd) ; \
|
||||||
|
: %(link_os_default) }"
|
||||||
|
|
||||||
|
@@ -1124,6 +1125,10 @@
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||||
|
|
||||||
|
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||||
|
+
|
||||||
|
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||||
|
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||||
|
#endif
|
||||||
|
@@ -1290,6 +1295,7 @@
|
||||||
|
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||||
|
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||||
|
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||||
|
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||||
|
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||||
|
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||||
|
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/sh/linux.h gcc-3.4.1/gcc/config/sh/linux.h
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/sh/linux.h 2004-01-11 20:29:13.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/sh/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -73,12 +73,21 @@
|
||||||
|
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||||
|
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||||
|
#undef SUBTARGET_LINK_SPEC
|
||||||
|
+#ifdef USE_UCLIBC
|
||||||
|
+#define SUBTARGET_LINK_SPEC \
|
||||||
|
+ "%{shared:-shared} \
|
||||||
|
+ %{!static: \
|
||||||
|
+ %{rdynamic:-export-dynamic} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||||
|
+ %{static:-static}"
|
||||||
|
+#else
|
||||||
|
#define SUBTARGET_LINK_SPEC \
|
||||||
|
"%{shared:-shared} \
|
||||||
|
%{!static: \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
%{static:-static}"
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#undef LIB_SPEC
|
||||||
|
#define LIB_SPEC \
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc gcc-3.4.1/gcc/config/sh/t-linux-uclibc
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/sh/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -0,0 +1,13 @@
|
||||||
|
+T_CFLAGS = -DUSE_UCLIBC
|
||||||
|
+
|
||||||
|
+TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
|
||||||
|
+LIB1ASMFUNCS_CACHE = _ic_invalidate
|
||||||
|
+
|
||||||
|
+LIB2FUNCS_EXTRA=
|
||||||
|
+
|
||||||
|
+MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
|
||||||
|
+MULTILIB_DIRNAMES=
|
||||||
|
+MULTILIB_MATCHES =
|
||||||
|
+MULTILIB_EXCEPTIONS=
|
||||||
|
+
|
||||||
|
+EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc gcc-3.4.1/gcc/config/sh/t-sh64-uclibc
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/sh/t-sh64-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -0,0 +1,13 @@
|
||||||
|
+EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o
|
||||||
|
+
|
||||||
|
+LIB1ASMFUNCS = \
|
||||||
|
+ _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
|
||||||
|
+ _shcompact_call_trampoline _shcompact_return_trampoline \
|
||||||
|
+ _shcompact_incoming_args _ic_invalidate _nested_trampoline \
|
||||||
|
+ _push_pop_shmedia_regs \
|
||||||
|
+ _udivdi3 _divdi3 _umoddi3 _moddi3
|
||||||
|
+
|
||||||
|
+MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
|
||||||
|
+MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
|
||||||
|
+MULTILIB_MATCHES=
|
||||||
|
+MULTILIB_EXCEPTIONS=
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config/t-linux-uclibc gcc-3.4.1/gcc/config/t-linux-uclibc
|
||||||
|
--- gcc-3.4.1-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/gcc/config/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -0,0 +1,15 @@
|
||||||
|
+T_CFLAGS = -DUSE_UCLIBC
|
||||||
|
+
|
||||||
|
+# Compile crtbeginS.o and crtendS.o with pic.
|
||||||
|
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
||||||
|
+# Compile libgcc2.a with pic.
|
||||||
|
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
||||||
|
+
|
||||||
|
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
||||||
|
+# the symbol versions that glibc used.
|
||||||
|
+#SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
||||||
|
+
|
||||||
|
+# Use unwind-dw2-fde
|
||||||
|
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
||||||
|
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
||||||
|
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
||||||
|
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||||
|
--- gcc-3.4.1-dist/gcc/config.gcc 2004-04-21 10:12:35.000000000 -0500
|
||||||
|
+++ gcc-3.4.1/gcc/config.gcc 2004-08-12 15:59:46.000000000 -0500
|
||||||
|
@@ -664,6 +664,12 @@
|
||||||
|
extra_parts=""
|
||||||
|
use_collect2=yes
|
||||||
|
;;
|
||||||
|
+arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||||
|
+ tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||||
|
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||||
|
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||||
|
+ gnu_ld=yes
|
||||||
|
+ ;;
|
||||||
|
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||||
|
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||||
|
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||||
|
@@ -725,6 +731,10 @@
|
||||||
|
tmake_file="cris/t-cris cris/t-elfmulti"
|
||||||
|
gas=yes
|
||||||
|
;;
|
||||||
|
+cris-*-linux-uclibc*)
|
||||||
|
+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||||
|
+ tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
|
||||||
|
+ ;;
|
||||||
|
cris-*-linux*)
|
||||||
|
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||||
|
tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
|
||||||
|
@@ -988,6 +998,11 @@
|
||||||
|
thread_file='single'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
+i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
|
||||||
|
+ # with ELF format using uClibc
|
||||||
|
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
|
||||||
|
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
|
||||||
|
+ ;;
|
||||||
|
i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
|
||||||
|
# with ELF format using glibc 2
|
||||||
|
# aka GNU/Linux C library 6
|
||||||
|
@@ -1547,6 +1562,16 @@
|
||||||
|
gnu_ld=yes
|
||||||
|
gas=yes
|
||||||
|
;;
|
||||||
|
+mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
|
||||||
|
+ tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||||
|
+ case ${target} in
|
||||||
|
+ mipsisa32*-*)
|
||||||
|
+ target_cpu_default="MASK_SOFT_FLOAT"
|
||||||
|
+ tm_defines="MIPS_ISA_DEFAULT=32"
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
|
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc"
|
||||||
|
+ ;;
|
||||||
|
mips*-*-linux*) # Linux MIPS, either endian.
|
||||||
|
tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||||
|
case ${target} in
|
||||||
|
@@ -1764,6 +1789,10 @@
|
||||||
|
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
|
||||||
|
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||||
|
;;
|
||||||
|
+powerpc-*-linux-uclibc*)
|
||||||
|
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||||
|
+ tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
|
||||||
|
+ ;;
|
||||||
|
powerpc-*-linux*)
|
||||||
|
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||||
|
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||||
|
@@ -1916,7 +1945,7 @@
|
||||||
|
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
|
||||||
|
;;
|
||||||
|
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||||
|
- tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
|
||||||
|
+ tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver"
|
||||||
|
case ${target} in
|
||||||
|
sh*be-*-* | sh*eb-*-*) ;;
|
||||||
|
*)
|
||||||
|
@@ -1924,9 +1953,17 @@
|
||||||
|
tmake_file="${tmake_file} sh/t-le"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
- tmake_file="${tmake_file} sh/t-linux"
|
||||||
|
+ case ${target} in
|
||||||
|
+ *-*-linux-uclibc*) tmake_file="${tmake_file} t-linux-uclibc sh/t-linux-uclibc" ;;
|
||||||
|
+ *) tmake_file="${tmake_file} t-linux sh/t-linux" ;;
|
||||||
|
+ esac
|
||||||
|
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
|
||||||
|
case ${target} in
|
||||||
|
+ sh64*-*-linux-uclibc*)
|
||||||
|
+ tmake_file="${tmake_file} sh/t-sh64-uclibc"
|
||||||
|
+ tm_file="${tm_file} sh/sh64.h"
|
||||||
|
+ extra_headers="shmedia.h ushmedia.h sshmedia.h"
|
||||||
|
+ ;;
|
||||||
|
sh64*)
|
||||||
|
tmake_file="${tmake_file} sh/t-sh64"
|
||||||
|
tm_file="${tm_file} sh/sh64.h"
|
||||||
|
diff -urN gcc-3.4.1-dist/libtool.m4 gcc-3.4.1/libtool.m4
|
||||||
|
--- gcc-3.4.1-dist/libtool.m4 2004-05-18 04:08:37.000000000 -0500
|
||||||
|
+++ gcc-3.4.1/libtool.m4 2004-08-12 15:54:43.000000000 -0500
|
||||||
|
@@ -689,6 +689,11 @@
|
||||||
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ lt_cv_deplibs_check_method=pass_all
|
||||||
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd*)
|
||||||
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
|
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||||
|
diff -urN gcc-3.4.1-dist/ltconfig gcc-3.4.1/ltconfig
|
||||||
|
--- gcc-3.4.1-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
|
||||||
|
+++ gcc-3.4.1/ltconfig 2004-08-12 15:55:48.000000000 -0500
|
||||||
|
@@ -602,6 +602,7 @@
|
||||||
|
|
||||||
|
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||||
|
case $host_os in
|
||||||
|
+linux-uclibc*) ;;
|
||||||
|
linux-gnu*) ;;
|
||||||
|
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||||
|
esac
|
||||||
|
@@ -1262,6 +1263,24 @@
|
||||||
|
dynamic_linker='GNU/Linux ld.so'
|
||||||
|
;;
|
||||||
|
|
||||||
|
+linux-uclibc*)
|
||||||
|
+ version_type=linux
|
||||||
|
+ need_lib_prefix=no
|
||||||
|
+ need_version=no
|
||||||
|
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||||
|
+ soname_spec='${libname}${release}.so$major'
|
||||||
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||||
|
+ shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
+ shlibpath_overrides_runpath=no
|
||||||
|
+ # This implies no fast_install, which is unacceptable.
|
||||||
|
+ # Some rework will be needed to allow for fast_install
|
||||||
|
+ # before this can be enabled.
|
||||||
|
+ # Note: copied from linux-gnu, and may not be appropriate.
|
||||||
|
+ hardcode_into_libs=yes
|
||||||
|
+ # Assume using the uClibc dynamic linker.
|
||||||
|
+ dynamic_linker="uClibc ld.so"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
netbsd*)
|
||||||
|
need_lib_prefix=no
|
||||||
|
need_version=no
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
|||||||
|
--- gcc-3.3.2-old/configure.in 2003-08-09 01:57:21.000000000 -0500
|
||||||
|
+++ gcc-3.3.2/configure.in 2004-01-15 12:46:29.000000000 -0600
|
||||||
|
@@ -1418,6 +1418,11 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
FLAGS_FOR_TARGET=
|
||||||
|
+case " $targargs " in
|
||||||
|
+ *" --nfp "* | *" --without-float "*)
|
||||||
|
+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -msoft-float'
|
||||||
|
+ ;;
|
||||||
|
+esac
|
||||||
|
case " $target_configdirs " in
|
||||||
|
*" newlib "*)
|
||||||
|
case " $targargs " in
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
--- gcc-3.4.0/gcc/config/arm/arm.md.arm-ldm-peephole 2004-01-13 08:24:37.000000000 -0500
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/arm.md 2004-04-24 18:18:04.000000000 -0400
|
||||||
|
@@ -8810,13 +8810,16 @@
|
||||||
|
(set_attr "length" "4,8,8")]
|
||||||
|
)
|
||||||
|
|
||||||
|
+; Try to convert LDR+LDR+arith into [add+]LDM+arith
|
||||||
|
+; On XScale, LDM is always slower than two LDRs, so only do this if
|
||||||
|
+; optimising for size.
|
||||||
|
(define_insn "*arith_adjacentmem"
|
||||||
|
[(set (match_operand:SI 0 "s_register_operand" "=r")
|
||||||
|
(match_operator:SI 1 "shiftable_operator"
|
||||||
|
[(match_operand:SI 2 "memory_operand" "m")
|
||||||
|
(match_operand:SI 3 "memory_operand" "m")]))
|
||||||
|
(clobber (match_scratch:SI 4 "=r"))]
|
||||||
|
- "TARGET_ARM && adjacent_mem_locations (operands[2], operands[3])"
|
||||||
|
+ "TARGET_ARM && (!arm_tune_xscale || optimize_size) && adjacent_mem_locations (operands[2], operands[3])"
|
||||||
|
"*
|
||||||
|
{
|
||||||
|
rtx ldm[3];
|
||||||
|
@@ -8851,6 +8854,8 @@
|
||||||
|
}
|
||||||
|
if (val1 && val2)
|
||||||
|
{
|
||||||
|
+ /* This would be a loss on a Harvard core, but adjacent_mem_locations()
|
||||||
|
+ will prevent it from happening. */
|
||||||
|
rtx ops[3];
|
||||||
|
ldm[0] = ops[0] = operands[4];
|
||||||
|
ops[1] = XEXP (XEXP (operands[2], 0), 0);
|
||||||
|
--- gcc-3.4.0/gcc/genpeep.c.arm-ldm-peephole 2003-07-05 01:27:22.000000000 -0400
|
||||||
|
+++ gcc-3.4.0/gcc/genpeep.c 2004-04-24 18:18:04.000000000 -0400
|
||||||
|
@@ -381,6 +381,7 @@
|
||||||
|
printf ("#include \"recog.h\"\n");
|
||||||
|
printf ("#include \"except.h\"\n\n");
|
||||||
|
printf ("#include \"function.h\"\n\n");
|
||||||
|
+ printf ("#include \"flags.h\"\n\n");
|
||||||
|
|
||||||
|
printf ("#ifdef HAVE_peephole\n");
|
||||||
|
printf ("extern rtx peep_operand[];\n\n");
|
||||||
|
--- gcc/gcc/config/arm/arm.c.orig 2005-06-02 22:40:40.000000000 +0100
|
||||||
|
+++ gcc/gcc/config/arm/arm.c 2005-06-02 22:45:45.000000000 +0100
|
||||||
|
@@ -4610,9 +4610,12 @@
|
||||||
|
if (arm_eliminable_register (reg0))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
+ /* For Harvard cores, only accept pairs where one offset is zero.
|
||||||
|
+ See comment in load_multiple_sequence. */
|
||||||
|
val_diff = val1 - val0;
|
||||||
|
return ((REGNO (reg0) == REGNO (reg1))
|
||||||
|
- && (val_diff == 4 || val_diff == -4));
|
||||||
|
+ && (val_diff == 4 || val_diff == -4))
|
||||||
|
+ && (!arm_ld_sched || val0 == 0 || val1 == 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
@@ -4857,6 +4860,11 @@
|
||||||
|
*load_offset = unsorted_offsets[order[0]];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ /* For XScale a two-word LDM is a performance loss, so only do this if
|
||||||
|
+ size is more important. See comments in arm_gen_load_multiple. */
|
||||||
|
+ if (nops == 2 && arm_tune_xscale && !optimize_size)
|
||||||
|
+ return 0;
|
||||||
|
+
|
||||||
|
if (unsorted_offsets[order[0]] == 0)
|
||||||
|
return 1; /* ldmia */
|
||||||
|
|
||||||
|
@@ -5083,6 +5091,11 @@
|
||||||
|
*load_offset = unsorted_offsets[order[0]];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ /* For XScale a two-word LDM is a performance loss, so only do this if
|
||||||
|
+ size is more important. See comments in arm_gen_load_multiple. */
|
||||||
|
+ if (nops == 2 && arm_tune_xscale && !optimize_size)
|
||||||
|
+ return 0;
|
||||||
|
+
|
||||||
|
if (unsorted_offsets[order[0]] == 0)
|
||||||
|
return 1; /* stmia */
|
||||||
|
|
||||||
+119
@@ -0,0 +1,119 @@
|
|||||||
|
--- gcc-3.4.0/gcc/config/arm/arm.c.arm-ldm 2004-02-27 09:51:05.000000000 -0500
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/arm.c 2004-04-24 18:16:25.000000000 -0400
|
||||||
|
@@ -8520,6 +8520,26 @@
|
||||||
|
return_used_this_function = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+/* Return the number (counting from 0) of
|
||||||
|
+ the least significant set bit in MASK. */
|
||||||
|
+
|
||||||
|
+#ifdef __GNUC__
|
||||||
|
+inline
|
||||||
|
+#endif
|
||||||
|
+static int
|
||||||
|
+number_of_first_bit_set (mask)
|
||||||
|
+ int mask;
|
||||||
|
+{
|
||||||
|
+ int bit;
|
||||||
|
+
|
||||||
|
+ for (bit = 0;
|
||||||
|
+ (mask & (1 << bit)) == 0;
|
||||||
|
+ ++bit)
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
+ return bit;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
const char *
|
||||||
|
arm_output_epilogue (rtx sibling)
|
||||||
|
{
|
||||||
|
@@ -8753,27 +8773,47 @@
|
||||||
|
saved_regs_mask |= (1 << PC_REGNUM);
|
||||||
|
}
|
||||||
|
|
||||||
|
- /* Load the registers off the stack. If we only have one register
|
||||||
|
- to load use the LDR instruction - it is faster. */
|
||||||
|
- if (saved_regs_mask == (1 << LR_REGNUM))
|
||||||
|
- {
|
||||||
|
- /* The exception handler ignores the LR, so we do
|
||||||
|
- not really need to load it off the stack. */
|
||||||
|
- if (eh_ofs)
|
||||||
|
- asm_fprintf (f, "\tadd\t%r, %r, #4\n", SP_REGNUM, SP_REGNUM);
|
||||||
|
- else
|
||||||
|
- asm_fprintf (f, "\tldr\t%r, [%r], #4\n", LR_REGNUM, SP_REGNUM);
|
||||||
|
- }
|
||||||
|
- else if (saved_regs_mask)
|
||||||
|
+ if (saved_regs_mask)
|
||||||
|
{
|
||||||
|
- if (saved_regs_mask & (1 << SP_REGNUM))
|
||||||
|
- /* Note - write back to the stack register is not enabled
|
||||||
|
- (ie "ldmfd sp!..."). We know that the stack pointer is
|
||||||
|
- in the list of registers and if we add writeback the
|
||||||
|
- instruction becomes UNPREDICTABLE. */
|
||||||
|
- print_multi_reg (f, "ldmfd\t%r", SP_REGNUM, saved_regs_mask);
|
||||||
|
+ /* Load the registers off the stack. If we only have one register
|
||||||
|
+ to load use the LDR instruction - it is faster. */
|
||||||
|
+ if (bit_count (saved_regs_mask) == 1)
|
||||||
|
+ {
|
||||||
|
+ int reg = number_of_first_bit_set (saved_regs_mask);
|
||||||
|
+
|
||||||
|
+ switch (reg)
|
||||||
|
+ {
|
||||||
|
+ case SP_REGNUM:
|
||||||
|
+ /* Mustn't use base writeback when loading SP. */
|
||||||
|
+ asm_fprintf (f, "\tldr\t%r, [%r]\n", SP_REGNUM, SP_REGNUM);
|
||||||
|
+ break;
|
||||||
|
+
|
||||||
|
+ case LR_REGNUM:
|
||||||
|
+ if (eh_ofs)
|
||||||
|
+ {
|
||||||
|
+ /* The exception handler ignores the LR, so we do
|
||||||
|
+ not really need to load it off the stack. */
|
||||||
|
+ asm_fprintf (f, "\tadd\t%r, %r, #4\n", SP_REGNUM, SP_REGNUM);
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+ /* else fall through */
|
||||||
|
+
|
||||||
|
+ default:
|
||||||
|
+ asm_fprintf (f, "\tldr\t%r, [%r], #4\n", reg, SP_REGNUM);
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
else
|
||||||
|
- print_multi_reg (f, "ldmfd\t%r!", SP_REGNUM, saved_regs_mask);
|
||||||
|
+ {
|
||||||
|
+ if (saved_regs_mask & (1 << SP_REGNUM))
|
||||||
|
+ /* Note - write back to the stack register is not enabled
|
||||||
|
+ (ie "ldmfd sp!..."). We know that the stack pointer is
|
||||||
|
+ in the list of registers and if we add writeback the
|
||||||
|
+ instruction becomes UNPREDICTABLE. */
|
||||||
|
+ print_multi_reg (f, "ldmfd\t%r", SP_REGNUM, saved_regs_mask);
|
||||||
|
+ else
|
||||||
|
+ print_multi_reg (f, "ldmfd\t%r!", SP_REGNUM, saved_regs_mask);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
if (current_function_pretend_args_size)
|
||||||
|
@@ -11401,22 +11441,6 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-/* Return the number (counting from 0) of
|
||||||
|
- the least significant set bit in MASK. */
|
||||||
|
-
|
||||||
|
-inline static int
|
||||||
|
-number_of_first_bit_set (int mask)
|
||||||
|
-{
|
||||||
|
- int bit;
|
||||||
|
-
|
||||||
|
- for (bit = 0;
|
||||||
|
- (mask & (1 << bit)) == 0;
|
||||||
|
- ++bit)
|
||||||
|
- continue;
|
||||||
|
-
|
||||||
|
- return bit;
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
/* Generate code to return from a thumb function.
|
||||||
|
If 'reg_containing_return_addr' is -1, then the return address is
|
||||||
|
actually on the stack, at the stack pointer. */
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
--- gcc-3.4.0/gcc/config/arm/linux-elf.h.arm-tune 2004-01-31 01:18:11.000000000 -0500
|
||||||
|
+++ gcc-3.4.0/gcc/config/arm/linux-elf.h 2004-04-24 18:19:10.000000000 -0400
|
||||||
|
@@ -126,3 +126,6 @@
|
||||||
|
|
||||||
|
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||||
|
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||||
|
+
|
||||||
|
+/* Tune for XScale. */
|
||||||
|
+#define TARGET_TUNE_DEFAULT TARGET_CPU_xscale
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
--- gcc-3.4.4/configure.in.orig 2005-08-09 19:57:51.504323183 -0700
|
||||||
|
+++ gcc-3.4.4/configure.in 2005-08-09 20:00:12.073168623 -0700
|
||||||
|
@@ -1907,7 +1907,7 @@
|
||||||
|
*) gxx_include_dir=${with_gxx_include_dir} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
-FLAGS_FOR_TARGET=
|
||||||
|
+FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET"
|
||||||
|
case " $target_configdirs " in
|
||||||
|
*" newlib "*)
|
||||||
|
case " $target_configargs " in
|
||||||
|
--- gcc-3.4.4/configure.orig 2005-08-09 21:02:29.668360660 -0700
|
||||||
|
+++ gcc-3.4.4/configure 2005-08-09 21:02:50.157649970 -0700
|
||||||
|
@@ -2669,7 +2669,7 @@
|
||||||
|
*) gxx_include_dir=${with_gxx_include_dir} ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
-FLAGS_FOR_TARGET=
|
||||||
|
+FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET"
|
||||||
|
case " $target_configdirs " in
|
||||||
|
*" newlib "*)
|
||||||
|
case " $target_configargs " in
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
--- gcc-3.4.0/gcc/flow.c.reverse-compare 2004-02-27 22:39:19.000000000 -0500
|
||||||
|
+++ gcc-3.4.0/gcc/flow.c 2004-04-24 16:36:00.000000000 -0400
|
||||||
|
@@ -1843,6 +1843,7 @@
|
||||||
|
regset_head diff_head;
|
||||||
|
regset diff = INITIALIZE_REG_SET (diff_head);
|
||||||
|
basic_block bb_true, bb_false;
|
||||||
|
+ enum rtx_code reversed_code;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
/* Identify the successor blocks. */
|
||||||
|
@@ -1889,8 +1890,11 @@
|
||||||
|
if (GET_CODE (reg) == REG
|
||||||
|
&& XEXP (cond_true, 1) == const0_rtx)
|
||||||
|
{
|
||||||
|
- rtx cond_false
|
||||||
|
- = gen_rtx_fmt_ee (reverse_condition (GET_CODE (cond_true)),
|
||||||
|
+ rtx cond_false;
|
||||||
|
+ reversed_code = reverse_condition (GET_CODE (cond_true));
|
||||||
|
+ if (reversed_code == UNKNOWN)
|
||||||
|
+ goto skip;
|
||||||
|
+ cond_false = gen_rtx_fmt_ee (reversed_code,
|
||||||
|
GET_MODE (cond_true), XEXP (cond_true, 0),
|
||||||
|
XEXP (cond_true, 1));
|
||||||
|
if (GET_CODE (XEXP (set_src, 1)) == PC)
|
||||||
|
@@ -1925,6 +1929,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ skip:
|
||||||
|
FREE_REG_SET (diff);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
# This patch contains various fixes for the thumb code handling in GCC 3.4.4
|
||||||
|
#
|
||||||
|
# Most of these are minor fixes to code which is either missing (Linux thumb
|
||||||
|
# div0, thumb clear instruction cache) or uses the wrong return mechanism
|
||||||
|
# (libffi)
|
||||||
|
#
|
||||||
|
# There is also a significant design problem with the _call_via_rx code -
|
||||||
|
# it cannot be in a shared library because a call via PLT simply won't
|
||||||
|
# work (for _call_via_ip) and is very inefficient anyway.
|
||||||
|
#
|
||||||
|
# This is fixed in uclibc simply by incorporating the code into crti.S
|
||||||
|
# (an extra 30 bytes for the 15 functions) even though not all link units
|
||||||
|
# require all the code - there is so little of it. That doesn't work with
|
||||||
|
# the crti.asm here because it is linked with libgcc.a which already defines
|
||||||
|
# these symbols
|
||||||
|
#
|
||||||
|
--- gcc-3.4.4/gcc/config/arm/t-linux.orig 2005-08-09 08:55:02.181797492 -0700
|
||||||
|
+++ gcc-3.4.4/gcc/config/arm/t-linux 2005-08-09 08:58:22.766419486 -0700
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||||
|
_negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||||
|
_truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||||
|
+ _call_via_rX \
|
||||||
|
_fixsfsi _fixunssfsi
|
||||||
|
|
||||||
|
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||||
|
--- gcc-3.4.4/.pc/gcc34-thumb-support.patch/gcc/config/arm/lib1funcs.asm 2004-01-15 08:56:34.000000000 -0800
|
||||||
|
+++ gcc-3.4.4/gcc/config/arm/lib1funcs.asm 2005-09-21 21:32:03.376927755 -0700
|
||||||
|
@@ -811,13 +811,18 @@
|
||||||
|
|
||||||
|
/* Constants taken from <asm/unistd.h> and <asm/signal.h> */
|
||||||
|
#define SIGFPE 8
|
||||||
|
+#if !defined __thumb__
|
||||||
|
#define __NR_SYSCALL_BASE 0x900000
|
||||||
|
+#else
|
||||||
|
+#define __NR_SYSCALL_BASE 0
|
||||||
|
+#endif
|
||||||
|
#define __NR_getpid (__NR_SYSCALL_BASE+ 20)
|
||||||
|
#define __NR_kill (__NR_SYSCALL_BASE+ 37)
|
||||||
|
|
||||||
|
.code 32
|
||||||
|
FUNC_START div0
|
||||||
|
|
||||||
|
+#if ! defined __thumb__
|
||||||
|
stmfd sp!, {r1, lr}
|
||||||
|
swi __NR_getpid
|
||||||
|
cmn r0, #1000
|
||||||
|
@@ -825,6 +830,28 @@
|
||||||
|
mov r1, #SIGFPE
|
||||||
|
swi __NR_kill
|
||||||
|
RETLDM r1
|
||||||
|
+#else
|
||||||
|
+ push {r1, r7, lr}
|
||||||
|
+ mov r7, #__NR_getpid
|
||||||
|
+ swi 0
|
||||||
|
+ @ above the compare is with -1000, but the standard syscall
|
||||||
|
+ @ macro checks for -1..-125
|
||||||
|
+ add r0, #125
|
||||||
|
+ bcs 90f
|
||||||
|
+ sub r0, #125
|
||||||
|
+ mov r1, #SIGFPE
|
||||||
|
+ mov r7, #__NR_kill
|
||||||
|
+ swi 0
|
||||||
|
+90:
|
||||||
|
+#if __ARM_ARCH__ > 4
|
||||||
|
+ pop {r1, r7, pc}
|
||||||
|
+#else
|
||||||
|
+ @ on 4T that won't work
|
||||||
|
+ pop {r1, r7}
|
||||||
|
+ pop {r3}
|
||||||
|
+ bx r3
|
||||||
|
+#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
FUNC_END div0
|
||||||
|
|
||||||
|
@@ -845,14 +872,14 @@
|
||||||
|
code here switches to the correct mode before executing the function. */
|
||||||
|
|
||||||
|
.text
|
||||||
|
- .align 0
|
||||||
|
+ .align 1
|
||||||
|
.force_thumb
|
||||||
|
|
||||||
|
.macro call_via register
|
||||||
|
THUMB_FUNC_START _call_via_\register
|
||||||
|
+ .hidden SYM (_call_via_\register)
|
||||||
|
|
||||||
|
bx \register
|
||||||
|
- nop
|
||||||
|
|
||||||
|
SIZE (_call_via_\register)
|
||||||
|
.endm
|
||||||
|
@@ -903,6 +930,7 @@
|
||||||
|
.code 16
|
||||||
|
|
||||||
|
THUMB_FUNC_START _interwork_call_via_\register
|
||||||
|
+ .hidden SYM (_interwork_call_via_\register)
|
||||||
|
|
||||||
|
bx pc
|
||||||
|
nop
|
||||||
|
--- gcc-3.4.4/.pc/gcc34-thumb-support.patch/gcc/config/arm/linux-gas.h 2003-06-19 14:47:06.000000000 -0700
|
||||||
|
+++ gcc-3.4.4/gcc/config/arm/linux-gas.h 2005-09-20 16:09:55.027862200 -0700
|
||||||
|
@@ -56,6 +56,7 @@
|
||||||
|
|
||||||
|
/* Clear the instruction cache from `beg' to `end'. This makes an
|
||||||
|
inline system call to SYS_cacheflush. */
|
||||||
|
+#if !defined(__thumb__)
|
||||||
|
#define CLEAR_INSN_CACHE(BEG, END) \
|
||||||
|
{ \
|
||||||
|
register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
|
||||||
|
@@ -65,3 +66,18 @@
|
||||||
|
: "=r" (_beg) \
|
||||||
|
: "0" (_beg), "r" (_end), "r" (_flg)); \
|
||||||
|
}
|
||||||
|
+#else
|
||||||
|
+#define CLEAR_INSN_CACHE(BEG, END) \
|
||||||
|
+{ \
|
||||||
|
+ register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
|
||||||
|
+ register unsigned long _end __asm ("a2") = (unsigned long) (END); \
|
||||||
|
+ register unsigned long _flg __asm ("a3") = 0; \
|
||||||
|
+ register unsigned long _swi __asm ("a4") = 0xf0002; \
|
||||||
|
+ __asm __volatile ("push {r7}\n" \
|
||||||
|
+ " mov r7,a4\n" \
|
||||||
|
+ " swi 0 @ sys_cacheflush\n" \
|
||||||
|
+ " pop {r7}\n" \
|
||||||
|
+ : "=r" (_beg) \
|
||||||
|
+ : "0" (_beg), "r" (_end), "r" (_flg), "r" (_swi)); \
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
|
--- gcc-3.4.4/.pc/gcc34-thumb-support.patch/libffi/src/arm/sysv.S 2003-10-21 12:01:55.000000000 -0700
|
||||||
|
+++ gcc-3.4.4/libffi/src/arm/sysv.S 2005-09-20 16:09:55.027862200 -0700
|
||||||
|
@@ -41,6 +41,14 @@
|
||||||
|
#define ENTRY(x) .globl CNAME(x); .type CNAME(x),%function; CNAME(x):
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+/* Get the correct return instruction */
|
||||||
|
+#if defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_5__) \
|
||||||
|
+ || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
|
||||||
|
+#define RET bx r
|
||||||
|
+#else
|
||||||
|
+#define RET mov pc,
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
.text
|
||||||
|
|
||||||
|
# a1: ffi_prep_args
|
||||||
|
@@ -66,7 +74,7 @@
|
||||||
|
|
||||||
|
# And call
|
||||||
|
mov lr, pc
|
||||||
|
- mov pc, ip
|
||||||
|
+ RET ip
|
||||||
|
|
||||||
|
# move first 4 parameters in registers
|
||||||
|
ldr a1, [sp, #0]
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
Patch for gcc3 to support gcc4-compatible (and consistent) values for -mtune= option.
|
||||||
|
|
||||||
|
--- gcc-3.4.4/gcc/config/arm/arm.c.org 2007-12-15 23:58:35.000000000 +0200
|
||||||
|
+++ gcc-3.4.4/gcc/config/arm/arm.c 2007-12-16 00:20:39.000000000 +0200
|
||||||
|
@@ -432,7 +432,9 @@
|
||||||
|
{"arm10tdmi", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_LDSCHED | FL_ARCH5 },
|
||||||
|
{"arm1020t", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_LDSCHED | FL_ARCH5 },
|
||||||
|
{"arm926ejs", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_ARCH5 | FL_ARCH5E },
|
||||||
|
+ {"arm926ej-s", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_ARCH5 | FL_ARCH5E },
|
||||||
|
{"arm1026ejs", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_ARCH5 | FL_ARCH5E },
|
||||||
|
+ {"arm1026ej-s", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_ARCH5 | FL_ARCH5E },
|
||||||
|
{"xscale", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_LDSCHED | FL_STRONG | FL_ARCH5 | FL_ARCH5E | FL_XSCALE },
|
||||||
|
{"iwmmxt", FL_MODE32 | FL_FAST_MULT | FL_ARCH4 | FL_THUMB | FL_LDSCHED | FL_STRONG | FL_ARCH5 | FL_ARCH5E | FL_XSCALE | FL_IWMMXT },
|
||||||
|
/* V6 Architecture Processors */
|
||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
libjava/Makefile.am | 2 +-
|
||||||
|
libjava/Makefile.in | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
Index: gcc-3.4.4/libjava/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- gcc-3.4.4.orig/libjava/Makefile.am 2006-12-05 15:37:50.000000000 +0000
|
||||||
|
+++ gcc-3.4.4/libjava/Makefile.am 2006-12-05 15:38:27.000000000 +0000
|
||||||
|
@@ -77,7 +77,7 @@ if NULL_TARGET
|
||||||
|
ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
|
||||||
|
GCJH = gcjh
|
||||||
|
else
|
||||||
|
-ZIP = jar
|
||||||
|
+ZIP = $(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
|
||||||
|
GCJH = $(target_alias)-gcjh
|
||||||
|
endif
|
||||||
|
else # CANADIAN
|
||||||
|
Index: gcc-3.4.4/libjava/Makefile.in
|
||||||
|
===================================================================
|
||||||
|
--- gcc-3.4.4.orig/libjava/Makefile.in 2006-12-05 15:39:08.000000000 +0000
|
||||||
|
+++ gcc-3.4.4/libjava/Makefile.in 2006-12-05 15:39:21.000000000 +0000
|
||||||
|
@@ -193,7 +193,7 @@ propdir = $(libdir)
|
||||||
|
|
||||||
|
bin_SCRIPTS = addr2name.awk
|
||||||
|
@CANADIAN_TRUE@@NULL_TARGET_TRUE@ZIP = @CANADIAN_TRUE@@NULL_TARGET_TRUE@$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
|
||||||
|
-@CANADIAN_TRUE@@NULL_TARGET_FALSE@ZIP = @CANADIAN_TRUE@@NULL_TARGET_FALSE@jar
|
||||||
|
+@CANADIAN_TRUE@@NULL_TARGET_FALSE@ZIP = @CANADIAN_TRUE@@NULL_TARGET_FALSE@$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
|
||||||
|
@CANADIAN_FALSE@ZIP = @CANADIAN_FALSE@$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/jar
|
||||||
|
@CANADIAN_TRUE@@NULL_TARGET_TRUE@GCJH = @CANADIAN_TRUE@@NULL_TARGET_TRUE@gcjh
|
||||||
|
@CANADIAN_TRUE@@NULL_TARGET_FALSE@GCJH = @CANADIAN_TRUE@@NULL_TARGET_FALSE@$(target_alias)-gcjh
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
--- gcc-3.4.1/libstdc++-v3/libmath/Makefile.am~ 2003-08-27 22:29:42.000000000 +0100
|
||||||
|
+++ gcc-3.4.1/libstdc++-v3/libmath/Makefile.am 2004-07-22 16:41:45.152130128 +0100
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
|
||||||
|
libmath_la_SOURCES = stubs.c
|
||||||
|
|
||||||
|
-AM_CPPFLAGS = $(CANADIAN_INCLUDES)
|
||||||
|
+AM_CPPFLAGS = $(CANADIAN_INCLUDES) -I$(toplevel_srcdir)/include
|
||||||
|
|
||||||
|
# Only compiling "C" sources in this directory.
|
||||||
|
LIBTOOL = @LIBTOOL@ --tag CC
|
||||||
|
--- gcc-3.4.1/libstdc++-v3/fragment.am.old 2004-07-22 18:24:58.024083656 +0100
|
||||||
|
+++ gcc-3.4.1/libstdc++-v3/fragment.am 2004-07-22 18:24:59.019932264 +0100
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
$(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
|
||||||
|
|
||||||
|
# -I/-D flags to pass when compiling.
|
||||||
|
-AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
|
||||||
|
+AM_CPPFLAGS = $(GLIBCXX_INCLUDES) -I$(toplevel_srcdir)/include
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
Index: gcc-3.4.4/gcc/c-incpath.c
|
||||||
|
===================================================================
|
||||||
|
--- gcc-3.4.4.orig/gcc/c-incpath.c 2004-05-31 12:37:47.000000000 +0200
|
||||||
|
+++ gcc-3.4.4/gcc/c-incpath.c 2006-05-15 20:07:31.000000000 +0200
|
||||||
|
@@ -328,6 +328,27 @@
|
||||||
|
else
|
||||||
|
heads[chain] = p;
|
||||||
|
tails[chain] = p;
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+#ifdef CROSS_COMPILE
|
||||||
|
+ /* A common error when cross compiling is including
|
||||||
|
+ host headers. This code below will try to fail fast
|
||||||
|
+ for cross compiling. Currently we consider /usr/include,
|
||||||
|
+ /opt/include and /sw/include as harmful. */
|
||||||
|
+ {
|
||||||
|
+ /* printf("Adding Path: %s\n", p->name ); */
|
||||||
|
+ if( strstr(p->name, "/usr/include" ) == p->name ) {
|
||||||
|
+ fprintf(stderr, _("CROSS COMPILE Badness: /usr/include in INCLUDEPATH: %s\n"), p->name);
|
||||||
|
+ abort();
|
||||||
|
+ } else if( strstr(p->name, "/sw/include") == p->name ) {
|
||||||
|
+ fprintf(stderr, _("CROSS COMPILE Badness: /sw/include in INCLUDEPATH: %s\n"), p->name);
|
||||||
|
+ abort();
|
||||||
|
+ } else if( strstr(p->name, "/opt/include") == p->name ) {
|
||||||
|
+ fprintf(stderr, _("CROSS COMPILE Badness: /opt/include in INCLUDEPATH: %s\n"), p->name);
|
||||||
|
+ abort();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Exported function to handle include chain merging, duplicate
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: gcc-3.4.4/Makefile.in
|
||||||
|
===================================================================
|
||||||
|
--- gcc-3.4.4.orig/Makefile.in 2005-05-19 11:58:00.000000000 +0200
|
||||||
|
+++ gcc-3.4.4/Makefile.in 2006-08-06 13:08:14.000000000 +0200
|
||||||
|
@@ -21964,6 +21964,8 @@
|
||||||
|
AS="$(AS_FOR_TARGET)"; export AS; \
|
||||||
|
CC="$(CC_FOR_TARGET)"; export CC; \
|
||||||
|
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
|
||||||
|
+ CPP="$(CC_FOR_TARGET) -E"; export CCP; \
|
||||||
|
+ CPPFLAGS=""; export CPPFLAGS; \
|
||||||
|
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
|
||||||
|
CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
|
||||||
|
CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
PR = "r7"
|
||||||
|
|
||||||
|
require gcc-${PV}.inc
|
||||||
|
require gcc-configure-target.inc
|
||||||
|
require gcc-native.inc
|
||||||
|
PROVIDES += "gcc3-native"
|
||||||
Reference in New Issue
Block a user