Subject: pkg/31387: remove compiler bug workaround in freetype2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tnn@netilium.org>
List: pkgsrc-bugs
Date: 09/24/2005 20:44:01
>Number:         31387
>Category:       pkg
>Synopsis:       remove compiler bug workaround in freetype2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 24 20:44:00 +0000 2005
>Originator:     Tobias Nygren
>Release:        3.99.8
>Organization:
>Environment:
NetBSD chiyo.int.nygren.pp.se 3.99.8 NetBSD 3.99.8 (GENERIC.MP) #7: Mon Sep 19 20:16:50 CEST 2005  root@omega.int.nygren.pp.se:/scratch/src/work/obj-alpha/sys/arch/alpha/compile/GENERIC.MP alpha

>Description:
The compiler bug workaround introduced in rev. 1.33 of
pkgsrc/graphics/freetype2/Makefile from pkg/25742 is no
longer needed on alpha. (I guess it got fixed upstream.)
I have tried xpdf, firefox and other applications built
using -O2 and -O3 without problems.


>How-To-Repeat:
n/a
>Fix:
remove alpha specific hack:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/freetype2/Makefile,v
retrieving revision 1.44
diff -u -r1.44 Makefile
--- Makefile	30 Jun 2005 13:01:28 -0000	1.44
+++ Makefile	24 Sep 2005 20:37:53 -0000
@@ -46,12 +46,6 @@
 CFLAGS+=	-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
 .endif
 
-# reduce optimization level on alpha to avoid compiler bugs
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-alpha)
-CPPFLAGS:=	${CPPFLAGS:C/-O[0-9]*/-O/g}
-CFLAGS:=	${CFLAGS:C/-O[0-9]*/-O/g}
-.endif
-
 # source code breaks strict aliasing in gcc>=2.95
 .if !empty(CC_VERSION:Mgcc-[3-9]*) || !empty(CC_VERSION:Mgcc-2.95*)
 CFLAGS+=	-fno-strict-aliasing