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

2021-03-28 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Mon Mar 29 01:33:12 UTC 2021

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: mips.c netbsd.h netbsd64.h

Log Message:
Don't override TARGET_ASM_OUTPUT_SOURCE_FILENAME on MIPS for NetBSD -
use the default which includes a '.file "filename"' as the first name so
that the FILE symbols type is set to the real source file name.  Needed
to make ctfconvert work.

OK mrg@.
XXX needs to be fed back to GNU.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/dist/gcc/config/mips/mips.c
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.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/gcc/config/mips/mips.c
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/mips.c:1.11 src/external/gpl3/gcc/dist/gcc/config/mips/mips.c:1.12
--- src/external/gpl3/gcc/dist/gcc/config/mips/mips.c:1.11	Sat Sep  5 09:12:26 2020
+++ src/external/gpl3/gcc/dist/gcc/config/mips/mips.c	Mon Mar 29 01:33:12 2021
@@ -9488,7 +9488,7 @@ mips_output_external (FILE *file, tree d
 
 /* Implement TARGET_ASM_OUTPUT_SOURCE_FILENAME.  */
 
-static void
+static void ATTRIBUTE_UNUSED
 mips_output_filename (FILE *stream, const char *name)
 {
   /* If we are emitting DWARF-2, let dwarf2out handle the ".file"
@@ -22744,8 +22744,10 @@ mips_starting_frame_offset (void)
 #undef TARGET_TRAMPOLINE_INIT
 #define TARGET_TRAMPOLINE_INIT mips_trampoline_init
 
+#ifndef MIPS_USE_GCC_DEFAULT_OUTPUT_SOURCE_FILENAME
 #undef TARGET_ASM_OUTPUT_SOURCE_FILENAME
 #define TARGET_ASM_OUTPUT_SOURCE_FILENAME mips_output_filename
+#endif	/* MIPS_USE_GCC_DEFAULT_OUTPUT_SOURCE_FILENAME */
 
 #undef TARGET_SHIFT_TRUNCATION_MASK
 #define TARGET_SHIFT_TRUNCATION_MASK mips_shift_truncation_mask

Index: src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.14 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.15
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.14	Sat Sep  5 09:12:26 2020
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h	Mon Mar 29 01:33:12 2021
@@ -229,3 +229,5 @@ along with GCC; see the file COPYING3.  
 
 #undef TARGET_WRITABLE_EH_FRAME
 #define TARGET_WRITABLE_EH_FRAME 0
+
+#define	MIPS_USE_GCC_DEFAULT_OUTPUT_SOURCE_FILENAME

Index: src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.4 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.5
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.4	Sat Mar  1 09:44:50 2014
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h	Mon Mar 29 01:33:12 2021
@@ -45,3 +45,5 @@ Boston, MA 02110-1301, USA.  */
%{mips32} %{mips32r2} %{mips64} %{mips64r2} \
%{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
%(netbsd_link_spec)"
+
+#define	MIPS_USE_GCC_DEFAULT_OUTPUT_SOURCE_FILENAME



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

2017-07-17 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon Jul 17 19:53:50 UTC 2017

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h

Log Message:
Use read-only .eh_frame.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.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/gcc/config/mips/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.9 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.10
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.9	Sat Feb 25 21:16:50 2017
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h	Mon Jul 17 19:53:50 2017
@@ -228,4 +228,4 @@ along with GCC; see the file COPYING3.  
 #define WINT_TYPE "int"
 
 #undef TARGET_WRITABLE_EH_FRAME
-#define TARGET_WRITABLE_EH_FRAME (flag_pic && TARGET_SHARED)
+#define TARGET_WRITABLE_EH_FRAME 0



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

2015-05-29 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri May 29 19:37:27 UTC 2015

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h

Log Message:
Add the historical __OCTEON__ builtin_define along with __mips_popcount which
is defined if the platform has the dpop/pop instructions.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.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/gcc/config/mips/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.5 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.6
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.5	Thu Aug 14 15:16:20 2014
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h	Fri May 29 19:37:27 2015
@@ -163,6 +163,11 @@ along with GCC; see the file COPYING3.  
   else			\
 	builtin_define (__MIPSEL__);\
 \
+  if (TARGET_OCTEON)	\
+	builtin_define (__OCTEON__);\
+\
+  if (ISA_HAS_POP)		\
+	builtin_define (__mips_popcount);			\
   /* No language dialect defines.  */			\
 \
   /* ABIs handled in TARGET_OS_CPP_BUILTINS.  */		\



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

2014-08-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 14 15:16:21 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h

Log Message:
Fix INTPTR_TYPE/UINTPTR_TYPE for n32.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.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/gcc/config/mips/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.4 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.5
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.4	Sat Mar  1 09:04:12 2014
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h	Thu Aug 14 15:16:20 2014
@@ -231,6 +231,12 @@ along with GCC; see the file COPYING3.  
 #define PTRDIFF_TYPE ((POINTER_SIZE == 64 || TARGET_NEWABI) \
 		  ? long int : int)
 
+#undef INTPTR_TYPE
+#define INTPTR_TYPE PTRDIFF_TYPE
+
+#undef UINTPTR_TYPE
+#define UINTPTR_TYPE SIZE_TYPE
+
 #undef WCHAR_TYPE
 #define WCHAR_TYPE int
 



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

2014-03-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Mar  3 21:01:40 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: t-mips

Log Message:
apply netbsd not rebuilding to mips-tables.opt; fixes r/o src builds.


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

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/gcc/config/mips/t-mips
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/t-mips:1.1.1.2 src/external/gpl3/gcc/dist/gcc/config/mips/t-mips:1.2
--- src/external/gpl3/gcc/dist/gcc/config/mips/t-mips:1.1.1.2	Sat Mar  1 08:43:33 2014
+++ src/external/gpl3/gcc/dist/gcc/config/mips/t-mips	Mon Mar  3 21:01:40 2014
@@ -18,5 +18,7 @@
 
 $(srcdir)/config/mips/mips-tables.opt: $(srcdir)/config/mips/genopt.sh \
   $(srcdir)/config/mips/mips-cpus.def
+	@echo NOT REBUILDING $@
+NetBSD_DISABLED_config_mips_mips-tables.opt:
 	$(SHELL) $(srcdir)/config/mips/genopt.sh $(srcdir)/config/mips  \
 		$(srcdir)/config/mips/mips-tables.opt



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

2014-01-26 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Jan 26 21:26:02 UTC 2014

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: mips.c

Log Message:
Fix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57260 (patch from
gcc's repository). This bugs show up with Xorg, preventing  xf86-video-sis and
xf86-video-silicon modules from being loaded.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/mips/mips.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/gcc/config/mips/mips.c
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/mips.c:1.1.1.2 src/external/gpl3/gcc/dist/gcc/config/mips/mips.c:1.2
--- src/external/gpl3/gcc/dist/gcc/config/mips/mips.c:1.1.1.2	Tue Sep 18 06:15:42 2012
+++ src/external/gpl3/gcc/dist/gcc/config/mips/mips.c	Sun Jan 26 21:26:02 2014
@@ -6522,6 +6522,15 @@ mips_function_ok_for_sibcall (tree decl,
const_call_insn_operand (XEXP (DECL_RTL (decl), 0), VOIDmode))
 return false;
 
+   /* Sibling calls should not prevent lazy binding.  Lazy-binding stubs
+  require $gp to be valid on entry, so sibcalls can only use stubs
+  if $gp is call-clobbered.  */
+   if (decl
+TARGET_CALL_SAVED_GP
+!TARGET_ABICALLS_PIC0
+!targetm.binds_local_p (decl))
+ return false;
+
   /* Otherwise OK.  */
   return true;
 }



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

2013-08-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Aug 26 14:24:22 UTC 2013

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h

Log Message:
Even though both gas and ld support .cfi_personality, gcc fails to emit
them so we get DT_TEXTREL problems.
So if pic  SHARED, we force EH_FRAME to be writeable (which is what would
happen if .cfi_personality was not supported).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.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/gcc/config/mips/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.2 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.3
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h:1.2	Tue Jun 21 02:41:37 2011
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd.h	Mon Aug 26 14:24:22 2013
@@ -261,3 +261,6 @@ along with GCC; see the file COPYING3.  
 
 #undef WINT_TYPE
 #define WINT_TYPE int
+
+#undef TARGET_WRITABLE_EH_FRAME
+#define TARGET_WRITABLE_EH_FRAME (flag_pic  TARGET_SHARED)



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

2011-07-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jul  7 17:27:47 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd64.h

Log Message:
Get rid of the hack that limited long double to 64 bits.  We support 128 bit
long doubles now.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.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/gcc/config/mips/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.2 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.3
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.2	Sun Jul  3 13:06:36 2011
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h	Thu Jul  7 17:27:46 2011
@@ -52,9 +52,3 @@
%{mips32} %{mips32r2} %{mips64} %{mips64r2} \
%{bestGnum} %{call_shared} %{no_archive} %{exact_version} \
%(netbsd_link_spec)
-
-#undef LONG_DOUBLE_TYPE_SIZE
-#define LONG_DOUBLE_TYPE_SIZE 64
-
-#undef LIBGCC2_LONG_DOUBLE_TYPE_SIZE
-#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 13:06:37 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd64.h

Log Message:
undef DRIVER_SELF_SPECS before defining it.
also, insert BASE_DRIVER_SELF_SPECS into DRIVER_SELF_SPECS.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.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/gcc/config/mips/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.1 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.2
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.1	Wed Jun 29 04:59:10 2011
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h	Sun Jul  3 13:06:36 2011
@@ -22,9 +22,11 @@
 /* Force the default endianness and ABI flags onto the command line
in order to make the other specs easier to write.  */
 
+#undef DRIVER_SELF_SPECS
 #define DRIVER_SELF_SPECS \
-%{!EB:%{!EL:%(endian_spec)}}, \
-%{!mabi=*: -mabi=n32}
+  BASE_DRIVER_SELF_SPECS \
+  %{!EB:%{!EL:%(endian_spec)}}, \
+  %{!mabi=*: -mabi=n32}
 
 /* Define default target values.  */