]> git.pld-linux.org Git - packages/firefox.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 11 Jul 2005 21:29:14 +0000 (21:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mozilla-firefox-gcc-bugs.patch -> 1.1

mozilla-firefox-gcc-bugs.patch [new file with mode: 0644]

diff --git a/mozilla-firefox-gcc-bugs.patch b/mozilla-firefox-gcc-bugs.patch
new file mode 100644 (file)
index 0000000..68f3799
--- /dev/null
@@ -0,0 +1,73 @@
+# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
+# 
+# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
+# Please add additional copyright information _after_ the line containing
+# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
+# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
+# 
+# ROCK Linux: rock-src/package/x11/mozilla/hotfix-binutils-gcc.patch
+# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
+# 
+# This patch file is dual-licensed. It is available under the license the
+# patched project is licensed under, as long as it is an OpenSource license
+# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
+# of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+# 
+# --- ROCK-COPYRIGHT-NOTE-END ---
+
+Hotfix needed for new binutils (bug is in gcc)
+(see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625)
+
+--- ./content/html/style/src/nsROCSSPrimitiveValue.h.orig      2004-08-13 11:50:44.000000000 +0200
++++ ./content/html/style/src/nsROCSSPrimitiveValue.h   2004-08-13 11:57:20.000000000 +0200
+@@ -191,27 +191,37 @@
+   void Reset(void)
+   {
+-    switch (mType) {
+-      case CSS_IDENT:
++    // --- see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625 ---
++    //
++    // we can't make a switch statement here because the compiler will create a
++    // jump-table in .ro_data for it and cause a link error such as:
++    //
++    // # .L1035' referenced in section `.rodata' of
++    // # ../../dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o): defined in
++    // # discarded section `.gnu.linkonce.t._ZN21nsROCSSPrimitiveValue5ResetEv' of
++    // # ../../dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o)
++    //
++    // - clifford (2004-08-13)
++    //
++    if (mType == CSS_IDENT) {
+         NS_ASSERTION(mValue.mAtom, "Null atom should never happen");
+         NS_RELEASE(mValue.mAtom);
+-        break;
+-      case CSS_STRING:
++    }
++    if (mType == CSS_STRING) {
+         NS_ASSERTION(mValue.mString, "Null string should never happen");
+         nsMemory::Free(mValue.mString);
+         mValue.mString = nsnull;
+-        break;
+-      case CSS_URI:
++    }
++    if (mType == CSS_URI) {
+         NS_IF_RELEASE(mValue.mURI);
+-        break;
+-      case CSS_RECT:
++    }
++    if (mType == CSS_RECT) {
+         NS_ASSERTION(mValue.mRect, "Null Rect should never happen");
+         NS_RELEASE(mValue.mRect);
+-        break;
+-      case CSS_RGBCOLOR:
++    }
++    if (mType == CSS_RGBCOLOR) {
+         NS_ASSERTION(mValue.mColor, "Null RGBColor should never happen");
+         NS_RELEASE(mValue.mColor);
+-        break;
+     }
+   }
This page took 0.471571 seconds and 4 git commands to generate.