diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2007-09-25 01:23:23 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2007-09-25 01:23:23 +0000 |
commit | 9aaca205159aced4c2de2ac6c007f4651137abd3 (patch) | |
tree | a6a2bf9a7ade3caeec9e5f5f114a32e4c76970eb /devel/m4 | |
parent | 16e8406b407ccd88c50c410f94ee3928f0be4557 (diff) | |
download | pkgsrc-9aaca205159aced4c2de2ac6c007f4651137abd3.tar.gz |
add hacks.mk to work around a compiler optimization error with
gcc on solaris.
Diffstat (limited to 'devel/m4')
-rw-r--r-- | devel/m4/Makefile | 4 | ||||
-rw-r--r-- | devel/m4/hacks.mk | 26 |
2 files changed, 28 insertions, 2 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile index 33cfa9d0b9c..335bd929cc7 100644 --- a/devel/m4/Makefile +++ b/devel/m4/Makefile @@ -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 --git a/devel/m4/hacks.mk b/devel/m4/hacks.mk new file mode 100644 index 00000000000..44b011660bb --- /dev/null +++ b/devel/m4/hacks.mk @@ -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 |