DragonFly BSD
DragonFly bugs List (threaded) for 2004-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: crash while doing mkdir (system as of afternon today )


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Apr 2004 12:06:16 -0700 (PDT)

: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

    Well, alternatively we could hack up the /usr/src/share/mk/* files,
    but I would rather find a solution within just the GCC code.

    It should be possible to override the CFLAGS *after* all the inclusions.
    That is, after the .include <bsd.prog.mk>, e.g. like the below patch
    for cc.

    We should only have to override the core C compiler: cpp and cc1,
    and the assembler and linker (as and ld).  That isn't too bad a hack.
    And for now we only need to do it for GCC2.  We always compile GCC2
    with GCC2.

    What do you think?

						-Matt

Index: cc/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc/cc/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- cc/Makefile	29 Jan 2004 01:39:47 -0000	1.6
+++ cc/Makefile	5 Apr 2004 19:02:20 -0000
@@ -21,3 +21,5 @@
 LDADD+=	${LIBCC_INT}
 
 .include <bsd.prog.mk>
+
+CFLAGS:= ${CFLAGS:N-O*} -O



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]