Changeset 113848 in webkit


Ignore:
Timestamp:
Apr 11, 2012 4:23:19 AM (12 years ago)
Author:
abecsi@webkit.org
Message:

Fix the build with gcc 4.7.0
https://bugs.webkit.org/show_bug.cgi?id=83584

Reviewed by Alexey Proskuryakov.

Source/WebCore:

No new tests needed.

  • Target.pri: Disable Werror on the ANGLE code since it has several recurring issues

because older versions of flex (<2.5.35) and bison (<2.5) generate code which
triggers warnings. This generated code is committed on each version update of ANGLE,
and it is very likely that the code is generated with older versions of the mentioned
tools.

  • html/HTMLImageElement.cpp:

(WebCore::HTMLImageElement::createForJSConstructor): Fails because of -Werror=extra

  • platform/graphics/TiledBackingStoreClient.h: Fails because -Werror=delete-non-virtual-dtor,

gcc requires classes which have virtual methods to have a virtual destructor, if their instances
or the instances of their subclasses are deleted.
(WebCore::TiledBackingStoreClient::~TiledBackingStoreClient):

  • platform/graphics/texmap/TextureMapperPlatformLayer.h: Ditto.

(WebCore::TextureMapperPlatformLayer::~TextureMapperPlatformLayer):

Tools:

  • qmake/mkspecs/features/unix/default_post.prf:

The -fuse-ld=gold option is not supported with upstream gcc.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r113846 r113848  
     12012-04-11  Andras Becsi  <andras.becsi@nokia.com>
     2
     3        Fix the build with gcc 4.7.0
     4        https://bugs.webkit.org/show_bug.cgi?id=83584
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        No new tests needed.
     9
     10        * Target.pri: Disable Werror on the ANGLE code since it has several recurring issues
     11        because older versions of flex (<2.5.35) and bison (<2.5) generate code which
     12        triggers warnings. This generated code is committed on each version update of ANGLE,
     13        and it is very likely that the code is generated with older versions of the mentioned
     14        tools.
     15        * html/HTMLImageElement.cpp:
     16        (WebCore::HTMLImageElement::createForJSConstructor): Fails because of -Werror=extra
     17        * platform/graphics/TiledBackingStoreClient.h: Fails because -Werror=delete-non-virtual-dtor,
     18        gcc requires classes which have virtual methods to have a virtual destructor, if their instances
     19        or the instances of their subclasses are deleted.
     20        (WebCore::TiledBackingStoreClient::~TiledBackingStoreClient):
     21        * platform/graphics/texmap/TextureMapperPlatformLayer.h: Ditto.
     22        (WebCore::TextureMapperPlatformLayer::~TextureMapperPlatformLayer):
     23
    1242012-04-11  Kent Tamura  <tkent@chromium.org>
    225
  • trunk/Source/WebCore/Target.pri

    r113842 r113848  
    39593959            ANGLE_CFLAGS += -Wno-unused-function
    39603960            ANGLE_CFLAGS += -Wno-reorder
     3961            ANGLE_CFLAGS += -Wno-error
    39613962
    39623963            angle_cxx.commands = $$QMAKE_CXX -c $(CXXFLAGS) $$ANGLE_CFLAGS $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
  • trunk/Source/WebCore/html/HTMLImageElement.cpp

    r113317 r113848  
    7474    if (optionalWidth)
    7575        image->setWidth(*optionalWidth);
    76     if (optionalHeight > 0)
     76    if (optionalHeight)
    7777        image->setHeight(*optionalHeight);
    7878    return image.release();
  • trunk/Source/WebCore/platform/graphics/TiledBackingStoreClient.h

    r97571 r113848  
    3030class TiledBackingStoreClient {
    3131public:
     32    virtual ~TiledBackingStoreClient() { }
    3233    virtual void tiledBackingStorePaintBegin() = 0;
    3334    virtual void tiledBackingStorePaint(GraphicsContext*, const IntRect&) = 0;
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h

    r107707 r113848  
    3030class TextureMapperPlatformLayer {
    3131public:
     32    virtual ~TextureMapperPlatformLayer() { }
    3233    virtual void paintToTextureMapper(TextureMapper*, const FloatRect&, const TransformationMatrix& modelViewMatrix = TransformationMatrix(), float opacity = 1.0, BitmapTexture* mask = 0) = 0;
    3334    virtual void swapBuffers() { }
  • trunk/Tools/ChangeLog

    r113839 r113848  
     12012-04-11  Andras Becsi  <andras.becsi@nokia.com>
     2
     3        Fix the build with gcc 4.7.0
     4        https://bugs.webkit.org/show_bug.cgi?id=83584
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * qmake/mkspecs/features/unix/default_post.prf:
     9        The -fuse-ld=gold option is not supported with upstream gcc.
     10
    1112012-04-11  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/Tools/qmake/mkspecs/features/unix/default_post.prf

    r113330 r113848  
    4141} else {
    4242  # Use gold if available
    43   !scratchbox:!mac:exists(/usr/bin/ld.gold): QMAKE_LFLAGS += -fuse-ld=gold
     43  !scratchbox:!mac:exists(/usr/bin/ld.gold) {
     44      # Upstream gcc 4.7 does not support the -fuse-ld=gold option ( see: http://sourceware.org/ml/binutils/2011-01/msg00178.html )
     45      isEqual(QT_GCC_MAJOR_VERSION, 4):lessThan(QT_GCC_MINOR_VERSION, 7):QMAKE_LFLAGS += -fuse-ld=gold
     46  }
    4447}
    4548
Note: See TracChangeset for help on using the changeset viewer.