diff options
author | Florian Smeets <flo@FreeBSD.org> | 2013-04-22 20:39:15 +0000 |
---|---|---|
committer | Florian Smeets <flo@FreeBSD.org> | 2013-04-22 20:39:15 +0000 |
commit | 1b08f540cae624b35122afedbfb22f457c21d857 (patch) | |
tree | 7bf222775d852b1b60fbab7bdedf651cb1de43b7 /mail/thunderbird/files | |
parent | d345bd51ae8eb321c8220431843ffb99be82ac1d (diff) | |
download | ports-1b08f540cae624b35122afedbfb22f457c21d857.tar.gz ports-1b08f540cae624b35122afedbfb22f457c21d857.zip |
Fix build with clang 3.3
Submitted by: Jan Beich <jbeich@tormail.org>
Notes
Notes:
svn path=/head/; revision=316274
Diffstat (limited to 'mail/thunderbird/files')
-rw-r--r-- | mail/thunderbird/files/patch-bug854936 | 22 | ||||
-rw-r--r-- | mail/thunderbird/files/patch-clang33 | 25 |
2 files changed, 47 insertions, 0 deletions
diff --git a/mail/thunderbird/files/patch-bug854936 b/mail/thunderbird/files/patch-bug854936 new file mode 100644 index 000000000000..fc3aa229c965 --- /dev/null +++ b/mail/thunderbird/files/patch-bug854936 @@ -0,0 +1,22 @@ +--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp~ ++++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp +@@ -9,7 +9,7 @@ + #include "xptc_gcc_x86_unix.h" + + extern "C" { +-static void ATTRIBUTE_USED __attribute__ ((regparm(3))) ++void ATTRIBUTE_USED __attribute__ ((regparm(3))) + invoke_copy_to_stack(uint32_t paramCount, nsXPTCVariant* s, uint32_t* d) + { + for(uint32_t i = paramCount; i >0; i--, d++, s++) +--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp~ ++++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp +@@ -10,7 +10,7 @@ + #include "xptc_gcc_x86_unix.h" + + extern "C" { +-static nsresult ATTRIBUTE_USED ++nsresult ATTRIBUTE_USED + __attribute__ ((regparm (3))) + PrepareAndDispatch(uint32_t methodIndex, nsXPTCStubBase* self, uint32_t* args) + { diff --git a/mail/thunderbird/files/patch-clang33 b/mail/thunderbird/files/patch-clang33 new file mode 100644 index 000000000000..520639b339d1 --- /dev/null +++ b/mail/thunderbird/files/patch-clang33 @@ -0,0 +1,25 @@ +--- mozilla/js/src/jspropertycacheinlines.h~ ++++ mozilla/js/src/jspropertycacheinlines.h +@@ -31,7 +31,7 @@ JS_ALWAYS_INLINE void + js::PropertyCache::test(JSContext *cx, jsbytecode *pc, JSObject *&obj, + JSObject *&pobj, PropertyCacheEntry *&entry, PropertyName *&name) + { +- AssertRootingUnnecessary assert(cx); ++ js::AssertRootingUnnecessary assert(cx); + + JS_ASSERT(this == &JS_PROPERTY_CACHE(cx)); + +--- mozilla/js/src/vm/ObjectImpl-inl.h~ ++++ mozilla/js/src/vm/ObjectImpl-inl.h +@@ -176,9 +176,9 @@ js::ObjectImpl::initializeSlotRange(uint + JSCompartment *comp = compartment(); + uint32_t offset = start; + for (HeapSlot *sp = fixedStart; sp < fixedEnd; sp++) +- sp->init(comp, this->asObjectPtr(), offset++, UndefinedValue()); ++ sp->init(comp, this->asObjectPtr(), offset++, js::UndefinedValue()); + for (HeapSlot *sp = slotsStart; sp < slotsEnd; sp++) +- sp->init(comp, this->asObjectPtr(), offset++, UndefinedValue()); ++ sp->init(comp, this->asObjectPtr(), offset++, js::UndefinedValue()); + } + + inline bool |