mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-12-01 04:02:55 +00:00
b62fcfa7cf
- 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.
13 lines
556 B
Diff
13 lines
556 B
Diff
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);
|
|
|