pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang Apply sparc64 fix from gcc cvs via



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bc3c541db6da
branches:  trunk
changeset: 472430:bc3c541db6da
user:      seb <seb%pkgsrc.org@localhost>
date:      Sat Apr 10 16:37:22 2004 +0000

description:
Apply sparc64 fix from gcc cvs via
src/gnu/dist/gcc/gcc/config/sparc/sparc.h revision 1.2.

Bump PKGREVISION of gcc3-c package.

diffstat:

 lang/gcc3-c/Makefile       |   3 ++-
 lang/gcc3/distinfo         |   3 ++-
 lang/gcc3/patches/patch-ao |  25 +++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r 03d81227827a -r bc3c541db6da lang/gcc3-c/Makefile
--- a/lang/gcc3-c/Makefile      Sat Apr 10 16:23:00 2004 +0000
+++ b/lang/gcc3-c/Makefile      Sat Apr 10 16:37:22 2004 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2004/04/10 15:47:08 seb Exp $
+# $NetBSD: Makefile,v 1.11 2004/04/10 16:37:22 seb Exp $
 
 PKGNAME=       gcc3${GCC3_PKGMODIF}-c-${GCC_VERSION}
+PKGREVISION=   1
 COMMENT=       GNU Compiler Collection, v3 - C compiler
 
 INFO_FILES=    cpp.info gcc.info gccint.info cppinternals.info
diff -r 03d81227827a -r bc3c541db6da lang/gcc3/distinfo
--- a/lang/gcc3/distinfo        Sat Apr 10 16:23:00 2004 +0000
+++ b/lang/gcc3/distinfo        Sat Apr 10 16:37:22 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2004/04/10 15:47:08 seb Exp $
+$NetBSD: distinfo,v 1.15 2004/04/10 16:37:22 seb Exp $
 
 SHA1 (gcc-3.3.3.tar.bz2) = a9efbc34c5dd7fc48f7d700461de4fc014968cab
 Size (gcc-3.3.3.tar.bz2) = 23279245 bytes
@@ -13,3 +13,4 @@
 SHA1 (patch-al) = 6294061358e2b618a980e77cbf7bad6231feacbe
 SHA1 (patch-am) = 8eff72d76b135a9b0318de651341cb08976758b5
 SHA1 (patch-an) = c0795339102b4608a3813c3a2d488c71ea972d6f
+SHA1 (patch-ao) = b02a4bcf07d67511a337165164e8f344c3303fb7
diff -r 03d81227827a -r bc3c541db6da lang/gcc3/patches/patch-ao
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc3/patches/patch-ao        Sat Apr 10 16:37:22 2004 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ao,v 1.1 2004/04/10 16:37:22 seb Exp $
+
+--- gcc/config/sparc/sparc.h   23 Jul 2003 02:41:59 -0000      1.1
++++ gcc/config/sparc/sparc.h   22 Mar 2004 22:56:10 -0000      1.2
+@@ -1233,6 +1233,20 @@
+    {-1, -1, -1, 0x20},        /* GENERAL_OR_EXTRA_FP_REGS */  \
+    {-1, -1, -1, 0x3f}}        /* ALL_REGS */
+ 
++/* Defines invalid mode changes.  Borrowed from pa64-regs.h.
++
++   SImode loads to floating-point registers are not zero-extended.
++   The definition for LOAD_EXTEND_OP specifies that integer loads
++   narrower than BITS_PER_WORD will be zero-extended.  As a result,
++   we inhibit changes from SImode unless they are to a mode that is
++   identical in size.  */
++
++#define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS)             \
++  (TARGET_ARCH64                                              \
++   && (FROM) == SImode                                                \
++   && GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO)              \
++   ? reg_classes_intersect_p (CLASS, FP_REGS) : 0)
++
+ /* The same information, inverted:
+    Return the class number of the smallest class containing
+    reg number REGNO.  This could be a conditional expression



Home | Main Index | Thread Index | Old Index