Speed up libc compiles by not copying a useless string into the command 
line of every cc invocation. :)

Index: Makefile.inc
===================================================================
RCS file: /home/tedu/cvs/src/lib/libc/regex/Makefile.inc,v
retrieving revision 1.6
diff -u -r1.6 Makefile.inc
--- Makefile.inc        15 Apr 2005 02:07:04 -0000      1.6
+++ Makefile.inc        20 Nov 2010 01:27:30 -0000
@@ -4,8 +4,6 @@
 # regex sources
 .PATH: ${LIBCSRCDIR}/regex
 
-CFLAGS+=-DPOSIX_MISTAKE
-
 SRCS+= regcomp.c regerror.c regexec.c regfree.c
 
 MAN+=  regex.3 re_format.7
Index: regcomp.c
===================================================================
RCS file: /home/tedu/cvs/src/lib/libc/regex/regcomp.c,v
retrieving revision 1.19
diff -u -r1.19 regcomp.c
--- regcomp.c   23 Feb 2008 08:13:07 -0000      1.19
+++ regcomp.c   20 Nov 2010 01:28:29 -0000
@@ -319,18 +319,6 @@
                EMIT(ORPAREN, subno);
                MUSTEAT(')', REG_EPAREN);
                break;
-#ifndef POSIX_MISTAKE
-       case ')':               /* happens only if no current unmatched ( */
-               /*
-                * You may ask, why the ifndef?  Because I didn't notice
-                * this until slightly too late for 1003.2, and none of the
-                * other 1003.2 regular-expression reviewers noticed it at
-                * all.  So an unmatched ) is legal POSIX, at least until
-                * we can get it fixed.
-                */
-               SETERROR(REG_EPAREN);
-               break;
-#endif
        case '^':
                EMIT(OBOL, 0);
                p->g->iflags |= USEBOL;

Reply via email to