<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>58437</bug_id>
          
          <creation_ts>2011-04-13 06:10:09 -0700</creation_ts>
          <short_desc>WebKit fails to build with gcc 4.6</short_desc>
          <delta_ts>2011-04-18 01:30:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Thierry Reding">thierry.reding</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>thierry.reding</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>384820</commentid>
    <comment_count>0</comment_count>
    <who name="Thierry Reding">thierry.reding</who>
    <bug_when>2011-04-13 06:10:09 -0700</bug_when>
    <thetext>When the Source/WebCore/dom/make_names.pl script is run, the C preprocessor
is run with the -P option. Apparently, the preprocessor behavior was changed
in gcc 4.6 because running with the -P option makes it eat all empty lines,
which gcc 4.5 doesn&apos;t. The make_names.pl script, however, relies on these
empty lines when parsing.

The attached patch removes the -P option when invoking the preprocessor.
Apart from keeping the empty lines, this has the side-effect of outputting
some preprocessor output. However these lines (starting with a #) are
already being ignored by make_names.pl such that the preprocessed files can
be properly parsed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>384823</commentid>
    <comment_count>1</comment_count>
      <attachid>89369</attachid>
    <who name="Thierry Reding">thierry.reding</who>
    <bug_when>2011-04-13 06:13:57 -0700</bug_when>
    <thetext>Created attachment 89369
Fix build with gcc 4.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>385052</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-04-13 11:35:17 -0700</bug_when>
    <thetext>Thank you for reporting and fixing the problem!

For this patch to be landed in trunk, it needs to be prepared in accordance with &lt;http://www.webkit.org/coding/contributing.html&gt;. Specifically, it must have a ChangeLog entry, and it must be marked for review.

For the record, 
       -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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>385562</commentid>
    <comment_count>3</comment_count>
      <attachid>89542</attachid>
    <who name="Thierry Reding">thierry.reding</who>
    <bug_when>2011-04-14 00:14:50 -0700</bug_when>
    <thetext>Created attachment 89542
Fix build with gcc 4.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387526</commentid>
    <comment_count>4</comment_count>
      <attachid>89542</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-04-17 21:43:12 -0700</bug_when>
    <thetext>Comment on attachment 89542
Fix build with gcc 4.6.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387564</commentid>
    <comment_count>5</comment_count>
      <attachid>89542</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-17 23:53:43 -0700</bug_when>
    <thetext>Comment on attachment 89542
Fix build with gcc 4.6.

Clearing flags on attachment: 89542

Committed r84123: &lt;http://trac.webkit.org/changeset/84123&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387565</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-17 23:53:48 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387575</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-18 01:03:33 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 89542:

http/tests/xmlhttprequest/cross-origin-preflight-get.html bug 53976
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387582</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-18 01:30:59 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 89542:

fast/canvas/webgl/gl-teximage.html bug 58766 (authors: kbr@google.com, mihaip@chromium.org, and zmo@google.com)
fast/loader/recursive-before-unload-crash.html bug 50880 (authors: beidson@apple.com and eric@webkit.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>89369</attachid>
            <date>2011-04-13 06:13:57 -0700</date>
            <delta_ts>2011-04-14 00:14:50 -0700</delta_ts>
            <desc>Fix build with gcc 4.6.</desc>
            <filename>gcc-4.6.patch</filename>
            <type>text/plain</type>
            <size>418</size>
            <attacher name="Thierry Reding">thierry.reding</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL2RvbS9tYWtlX25hbWVzLnBsIGIvU291cmNlL1dl
YkNvcmUvZG9tL21ha2VfbmFtZXMucGwKaW5kZXggODM2MTM3ZS4uNTAzODZlMCAxMDA3NTUKLS0t
IGEvU291cmNlL1dlYkNvcmUvZG9tL21ha2VfbmFtZXMucGwKKysrIGIvU291cmNlL1dlYkNvcmUv
ZG9tL21ha2VfbmFtZXMucGwKQEAgLTY1LDcgKzY1LDcgQEAgaWYgKCRFTlZ7Q0N9KSB7CiB9IGVs
c2UgewogICAgICRnY2NMb2NhdGlvbiA9ICIvdXNyL2Jpbi9nY2MiOwogfQotbXkgJHByZXByb2Nl
c3NvciA9ICRnY2NMb2NhdGlvbiAuICIgLUUgLVAgLXggYysrIjsKK215ICRwcmVwcm9jZXNzb3Ig
PSAkZ2NjTG9jYXRpb24gLiAiIC1FIC14IGMrKyI7CiAKIEdldE9wdGlvbnMoCiAgICAgJ3RhZ3M9
cycgPT4gXCR0YWdzRmlsZSwgCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>89542</attachid>
            <date>2011-04-14 00:14:50 -0700</date>
            <delta_ts>2011-04-17 23:53:43 -0700</delta_ts>
            <desc>Fix build with gcc 4.6.</desc>
            <filename>gcc-4.6.patch</filename>
            <type>text/plain</type>
            <size>1640</size>
            <attacher name="Thierry Reding">thierry.reding</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCAwZDRiMmJjLi4zOGNhOTE1IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMjUg
QEAKKzIwMTEtMDQtMTQgIFRoaWVycnkgUmVkaW5nICA8dGhpZXJyeS5yZWRpbmdAYXZpb25pYy1k
ZXNpZ24uZGU+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAg
ICAgRml4IGJ1aWxkIHdpdGggR0NDIDQuNi4KKworICAgICAgICAqIGRvbS9tYWtlX25hbWVzLnBs
OiBFeGVjdXRlIHByZXByb2Nlc3NvciB3aXRob3V0IHRoZSAtUCBvcHRpb24uIFRoZQorICAgICAg
ICBwcmVwcm9jZXNzb3IgaW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