1 # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Please add additional copyright information _after_ the line containing
5 # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
6 # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
8 # ROCK Linux: rock-src/package/x11/mozilla/hotfix-binutils-gcc.patch
9 # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
11 # This patch file is dual-licensed. It is available under the license the
12 # patched project is licensed under, as long as it is an OpenSource license
13 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
14 # of the GNU General Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at your option) any later
18 # --- ROCK-COPYRIGHT-NOTE-END ---
20 Hotfix needed for new binutils (bug is in gcc)
21 (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625)
23 --- ./content/html/style/src/nsROCSSPrimitiveValue.h.orig 2004-08-13 11:50:44.000000000 +0200
24 +++ ./content/html/style/src/nsROCSSPrimitiveValue.h 2004-08-13 11:57:20.000000000 +0200
31 + // --- see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625 ---
33 + // we can't make a switch statement here because the compiler will create a
34 + // jump-table in .ro_data for it and cause a link error such as:
36 + // # .L1035' referenced in section `.rodata' of
37 + // # ../../dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o): defined in
38 + // # discarded section `.gnu.linkonce.t._ZN21nsROCSSPrimitiveValue5ResetEv' of
39 + // # ../../dist/lib/libgkconhtmlstyle_s.a(nsROCSSPrimitiveValue.o)
41 + // - clifford (2004-08-13)
43 + if (mType == CSS_IDENT) {
44 NS_ASSERTION(mValue.mAtom, "Null atom should never happen");
45 NS_RELEASE(mValue.mAtom);
49 + if (mType == CSS_STRING) {
50 NS_ASSERTION(mValue.mString, "Null string should never happen");
51 nsMemory::Free(mValue.mString);
52 mValue.mString = nsnull;
56 + if (mType == CSS_URI) {
57 NS_IF_RELEASE(mValue.mURI);
61 + if (mType == CSS_RECT) {
62 NS_ASSERTION(mValue.mRect, "Null Rect should never happen");
63 NS_RELEASE(mValue.mRect);
67 + if (mType == CSS_RGBCOLOR) {
68 NS_ASSERTION(mValue.mColor, "Null RGBColor should never happen");
69 NS_RELEASE(mValue.mColor);