Commit 55bd4cbc authored by Jim Blandy's avatar Jim Blandy
Browse files

* Makefile.in (xmakefile): Recognize the -O option with a numeric

	optimization level.

	* ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or
	higher, use -O99 instead of plain -O.
parent 8ba83d88
......@@ -75,7 +75,7 @@ xmakefile: ymakefile config.h
${CPP} ${CFLAGS} junk.c > junk.cpp \
-DC_SWITCH_SITE="`echo ${CFLAGS}' ' \
| sed -e 's/-g /C_DEBUG_SWITCH /' \
-e 's/-O /C_OPTIMIZE_SWITCH /'`"
-e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
< junk.cpp \
sed -e 's/^#.*//' \
-e 's/^[ \f\t][ \f\t]*$$//' \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment