1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 18_arm_xpcom_unused_attribute.dpatch by Mike Hommey <glandium@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Patch from Steve Langasek to fix unused vs. used gcc attribute on arm.
10
=== xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp
11
==================================================================
12
--- xulrunner/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp (revision 22)
13
+++ xulrunner/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp (local)
17
/* Specify explicitly a symbol for this function, don't try to guess the c++ mangled symbol. */
18
-static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args) asm("_PrepareAndDispatch");
19
+static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args) asm("_PrepareAndDispatch")
20
+__attribute__((used));
23
PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args)