freebsd-ports/lang/pgcc/files/patch-ab
Andreas Klemm c1b1010ad0 Bootstrap pgcc-current using -O instead of -O2 (for safety reasons, I don't
want higher optimization levels result in unsafer binaries).

Fix bug, that causes core dumps when using higher optimization levels
than -O2.

Results with dhrystone 2.1 (1000000 loops):
	stock cc (2.7.2.1 from current)	:	136k	(136xxx)
	pgcc-current with -O2		:	138k
	pgcc-current with -O6		:	172k

And no coredump anymore. Reason for coredump:
With -O3 cc1 does an register-to-register-copy optimization and it tries
to write some debugging information about what it is doing into a file
that does not exist unless you have instructed cc1 to dump all its
information about its internal state. (From: Sascha Blank)

BTW:	PLIST is really coming soon, it's on my todo list ;-)
BTW2:	Is Sascha already in the contributors list ? Have to go to work now.

Submitted by:	Sascha Blank <blank@sliphost37.uni-trier.de>
1996-12-20 07:27:41 +00:00

20 lines
685 B
Text

--- Makefile.in.orig Wed Dec 18 00:15:45 1996
+++ Makefile.in Wed Dec 18 00:24:31 1996
@@ -53,7 +53,7 @@
# TCFLAGS is used for compilations with the GCC just built.
XCFLAGS =
TCFLAGS =
-CFLAGS = -g
+CFLAGS = -pipe -O
BOOT_CFLAGS = -O $(CFLAGS)
# These exists to be overridden by the x-* and t-* files, respectively.
X_CFLAGS =
@@ -460,7 +460,7 @@
# Both . and srcdir are used, in that order,
# so that tm.h and config.h will be found in the compilation
# subdirectory rather than in the source directory.
-INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
+INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config -I$(srcdir)/cp/inc
# Always use -I$(srcdir)/config when compiling.
.c.o: