diff options
author | drochner <drochner> | 2003-07-09 15:14:42 +0000 |
---|---|---|
committer | drochner <drochner> | 2003-07-09 15:14:42 +0000 |
commit | dd6edef9c791a95d90ce7ab4454fda4795bc0dbb (patch) | |
tree | 07e97c1b1f4f373bf5a6cc9629e5533a0dad4646 | |
parent | b0489b270abb2d5dd092a2c36ef44f1e7e8f11b8 (diff) | |
download | pkgsrc-dd6edef9c791a95d90ce7ab4454fda4795bc0dbb.tar.gz |
-as abs did to lang/gcc3:
Apply http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10955
* unroll.c (unroll_loop): Fix off-by-one bug.
Fixes build issue with xdm and -O3
Suggested by fredb
-${prefix} is the same like ${GCC_PREFIX}, but the former is already there
-rw-r--r-- | lang/gcc3-c/distinfo | 5 | ||||
-rw-r--r-- | lang/gcc3-c/patches/patch-ab | 4 | ||||
-rw-r--r-- | lang/gcc3-c/patches/patch-ba | 16 |
3 files changed, 21 insertions, 4 deletions
diff --git a/lang/gcc3-c/distinfo b/lang/gcc3-c/distinfo index 8dfbb66749b..13ade26f7e5 100644 --- a/lang/gcc3-c/distinfo +++ b/lang/gcc3-c/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2003/07/08 15:04:57 drochner Exp $ +$NetBSD: distinfo,v 1.3 2003/07/09 15:14:42 drochner Exp $ SHA1 (gcc-3.3.tar.bz2) = 18e23822c6dc9cb462e0ff88bc1b8a20c53da60a Size (gcc-3.3.tar.bz2) = 23447616 bytes -SHA1 (patch-ab) = 8e899db69149894e737e1f68372f3eef9c403635 +SHA1 (patch-ab) = f0795e3792cd5200140bc19e291a2616b7d31468 SHA1 (patch-ae) = e5dd184ca1b0c415215e82d0250469792a432741 SHA1 (patch-ai) = bb9f4975769cd104b25b4609a1d4c888bb147bb1 +SHA1 (patch-ba) = 9037d2504c5db6458494a18852d57c1ef5c9dcdb diff --git a/lang/gcc3-c/patches/patch-ab b/lang/gcc3-c/patches/patch-ab index 02d2a06ceaf..89478c11654 100644 --- a/lang/gcc3-c/patches/patch-ab +++ b/lang/gcc3-c/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.2 2003/07/08 15:04:58 drochner Exp $ +$NetBSD: patch-ab,v 1.3 2003/07/09 15:14:43 drochner Exp $ --- gcc/Makefile.in.orig Tue Jan 28 16:54:07 2003 +++ gcc/Makefile.in Sat May 24 13:01:38 2003 @@ -6,7 +6,7 @@ $NetBSD: patch-ab,v 1.2 2003/07/08 15:04:58 drochner Exp $ # Language-independent files. DRIVER_DEFINES = \ -+ -DLINK_LIBGCC_SPEC="\"%D $(RPATH_FLAG)$(GCC_PREFIX)/lib\"" \ ++ -DLINK_LIBGCC_SPEC="\"%D $(RPATH_FLAG)$(prefix)/lib\"" \ -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \ -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \ -DDEFAULT_TARGET_VERSION=\"$(version)\" \ diff --git a/lang/gcc3-c/patches/patch-ba b/lang/gcc3-c/patches/patch-ba new file mode 100644 index 00000000000..40a450bd742 --- /dev/null +++ b/lang/gcc3-c/patches/patch-ba @@ -0,0 +1,16 @@ +$NetBSD: patch-ba,v 1.1 2003/07/09 15:14:43 drochner Exp $ + +--- gcc/unroll.c.orig 2003-03-25 20:23:07.000000000 +0000 ++++ gcc/unroll.c +@@ -792,9 +792,9 @@ unroll_loop (loop, insn_count, strength_ + /* We must limit the generic test to max_reg_before_loop, because only + these pseudo registers have valid regno_first_uid info. */ + for (r = FIRST_PSEUDO_REGISTER; r < max_reg_before_loop; ++r) +- if (REGNO_FIRST_UID (r) > 0 && REGNO_FIRST_UID (r) <= max_uid_for_loop ++ if (REGNO_FIRST_UID (r) > 0 && REGNO_FIRST_UID (r) < max_uid_for_loop + && REGNO_FIRST_LUID (r) >= copy_start_luid +- && REGNO_LAST_UID (r) > 0 && REGNO_LAST_UID (r) <= max_uid_for_loop ++ && REGNO_LAST_UID (r) > 0 && REGNO_LAST_UID (r) < max_uid_for_loop + && REGNO_LAST_LUID (r) <= copy_end_luid) + { + /* However, we must also check for loop-carried dependencies. |