mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-14 06:02:55 -05:00
update patches for devkitARM r22
This commit is contained in:
@@ -1,868 +0,0 @@
|
||||
diff -Nbaur gcc-4.1.2/gcc/c-incpath.c gcc-4.1.2-arm/gcc/c-incpath.c
|
||||
--- gcc-4.1.2/gcc/c-incpath.c Sat Jun 25 03:02:01 2005
|
||||
+++ gcc-4.1.2-arm/gcc/c-incpath.c Thu Dec 13 07:34:39 2007
|
||||
@@ -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 -Nbaur gcc-4.1.2/gcc/config/arm/t-arm-elf gcc-4.1.2-arm/gcc/config/arm/t-arm-elf
|
||||
--- gcc-4.1.2/gcc/config/arm/t-arm-elf Wed Sep 1 12:14:21 2004
|
||||
+++ gcc-4.1.2-arm/gcc/config/arm/t-arm-elf Thu Dec 13 07:34:39 2007
|
||||
@@ -15,9 +15,9 @@
|
||||
# MULTILIB_DIRNAMES += ep9312
|
||||
# MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
|
||||
#
|
||||
-# MULTILIB_OPTIONS += mlittle-endian/mbig-endian
|
||||
-# MULTILIB_DIRNAMES += le be
|
||||
-# MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
|
||||
+MULTILIB_OPTIONS += mlittle-endian/mbig-endian
|
||||
+MULTILIB_DIRNAMES += le be
|
||||
+MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
|
||||
#
|
||||
# MULTILIB_OPTIONS += mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES += fpu soft
|
||||
diff -Nbaur gcc-4.1.2/gcc/config/arm/unknown-elf.h gcc-4.1.2-arm/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-4.1.2/gcc/config/arm/unknown-elf.h Sun Oct 2 04:24:07 2005
|
||||
+++ gcc-4.1.2-arm/gcc/config/arm/unknown-elf.h Thu Dec 13 07:36:41 2007
|
||||
@@ -94,4 +94,4 @@
|
||||
udivmoddi4, which will depend on the exception unwind routines,
|
||||
which will depend on abort, which is defined in libc. */
|
||||
#undef LINK_GCC_C_SEQUENCE_SPEC
|
||||
-#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group"
|
||||
+#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group"
|
||||
diff -Nbaur gcc-4.1.2/gcc/gcc.c gcc-4.1.2-arm/gcc/gcc.c
|
||||
--- gcc-4.1.2/gcc/gcc.c Tue Nov 7 14:26:21 2006
|
||||
+++ gcc-4.1.2-arm/gcc/gcc.c Thu Dec 13 07:46:06 2007
|
||||
@@ -618,6 +618,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#ifndef LIBGLOSS_SPEC
|
||||
+# define LIBGLOSS_SPEC "-lsysbase"
|
||||
+#endif
|
||||
+
|
||||
/* config.h can define STARTFILE_SPEC to override the default crt0 files. */
|
||||
#ifndef STARTFILE_SPEC
|
||||
#define STARTFILE_SPEC \
|
||||
@@ -737,6 +741,7 @@
|
||||
static const char *mfwrap_spec = MFWRAP_SPEC;
|
||||
static const char *mflib_spec = MFLIB_SPEC;
|
||||
static const char *libgcc_spec = LIBGCC_SPEC;
|
||||
+static const char *libgloss_spec = LIBGLOSS_SPEC;
|
||||
static const char *endfile_spec = ENDFILE_SPEC;
|
||||
static const char *startfile_spec = STARTFILE_SPEC;
|
||||
static const char *switches_need_spaces = SWITCHES_NEED_SPACES;
|
||||
@@ -1534,6 +1539,7 @@
|
||||
INIT_STATIC_SPEC ("mfwrap", &mfwrap_spec),
|
||||
INIT_STATIC_SPEC ("mflib", &mflib_spec),
|
||||
INIT_STATIC_SPEC ("libgcc", &libgcc_spec),
|
||||
+ INIT_STATIC_SPEC ("libgloss", &libgloss_spec),
|
||||
INIT_STATIC_SPEC ("startfile", &startfile_spec),
|
||||
INIT_STATIC_SPEC ("switches_need_spaces", &switches_need_spaces),
|
||||
INIT_STATIC_SPEC ("cross_compile", &cross_compile),
|
||||
@@ -3250,8 +3256,6 @@
|
||||
gcc_libexec_prefix = make_relative_prefix (argv[0],
|
||||
standard_bindir_prefix,
|
||||
standard_libexec_prefix);
|
||||
- if (gcc_exec_prefix)
|
||||
- putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL));
|
||||
}
|
||||
else
|
||||
gcc_libexec_prefix = make_relative_prefix (gcc_exec_prefix,
|
||||
@@ -6151,10 +6155,21 @@
|
||||
|
||||
/* We need to check standard_exec_prefix/just_machine_suffix/specs
|
||||
for any override of as, ld and libraries. */
|
||||
+ if ( gcc_exec_prefix )
|
||||
+ {
|
||||
+ specs_file = alloca (strlen (gcc_exec_prefix)
|
||||
+ + strlen (just_machine_suffix) + sizeof ("specs"));
|
||||
+
|
||||
+ strcpy (specs_file, gcc_exec_prefix);
|
||||
+ } else {
|
||||
+
|
||||
specs_file = alloca (strlen (standard_exec_prefix)
|
||||
+ strlen (just_machine_suffix) + sizeof ("specs"));
|
||||
|
||||
strcpy (specs_file, standard_exec_prefix);
|
||||
+
|
||||
+ }
|
||||
+
|
||||
strcat (specs_file, just_machine_suffix);
|
||||
strcat (specs_file, "specs");
|
||||
if (access (specs_file, R_OK) == 0)
|
||||
diff -Nbaur gcc-4.1.2/gcc/prefix.c gcc-4.1.2-arm/gcc/prefix.c
|
||||
--- gcc-4.1.2/gcc/prefix.c Sat Jun 25 03:02:01 2005
|
||||
+++ gcc-4.1.2-arm/gcc/prefix.c Thu Dec 13 07:34:40 2007
|
||||
@@ -246,13 +246,16 @@
|
||||
The returned string is always malloc-ed, and the caller is
|
||||
responsible for freeing it. */
|
||||
|
||||
+
|
||||
+static const char *old_prefix = PREFIX;
|
||||
+
|
||||
char *
|
||||
update_path (const char *path, const char *key)
|
||||
{
|
||||
char *result, *p;
|
||||
- const int len = strlen (std_prefix);
|
||||
+ const int len = strlen (old_prefix);
|
||||
|
||||
- if (! strncmp (path, std_prefix, len)
|
||||
+ if (! strncmp (path, old_prefix, len)
|
||||
&& (IS_DIR_SEPARATOR(path[len])
|
||||
|| path[len] == '\0')
|
||||
&& key != 0)
|
||||
@@ -354,4 +357,6 @@
|
||||
set_std_prefix (const char *prefix, int len)
|
||||
{
|
||||
std_prefix = save_string (prefix, len);
|
||||
+
|
||||
+ putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL));
|
||||
}
|
||||
diff -Nbaur gcc-4.1.2/gcc/stor-layout.c gcc-4.1.2-arm/gcc/stor-layout.c
|
||||
--- gcc-4.1.2/gcc/stor-layout.c Wed Oct 4 08:01:27 2006
|
||||
+++ gcc-4.1.2-arm/gcc/stor-layout.c Thu Dec 13 07:34:40 2007
|
||||
@@ -526,7 +526,15 @@
|
||||
#ifdef STRUCTURE_SIZE_BOUNDARY
|
||||
/* Packed structures don't need to have minimum size. */
|
||||
if (! TYPE_PACKED (t))
|
||||
- rli->record_align = MAX (rli->record_align, (unsigned) STRUCTURE_SIZE_BOUNDARY);
|
||||
+ {
|
||||
+ unsigned tmp;
|
||||
+
|
||||
+ /* #pragma pack overrides STRUCTURE_SIZE_BOUNDARY. */
|
||||
+ tmp = (unsigned) STRUCTURE_SIZE_BOUNDARY;
|
||||
+ if (maximum_field_alignment != 0)
|
||||
+ tmp = MIN (tmp, maximum_field_alignment);
|
||||
+ rli->record_align = MAX (rli->record_align, tmp);
|
||||
+ }
|
||||
#endif
|
||||
|
||||
rli->offset = size_zero_node;
|
||||
diff -Nbaur gcc-4.1.2/gcc/toplev.c gcc-4.1.2-arm/gcc/toplev.c
|
||||
--- gcc-4.1.2/gcc/toplev.c Thu Aug 3 12:33:49 2006
|
||||
+++ gcc-4.1.2-arm/gcc/toplev.c Thu Dec 13 07:34:40 2007
|
||||
@@ -82,6 +82,7 @@
|
||||
#include "value-prof.h"
|
||||
#include "alloc-pool.h"
|
||||
#include "tree-mudflap.h"
|
||||
+#include "prefix.h"
|
||||
|
||||
#if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO)
|
||||
#include "dwarf2out.h"
|
||||
@@ -1434,6 +1435,10 @@
|
||||
progname = p;
|
||||
|
||||
xmalloc_set_program_name (progname);
|
||||
+
|
||||
+ p = getenv("GCC_EXEC_PREFIX");
|
||||
+ if (p && strlen(p)) set_std_prefix (p, strlen(p));
|
||||
+
|
||||
|
||||
hex_init ();
|
||||
|
||||
diff -Nbaur gcc-4.1.2/gcc/version.c gcc-4.1.2-arm/gcc/version.c
|
||||
--- gcc-4.1.2/gcc/version.c Wed Mar 16 06:04:10 2005
|
||||
+++ gcc-4.1.2-arm/gcc/version.c Thu Dec 13 07:34:40 2007
|
||||
@@ -8,7 +8,7 @@
|
||||
in parentheses. You may also wish to include a number indicating
|
||||
the revision of your modified compiler. */
|
||||
|
||||
-#define VERSUFFIX ""
|
||||
+#define VERSUFFIX " (devkitARM release 21)"
|
||||
|
||||
/* This is the location of the online document giving instructions for
|
||||
reporting bugs. If you distribute a modified version of GCC,
|
||||
@@ -17,7 +17,7 @@
|
||||
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>";
|
||||
|
||||
/* The complete version string, assembled from several pieces.
|
||||
BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */
|
||||
diff -Nbaur gcc-4.1.2/libiberty/pex-win32.c gcc-4.1.2-arm/libiberty/pex-win32.c
|
||||
--- gcc-4.1.2/libiberty/pex-win32.c Mon Aug 28 01:00:30 2006
|
||||
+++ gcc-4.1.2-arm/libiberty/pex-win32.c Thu Dec 13 07:34:40 2007
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <errno.h>
|
||||
|
||||
/* mingw32 headers may not define the following. */
|
||||
|
||||
@@ -72,115 +73,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
-/* This is a kludge to get around the Microsoft C spawn functions' propensity
|
||||
- to remove the outermost set of double quotes from all arguments. */
|
||||
-
|
||||
-static const char * const *
|
||||
-fix_argv (char * const *argvec)
|
||||
-{
|
||||
- char **argv;
|
||||
- int i;
|
||||
- char *command0;
|
||||
-
|
||||
- /* See whether we need to change anything. */
|
||||
- for (command0 = argvec[0]; *command0 != '\0'; command0++)
|
||||
- if (*command0 == '/')
|
||||
- break;
|
||||
- if (*command0 == '\0')
|
||||
- {
|
||||
- for (i = 1; argvec[i] != NULL; i++)
|
||||
- if (strpbrk (argvec[i], "\" \t") != NULL)
|
||||
- break;
|
||||
-
|
||||
- if (argvec[i] == NULL)
|
||||
- return (const char * const *) argvec;
|
||||
- }
|
||||
-
|
||||
- for (i = 0; argvec[i] != NULL; i++)
|
||||
- ;
|
||||
- argv = XNEWVEC (char *, i + 2);
|
||||
-
|
||||
- argv++; /* Leave space at the beginning of argv
|
||||
- for potential #! handling */
|
||||
-
|
||||
- for (i = 0; argvec[i] != NULL; i++)
|
||||
- argv[i] = xstrdup (argvec[i]);
|
||||
- argv[i] = NULL;
|
||||
-
|
||||
- backslashify (argv[0]);
|
||||
-
|
||||
- for (i = 1; argv[i] != 0; i++)
|
||||
- {
|
||||
- int len, j;
|
||||
- char *temp, *newtemp;
|
||||
-
|
||||
- temp = argv[i];
|
||||
- len = strlen (temp);
|
||||
- for (j = 0; j < len; j++)
|
||||
- {
|
||||
- if (temp[j] == '"')
|
||||
- {
|
||||
- newtemp = XNEWVEC (char, len + 2);
|
||||
- strncpy (newtemp, temp, j);
|
||||
- newtemp [j] = '\\';
|
||||
- strncpy (&newtemp [j+1], &temp [j], len-j);
|
||||
- newtemp [len+1] = 0;
|
||||
- temp = newtemp;
|
||||
- len++;
|
||||
- j++;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- if (argv[i] != temp)
|
||||
- {
|
||||
- free (argv[i]);
|
||||
- argv[i] = temp;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- for (i = 0; argv[i] != 0; i++)
|
||||
- {
|
||||
- if (strpbrk (argv[i], " \t"))
|
||||
- {
|
||||
- int len, trailing_backslash;
|
||||
- char *temp;
|
||||
-
|
||||
- len = strlen (argv[i]);
|
||||
- trailing_backslash = 0;
|
||||
-
|
||||
- /* There is an added complication when an arg with embedded white
|
||||
- space ends in a backslash (such as in the case of -iprefix arg
|
||||
- passed to cpp). The resulting quoted strings gets misinterpreted
|
||||
- by the command interpreter -- it thinks that the ending quote
|
||||
- is escaped by the trailing backslash and things get confused.
|
||||
- We handle this case by escaping the trailing backslash, provided
|
||||
- it was not escaped in the first place. */
|
||||
- if (len > 1
|
||||
- && argv[i][len-1] == '\\'
|
||||
- && argv[i][len-2] != '\\')
|
||||
- {
|
||||
- trailing_backslash = 1;
|
||||
- ++len; /* to escape the final backslash. */
|
||||
- }
|
||||
-
|
||||
- len += 2; /* and for the enclosing quotes. */
|
||||
-
|
||||
- temp = XNEWVEC (char, len + 1);
|
||||
- temp[0] = '"';
|
||||
- strcpy (temp + 1, argv[i]);
|
||||
- if (trailing_backslash)
|
||||
- temp[len - 2] = '\\';
|
||||
- temp[len - 1] = '"';
|
||||
- temp[len] = '\0';
|
||||
-
|
||||
- free (argv[i]);
|
||||
- argv[i] = temp;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- return (const char * const *) argv;
|
||||
-}
|
||||
-
|
||||
static int pex_win32_open_read (struct pex_obj *, const char *, int);
|
||||
static int pex_win32_open_write (struct pex_obj *, const char *, int);
|
||||
static long pex_win32_exec_child (struct pex_obj *, int, const char *,
|
||||
@@ -422,8 +314,225 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+/* Return a Windows command-line from ARGV. It is the caller's
|
||||
+ responsibility to free the string returned. */
|
||||
+
|
||||
+static char *
|
||||
+argv_to_cmdline (char *const *argv)
|
||||
+{
|
||||
+ char *cmdline;
|
||||
+ char *p;
|
||||
+ size_t cmdline_len;
|
||||
+ int i, j, k;
|
||||
+
|
||||
+ cmdline_len = 0;
|
||||
+ for (i = 0; argv[i]; i++)
|
||||
+ {
|
||||
+ /* We quote every last argument. This simplifies the problem;
|
||||
+ we need only escape embedded double-quotes and immediately
|
||||
+ preceeding backslash characters. A sequence of backslach characters
|
||||
+ that is not follwed by a double quote character will not be
|
||||
+ escaped. */
|
||||
+ for (j = 0; argv[i][j]; j++)
|
||||
+ {
|
||||
+ if (argv[i][j] == '"')
|
||||
+ {
|
||||
+ /* Escape preceeding backslashes. */
|
||||
+ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--)
|
||||
+ cmdline_len++;
|
||||
+ /* Escape the qote character. */
|
||||
+ cmdline_len++;
|
||||
+ }
|
||||
+ }
|
||||
+ /* Trailing backslashes also need to be escaped because they will be
|
||||
+ followed by the terminating quote. */
|
||||
+ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--)
|
||||
+ cmdline_len++;
|
||||
+ cmdline_len += j;
|
||||
+ cmdline_len += 3; /* for leading and trailing quotes and space */
|
||||
+ }
|
||||
+ cmdline = xmalloc (cmdline_len);
|
||||
+ p = cmdline;
|
||||
+ for (i = 0; argv[i]; i++)
|
||||
+ {
|
||||
+ *p++ = '"';
|
||||
+ for (j = 0; argv[i][j]; j++)
|
||||
+ {
|
||||
+ if (argv[i][j] == '"')
|
||||
+ {
|
||||
+ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--)
|
||||
+ *p++ = '\\';
|
||||
+ *p++ = '\\';
|
||||
+ }
|
||||
+ *p++ = argv[i][j];
|
||||
+ }
|
||||
+ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--)
|
||||
+ *p++ = '\\';
|
||||
+ *p++ = '"';
|
||||
+ *p++ = ' ';
|
||||
+ }
|
||||
+ p[-1] = '\0';
|
||||
+ return cmdline;
|
||||
+}
|
||||
+
|
||||
+static const char *const
|
||||
+std_suffixes[] = {
|
||||
+ ".com",
|
||||
+ ".exe",
|
||||
+ ".bat",
|
||||
+ ".cmd",
|
||||
+ 0
|
||||
+};
|
||||
+static const char *const
|
||||
+no_suffixes[] = {
|
||||
+ "",
|
||||
+ 0
|
||||
+};
|
||||
+
|
||||
+/* Returns the full path to PROGRAM. If SEARCH is true, look for
|
||||
+ PROGRAM in each directory in PATH. */
|
||||
+
|
||||
+static char *
|
||||
+find_executable (const char *program, BOOL search)
|
||||
+{
|
||||
+ char *full_executable;
|
||||
+ char *e;
|
||||
+ size_t fe_len;
|
||||
+ const char *path = 0;
|
||||
+ const char *const *ext;
|
||||
+ const char *p, *q;
|
||||
+ size_t proglen = strlen (program);
|
||||
+ int has_extension = !!strchr (program, '.');
|
||||
+ int has_slash = (strchr (program, '/') || strchr (program, '\\'));
|
||||
+ HANDLE h;
|
||||
+
|
||||
+ if (has_slash)
|
||||
+ search = FALSE;
|
||||
+
|
||||
+ if (search)
|
||||
+ path = getenv ("PATH");
|
||||
+ if (!path)
|
||||
+ path = "";
|
||||
+
|
||||
+ fe_len = 0;
|
||||
+ for (p = path; *p; p = q)
|
||||
+ {
|
||||
+ q = p;
|
||||
+ while (*q != ';' && *q != '\0')
|
||||
+ q++;
|
||||
+ if ((size_t)(q - p) > fe_len)
|
||||
+ fe_len = q - p;
|
||||
+ if (*q == ';')
|
||||
+ q++;
|
||||
+ }
|
||||
+ fe_len = fe_len + 1 + proglen + (has_extension ? 1 : 5);
|
||||
+ full_executable = xmalloc (fe_len);
|
||||
+
|
||||
+ p = path;
|
||||
+ do
|
||||
+ {
|
||||
+ q = p;
|
||||
+ while (*q != ';' && *q != '\0')
|
||||
+ q++;
|
||||
+
|
||||
+ e = full_executable;
|
||||
+ memcpy (e, p, q - p);
|
||||
+ e += (q - p);
|
||||
+ if (q - p)
|
||||
+ *e++ = '\\';
|
||||
+ strcpy (e, program);
|
||||
+
|
||||
+ if (*q == ';')
|
||||
+ q++;
|
||||
+
|
||||
+ for (e = full_executable; *e; e++)
|
||||
+ if (*e == '/')
|
||||
+ *e = '\\';
|
||||
+
|
||||
+ /* At this point, e points to the terminating NUL character for
|
||||
+ full_executable. */
|
||||
+ for (ext = has_extension ? no_suffixes : std_suffixes; *ext; ext++)
|
||||
+ {
|
||||
+ /* Remove any current extension. */
|
||||
+ *e = '\0';
|
||||
+ /* Add the new one. */
|
||||
+ strcat (full_executable, *ext);
|
||||
+
|
||||
+ /* Attempt to open this file. */
|
||||
+ h = CreateFile (full_executable, GENERIC_READ,
|
||||
+ FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||
+ 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
+ if (h != INVALID_HANDLE_VALUE)
|
||||
+ goto found;
|
||||
+ }
|
||||
+ p = q;
|
||||
+ }
|
||||
+ while (*p);
|
||||
+ free (full_executable);
|
||||
+ return 0;
|
||||
+
|
||||
+ found:
|
||||
+ CloseHandle (h);
|
||||
+ return full_executable;
|
||||
+}
|
||||
+
|
||||
+/* Low-level process creation function. */
|
||||
+
|
||||
+static long
|
||||
+win32_spawn (const char *executable,
|
||||
+ BOOL search,
|
||||
+ char *const *argv,
|
||||
+ DWORD dwCreationFlags,
|
||||
+ LPSTARTUPINFO si,
|
||||
+ LPPROCESS_INFORMATION pi)
|
||||
+{
|
||||
+ char *full_executable;
|
||||
+ char *cmdline;
|
||||
+
|
||||
+ full_executable = NULL;
|
||||
+ cmdline = NULL;
|
||||
+
|
||||
+ full_executable = find_executable (executable, search);
|
||||
+ if (!full_executable)
|
||||
+ goto error;
|
||||
+ cmdline = argv_to_cmdline (argv);
|
||||
+ if (!cmdline)
|
||||
+ goto error;
|
||||
+
|
||||
+ /* Create the child process. */
|
||||
+ if (!CreateProcess (full_executable, cmdline,
|
||||
+ /*lpProcessAttributes=*/NULL,
|
||||
+ /*lpThreadAttributes=*/NULL,
|
||||
+ /*bInheritHandles=*/TRUE,
|
||||
+ dwCreationFlags,
|
||||
+ /*lpEnvironment=*/NULL,
|
||||
+ /*lpCurrentDirectory=*/NULL,
|
||||
+ si,
|
||||
+ pi))
|
||||
+ {
|
||||
+ free (full_executable);
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ /* Clean up. */
|
||||
+ CloseHandle (pi->hThread);
|
||||
+ free (full_executable);
|
||||
+
|
||||
+ return (long) pi->hProcess;
|
||||
+
|
||||
+ error:
|
||||
+ if (cmdline)
|
||||
+ free (cmdline);
|
||||
+ if (full_executable)
|
||||
+ free (full_executable);
|
||||
+ return -1;
|
||||
+}
|
||||
+
|
||||
static long
|
||||
-spawn_script (const char *executable, const char * const * argv)
|
||||
+spawn_script (const char *executable, char *const *argv,
|
||||
+ DWORD dwCreationFlags,
|
||||
+ LPSTARTUPINFO si,
|
||||
+ LPPROCESS_INFORMATION pi)
|
||||
{
|
||||
int pid = -1;
|
||||
int save_errno = errno;
|
||||
@@ -455,17 +564,21 @@
|
||||
executable = strrchr (executable1, '\\') + 1;
|
||||
if (!executable)
|
||||
executable = executable1;
|
||||
- pid = _spawnvp (_P_NOWAIT, executable, argv);
|
||||
+ pid = win32_spawn (executable, TRUE, argv,
|
||||
+ dwCreationFlags, si, pi);
|
||||
#else
|
||||
if (strchr (executable1, '\\') == NULL)
|
||||
- pid = _spawnvp (_P_NOWAIT, executable1, argv);
|
||||
+ pid = win32_spawn (executable1, TRUE, argv,
|
||||
+ dwCreationFlags, si, pi);
|
||||
else if (executable1[0] != '\\')
|
||||
- pid = _spawnv (_P_NOWAIT, executable1, argv);
|
||||
+ pid = win32_spawn (executable1, FALSE, argv,
|
||||
+ dwCreationFlags, si, pi);
|
||||
else
|
||||
{
|
||||
const char *newex = mingw_rootify (executable1);
|
||||
*avhere = newex;
|
||||
- pid = _spawnv (_P_NOWAIT, newex, argv);
|
||||
+ pid = win32_spawn (newex, FALSE, argv,
|
||||
+ dwCreationFlags, si, pi);
|
||||
if (executable1 != newex)
|
||||
free ((char *) newex);
|
||||
if (pid < 0)
|
||||
@@ -474,7 +587,8 @@
|
||||
if (newex != executable1)
|
||||
{
|
||||
*avhere = newex;
|
||||
- pid = _spawnv (_P_NOWAIT, newex, argv);
|
||||
+ pid = win32_spawn (newex, FALSE, argv,
|
||||
+ dwCreationFlags, si, pi);
|
||||
free ((char *) newex);
|
||||
}
|
||||
}
|
||||
@@ -498,149 +612,95 @@
|
||||
const char **errmsg,
|
||||
int *err)
|
||||
{
|
||||
- int org_in, org_out, org_errdes;
|
||||
long pid;
|
||||
- const char * const * newargv;
|
||||
-
|
||||
- org_in = -1;
|
||||
- org_out = -1;
|
||||
- org_errdes = -1;
|
||||
-
|
||||
- if (in != STDIN_FILE_NO)
|
||||
- {
|
||||
- org_in = _dup (STDIN_FILE_NO);
|
||||
- if (org_in < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_dup2 (in, STDIN_FILE_NO) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup2";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_close (in) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_close";
|
||||
- return -1;
|
||||
- }
|
||||
- }
|
||||
+ HANDLE stdin_handle;
|
||||
+ HANDLE stdout_handle;
|
||||
+ HANDLE stderr_handle;
|
||||
+ DWORD dwCreationFlags;
|
||||
+ OSVERSIONINFO version_info;
|
||||
+ STARTUPINFO si;
|
||||
+ PROCESS_INFORMATION pi;
|
||||
+
|
||||
+ stdin_handle = INVALID_HANDLE_VALUE;
|
||||
+ stdout_handle = INVALID_HANDLE_VALUE;
|
||||
+ stderr_handle = INVALID_HANDLE_VALUE;
|
||||
+
|
||||
+ stdin_handle = (HANDLE) _get_osfhandle (in);
|
||||
+ stdout_handle = (HANDLE) _get_osfhandle (out);
|
||||
+ if (!(flags & PEX_STDERR_TO_STDOUT))
|
||||
+ stderr_handle = (HANDLE) _get_osfhandle (errdes);
|
||||
+ else
|
||||
+ stderr_handle = stdout_handle;
|
||||
|
||||
- if (out != STDOUT_FILE_NO)
|
||||
- {
|
||||
- org_out = _dup (STDOUT_FILE_NO);
|
||||
- if (org_out < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_dup2 (out, STDOUT_FILE_NO) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup2";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_close (out) < 0)
|
||||
+ /* Determine the version of Windows we are running on. */
|
||||
+ version_info.dwOSVersionInfoSize = sizeof (version_info);
|
||||
+ GetVersionEx (&version_info);
|
||||
+ if (version_info.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
|
||||
+ /* On Windows 95/98/ME the CREATE_NO_WINDOW flag is not
|
||||
+ supported, so we cannot avoid creating a console window. */
|
||||
+ dwCreationFlags = 0;
|
||||
+ else
|
||||
{
|
||||
- *err = errno;
|
||||
- *errmsg = "_close";
|
||||
- return -1;
|
||||
- }
|
||||
- }
|
||||
+ HANDLE conout_handle;
|
||||
|
||||
- if (errdes != STDERR_FILE_NO
|
||||
- || (flags & PEX_STDERR_TO_STDOUT) != 0)
|
||||
- {
|
||||
- org_errdes = _dup (STDERR_FILE_NO);
|
||||
- if (org_errdes < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes,
|
||||
- STDERR_FILE_NO) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup2";
|
||||
- return -1;
|
||||
- }
|
||||
- if (errdes != STDERR_FILE_NO)
|
||||
- {
|
||||
- if (_close (errdes) < 0)
|
||||
+ /* Determine whether or not we have an associated console. */
|
||||
+ conout_handle = CreateFile("CONOUT$",
|
||||
+ GENERIC_WRITE,
|
||||
+ FILE_SHARE_WRITE,
|
||||
+ /*lpSecurityAttributes=*/NULL,
|
||||
+ OPEN_EXISTING,
|
||||
+ FILE_ATTRIBUTE_NORMAL,
|
||||
+ /*hTemplateFile=*/NULL);
|
||||
+ if (conout_handle == INVALID_HANDLE_VALUE)
|
||||
+ /* There is no console associated with this process. Since
|
||||
+ the child is a console process, the OS would normally
|
||||
+ create a new console Window for the child. Since we'll be
|
||||
+ redirecting the child's standard streams, we do not need
|
||||
+ the console window. */
|
||||
+ dwCreationFlags = CREATE_NO_WINDOW;
|
||||
+ else
|
||||
{
|
||||
- *err = errno;
|
||||
- *errmsg = "_close";
|
||||
- return -1;
|
||||
- }
|
||||
+ /* There is a console associated with the process, so the OS
|
||||
+ will not create a new console. And, if we use
|
||||
+ CREATE_NO_WINDOW in this situation, the child will have
|
||||
+ no associated console. Therefore, if the child's
|
||||
+ standard streams are connected to the console, the output
|
||||
+ will be discarded. */
|
||||
+ CloseHandle(conout_handle);
|
||||
+ dwCreationFlags = 0;
|
||||
}
|
||||
}
|
||||
|
||||
- newargv = fix_argv (argv);
|
||||
- pid = (((flags & PEX_SEARCH) != 0 ? _spawnvp : _spawnv)
|
||||
- (_P_NOWAIT, executable, newargv));
|
||||
-
|
||||
+ /* Since the child will be a console process, it will, by default,
|
||||
+ connect standard input/output to its console. However, we want
|
||||
+ the child to use the handles specifically designated above. In
|
||||
+ addition, if there is no console (such as when we are running in
|
||||
+ a Cygwin X window), then we must redirect the child's
|
||||
+ input/output, as there is no console for the child to use. */
|
||||
+ memset (&si, 0, sizeof (si));
|
||||
+ si.cb = sizeof (si);
|
||||
+ si.dwFlags = STARTF_USESTDHANDLES;
|
||||
+ si.hStdInput = stdin_handle;
|
||||
+ si.hStdOutput = stdout_handle;
|
||||
+ si.hStdError = stderr_handle;
|
||||
+
|
||||
+ /* Create the child process. */
|
||||
+ pid = win32_spawn (executable, (flags & PEX_SEARCH) != 0,
|
||||
+ argv, dwCreationFlags, &si, &pi);
|
||||
if (pid == -1)
|
||||
- pid = spawn_script (executable, newargv);
|
||||
-
|
||||
+ pid = spawn_script (executable, argv, dwCreationFlags, &si, &pi);
|
||||
if (pid == -1)
|
||||
{
|
||||
- *err = errno;
|
||||
- *errmsg = ((flags & PEX_SEARCH) != 0) ? "_spawnvp" : "_spawnv";
|
||||
- }
|
||||
-
|
||||
- if (in != STDIN_FILE_NO)
|
||||
- {
|
||||
- if (_dup2 (org_in, STDIN_FILE_NO) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup2";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_close (org_in) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_close";
|
||||
- return -1;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- if (out != STDOUT_FILE_NO)
|
||||
- {
|
||||
- if (_dup2 (org_out, STDOUT_FILE_NO) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup2";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_close (org_out) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_close";
|
||||
- return -1;
|
||||
- }
|
||||
+ *err = ENOENT;
|
||||
+ *errmsg = "CreateProcess";
|
||||
}
|
||||
|
||||
- if (errdes != STDERR_FILE_NO
|
||||
- || (flags & PEX_STDERR_TO_STDOUT) != 0)
|
||||
- {
|
||||
- if (_dup2 (org_errdes, STDERR_FILE_NO) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_dup2";
|
||||
- return -1;
|
||||
- }
|
||||
- if (_close (org_errdes) < 0)
|
||||
- {
|
||||
- *err = errno;
|
||||
- *errmsg = "_close";
|
||||
- return -1;
|
||||
- }
|
||||
- }
|
||||
+ /* Close the standard output and standard error handles in the
|
||||
+ parent. */
|
||||
+ if (out != STDOUT_FILENO)
|
||||
+ obj->funcs->close (obj, out);
|
||||
+ if (errdes != STDERR_FILENO)
|
||||
+ obj->funcs->close (obj, errdes);
|
||||
|
||||
return pid;
|
||||
}
|
||||
@@ -658,30 +718,34 @@
|
||||
int *status, struct pex_time *time, int done ATTRIBUTE_UNUSED,
|
||||
const char **errmsg, int *err)
|
||||
{
|
||||
- int termstat;
|
||||
+ DWORD termstat;
|
||||
+ HANDLE h;
|
||||
|
||||
if (time != NULL)
|
||||
memset (time, 0, sizeof *time);
|
||||
|
||||
+ h = (HANDLE) pid;
|
||||
+
|
||||
/* FIXME: If done is non-zero, we should probably try to kill the
|
||||
process. */
|
||||
-
|
||||
- if (_cwait (&termstat, pid, WAIT_CHILD) < 0)
|
||||
+ if (WaitForSingleObject (h, INFINITE) != WAIT_OBJECT_0)
|
||||
{
|
||||
- *err = errno;
|
||||
- *errmsg = "_cwait";
|
||||
+ CloseHandle (h);
|
||||
+ *err = ECHILD;
|
||||
+ *errmsg = "WaitForSingleObject";
|
||||
return -1;
|
||||
}
|
||||
|
||||
- /* cwait returns the child process exit code in termstat. A value
|
||||
- of 3 indicates that the child caught a signal, but not which one.
|
||||
- Since only SIGABRT, SIGFPE and SIGINT do anything, we report
|
||||
- SIGABRT. */
|
||||
+ GetExitCodeProcess (h, &termstat);
|
||||
+ CloseHandle (h);
|
||||
|
||||
+ /* A value of 3 indicates that the child caught a signal, but not
|
||||
+ which one. Since only SIGABRT, SIGFPE and SIGINT do anything, we
|
||||
+ report SIGABRT. */
|
||||
if (termstat == 3)
|
||||
*status = SIGABRT;
|
||||
else
|
||||
- *status = ((termstat & 0xff) << 8);
|
||||
+ *status = (termstat & 0xff) << 8;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1,234 +0,0 @@
|
||||
diff -Nbaur gcc-4.2.3/gcc/c-incpath.c gcc-4.2.3-arm/gcc/c-incpath.c
|
||||
--- gcc-4.2.3/gcc/c-incpath.c Sat Sep 1 16:28:30 2007
|
||||
+++ gcc-4.2.3-arm/gcc/c-incpath.c Sun Feb 10 05:49:01 2008
|
||||
@@ -340,13 +340,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 = XNEW (cpp_dir);
|
||||
diff -Nbaur gcc-4.2.3/gcc/config/arm/t-arm-elf gcc-4.2.3-arm/gcc/config/arm/t-arm-elf
|
||||
--- gcc-4.2.3/gcc/config/arm/t-arm-elf Mon Nov 6 12:13:53 2006
|
||||
+++ gcc-4.2.3-arm/gcc/config/arm/t-arm-elf Sun Feb 10 05:49:01 2008
|
||||
@@ -15,9 +15,9 @@
|
||||
# MULTILIB_DIRNAMES += ep9312
|
||||
# MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
|
||||
#
|
||||
-# MULTILIB_OPTIONS += mlittle-endian/mbig-endian
|
||||
-# MULTILIB_DIRNAMES += le be
|
||||
-# MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
|
||||
+MULTILIB_OPTIONS += mlittle-endian/mbig-endian
|
||||
+MULTILIB_DIRNAMES += le be
|
||||
+MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
|
||||
#
|
||||
# MULTILIB_OPTIONS += mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES += fpu soft
|
||||
diff -Nbaur gcc-4.2.3/gcc/config/arm/unknown-elf.h gcc-4.2.3-arm/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-4.2.3/gcc/config/arm/unknown-elf.h Sat Sep 1 16:28:30 2007
|
||||
+++ gcc-4.2.3-arm/gcc/config/arm/unknown-elf.h Sun Feb 10 05:50:56 2008
|
||||
@@ -93,4 +93,4 @@
|
||||
udivmoddi4, which will depend on the exception unwind routines,
|
||||
which will depend on abort, which is defined in libc. */
|
||||
#undef LINK_GCC_C_SEQUENCE_SPEC
|
||||
-#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group"
|
||||
+#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group"
|
||||
diff -Nbaur gcc-4.2.3/gcc/gcc.c gcc-4.2.3-arm/gcc/gcc.c
|
||||
--- gcc-4.2.3/gcc/gcc.c Sat Sep 1 16:28:30 2007
|
||||
+++ gcc-4.2.3-arm/gcc/gcc.c Sun Feb 10 05:55:21 2008
|
||||
@@ -621,6 +621,11 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#ifndef LIBGLOSS_SPEC
|
||||
+# define LIBGLOSS_SPEC "-lsysbase"
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
/* config.h can define STARTFILE_SPEC to override the default crt0 files. */
|
||||
#ifndef STARTFILE_SPEC
|
||||
#define STARTFILE_SPEC \
|
||||
@@ -742,6 +747,7 @@
|
||||
static const char *mflib_spec = MFLIB_SPEC;
|
||||
static const char *link_gomp_spec = "";
|
||||
static const char *libgcc_spec = LIBGCC_SPEC;
|
||||
+static const char *libgloss_spec = LIBGLOSS_SPEC;
|
||||
static const char *endfile_spec = ENDFILE_SPEC;
|
||||
static const char *startfile_spec = STARTFILE_SPEC;
|
||||
static const char *switches_need_spaces = SWITCHES_NEED_SPACES;
|
||||
@@ -1548,6 +1554,7 @@
|
||||
INIT_STATIC_SPEC ("mflib", &mflib_spec),
|
||||
INIT_STATIC_SPEC ("link_gomp", &link_gomp_spec),
|
||||
INIT_STATIC_SPEC ("libgcc", &libgcc_spec),
|
||||
+ INIT_STATIC_SPEC ("libgloss", &libgloss_spec),
|
||||
INIT_STATIC_SPEC ("startfile", &startfile_spec),
|
||||
INIT_STATIC_SPEC ("switches_need_spaces", &switches_need_spaces),
|
||||
INIT_STATIC_SPEC ("cross_compile", &cross_compile),
|
||||
@@ -3369,8 +3376,6 @@
|
||||
gcc_libexec_prefix = make_relative_prefix (argv[0],
|
||||
standard_bindir_prefix,
|
||||
standard_libexec_prefix);
|
||||
- if (gcc_exec_prefix)
|
||||
- putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6213,10 +6218,21 @@
|
||||
|
||||
/* We need to check standard_exec_prefix/just_machine_suffix/specs
|
||||
for any override of as, ld and libraries. */
|
||||
+ if ( gcc_exec_prefix )
|
||||
+ {
|
||||
+ specs_file = alloca (strlen (gcc_exec_prefix)
|
||||
+ + strlen (just_machine_suffix) + sizeof ("specs"));
|
||||
+
|
||||
+ strcpy (specs_file, gcc_exec_prefix);
|
||||
+ } else {
|
||||
+
|
||||
specs_file = alloca (strlen (standard_exec_prefix)
|
||||
+ strlen (just_machine_suffix) + sizeof ("specs"));
|
||||
|
||||
strcpy (specs_file, standard_exec_prefix);
|
||||
+
|
||||
+ }
|
||||
+
|
||||
strcat (specs_file, just_machine_suffix);
|
||||
strcat (specs_file, "specs");
|
||||
if (access (specs_file, R_OK) == 0)
|
||||
diff -Nbaur gcc-4.2.3/gcc/prefix.c gcc-4.2.3-arm/gcc/prefix.c
|
||||
--- gcc-4.2.3/gcc/prefix.c Sat Sep 1 16:28:30 2007
|
||||
+++ gcc-4.2.3-arm/gcc/prefix.c Sun Feb 10 05:49:01 2008
|
||||
@@ -245,13 +245,16 @@
|
||||
The returned string is always malloc-ed, and the caller is
|
||||
responsible for freeing it. */
|
||||
|
||||
+
|
||||
+static const char *old_prefix = PREFIX;
|
||||
+
|
||||
char *
|
||||
update_path (const char *path, const char *key)
|
||||
{
|
||||
char *result, *p;
|
||||
- const int len = strlen (std_prefix);
|
||||
+ const int len = strlen (old_prefix);
|
||||
|
||||
- if (! strncmp (path, std_prefix, len)
|
||||
+ if (! strncmp (path, old_prefix, len)
|
||||
&& (IS_DIR_SEPARATOR(path[len])
|
||||
|| path[len] == '\0')
|
||||
&& key != 0)
|
||||
@@ -353,4 +356,6 @@
|
||||
set_std_prefix (const char *prefix, int len)
|
||||
{
|
||||
std_prefix = save_string (prefix, len);
|
||||
+
|
||||
+ putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL));
|
||||
}
|
||||
diff -Nbaur gcc-4.2.3/gcc/stor-layout.c gcc-4.2.3-arm/gcc/stor-layout.c
|
||||
--- gcc-4.2.3/gcc/stor-layout.c Sat Sep 1 16:28:30 2007
|
||||
+++ gcc-4.2.3-arm/gcc/stor-layout.c Sun Feb 10 05:49:02 2008
|
||||
@@ -530,7 +530,15 @@
|
||||
#ifdef STRUCTURE_SIZE_BOUNDARY
|
||||
/* Packed structures don't need to have minimum size. */
|
||||
if (! TYPE_PACKED (t))
|
||||
- rli->record_align = MAX (rli->record_align, (unsigned) STRUCTURE_SIZE_BOUNDARY);
|
||||
+ {
|
||||
+ unsigned tmp;
|
||||
+
|
||||
+ /* #pragma pack overrides STRUCTURE_SIZE_BOUNDARY. */
|
||||
+ tmp = (unsigned) STRUCTURE_SIZE_BOUNDARY;
|
||||
+ if (maximum_field_alignment != 0)
|
||||
+ tmp = MIN (tmp, maximum_field_alignment);
|
||||
+ rli->record_align = MAX (rli->record_align, tmp);
|
||||
+ }
|
||||
#endif
|
||||
|
||||
rli->offset = size_zero_node;
|
||||
diff -Nbaur gcc-4.2.3/gcc/toplev.c gcc-4.2.3-arm/gcc/toplev.c
|
||||
--- gcc-4.2.3/gcc/toplev.c Sat Sep 1 16:28:30 2007
|
||||
+++ gcc-4.2.3-arm/gcc/toplev.c Sun Feb 10 05:49:02 2008
|
||||
@@ -81,6 +81,7 @@
|
||||
#include "value-prof.h"
|
||||
#include "alloc-pool.h"
|
||||
#include "tree-mudflap.h"
|
||||
+#include "prefix.h"
|
||||
|
||||
#if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO)
|
||||
#include "dwarf2out.h"
|
||||
@@ -1478,6 +1479,10 @@
|
||||
progname = p;
|
||||
|
||||
xmalloc_set_program_name (progname);
|
||||
+
|
||||
+ p = getenv("GCC_EXEC_PREFIX");
|
||||
+ if (p && strlen(p)) set_std_prefix (p, strlen(p));
|
||||
+
|
||||
|
||||
hex_init ();
|
||||
|
||||
diff -Nbaur gcc-4.2.3/gcc/version.c gcc-4.2.3-arm/gcc/version.c
|
||||
--- gcc-4.2.3/gcc/version.c Wed Mar 16 06:04:10 2005
|
||||
+++ gcc-4.2.3-arm/gcc/version.c Sun Feb 10 05:49:02 2008
|
||||
@@ -8,7 +8,7 @@
|
||||
in parentheses. You may also wish to include a number indicating
|
||||
the revision of your modified compiler. */
|
||||
|
||||
-#define VERSUFFIX ""
|
||||
+#define VERSUFFIX " (devkitARM release 22)"
|
||||
|
||||
/* This is the location of the online document giving instructions for
|
||||
reporting bugs. If you distribute a modified version of GCC,
|
||||
@@ -17,7 +17,7 @@
|
||||
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>";
|
||||
|
||||
/* The complete version string, assembled from several pieces.
|
||||
BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */
|
||||
diff -Nbaur gcc-4.2.3/libcpp/files.c gcc-4.2.3-arm/libcpp/files.c
|
||||
--- gcc-4.2.3/libcpp/files.c Sat Feb 18 09:25:31 2006
|
||||
+++ gcc-4.2.3-arm/libcpp/files.c Sun Feb 10 05:49:02 2008
|
||||
@@ -226,6 +226,22 @@
|
||||
close (file->fd);
|
||||
file->fd = -1;
|
||||
}
|
||||
+#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
+ else if (errno == EACCES)
|
||||
+ {
|
||||
+ /* On most UNIX systems, open succeeds on a directory. Above,
|
||||
+ we check if we have opened a directory and if so, set errno
|
||||
+ to ENOENT. However, on Windows, opening a directory
|
||||
+ fails with EACCESS. We want to return ENOENT in that
|
||||
+ case too. */
|
||||
+ if (stat (file->path, &file->st) == 0
|
||||
+ && S_ISDIR (file->st.st_mode))
|
||||
+ errno = ENOENT;
|
||||
+ else
|
||||
+ /* The call to stat may have reset errno. */
|
||||
+ errno = EACCES;
|
||||
+ }
|
||||
+#endif
|
||||
else if (errno == ENOTDIR)
|
||||
errno = ENOENT;
|
||||
|
||||
138
dkarm-eabi/patches/gcc-4.3.0.patch
Normal file
138
dkarm-eabi/patches/gcc-4.3.0.patch
Normal file
@@ -0,0 +1,138 @@
|
||||
diff -Nbaur gcc-4.3.0/gcc/config/arm/t-arm-elf gcc-4.3.0-arm/gcc/config/arm/t-arm-elf
|
||||
--- gcc-4.3.0/gcc/config/arm/t-arm-elf Wed Jan 3 23:48:10 2007
|
||||
+++ gcc-4.3.0-arm/gcc/config/arm/t-arm-elf Mon Mar 24 19:58:16 2008
|
||||
@@ -25,9 +25,9 @@
|
||||
# MULTILIB_DIRNAMES += ep9312
|
||||
# MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312*
|
||||
#
|
||||
-# MULTILIB_OPTIONS += mlittle-endian/mbig-endian
|
||||
-# MULTILIB_DIRNAMES += le be
|
||||
-# MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
|
||||
+MULTILIB_OPTIONS += mlittle-endian/mbig-endian
|
||||
+MULTILIB_DIRNAMES += le be
|
||||
+MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle
|
||||
#
|
||||
# MULTILIB_OPTIONS += mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES += fpu soft
|
||||
diff -Nbaur gcc-4.3.0/gcc/config/arm/unknown-elf.h gcc-4.3.0-arm/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-4.3.0/gcc/config/arm/unknown-elf.h Thu Aug 2 11:49:31 2007
|
||||
+++ gcc-4.3.0-arm/gcc/config/arm/unknown-elf.h Mon Mar 24 19:58:16 2008
|
||||
@@ -93,4 +93,4 @@
|
||||
udivmoddi4, which will depend on the exception unwind routines,
|
||||
which will depend on abort, which is defined in libc. */
|
||||
#undef LINK_GCC_C_SEQUENCE_SPEC
|
||||
-#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group"
|
||||
+#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group"
|
||||
diff -Nbaur gcc-4.3.0/gcc/gcc.c gcc-4.3.0-arm/gcc/gcc.c
|
||||
--- gcc-4.3.0/gcc/gcc.c Sun Mar 2 22:55:19 2008
|
||||
+++ gcc-4.3.0-arm/gcc/gcc.c Mon Mar 24 20:04:13 2008
|
||||
@@ -635,6 +635,11 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+#ifndef LIBGLOSS_SPEC
|
||||
+# define LIBGLOSS_SPEC "-lsysbase"
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
/* config.h can define STARTFILE_SPEC to override the default crt0 files. */
|
||||
#ifndef STARTFILE_SPEC
|
||||
#define STARTFILE_SPEC \
|
||||
@@ -762,6 +767,7 @@
|
||||
static const char *mflib_spec = MFLIB_SPEC;
|
||||
static const char *link_gomp_spec = "";
|
||||
static const char *libgcc_spec = LIBGCC_SPEC;
|
||||
+static const char *libgloss_spec = LIBGLOSS_SPEC;
|
||||
static const char *endfile_spec = ENDFILE_SPEC;
|
||||
static const char *startfile_spec = STARTFILE_SPEC;
|
||||
static const char *switches_need_spaces = SWITCHES_NEED_SPACES;
|
||||
@@ -1586,6 +1592,7 @@
|
||||
INIT_STATIC_SPEC ("mflib", &mflib_spec),
|
||||
INIT_STATIC_SPEC ("link_gomp", &link_gomp_spec),
|
||||
INIT_STATIC_SPEC ("libgcc", &libgcc_spec),
|
||||
+ INIT_STATIC_SPEC ("libgloss", &libgloss_spec),
|
||||
INIT_STATIC_SPEC ("startfile", &startfile_spec),
|
||||
INIT_STATIC_SPEC ("switches_need_spaces", &switches_need_spaces),
|
||||
INIT_STATIC_SPEC ("cross_compile", &cross_compile),
|
||||
@@ -3418,8 +3425,6 @@
|
||||
gcc_libexec_prefix = make_relative_prefix (argv[0],
|
||||
standard_bindir_prefix,
|
||||
standard_libexec_prefix);
|
||||
- if (gcc_exec_prefix)
|
||||
- xputenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6264,10 +6269,21 @@
|
||||
|
||||
/* We need to check standard_exec_prefix/just_machine_suffix/specs
|
||||
for any override of as, ld and libraries. */
|
||||
+ if ( gcc_exec_prefix )
|
||||
+ {
|
||||
+ specs_file = alloca (strlen (gcc_exec_prefix)
|
||||
+ + strlen (just_machine_suffix) + sizeof ("specs"));
|
||||
+
|
||||
+ strcpy (specs_file, gcc_exec_prefix);
|
||||
+ } else {
|
||||
+
|
||||
specs_file = alloca (strlen (standard_exec_prefix)
|
||||
+ strlen (just_machine_suffix) + sizeof ("specs"));
|
||||
|
||||
strcpy (specs_file, standard_exec_prefix);
|
||||
+
|
||||
+ }
|
||||
+
|
||||
strcat (specs_file, just_machine_suffix);
|
||||
strcat (specs_file, "specs");
|
||||
if (access (specs_file, R_OK) == 0)
|
||||
diff -Nbaur gcc-4.3.0/gcc/prefix.c gcc-4.3.0-arm/gcc/prefix.c
|
||||
--- gcc-4.3.0/gcc/prefix.c Mon Sep 3 18:09:20 2007
|
||||
+++ gcc-4.3.0-arm/gcc/prefix.c Mon Mar 24 19:58:16 2008
|
||||
@@ -245,13 +245,16 @@
|
||||
The returned string is always malloc-ed, and the caller is
|
||||
responsible for freeing it. */
|
||||
|
||||
+
|
||||
+static const char *old_prefix = PREFIX;
|
||||
+
|
||||
char *
|
||||
update_path (const char *path, const char *key)
|
||||
{
|
||||
char *result, *p;
|
||||
- const int len = strlen (std_prefix);
|
||||
+ const int len = strlen (old_prefix);
|
||||
|
||||
- if (! strncmp (path, std_prefix, len)
|
||||
+ if (! strncmp (path, old_prefix, len)
|
||||
&& (IS_DIR_SEPARATOR(path[len])
|
||||
|| path[len] == '\0')
|
||||
&& key != 0)
|
||||
@@ -353,4 +356,6 @@
|
||||
set_std_prefix (const char *prefix, int len)
|
||||
{
|
||||
std_prefix = save_string (prefix, len);
|
||||
+
|
||||
+ putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL));
|
||||
}
|
||||
diff -Nbaur gcc-4.3.0/gcc/toplev.c gcc-4.3.0-arm/gcc/toplev.c
|
||||
--- gcc-4.3.0/gcc/toplev.c Tue Feb 5 16:23:10 2008
|
||||
+++ gcc-4.3.0-arm/gcc/toplev.c Mon Mar 24 20:05:51 2008
|
||||
@@ -82,6 +82,7 @@
|
||||
#include "alloc-pool.h"
|
||||
#include "tree-mudflap.h"
|
||||
#include "tree-pass.h"
|
||||
+#include "prefix.h"
|
||||
|
||||
#if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO)
|
||||
#include "dwarf2out.h"
|
||||
@@ -1622,6 +1623,10 @@
|
||||
progname = p;
|
||||
|
||||
xmalloc_set_program_name (progname);
|
||||
+
|
||||
+ p = getenv("GCC_EXEC_PREFIX");
|
||||
+ if (p && strlen(p)) set_std_prefix (p, strlen(p));
|
||||
+
|
||||
|
||||
hex_init ();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configure
|
||||
diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-arm/libgloss/configure
|
||||
--- newlib-1.15.0/libgloss/configure Mon Dec 18 21:48:18 2006
|
||||
+++ newlib-1.15.0-new/libgloss/configure Fri Feb 16 09:13:44 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/configure Fri Mar 14 20:19:09 2008
|
||||
@@ -272,8 +272,10 @@
|
||||
PACKAGE_BUGREPORT=''
|
||||
|
||||
@@ -31,9 +31,9 @@ diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configur
|
||||
|
||||
|
||||
case "${target}" in
|
||||
diff -Nbaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/configure.in
|
||||
diff -Nbaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-arm/libgloss/configure.in
|
||||
--- newlib-1.15.0/libgloss/configure.in Mon Dec 18 21:48:18 2006
|
||||
+++ newlib-1.15.0-new/libgloss/configure.in Fri Feb 16 09:13:44 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/configure.in Fri Mar 14 20:19:09 2008
|
||||
@@ -2,6 +2,7 @@
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([libgloss],[LIBGLOSS_VERSION])
|
||||
@@ -50,9 +50,9 @@ diff -Nbaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/confi
|
||||
|
||||
case "${target}" in
|
||||
i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libgloss/libsysbase/Makefile.in
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-arm/libgloss/libsysbase/Makefile.in
|
||||
--- newlib-1.15.0/libgloss/libsysbase/Makefile.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/Makefile.in Thu Feb 14 02:11:59 2008
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/Makefile.in Fri Mar 14 20:23:18 2008
|
||||
@@ -0,0 +1,146 @@
|
||||
+# Copyright (c) 1998 Cygnus Support
|
||||
+#
|
||||
@@ -123,7 +123,7 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libg
|
||||
+# object files needed
|
||||
+OBJS = abort.o iosupport.o close.o environ.o execve.o fork.o fstat.o getpid.o gettod.o \
|
||||
+ isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o \
|
||||
+ unlink.o wait.o write.o _exit.o malloc_vars.o \
|
||||
+ times.o unlink.o wait.o write.o _exit.o malloc_vars.o \
|
||||
+ chdir.o mkdir.o dir.o rename.o build_argv.o statvfs.o
|
||||
+
|
||||
+# Object files specific to particular targets.
|
||||
@@ -200,9 +200,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libg
|
||||
+
|
||||
+config.status: configure
|
||||
+ $(SHELL) config.status --recheck
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss/libsysbase/_exit.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-arm/libgloss/libsysbase/_exit.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/_exit.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/_exit.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/_exit.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,14 @@
|
||||
+/* Stub version of _exit. */
|
||||
+
|
||||
@@ -218,9 +218,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss
|
||||
+
|
||||
+ while(1);
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss/libsysbase/abort.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-arm/libgloss/libsysbase/abort.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/abort.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/abort.c Fri Apr 13 02:04:39 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/abort.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,8 @@
|
||||
+#include <stdlib.h>
|
||||
+#include <unistd.h>
|
||||
@@ -230,9 +230,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss
|
||||
+ _exit (1);
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgloss/libsysbase/acconfig.h
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-arm/libgloss/libsysbase/acconfig.h
|
||||
--- newlib-1.15.0/libgloss/libsysbase/acconfig.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/acconfig.h Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/acconfig.h Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,26 @@
|
||||
+/* Name of package. */
|
||||
+#undef PACKAGE
|
||||
@@ -260,9 +260,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgl
|
||||
+
|
||||
+/* symbol prefix */
|
||||
+#undef __SYMBOL_PREFIX
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-arm/libgloss/libsysbase/aclocal.m4
|
||||
--- newlib-1.15.0/libgloss/libsysbase/aclocal.m4 Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4 Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/aclocal.m4 Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,344 @@
|
||||
+# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
|
||||
+
|
||||
@@ -608,9 +608,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgl
|
||||
+])
|
||||
+
|
||||
+m4_include([../acinclude.m4])
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/libgloss/libsysbase/build_argv.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-arm/libgloss/libsysbase/build_argv.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/build_argv.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/build_argv.c Sat Dec 29 12:08:54 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/build_argv.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,31 @@
|
||||
+struct __argv {
|
||||
+ int argvMagic;
|
||||
@@ -643,9 +643,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/lib
|
||||
+ argstruct->argc = argCount;
|
||||
+ argstruct->endARGV = &argv[argCount];
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss/libsysbase/chdir.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-arm/libgloss/libsysbase/chdir.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/chdir.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/chdir.c Mon Aug 27 11:44:56 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/chdir.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,175 @@
|
||||
+#include <unistd.h>
|
||||
+#include <reent.h>
|
||||
@@ -822,9 +822,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss
|
||||
+
|
||||
+ return buf;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss/libsysbase/close.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-arm/libgloss/libsysbase/close.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/close.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/close.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/close.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,38 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -864,9 +864,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss
|
||||
+ }
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libgloss/libsysbase/config.h.in
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-arm/libgloss/libsysbase/config.h.in
|
||||
--- newlib-1.15.0/libgloss/libsysbase/config.h.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/config.h.in Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/config.h.in Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,22 @@
|
||||
+/* config.h.in. Generated automatically from configure.in by autoheader. */
|
||||
+
|
||||
@@ -890,9 +890,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libg
|
||||
+
|
||||
+/* symbol prefix */
|
||||
+#undef __SYMBOL_PREFIX
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libgloss/libsysbase/configure
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-arm/libgloss/libsysbase/configure
|
||||
--- newlib-1.15.0/libgloss/libsysbase/configure Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/configure Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/configure Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,3543 @@
|
||||
+#! /bin/sh
|
||||
+# Guess values for system-dependent variables and create Makefiles.
|
||||
@@ -4437,9 +4437,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libglo
|
||||
+
|
||||
+
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/libgloss/libsysbase/configure.in
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-arm/libgloss/libsysbase/configure.in
|
||||
--- newlib-1.15.0/libgloss/libsysbase/configure.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/configure.in Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/configure.in Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,204 @@
|
||||
+# Copyright (c) 1995, 1996 Cygnus Support
|
||||
+#
|
||||
@@ -4645,9 +4645,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/lib
|
||||
+AC_OUTPUT
|
||||
+
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/libsysbase/dir.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-arm/libgloss/libsysbase/dir.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/dir.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/dir.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/dir.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,94 @@
|
||||
+#include <reent.h>
|
||||
+#include <sys/iosupport.h>
|
||||
@@ -4743,9 +4743,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/l
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libgloss/libsysbase/environ.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-arm/libgloss/libsysbase/environ.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/environ.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/environ.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/environ.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,6 @@
|
||||
+/*
|
||||
+ * Version of environ for no OS.
|
||||
@@ -4753,9 +4753,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libglo
|
||||
+
|
||||
+char *__env[1] = { 0 };
|
||||
+char **environ = __env;
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libgloss/libsysbase/execve.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-arm/libgloss/libsysbase/execve.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/execve.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/execve.c Thu Feb 14 02:11:01 2008
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/execve.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,19 @@
|
||||
+/*
|
||||
+ * Stub version of execve.
|
||||
@@ -4776,9 +4776,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libglos
|
||||
+ return -1;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/libsysbase/fork.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-arm/libgloss/libsysbase/fork.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/fork.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/fork.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/fork.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,19 @@
|
||||
+/*
|
||||
+ * Stub version of fork.
|
||||
@@ -4799,9 +4799,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/
|
||||
+}
|
||||
+
|
||||
+stub_warning(_fork)
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss/libsysbase/fstat.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-arm/libgloss/libsysbase/fstat.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/fstat.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/fstat.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/fstat.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,45 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -4848,9 +4848,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss
|
||||
+ }
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libgloss/libsysbase/getpid.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-arm/libgloss/libsysbase/getpid.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/getpid.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/getpid.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/getpid.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,20 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -4872,9 +4872,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libglos
|
||||
+ return -1;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libgloss/libsysbase/gettod.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-arm/libgloss/libsysbase/gettod.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/gettod.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/gettod.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/gettod.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,25 @@
|
||||
+/*
|
||||
+ * Stub version of gettimeofday.
|
||||
@@ -4901,9 +4901,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libglos
|
||||
+}
|
||||
+
|
||||
+stub_warning(_gettimeofday)
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libgloss/libsysbase/iosupport.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-arm/libgloss/libsysbase/iosupport.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/iosupport.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/iosupport.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/iosupport.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,98 @@
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
@@ -5003,9 +5003,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libg
|
||||
+ }
|
||||
+ return devnum;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libgloss/libsysbase/isatty.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-arm/libgloss/libsysbase/isatty.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/isatty.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/isatty.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/isatty.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,10 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -5017,9 +5017,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libglos
|
||||
+//---------------------------------------------------------------------------------
|
||||
+ return 0;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/libsysbase/kill.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-arm/libgloss/libsysbase/kill.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/kill.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/kill.c Thu Feb 14 02:10:20 2008
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/kill.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,23 @@
|
||||
+/*
|
||||
+ * Stub version of kill.
|
||||
@@ -5044,9 +5044,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/
|
||||
+ ptr->_errno = ENOSYS;
|
||||
+ return -1;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/libsysbase/link.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-arm/libgloss/libsysbase/link.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/link.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/link.c Fri Apr 13 01:57:55 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/link.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,36 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -5084,9 +5084,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss/libsysbase/lseek.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-arm/libgloss/libsysbase/lseek.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/lseek.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/lseek.c Fri Apr 13 02:43:11 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/lseek.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,46 @@
|
||||
+
|
||||
+#include <_ansi.h>
|
||||
@@ -5134,15 +5134,15 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss
|
||||
+ return ret;
|
||||
+
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/malloc_vars.c newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/malloc_vars.c newlib-1.15.0-arm/libgloss/libsysbase/malloc_vars.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/malloc_vars.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/malloc_vars.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,2 @@
|
||||
+char *fake_heap_end = (char*)0;
|
||||
+char *fake_heap_start = (char*)0;
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss/libsysbase/mkdir.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-arm/libgloss/libsysbase/mkdir.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/mkdir.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/mkdir.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/mkdir.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,18 @@
|
||||
+#include <reent.h>
|
||||
+#include <sys/iosupport.h>
|
||||
@@ -5162,9 +5162,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/libsysbase/open.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-arm/libgloss/libsysbase/open.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/open.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/open.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/open.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,58 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -5224,9 +5224,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/
|
||||
+
|
||||
+ return (int)handle;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/libsysbase/read.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-arm/libgloss/libsysbase/read.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/read.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/read.c Fri Apr 13 02:47:07 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/read.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,44 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -5272,9 +5272,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libgloss/libsysbase/rename.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-arm/libgloss/libsysbase/rename.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/rename.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/rename.c Tue Jul 3 01:25:38 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/rename.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,25 @@
|
||||
+#include <reent.h>
|
||||
+#include <sys/iosupport.h>
|
||||
@@ -5301,9 +5301,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libglos
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/libsysbase/sbrk.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-arm/libgloss/libsysbase/sbrk.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/sbrk.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/sbrk.c Fri Apr 13 02:49:25 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/sbrk.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,61 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <sys/types.h>
|
||||
@@ -5366,9 +5366,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/
|
||||
+
|
||||
+ return (caddr_t) prev_heap_start;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/libsysbase/stat.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-arm/libgloss/libsysbase/stat.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/stat.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/stat.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/stat.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,39 @@
|
||||
+#include "config.h"
|
||||
+#include <_ansi.h>
|
||||
@@ -5409,9 +5409,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libgloss/libsysbase/statvfs.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-arm/libgloss/libsysbase/statvfs.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/statvfs.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/statvfs.c Mon Aug 27 11:55:11 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/statvfs.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,23 @@
|
||||
+#include <reent.h>
|
||||
+#include <sys/iosupport.h>
|
||||
@@ -5436,9 +5436,61 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libglo
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libgloss/libsysbase/unlink.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/times.c newlib-1.15.0-arm/libgloss/libsysbase/times.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/times.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/times.c Fri Mar 14 23:20:03 2008
|
||||
@@ -0,0 +1,47 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
+#include <sys/times.h>
|
||||
+#include <errno.h>
|
||||
+
|
||||
+//---------------------------------------------------------------------------------
|
||||
+clock_t _DEFUN (_times, (buf),
|
||||
+ struct tms *buf) {
|
||||
+//---------------------------------------------------------------------------------
|
||||
+ errno = ENOSYS;
|
||||
+ return -1;
|
||||
+}
|
||||
+
|
||||
+#include <reent.h>
|
||||
+#include <time.h>
|
||||
+#include <sys/time.h>
|
||||
+#include <sys/times.h>
|
||||
+#include <_syslist.h>
|
||||
+
|
||||
+time_t *punixTime;
|
||||
+
|
||||
+clock_t
|
||||
+_DEFUN (_times_r, (ptr, ptms),
|
||||
+ struct _reent *ptr _AND
|
||||
+ struct tms *ptms)
|
||||
+{
|
||||
+ return (clock_t)-1;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+int
|
||||
+_DEFUN (_gettimeofday_r, (ptr, ptimeval, ptimezone),
|
||||
+ struct _reent *ptr _AND
|
||||
+ struct timeval *ptimeval _AND
|
||||
+ struct timezone *ptimezone)
|
||||
+{
|
||||
+
|
||||
+ time_t ret = -1;
|
||||
+ if ( ptimeval && punixTime ) {
|
||||
+ ret = 0;
|
||||
+ ptimeval->tv_sec = *punixTime;
|
||||
+ ptimeval->tv_usec = 0;
|
||||
+ }
|
||||
+
|
||||
+ ptr->_errno = ret;
|
||||
+ return ret;
|
||||
+}
|
||||
\ No newline at end of file
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-arm/libgloss/libsysbase/unlink.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/unlink.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/unlink.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/unlink.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,32 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -5472,9 +5524,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libglos
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/libsysbase/wait.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-arm/libgloss/libsysbase/wait.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/wait.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/wait.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/wait.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,19 @@
|
||||
+/*
|
||||
+ * Stub version of wait.
|
||||
@@ -5495,9 +5547,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/
|
||||
+}
|
||||
+
|
||||
+stub_warning(_wait)
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libgloss/libsysbase/warning.h
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-arm/libgloss/libsysbase/warning.h
|
||||
--- newlib-1.15.0/libgloss/libsysbase/warning.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/warning.h Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/warning.h Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,43 @@
|
||||
+#ifndef __WARNING_H__
|
||||
+#define __WARNING_H__
|
||||
@@ -5542,9 +5594,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libglo
|
||||
+ "warning: " #name " is not implemented and will always fail")
|
||||
+
|
||||
+#endif /* __WARNING_H__ */
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss/libsysbase/write.c
|
||||
diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-arm/libgloss/libsysbase/write.c
|
||||
--- newlib-1.15.0/libgloss/libsysbase/write.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/libgloss/libsysbase/write.c Fri Apr 13 02:52:14 2007
|
||||
+++ newlib-1.15.0-arm/libgloss/libsysbase/write.c Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,44 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
@@ -5590,9 +5642,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss
|
||||
+ }
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-new/newlib/libc/include/reent.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-arm/newlib/libc/include/reent.h
|
||||
--- newlib-1.15.0/newlib/libc/include/reent.h Wed Aug 27 17:24:57 2003
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/reent.h Fri Apr 13 02:55:00 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/reent.h Fri Mar 14 20:19:09 2008
|
||||
@@ -77,7 +77,7 @@
|
||||
extern _CLOCK_T_ _times_r _PARAMS ((struct _reent *, struct tms *));
|
||||
extern int _unlink_r _PARAMS ((struct _reent *, const char *));
|
||||
@@ -5602,9 +5654,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-new/newlib/l
|
||||
|
||||
/* This one is not guaranteed to be available on all targets. */
|
||||
extern int _gettimeofday_r _PARAMS ((struct _reent *, struct timeval *tp, struct timezone *tzp));
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/libc/include/stdint.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-arm/newlib/libc/include/stdint.h
|
||||
--- newlib-1.15.0/newlib/libc/include/stdint.h Wed Aug 16 22:39:43 2006
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/stdint.h Tue Jan 8 04:11:30 2008
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/stdint.h Fri Mar 14 20:19:09 2008
|
||||
@@ -79,13 +79,13 @@
|
||||
#endif
|
||||
#endif
|
||||
@@ -5624,9 +5676,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/
|
||||
#define __int32_t_defined 1
|
||||
#elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL
|
||||
typedef signed short int32_t;
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-new/newlib/libc/include/stdio.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-arm/newlib/libc/include/stdio.h
|
||||
--- newlib-1.15.0/newlib/libc/include/stdio.h Tue Sep 26 22:22:19 2006
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/stdio.h Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/stdio.h Fri Mar 14 20:19:09 2008
|
||||
@@ -179,6 +179,7 @@
|
||||
int _EXFUN(printf, (const char *, ...));
|
||||
int _EXFUN(scanf, (const char *, ...));
|
||||
@@ -5643,9 +5695,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-new/newlib/l
|
||||
int _EXFUN(vscanf, (const char *, __VALIST));
|
||||
int _EXFUN(vsiscanf, (const char *, const char *, __VALIST));
|
||||
int _EXFUN(vsscanf, (const char *, const char *, __VALIST));
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib/libc/include/sys/dir.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-arm/newlib/libc/include/sys/dir.h
|
||||
--- newlib-1.15.0/newlib/libc/include/sys/dir.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/sys/dir.h Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/sys/dir.h Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,32 @@
|
||||
+/* <dir.h>
|
||||
+
|
||||
@@ -5679,9 +5731,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib
|
||||
+#endif
|
||||
+
|
||||
+#endif // _dir_h_
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-arm/newlib/libc/include/sys/iosupport.h
|
||||
--- newlib-1.15.0/newlib/libc/include/sys/iosupport.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h Mon Aug 27 11:20:49 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/sys/iosupport.h Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,65 @@
|
||||
+//---------------------------------------------------------------------------------
|
||||
+#ifndef __iosupp_h__
|
||||
@@ -5748,9 +5800,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/
|
||||
+//---------------------------------------------------------------------------------
|
||||
+#endif // __iosupp_h__
|
||||
+//---------------------------------------------------------------------------------
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/reent.h newlib-1.15.0-new/newlib/libc/include/sys/reent.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/reent.h newlib-1.15.0-arm/newlib/libc/include/sys/reent.h
|
||||
--- newlib-1.15.0/newlib/libc/include/sys/reent.h Tue Sep 26 22:22:19 2006
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/sys/reent.h Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/sys/reent.h Fri Mar 14 20:19:09 2008
|
||||
@@ -153,7 +153,7 @@
|
||||
int _r; /* read space left for getc() */
|
||||
int _w; /* write space left for putc() */
|
||||
@@ -5778,9 +5830,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/reent.h newlib-1.15.0-new/newl
|
||||
struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */
|
||||
int _lbfsize; /* 0 or -_bf._size, for inline putc */
|
||||
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-arm/newlib/libc/include/sys/statvfs.h
|
||||
--- newlib-1.15.0/newlib/libc/include/sys/statvfs.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h Fri Oct 26 03:44:59 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/sys/statvfs.h Fri Mar 14 20:19:09 2008
|
||||
@@ -0,0 +1,35 @@
|
||||
+#ifndef _SYS_STATVFS_H
|
||||
+#define _SYS_STATVFS_H
|
||||
@@ -5818,9 +5870,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/ne
|
||||
+
|
||||
+#endif // _SYS_STATVFS_H
|
||||
\ No newline at end of file
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newlib/libc/include/sys/types.h
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-arm/newlib/libc/include/sys/types.h
|
||||
--- newlib-1.15.0/newlib/libc/include/sys/types.h Wed Sep 13 23:09:27 2006
|
||||
+++ newlib-1.15.0-new/newlib/libc/include/sys/types.h Mon Aug 27 11:10:04 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/include/sys/types.h Fri Mar 14 20:19:09 2008
|
||||
@@ -130,7 +130,7 @@
|
||||
defined(__sparc__) || defined(__SPU__)
|
||||
typedef unsigned long ino_t;
|
||||
@@ -5849,9 +5901,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newl
|
||||
|
||||
#include <sys/features.h>
|
||||
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/libc/locale/locale.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-arm/newlib/libc/locale/locale.c
|
||||
--- newlib-1.15.0/newlib/libc/locale/locale.c Fri Apr 23 22:44:21 2004
|
||||
+++ newlib-1.15.0-new/newlib/libc/locale/locale.c Sat Nov 3 18:13:01 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/locale/locale.c Fri Mar 14 20:19:09 2008
|
||||
@@ -95,7 +95,7 @@
|
||||
#ifdef __CYGWIN__
|
||||
int __declspec(dllexport) __mb_cur_max = 1;
|
||||
@@ -5894,9 +5946,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/l
|
||||
}
|
||||
|
||||
if (category == LC_CTYPE)
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/misc/init.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-arm/newlib/libc/misc/init.c
|
||||
--- newlib-1.15.0/newlib/libc/misc/init.c Fri Jan 7 18:04:39 2005
|
||||
+++ newlib-1.15.0-new/newlib/libc/misc/init.c Mon Jul 30 19:49:28 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/misc/init.c Fri Mar 14 20:19:09 2008
|
||||
@@ -57,4 +57,8 @@
|
||||
|
||||
_fini ();
|
||||
@@ -5906,9 +5958,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/
|
||||
+#error why am I not defined
|
||||
+
|
||||
#endif
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-arm/newlib/libc/stdio/vfprintf.c
|
||||
--- newlib-1.15.0/newlib/libc/stdio/vfprintf.c Tue Nov 14 21:29:26 2006
|
||||
+++ newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c Tue Oct 16 07:13:40 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/stdio/vfprintf.c Fri Mar 14 20:19:09 2008
|
||||
@@ -1000,10 +1000,17 @@
|
||||
case 's':
|
||||
case 'S':
|
||||
@@ -5929,9 +5981,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-new/newlib/
|
||||
else if (ch == 'S' || (flags & LONGINT)) {
|
||||
mbstate_t ps;
|
||||
_CONST wchar_t *wcp;
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/Makefile.am newlib-1.15.0-new/newlib/libc/syscalls/Makefile.am
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/Makefile.am newlib-1.15.0-arm/newlib/libc/syscalls/Makefile.am
|
||||
--- newlib-1.15.0/newlib/libc/syscalls/Makefile.am Mon May 1 23:01:07 2006
|
||||
+++ newlib-1.15.0-new/newlib/libc/syscalls/Makefile.am Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/syscalls/Makefile.am Fri Mar 14 20:19:09 2008
|
||||
@@ -21,7 +21,6 @@
|
||||
sysunlink.c \
|
||||
syswrite.c
|
||||
@@ -5940,9 +5992,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/Makefile.am newlib-1.15.0-new/new
|
||||
## Weed out EL/IX level 3 interfaces if necessary
|
||||
if ELIX_LEVEL_1
|
||||
ELIX_SOURCES =
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newlib/libc/syscalls/syslink.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-arm/newlib/libc/syscalls/syslink.c
|
||||
--- newlib-1.15.0/newlib/libc/syscalls/syslink.c Tue Jun 3 20:48:08 2003
|
||||
+++ newlib-1.15.0-new/newlib/libc/syscalls/syslink.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/syscalls/syslink.c Fri Mar 14 20:19:09 2008
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
int
|
||||
@@ -5954,9 +6006,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newli
|
||||
{
|
||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
||||
return _link_r (_REENT, old, new);
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-arm/newlib/libc/syscalls/sysunlink.c
|
||||
--- newlib-1.15.0/newlib/libc/syscalls/sysunlink.c Tue Jun 3 20:48:08 2003
|
||||
+++ newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c Fri Feb 16 09:13:45 2007
|
||||
+++ newlib-1.15.0-arm/newlib/libc/syscalls/sysunlink.c Fri Mar 14 20:19:09 2008
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
int
|
||||
@@ -5966,9 +6018,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/new
|
||||
{
|
||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
||||
return _unlink_r (_REENT, file);
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/newlib/libc/time/asctime_r.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-arm/newlib/libc/time/asctime_r.c
|
||||
--- newlib-1.15.0/newlib/libc/time/asctime_r.c Wed May 10 18:58:29 2000
|
||||
+++ newlib-1.15.0-new/newlib/libc/time/asctime_r.c Sun Feb 10 06:48:03 2008
|
||||
+++ newlib-1.15.0-arm/newlib/libc/time/asctime_r.c Fri Mar 14 20:19:09 2008
|
||||
@@ -18,7 +18,7 @@
|
||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
|
||||
};
|
||||
@@ -5978,9 +6030,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/newlib/
|
||||
day_name[tim_p->tm_wday],
|
||||
mon_name[tim_p->tm_mon],
|
||||
tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min,
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/time/strftime.c newlib-1.15.0-new/newlib/libc/time/strftime.c
|
||||
diff -Nbaur newlib-1.15.0/newlib/libc/time/strftime.c newlib-1.15.0-arm/newlib/libc/time/strftime.c
|
||||
--- newlib-1.15.0/newlib/libc/time/strftime.c Fri Feb 25 22:31:21 2005
|
||||
+++ newlib-1.15.0-new/newlib/libc/time/strftime.c Sun Feb 10 06:50:43 2008
|
||||
+++ newlib-1.15.0-arm/newlib/libc/time/strftime.c Fri Mar 14 20:19:09 2008
|
||||
@@ -424,7 +424,7 @@
|
||||
int century = tim_p->tm_year >= 0
|
||||
? tim_p->tm_year / 100 + YEAR_BASE / 100
|
||||
|
||||
Reference in New Issue
Block a user