CVS commit: src/external/gpl3/gcc/dist/libgcc

2021-04-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Apr 17 10:53:18 UTC 2021

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
remove double arm64 netbsd target.  add t-lse, though we don't
pull this out with mknative currently.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.29 src/external/gpl3/gcc/dist/libgcc/config.host:1.30
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.29	Sun Apr 11 00:02:18 2021
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Sat Apr 17 10:53:18 2021
@@ -377,6 +377,7 @@ aarch64*-*-freebsd*)
 aarch64*-*-netbsd*)
 	extra_parts="$extra_parts crtfastmath.o"
 	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
+	tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
 	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
 	md_unwind_header=aarch64/aarch64-unwind.h
 	;;
@@ -385,12 +386,6 @@ aarch64*-*-fuchsia*)
 	tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
 	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
 	;;
-aarch64*-*-netbsd*)
-	extra_parts="$extra_parts crtfastmath.o"
-	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
-	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
-	md_unwind_header=aarch64/aarch64-unwind.h
-	;;
 aarch64*-*-linux*)
 	extra_parts="$extra_parts crtfastmath.o"
 	md_unwind_header=aarch64/linux-unwind.h



CVS commit: src/external/gpl3/gcc/dist/libgcc

2021-04-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 13 08:06:11 UTC 2021

Modified Files:
src/external/gpl3/gcc/dist/libgcc: emutls.c

Log Message:
make this match the builtin prototypes.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/gcc/dist/libgcc/emutls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/emutls.c
diff -u src/external/gpl3/gcc/dist/libgcc/emutls.c:1.1.1.9 src/external/gpl3/gcc/dist/libgcc/emutls.c:1.2
--- src/external/gpl3/gcc/dist/libgcc/emutls.c:1.1.1.9	Sat Apr 10 22:09:58 2021
+++ src/external/gpl3/gcc/dist/libgcc/emutls.c	Tue Apr 13 08:06:11 2021
@@ -50,8 +50,8 @@ struct __emutls_array
   void **data[];
 };
 
-void *__emutls_get_address (struct __emutls_object *);
-void __emutls_register_common (struct __emutls_object *, word, word, void *);
+void *__emutls_get_address (void *);
+void __emutls_register_common (void *, word, word, void *);
 
 #ifdef __GTHREADS
 #ifdef __GTHREAD_MUTEX_INIT
@@ -124,8 +124,10 @@ emutls_alloc (struct __emutls_object *ob
 }
 
 void *
-__emutls_get_address (struct __emutls_object *obj)
+__emutls_get_address (void *vobj)
 {
+  struct __emutls_object *obj = vobj;
+
   if (! __gthread_active_p ())
 {
   if (__builtin_expect (obj->loc.ptr == NULL, 0))
@@ -188,9 +190,11 @@ __emutls_get_address (struct __emutls_ob
 }
 
 void
-__emutls_register_common (struct __emutls_object *obj,
+__emutls_register_common (void *vobj,
 			  word size, word align, void *templ)
 {
+  struct __emutls_object *obj = vobj;
+
   if (obj->size < size)
 {
   obj->size = size;



CVS commit: src/external/gpl3/gcc/dist/libgcc

2019-04-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 16 07:50:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host
Added Files:
src/external/gpl3/gcc/dist/libgcc/config/riscv: t-netbsd

Log Message:
list a bunch of soft-fp as present in the current risc64 libgcc defs.mk.
this makes mknative-gcc work without breaking maya's manual work.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/dist/libgcc/config.host
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.23 src/external/gpl3/gcc/dist/libgcc/config.host:1.24
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.23	Tue Apr  2 21:29:46 2019
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Tue Apr 16 07:50:05 2019
@@ -1157,7 +1157,7 @@ riscv*-*-linux*)
 	md_unwind_header=riscv/linux-unwind.h
 	;;
 riscv*-*-netbsd*)
-	# nothing needed for NetBSD
+	tmake_file="${tmake_file} riscv/t-netbsd"
 	;;
 riscv*-*-*)
 	tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"

Added files:

Index: src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd
diff -u /dev/null src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd:1.1
--- /dev/null	Tue Apr 16 07:50:05 2019
+++ src/external/gpl3/gcc/dist/libgcc/config/riscv/t-netbsd	Tue Apr 16 07:50:05 2019
@@ -0,0 +1,21 @@
+LIB2ADD += $(srcdir)/soft-fp/addtf3.c \
+	   $(srcdir)/soft-fp/divtf3.c \
+	   $(srcdir)/soft-fp/eqtf2.c \
+	   $(srcdir)/soft-fp/getf2.c \
+	   $(srcdir)/soft-fp/letf2.c \
+	   $(srcdir)/soft-fp/multf3.c \
+	   $(srcdir)/soft-fp/negtf2.c \
+	   $(srcdir)/soft-fp/subtf3.c \
+	   $(srcdir)/soft-fp/unordtf2.c \
+	   $(srcdir)/soft-fp/fixtfsi.c \
+	   $(srcdir)/soft-fp/fixunstfsi.c \
+	   $(srcdir)/soft-fp/floatsitf.c \
+	   $(srcdir)/soft-fp/floatunsitf.c \
+	   $(srcdir)/soft-fp/fixtfdi.c \
+	   $(srcdir)/soft-fp/fixunstfdi.c \
+	   $(srcdir)/soft-fp/floatditf.c \
+	   $(srcdir)/soft-fp/floatunditf.c \
+	   $(srcdir)/soft-fp/extendsftf2.c \
+	   $(srcdir)/soft-fp/extenddftf2.c \
+	   $(srcdir)/soft-fp/trunctfsf2.c \
+	   $(srcdir)/soft-fp/trunctfdf2.c



CVS commit: src/external/gpl3/gcc/dist/libgcc

2019-02-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Feb  9 02:43:11 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libgcc: gthr-posix.h

Log Message:
fix the previous - it's __NetBSD__, not __NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/libgcc/gthr-posix.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/gthr-posix.h
diff -u src/external/gpl3/gcc/dist/libgcc/gthr-posix.h:1.2 src/external/gpl3/gcc/dist/libgcc/gthr-posix.h:1.3
--- src/external/gpl3/gcc/dist/libgcc/gthr-posix.h:1.2	Sat Feb  9 01:27:43 2019
+++ src/external/gpl3/gcc/dist/libgcc/gthr-posix.h	Sat Feb  9 02:43:11 2019
@@ -169,7 +169,7 @@ __gthrw(pthread_setschedparam)
makes std::call_once() so we do the same.
 */
 
-#if defined(__FreeBSD__) || (defined(__sun) && defined(__svr4__)) || defined(__NetBSD)
+#if defined(__FreeBSD__) || (defined(__sun) && defined(__svr4__)) || defined(__NetBSD__)
 
 static volatile int __gthread_active = -1;
 



CVS commit: src/external/gpl3/gcc/dist/libgcc

2019-02-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Feb  9 01:27:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libgcc: gthr-posix.h

Log Message:
Follow suit with FreeBSD and solaris for the __gthread_active_p()
implementation. Fixes the atf call_once unit tests.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 src/external/gpl3/gcc/dist/libgcc/gthr-posix.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/gthr-posix.h
diff -u src/external/gpl3/gcc/dist/libgcc/gthr-posix.h:1.1.1.4 src/external/gpl3/gcc/dist/libgcc/gthr-posix.h:1.2
--- src/external/gpl3/gcc/dist/libgcc/gthr-posix.h:1.1.1.4	Sat Jan 19 05:14:14 2019
+++ src/external/gpl3/gcc/dist/libgcc/gthr-posix.h	Fri Feb  8 20:27:43 2019
@@ -164,9 +164,12 @@ __gthrw(pthread_setschedparam)
working interface is always exposed.  On FreeBSD 6 and later, libc also
exposes a dummy POSIX threads interface, similar to what Solaris 2.6 up
to 9 does.  FreeBSD >= 700014 even provides a pthread_cancel stub in libc,
-   which means the alternate __gthread_active_p below cannot be used there.  */
+   which means the alternate __gthread_active_p below cannot be used there. 
+   On NetBSD, linking with pthreads but without calling pthread_create()
+   makes std::call_once() so we do the same.
+*/
 
-#if defined(__FreeBSD__) || (defined(__sun) && defined(__svr4__))
+#if defined(__FreeBSD__) || (defined(__sun) && defined(__svr4__)) || defined(__NetBSD)
 
 static volatile int __gthread_active = -1;
 
@@ -209,7 +212,7 @@ __gthread_active_p (void)
   return __gthread_active_latest_value != 0;
 }
 
-#else /* neither FreeBSD nor Solaris */
+#else /* neither FreeBSD nor Solaris nor NetBSD */
 
 /* For a program to be multi-threaded the only thing that it certainly must
be using is pthread_create.  However, there may be other libraries that
@@ -251,7 +254,7 @@ __gthread_active_p (void)
   return __gthread_active_ptr != 0;
 }
 
-#endif /* FreeBSD or Solaris */
+#endif /* FreeBSD or Solaris or NetBSD */
 
 #else /* not SUPPORTS_WEAK */
 



CVS commit: src/external/gpl3/gcc/dist/libgcc

2019-01-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jan 24 22:00:28 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
set md_unwind_header=aarch64/aarch64-unwind.h for netbsd arm64.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.20 src/external/gpl3/gcc/dist/libgcc/config.host:1.21
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.20	Sat Jan 19 12:10:09 2019
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Thu Jan 24 22:00:28 2019
@@ -353,6 +353,7 @@ aarch64*-*-netbsd*)
 	extra_parts="$extra_parts crtfastmath.o"
 	tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
 	tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
+	md_unwind_header=aarch64/aarch64-unwind.h
 	;;
 aarch64*-*-linux*)
 	extra_parts="$extra_parts crtfastmath.o"



CVS commit: src/external/gpl3/gcc/dist/libgcc

2016-10-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 22 03:33:03 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
enable tf math (__float128)


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.14 src/external/gpl3/gcc/dist/libgcc/config.host:1.15
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.14	Wed Oct  5 15:24:44 2016
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Fri Oct 21 23:33:03 2016
@@ -1383,6 +1383,7 @@ i[34567]86-*-darwin* | x86_64-*-darwin* 
   i[34567]86-*-mingw* | x86_64-*-mingw* | \
   i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \
   i[34567]86-*-freebsd* | x86_64-*-freebsd* | \
+  i[34567]86-*-netbsd* | x86_64-*-netbsd* | \
   i[34567]86-*-openbsd* | x86_64-*-openbsd*)
   	tmake_file="${tmake_file} t-softfp-tf"
 	if test "${host_address}" = 32; then



CVS commit: src/external/gpl3/gcc/dist/libgcc

2016-10-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct  5 19:24:44 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
The NetBSD libc provides the softfloat support which is duplicated in libgcc
and we prefer ours.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.13 src/external/gpl3/gcc/dist/libgcc/config.host:1.14
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.13	Thu Jun 30 05:06:35 2016
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Wed Oct  5 15:24:44 2016
@@ -853,6 +853,17 @@ microblaze*-*-rtems*)
 	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
 	;;
 mips*-*-netbsd*)			# NetBSD/mips, either endian.
+	if test "${libgcc_cv_mips_hard_float}" = no; then
+	  # Eat soft float stuff added above since the netbsd libc provides it.
+	  xtmake_file=
+	  for t in ${tmake_file}; do
+	case $t in
+	*softfp*) ;;
+	*)	xtmake_file="${xtmake_file} $t";;
+	esac
+	  done
+	  tmake_file="${xtmake_file}"
+	fi
 	;;
 mips*-*-linux*)# Linux MIPS, either endian.
 	extra_parts="$extra_parts crtfastmath.o"



CVS commit: src/external/gpl3/gcc/dist/libgcc/config/m68k

2016-04-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 22 18:05:13 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/libgcc/config/m68k: lb1sf68.S

Log Message:
Undo previous; wrong tree.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S
diff -u src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.3 src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.4
--- src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.3	Fri Apr 22 14:03:54 2016
+++ src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S	Fri Apr 22 14:05:13 2016
@@ -164,7 +164,7 @@ see the files COPYING3 and COPYING.RUNTI
 	lea	\addr-.-8,a0
 	jsr	pc@(a0)
 #else
-	jbsr	\addr@PLTPC
+	jbsr	\addr
 #endif
 	.endm
 
@@ -176,7 +176,7 @@ see the files COPYING3 and COPYING.RUNTI
 	lea	\addr-.-8,a0
 	jmp	pc@(a0)
 #else
-	bra	\addr@PLTPC
+	bra	\addr
 #endif
 	.endm
 



CVS commit: src/external/gpl3/gcc/dist/libgcc/config/m68k

2016-04-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 22 18:03:54 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/libgcc/config/m68k: lb1sf68.S

Log Message:
Propagate PLT fix from our gcc-5.3 tree:

Some functions like __udivsi3 are used in other assembly files like __umodsi3.
Use PLT linkage to avoid text relocations.

XXX: pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S
diff -u src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.2 src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.3
--- src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.2	Fri Apr 22 13:39:38 2016
+++ src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S	Fri Apr 22 14:03:54 2016
@@ -164,7 +164,7 @@ see the files COPYING3 and COPYING.RUNTI
 	lea	\addr-.-8,a0
 	jsr	pc@(a0)
 #else
-	jbsr	\addr
+	jbsr	\addr@PLTPC
 #endif
 	.endm
 
@@ -176,7 +176,7 @@ see the files COPYING3 and COPYING.RUNTI
 	lea	\addr-.-8,a0
 	jmp	pc@(a0)
 #else
-	bra	\addr
+	bra	\addr@PLTPC
 #endif
 	.endm
 



CVS commit: src/external/gpl3/gcc/dist/libgcc/config/m68k

2016-04-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 22 17:39:38 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist/libgcc/config/m68k: lb1sf68.S

Log Message:
Some functions like __udivsi3 are used in other assembly files like __umodsi3.
Use PLT linkage to avoid text relocations.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S
diff -u src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.1.1.2 src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.2
--- src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S:1.1.1.2	Sun Jan 24 01:06:01 2016
+++ src/external/gpl3/gcc/dist/libgcc/config/m68k/lb1sf68.S	Fri Apr 22 13:39:38 2016
@@ -203,7 +203,7 @@ see the files COPYING3 and COPYING.RUNTI
 	lea	\addr-.-8,a0
 	jsr	pc@(a0)
 #else
-	jbsr	\addr
+	jbsr	\addr@PLTPC
 #endif
 	.endm
 
@@ -215,7 +215,7 @@ see the files COPYING3 and COPYING.RUNTI
 	lea	\addr-.-8,a0
 	jmp	pc@(a0)
 #else
-	bra	\addr
+	bra	\addr@PLTPC
 #endif
 	.endm
 



CVS commit: src/external/gpl3/gcc/dist/libgcc/config/ia64

2015-04-17 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Apr 17 12:29:00 UTC 2015

Modified Files:
src/external/gpl3/gcc/dist/libgcc/config/ia64: unwind-ia64.c

Log Message:
Add missing cast


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c
diff -u src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:1.2 src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:1.3
--- src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:1.2	Mon Mar 24 21:26:01 2014
+++ src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c	Fri Apr 17 12:29:00 2015
@@ -1718,7 +1718,7 @@ _Unwind_SetIP (struct _Unwind_Context *c
 _Unwind_Ptr
 _Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
 {
-  return context-lsda;
+  return (_Unwind_Ptr)context-lsda;
 }
 
 _Unwind_Ptr



CVS commit: src/external/gpl3/gcc/dist/libgcc/config/ia64

2015-04-17 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Apr 17 12:29:49 UTC 2015

Modified Files:
src/external/gpl3/gcc/dist/libgcc/config/ia64: unwind-ia64.c

Log Message:
Add evil hack to help mknative untill we finish userland


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c
diff -u src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:1.3 src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:1.4
--- src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c:1.3	Fri Apr 17 12:29:00 2015
+++ src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c	Fri Apr 17 12:29:49 2015
@@ -2445,6 +2445,16 @@ uw_identify_context (struct _Unwind_Cont
   return _Unwind_GetIP (context);
 }
 
+#ifdef __NetBSD__
+/* dummy for bootstrapping purposes */
+struct unw_table_entry *
+_Unwind_FindTableEntry (void *pc, unw_word *segment_base,
+			unw_word *gp, struct unw_table_entry *ent)
+{
+	return NULL;
+}
+#endif
+
 #include unwind.inc
 
 #if defined (USE_GAS_SYMVER)  defined (SHARED)  defined (USE_LIBUNWIND_EXCEPTIONS)



CVS commit: src/external/gpl3/gcc/dist/libgcc

2014-08-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 20 13:29:07 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/libgcc: unwind-dw2-fde.c

Log Message:
PR/45716: Anthony Mallet: emacs (various versions) dies on unwind stuff in gcc 
4.8
Apply fix that got missed as this file got moved from dist/gcc to dist/libgcc:

Somehow emacs tries to unregister frame info for a symbol it did not register.
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.

XXX: pullup 7


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c
diff -u src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c:1.1.1.1 src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c:1.2
--- src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c:1.1.1.1	Sat Mar  1 03:41:45 2014
+++ src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c	Wed Aug 20 09:29:07 2014
@@ -213,7 +213,9 @@ __deregister_frame_info_bases (const voi
 
  out:
   __gthread_mutex_unlock (object_mutex);
+#if 0
   gcc_assert (ob);
+#endif
   return (void *) ob;
 }
 



CVS commit: src/external/gpl3/gcc/dist/libgcc

2014-03-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Mar 25 10:03:51 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/libgcc: unwind-sjlj.c

Log Message:
Cast to _Unwind_Ptr here as well.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/libgcc/unwind-sjlj.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/unwind-sjlj.c
diff -u src/external/gpl3/gcc/dist/libgcc/unwind-sjlj.c:1.2 src/external/gpl3/gcc/dist/libgcc/unwind-sjlj.c:1.3
--- src/external/gpl3/gcc/dist/libgcc/unwind-sjlj.c:1.2	Mon Mar 24 21:26:01 2014
+++ src/external/gpl3/gcc/dist/libgcc/unwind-sjlj.c	Tue Mar 25 10:03:51 2014
@@ -234,7 +234,7 @@ _Unwind_SetIP (struct _Unwind_Context *c
 _Unwind_Ptr
 _Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
 {
-  return context-fc-lsda;
+  return (_Unwind_Ptr) context-fc-lsda;
 }
 
 _Unwind_Ptr



CVS commit: src/external/gpl3/gcc/dist/libgcc

2014-03-24 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon Mar 24 22:39:06 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/libgcc: unwind-dw2.c

Log Message:
Cast context-ldsa to the correct return type.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/libgcc/unwind-dw2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/unwind-dw2.c
diff -u src/external/gpl3/gcc/dist/libgcc/unwind-dw2.c:1.2 src/external/gpl3/gcc/dist/libgcc/unwind-dw2.c:1.3
--- src/external/gpl3/gcc/dist/libgcc/unwind-dw2.c:1.2	Mon Mar 24 21:26:01 2014
+++ src/external/gpl3/gcc/dist/libgcc/unwind-dw2.c	Mon Mar 24 22:39:06 2014
@@ -368,7 +368,7 @@ _Unwind_SetIP (struct _Unwind_Context *c
 _Unwind_Ptr
 _Unwind_GetLanguageSpecificData (struct _Unwind_Context *context)
 {
-  return context-lsda;
+  return (_Unwind_Ptr) context-lsda;
 }
 
 _Unwind_Ptr



CVS commit: src/external/gpl3/gcc/dist/libgcc/config

2014-03-24 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Tue Mar 25 00:50:46 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/libgcc/config/arm: pr-support.c
src/external/gpl3/gcc/dist/libgcc/config/c6x: pr-support.c

Log Message:
Cast ptr to the correct return type (_Unwind_Ptr)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/libgcc/config/arm/pr-support.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/libgcc/config/c6x/pr-support.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config/arm/pr-support.c
diff -u src/external/gpl3/gcc/dist/libgcc/config/arm/pr-support.c:1.2 src/external/gpl3/gcc/dist/libgcc/config/arm/pr-support.c:1.3
--- src/external/gpl3/gcc/dist/libgcc/config/arm/pr-support.c:1.2	Mon Mar 24 21:26:01 2014
+++ src/external/gpl3/gcc/dist/libgcc/config/arm/pr-support.c	Tue Mar 25 00:50:45 2014
@@ -366,7 +366,7 @@ _Unwind_GetLanguageSpecificData (_Unwind
   /* Skip the unwind opcodes.  */
   ptr += (((*ptr)  24)  0xff) + 1;
 
-  return ptr;
+  return (_Unwind_Ptr) ptr;
 }
 
 

Index: src/external/gpl3/gcc/dist/libgcc/config/c6x/pr-support.c
diff -u src/external/gpl3/gcc/dist/libgcc/config/c6x/pr-support.c:1.2 src/external/gpl3/gcc/dist/libgcc/config/c6x/pr-support.c:1.3
--- src/external/gpl3/gcc/dist/libgcc/config/c6x/pr-support.c:1.2	Mon Mar 24 21:26:01 2014
+++ src/external/gpl3/gcc/dist/libgcc/config/c6x/pr-support.c	Tue Mar 25 00:50:45 2014
@@ -531,5 +531,5 @@ _Unwind_GetLanguageSpecificData (_Unwind
   /* Skip the unwind opcodes.  */
   ptr += (((*ptr)  24)  0xff) + 1;
 
-  return ptr;
+  return (_Unwind_Ptr) ptr;
 }



CVS commit: src/external/gpl3/gcc/dist/libgcc

2014-03-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar  9 05:51:26 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
add ia64-netbsd support.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.6 src/external/gpl3/gcc/dist/libgcc/config.host:1.7
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.6	Wed Mar  5 00:13:41 2014
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Sun Mar  9 05:51:26 2014
@@ -652,6 +652,10 @@ ia64*-*-linux*)
 	fi
 	md_unwind_header=ia64/linux-unwind.h
 	;;
+ia64*-*-netbsd*)
+	extra_parts=${extra_parts} crtfastmath.o
+	tmake_file=${tmake_file} ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm
+	;;
 ia64*-*-hpux*)
 	tmake_file=ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux
 	;;



CVS commit: src/external/gpl3/gcc/dist/libgcc

2014-03-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar  5 00:13:41 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
coldfire does not want m68k/t-floatlib.
enable powerpc*-netbsd* -- ie, match ppc64.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.5 src/external/gpl3/gcc/dist/libgcc/config.host:1.6
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.5	Mon Mar  3 03:28:56 2014
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Wed Mar  5 00:13:41 2014
@@ -696,7 +696,9 @@ m32rle-*-linux*)
 m68k-*-elf* | fido-*-elf)
 	tmake_file=$tmake_file m68k/t-floatlib
 	;;
-m68k*-*-netbsdelf* | m5407-*-netbsdelf* | m68010-*-netbsdelf*)
+m5407-*-netbsdelf*)
+	;;
+m68k*-*-netbsdelf* | m68010-*-netbsdelf*)
 	tmake_file=$tmake_file m68k/t-floatlib
 	;;
 m68k*-*-openbsd*)
@@ -847,8 +849,8 @@ powerpc*-*-freebsd*)
 	  ;;
 	esac
 	;;
-powerpc-*-netbsd*)
-	tmake_file=$tmake_file rs6000/t-netbsd rs6000/t-crtstuff
+powerpc*-*-netbsd*)
+	tmake_file=${tmake_file} rs6000/t-netbsd rs6000/t-crtstuff
 	;;
 powerpc-*-eabispe*)
 	tmake_file=${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit



CVS commit: src/external/gpl3/gcc/dist/libgcc

2011-07-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jul  7 01:27:30 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/libgcc: config.host

Log Message:
add hppa-netbsd support.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/libgcc/config.host

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libgcc/config.host
diff -u src/external/gpl3/gcc/dist/libgcc/config.host:1.1.1.1 src/external/gpl3/gcc/dist/libgcc/config.host:1.2
--- src/external/gpl3/gcc/dist/libgcc/config.host:1.1.1.1	Tue Jun 21 01:23:34 2011
+++ src/external/gpl3/gcc/dist/libgcc/config.host	Thu Jul  7 01:27:30 2011
@@ -269,6 +269,8 @@
 	;;
 hppa[12]*-*-hpux11*)
 	;;
+hppa*-*-netbsd*)
+	;;
 i[34567]86-*-darwin*)
 	;;
 x86_64-*-darwin*)