mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
c1b1010ad0
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>
21 lines
685 B
Plaintext
21 lines
685 B
Plaintext
--- 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:
|