http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53607

             Bug #: 53607
           Summary: opt-functions.awk --> "awk: There is a regular
                    expression error."
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: sk...@iskunk.org
              Host: hppa2.0w-hp-hpux11.00
            Target: hppa2.0w-hp-hpux11.00
             Build: hppa2.0w-hp-hpux11.00


Created attachment 27583
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27583
Proposed fix

Bootstrapping 4.7.0 on an HP-UX 11.00 system fails with

[...]
echo timestamp > s-options
awk -f /home/src/gcc-4.7.0/gcc/opt-functions.awk -f /tg/freepor
t/src/gcc/gcc--4.7.0-tera/gcc/opt-read.awk \
               -f /home/src/gcc-4.7.0/gcc/opth-gen.awk \
               < optionlist > tmp-options.h
awk: There is a regular expression error.
        ?, *, or + not preceded by valid regular expression
 The source line number is 90.
 The error context is
                        if (flags ~ >>>  "^{") <<< 
gmake[3]: *** [s-options-h] Error 2
gmake[3]: Leaving directory `/tmp/gcc-build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/tmp/gcc-build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/tmp/gcc-build'
gmake: *** [bootstrap-lean] Error 2


The fix for this is fairly trivial; patch against SVN is attached.

Reply via email to