mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Switch to gcc 3.4.6.
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
--- gcc-3.4.6/libiberty/configure 2003-10-01 19:11:29.000000000 +0200
|
||||
+++ gcc-3.4.6-patched/libiberty/configure 2013-05-19 20:23:32.000000000 +0200
|
||||
@@ -347,6 +347,10 @@
|
||||
includedir='${prefix}/include'
|
||||
oldincludedir='/usr/include'
|
||||
infodir='${prefix}/info'
|
||||
+guidedir='${prefix}/guide'
|
||||
+htmldir='${prefix}/html'
|
||||
+psdir='${prefix}/ps'
|
||||
+dvidir='${prefix}/dvi'
|
||||
mandir='${prefix}/man'
|
||||
|
||||
ac_prev=
|
||||
@@ -450,6 +454,26 @@
|
||||
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
||||
infodir=$ac_optarg ;;
|
||||
|
||||
+ -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
|
||||
+ ac_prev=guidedir ;;
|
||||
+ -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)
|
||||
+ guidedir=$ac_optarg ;;
|
||||
+
|
||||
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
|
||||
+ ac_prev=htmldir ;;
|
||||
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)
|
||||
+ htmldir=$ac_optarg ;;
|
||||
+
|
||||
+ -psdir | --psdir | --psdi | --psd | --ps)
|
||||
+ ac_prev=psdir ;;
|
||||
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
||||
+ psdir=$ac_optarg ;;
|
||||
+
|
||||
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
||||
+ ac_prev=dvidir ;;
|
||||
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)
|
||||
+ dvidir=$ac_optarg ;;
|
||||
+
|
||||
-libdir | --libdir | --libdi | --libd)
|
||||
ac_prev=libdir ;;
|
||||
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
||||
@@ -825,6 +849,10 @@
|
||||
--includedir=DIR C header files [PREFIX/include]
|
||||
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
||||
--infodir=DIR info documentation [PREFIX/info]
|
||||
+ --guidedir=DIR Amigaguide documentation in DIR [PREFIX/guide]
|
||||
+ --htmldir=DIR HTML documentation in DIR [PREFIX/html]
|
||||
+ --psdir=DIR postscript documentation in DIR [PREFIX/ps]
|
||||
+ --dvidir=DIR TeX dvi documentation in DIR [PREFIX/dvi]
|
||||
--mandir=DIR man documentation [PREFIX/man]
|
||||
_ACEOF
|
||||
|
||||
@@ -3322,7 +3350,7 @@
|
||||
# Account for people who put trailing slashes in PATH elements.
|
||||
case $as_dir/ in
|
||||
./ | .// | /cC/* | \
|
||||
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
||||
+ /etc/* | /c/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
||||
/usr/ucb/* ) ;;
|
||||
*)
|
||||
# OSF1 and SCO ODT 3.0 have their own names for install.
|
||||
@@ -5108,6 +5136,12 @@
|
||||
|
||||
sparc_address_test (0);
|
||||
|
||||
+#ifdef __amigaos__
|
||||
+ /* Force this test to succeed for AmigaOS, which has a fairly good
|
||||
+ vfork() emulation, but doesn't support fork() at all. -fnf */
|
||||
+ exit (0);
|
||||
+#endif
|
||||
+
|
||||
child = vfork ();
|
||||
|
||||
if (child == 0) {
|
||||
@@ -5208,6 +5242,11 @@
|
||||
#define HAVE_WORKING_FORK 1
|
||||
_ACEOF
|
||||
|
||||
+else
|
||||
+ cat >> confdefs.h <<\EOF
|
||||
+#define HAVE_VFORK 1
|
||||
+EOF
|
||||
+
|
||||
fi
|
||||
|
||||
if test $ac_cv_func_vfork_works = no; then
|
||||
@@ -6761,6 +6800,10 @@
|
||||
s,@includedir@,$includedir,;t t
|
||||
s,@oldincludedir@,$oldincludedir,;t t
|
||||
s,@infodir@,$infodir,;t t
|
||||
+s,@guidedir@,$guidedir,;t t
|
||||
+s,@htmldir@,$htmldir,;t t
|
||||
+s,@psdir@,$psdir,;t t
|
||||
+s,@dvidir@,$dvidir,;t t
|
||||
s,@mandir@,$mandir,;t t
|
||||
s,@build_alias@,$build_alias,;t t
|
||||
s,@host_alias@,$host_alias,;t t
|
||||
@@ -7297,7 +7340,7 @@
|
||||
case $ac_dest in
|
||||
default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
||||
if test -n "$CONFIG_FILES"; then
|
||||
- if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
|
||||
+ if test -n "${with_target_subdir}"; then
|
||||
# FIXME: We shouldn't need to set ac_file
|
||||
ac_file=Makefile
|
||||
LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
||||
@@ -0,0 +1,13 @@
|
||||
--- gcc-3.4.6/libiberty/lbasename.c 2003-12-22 20:21:37.000000000 +0100
|
||||
+++ gcc-3.4.6-patched/libiberty/lbasename.c 2013-05-19 20:23:32.000000000 +0200
|
||||
@@ -42,6 +42,10 @@
|
||||
#include "safe-ctype.h"
|
||||
#include "filenames.h"
|
||||
|
||||
+#ifdef __amigaos__
|
||||
+#define VOL_SEPARATOR ':'
|
||||
+#endif
|
||||
+
|
||||
const char *
|
||||
lbasename (name)
|
||||
const char *name;
|
||||
@@ -0,0 +1,27 @@
|
||||
--- gcc-3.4.6/libiberty/make-temp-file.c 2001-10-17 23:15:41.000000000 +0200
|
||||
+++ gcc-3.4.6-patched/libiberty/make-temp-file.c 2013-05-19 20:23:32.000000000 +0200
|
||||
@@ -50,6 +50,10 @@
|
||||
#define DIR_SEPARATOR '/'
|
||||
#endif
|
||||
|
||||
+#ifdef __amigaos__
|
||||
+#define VOL_SEPARATOR ':'
|
||||
+#endif
|
||||
+
|
||||
/* Name of temporary file.
|
||||
mktemp requires 6 trailing X's. */
|
||||
#define TEMP_FILE "ccXXXXXX"
|
||||
@@ -126,8 +130,13 @@
|
||||
len = strlen (base);
|
||||
tmpdir = xmalloc (len + 2);
|
||||
strcpy (tmpdir, base);
|
||||
+#ifdef VOL_SEPARATOR
|
||||
+ if (tmpdir[len-1] != DIR_SEPARATOR && tmpdir[len-1] != VOL_SEPARATOR)
|
||||
+#endif
|
||||
+{
|
||||
tmpdir[len] = DIR_SEPARATOR;
|
||||
tmpdir[len+1] = '\0';
|
||||
+}
|
||||
|
||||
memoized_tmpdir = tmpdir;
|
||||
return tmpdir;
|
||||
@@ -0,0 +1,13 @@
|
||||
--- gcc-3.4.6/libiberty/pex-unix.c 2003-01-24 21:02:11.000000000 +0100
|
||||
+++ gcc-3.4.6-patched/libiberty/pex-unix.c 2013-05-19 20:23:32.000000000 +0200
|
||||
@@ -44,6 +44,10 @@
|
||||
#define waitpid(pid, status, flags) wait(status)
|
||||
#endif
|
||||
|
||||
+#ifdef __amigaos__
|
||||
+#define fork() vfork()
|
||||
+#endif
|
||||
+
|
||||
extern int execv ();
|
||||
extern int execvp ();
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
--- gcc-3.4.6/libiberty/strsignal.c 2003-04-15 22:36:33.000000000 +0200
|
||||
+++ gcc-3.4.6-patched/libiberty/strsignal.c 2013-05-19 20:23:32.000000000 +0200
|
||||
@@ -558,8 +558,8 @@
|
||||
|
||||
void
|
||||
psignal (signo, message)
|
||||
- unsigned signo;
|
||||
- char *message;
|
||||
+ unsigned int signo;
|
||||
+ const char *message;
|
||||
{
|
||||
if (signal_names == NULL)
|
||||
{
|
||||
Reference in New Issue
Block a user