crash while doing mkdir (system as of afternon today )

Joerg Sonnenberger joerg at britannica.bec.de
Mon Apr 5 11:55:21 PDT 2004


On Mon, Apr 05, 2004 at 10:20:34AM -0400, Garance A Drosihn wrote:
> Maybe the gcc makefiles should be adjusted so that they will
> never be built with higher optimization levels.  Would that be
> hard to do?

You mean something like the attached patch? The problem is the inclusion
order, that's I can't ignore the user's CFLAGS and only remove the most
dangerous options. Other important programs / libs which are very likely
to produce broken code with higher optimizer settings?

Joerg

> 
> -- 
> Garance Alistair Drosehn            =   gad at xxxxxxxxxxxxxxxxxxxx
> Senior Systems Programmer           or  gad at xxxxxxxxxxx
> Rensselaer Polytechnic Institute    or  drosih at xxxxxxx
> 
Index: gnu/usr.bin/cc/Makefile.inc
===================================================================
RCS file: /extern/Daten/Sources/repository/dragonflybsd/src/gnu/usr.bin/cc/Makefile.inc,v
retrieving revision 1.8
diff -u -r1.8 Makefile.inc
--- gnu/usr.bin/cc/Makefile.inc	22 Mar 2004 20:57:44 -0000	1.8
+++ gnu/usr.bin/cc/Makefile.inc	5 Apr 2004 17:55:34 -0000
@@ -26,6 +26,10 @@
 version!=	grep version_string ${GCCDIR}/version.c \
 		    | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'
 
+NO_CPU_CFLAGS:=	yes
+CFLAGS:=	${CFLAGS:N-O*:N-funroll-loops:N-funroll-all-loops:N-march=*} -O
+CXXFLAGS:=	${CFLAGS:N-O*:N-funroll-loops:N-funroll-all-loops:N-march=*} -O
+
 CFLAGS+=	-DIN_GCC -DHAVE_CONFIG_H
 CFLAGS+=	-DPREFIX=\"${TOOLS_PREFIX}/usr\"
 CFLAGS+=	-DPREFIX1=\"${TOOLS_PREFIX}/usr\"
Index: gnu/usr.bin/cc3/Makefile.inc
===================================================================
RCS file: /extern/Daten/Sources/repository/dragonflybsd/src/gnu/usr.bin/cc3/Makefile.inc,v
retrieving revision 1.8
diff -u -r1.8 Makefile.inc
--- gnu/usr.bin/cc3/Makefile.inc	22 Mar 2004 20:57:50 -0000	1.8
+++ gnu/usr.bin/cc3/Makefile.inc	5 Apr 2004 18:04:14 -0000
@@ -9,6 +9,10 @@
 .if !defined(__CC_MAKEFILE_INC__)
 __CC_MAKEFILE_INC__= ${MFILE}
 
+NO_CPU_CFLAGS:=	yes
+CFLAGS:=	${CFLAGS:N-O*:N-funroll-loops:N-funroll-all-loops:N-march=*} -O
+CXXFLAGS:=	${CFLAGS:N-O*:N-funroll-loops:N-funroll-all-loops:N-march=*} -O
+
 CFLAGS+=	-I${.CURDIR}/../cc_int -I${.OBJDIR}/../cc_int
 
 GCCDIR=	${.CURDIR}/../../../../contrib/gcc-3.3




More information about the Bugs mailing list