Changeset 84123 in webkit


Ignore:
Timestamp:
Apr 17, 2011 11:53:23 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-17 Thierry Reding <thierry.reding@avionic-design.de>

Reviewed by Adam Barth.

Fix build with GCC 4.6.

  • dom/make_names.pl: Execute preprocessor without the -P option. The preprocessor in GCC 4.6 eats empty lines, effectively breaking the parsing performed by this script. Dropping the -P option when invoking the preprocessor keeps the empty lines but as a side-effect also adds additional linemarkers.

From the cpp manpage:

-P Inhibit generation of linemarkers in the output from the

preprocessor. This might be useful when running the preprocessor
on something that is not C code, and will be sent to a program
which might be confused by the linemarkers.

The linemarkers are not problematic, however, because the script
properly handles them by ignoring all lines starting with a #.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84120 r84123  
     12011-04-17  Thierry Reding  <thierry.reding@avionic-design.de>
     2
     3        Reviewed by Adam Barth.
     4
     5        Fix build with GCC 4.6.
     6
     7        * dom/make_names.pl: Execute preprocessor without the -P option. The
     8        preprocessor in GCC 4.6 eats empty lines, effectively breaking the
     9        parsing performed by this script. Dropping the -P option when invoking
     10        the preprocessor keeps the empty lines but as a side-effect also adds
     11        additional linemarkers.
     12
     13        From the cpp manpage:
     14
     15          -P  Inhibit generation of linemarkers in the output from the
     16              preprocessor. This might be useful when running the preprocessor
     17              on something that is not C code, and will be sent to a program
     18              which might be confused by the linemarkers.
     19
     20        The linemarkers are not problematic, however, because the script
     21        properly handles them by ignoring all lines starting with a #.
     22
    1232011-04-17  David Kilzer  <ddkilzer@apple.com>
    224
  • trunk/Source/WebCore/dom/make_names.pl

    r73989 r84123  
    6666    $gccLocation = "/usr/bin/gcc";
    6767}
    68 my $preprocessor = $gccLocation . " -E -P -x c++";
     68my $preprocessor = $gccLocation . " -E -x c++";
    6969
    7070GetOptions(
Note: See TracChangeset for help on using the changeset viewer.