mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-20 17:37:22 -05:00
65 lines
2.4 KiB
Diff
65 lines
2.4 KiB
Diff
diff -Naurb gcc-4.0.1/config.sub gcc-4.0.1-ppc/config.sub
|
|
--- gcc-4.0.1/config.sub Mon Apr 25 11:36:56 2005
|
|
+++ gcc-4.0.1-ppc/config.sub Tue Jul 26 22:32:27 2005
|
|
@@ -219,6 +219,10 @@
|
|
basic_machine=m68k-atari
|
|
os=-mint
|
|
;;
|
|
+ -gekko)
|
|
+ basic_machine=powerpc-eabi
|
|
+ os=-elf
|
|
+ ;;
|
|
esac
|
|
|
|
# Decode aliases for certain CPU-COMPANY combinations.
|
|
diff -Naurb gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-new/gcc/c-incpath.c
|
|
--- gcc-4.0.1/gcc/c-incpath.c Sun Jan 23 15:05:27 2005
|
|
+++ gcc-4.0.1-new/gcc/c-incpath.c Fri Jul 8 11:32:20 2005
|
|
@@ -331,13 +331,18 @@
|
|
cpp_dir *p;
|
|
|
|
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
|
|
- /* Convert all backslashes to slashes. The native CRT stat()
|
|
- function does not recognize a directory that ends in a backslash
|
|
- (unless it is a drive root dir, such "c:\"). Forward slashes,
|
|
- trailing or otherwise, cause no problems for stat(). */
|
|
- char* c;
|
|
- for (c = path; *c; c++)
|
|
- if (*c == '\\') *c = '/';
|
|
+ /* Remove unnecessary trailing slashes. On some versions of MS
|
|
+ Windows, trailing _forward_ slashes cause no problems for stat().
|
|
+ On newer versions, stat() does not recognise a directory that ends
|
|
+ in a '\\' or '/', unless it is a drive root dir, such as "c:/",
|
|
+ where it is obligatory. */
|
|
+ int pathlen = strlen (path);
|
|
+ char* end = path + pathlen - 1;
|
|
+ /* Preserve the lead '/' or lead "c:/". */
|
|
+ char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1);
|
|
+
|
|
+ for (; end > start && IS_DIR_SEPARATOR (*end); end--)
|
|
+ *end = 0;
|
|
#endif
|
|
|
|
p = xmalloc (sizeof (cpp_dir));
|
|
diff -Naurb gcc-4.0.1/gcc/version.c gcc-4.0.1-ppc/gcc/version.c
|
|
--- gcc-4.0.1/gcc/version.c Thu Jul 7 19:41:54 2005
|
|
+++ gcc-4.0.1-ppc/gcc/version.c Tue Jul 26 22:31:02 2005
|
|
@@ -14,4 +14,4 @@
|
|
forward us bugs reported to you, if you determine that they are
|
|
not bugs in your modifications.) */
|
|
|
|
-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
|
|
+const char bug_report_url[] = "<URL:http://devkitpro.sourceforge.net/bugs.shtml>";
|
|
diff -Naurb gcc-4.0.1/gcc/hwint.h gcc-4.0.1-new/gcc/hwint.h
|
|
--- gcc-4.0.1/gcc/hwint.h Wed Nov 24 04:31:57 2004
|
|
+++ gcc-4.0.1-new/gcc/hwint.h Thu Jul 21 14:37:06 2005
|
|
@@ -80,7 +80,7 @@
|
|
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
|
|
# endif
|
|
#else
|
|
-# define HOST_WIDE_INT_PRINT "ll"
|
|
+# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
|
|
# define HOST_WIDE_INT_PRINT_C "LL"
|
|
/* We can assume that 'long long' is at least 64 bits. */
|
|
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \
|