summaryrefslogtreecommitdiffstats
path: root/mesa-9.0.1-less-cxx-please.patch
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-12-20 14:15:37 -0500
committerAdam Jackson <ajax@redhat.com>2012-12-20 14:15:37 -0500
commitb62fcfa7cfaf0a08119dc500853371ecfbcf36be (patch)
tree1b7779361381b8a1f7f358e09e17adf6c9be2aac /mesa-9.0.1-less-cxx-please.patch
parent6b4ca015c11381b1159e15ff093377f5a112039f (diff)
downloadmesa-b62fcfa7cfaf0a08119dc500853371ecfbcf36be.tar.gz
mesa-b62fcfa7cfaf0a08119dc500853371ecfbcf36be.tar.xz
mesa-b62fcfa7cfaf0a08119dc500853371ecfbcf36be.zip
mesa-9.0.1-22-gd0a9ab2.patch: Sync with git
- Build with -fno-rtti -fno-exceptions, modest size and speed win - mesa-9.0.1-less-cxx-please.patch: Remove the only use of typeid() so the above works.
Diffstat (limited to 'mesa-9.0.1-less-cxx-please.patch')
-rw-r--r--mesa-9.0.1-less-cxx-please.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/mesa-9.0.1-less-cxx-please.patch b/mesa-9.0.1-less-cxx-please.patch
new file mode 100644
index 0000000..4882782
--- /dev/null
+++ b/mesa-9.0.1-less-cxx-please.patch
@@ -0,0 +1,13 @@
+diff -up Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
+--- Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx 2012-08-31 19:33:41.000000000 -0400
++++ Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp 2012-12-20 12:58:02.115699825 -0500
+@@ -715,7 +715,9 @@ Instruction::clone(ClonePolicy<Function>
+ {
+ if (!i)
+ i = new_Instruction(pol.context(), op, dType);
++#ifdef __GXX_RTTI
+ assert(typeid(*i) == typeid(*this));
++#endif
+
+ pol.set<Instruction>(this, i);
+