pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/m4 add hacks.mk to work around a compiler optimi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d69501de0307
branches:  trunk
changeset: 533703:d69501de0307
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Tue Sep 25 01:23:23 2007 +0000

description:
add hacks.mk to work around a compiler optimization error with
gcc on solaris.

diffstat:

 devel/m4/Makefile |   4 ++--
 devel/m4/hacks.mk |  26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 2ff2ab14b3ac -r d69501de0307 devel/m4/Makefile
--- a/devel/m4/Makefile Tue Sep 25 01:22:15 2007 +0000
+++ b/devel/m4/Makefile Tue Sep 25 01:23:23 2007 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.51 2007/07/29 14:36:46 joerg Exp $
+# $NetBSD: Makefile,v 1.52 2007/09/25 01:23:23 dmcmahill Exp $
 
 DISTNAME=      m4-1.4.10
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=m4/}
 
diff -r 2ff2ab14b3ac -r d69501de0307 devel/m4/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/m4/hacks.mk Tue Sep 25 01:23:23 2007 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: hacks.mk,v 1.1 2007/09/25 01:23:24 dmcmahill Exp $
+
+.if !defined(M4_HACKS_MK)
+M4_HACKS_MK=   defined
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+
+### [Mon Sep 24 09:00:13 EDT 2007 : dmcmahill]
+###
+### With gcc-3.3.5 on SunOS-5.9/sparc
+### In file included from frexpl.c:19:
+### frexp.c: In function `rpl_frexpl':
+### frexp.c:167: error: insn does not satisfy its constraints:
+### (insn 600 125 127 6 0 (set (reg:TF 10 %o2)
+###         (mem/u/f:TF (lo_sum:SI (reg/f:SI 1 %g1 [138])
+###                 (symbol_ref/u:SI ("*.LLC2"))) [0 S16 A64])) 74 {*movtf_insn_sp32} (nil)
+###     (nil))
+### frexp.c:167: internal compiler error: in reload_cse_simplify_operands, at reload1.c:8378
+###
+.if !empty(PKGSRC_COMPILER:Mgcc) && ${OPSYS} == "SunOS"
+PKG_HACKS+=            optimisation
+BUILDLINK_TRANSFORM+=  rm:-O[0-9]*
+.endif
+
+.endif # M4_HACKS_MK



Home | Main Index | Thread Index | Old Index