From 82febb3994eb23a2cbeb53d5d9cf2f670bf7b522 Mon Sep 17 00:00:00 2001 From: briano Date: Fri, 15 May 1998 18:50:35 +0000 Subject: [PATCH] Minor tweak for Alpha Linux. On my machine (DECStation 200, 64MB, RH5, 2.0.30), using -O2 (the default) causes the optimizer to dump core, leaving gcc hanging. Using -O instead, for just jidctred.c, works fine. This is hopefully a temporary hack. Anyone have any long-term solutions? Approved by pnunn@netscape.com. git-svn-id: svn://10.0.0.236/trunk@1759 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/jpeg/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/mozilla/jpeg/Makefile b/mozilla/jpeg/Makefile index b9683d09163..77ee7f4264d 100644 --- a/mozilla/jpeg/Makefile +++ b/mozilla/jpeg/Makefile @@ -1,4 +1,3 @@ -#!gmake # # The contents of this file are subject to the Netscape Public License # Version 1.0 (the "NPL"); you may not use this file except in @@ -14,7 +13,6 @@ # Communications Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All Rights # Reserved. - # DEPTH = .. @@ -82,3 +80,17 @@ TARGETS = $(LIBRARY) endif include $(DEPTH)/config/rules.mk + +# +# Trying to compile jidctred.c with -O2 causes cc1 (?) to dump core, +# leaving gcc hanging. Using -O works fine. +# +# Linux 2.0.30 (RedHat 5 Alpha) +# 64MB RAM +# egcs-2.90.23 980102 (egcs-1.0.1 release) +# +ifeq ($(OS_ARCH)$(CPU_ARCH),Linuxalpha) +$(OBJDIR)/jidctred.o: jidctred.c + @$(MAKE_OBJDIR) + $(CC) -o $@ -c $(XP_DEFINE) -O $(OS_CFLAGS) $(MDUPDATE_FLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS) $(PROF_FLAGS) $< +endif