Magellan Linux

Contents of /trunk/mesa/patches/mesa-9.0.2-typeid-no-rtti-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2056 - (show annotations) (download)
Wed Jan 30 10:03:52 2013 UTC (11 years, 3 months ago) by niro
File size: 556 byte(s)
-fix a FTBFS with -fno-rtti
1 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
2 --- Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp.jx 2012-08-31 19:33:41.000000000 -0400
3 +++ Mesa-9.0.1/src/gallium/drivers/nv50/codegen/nv50_ir.cpp 2012-12-20 12:58:02.115699825 -0500
4 @@ -715,7 +715,9 @@ Instruction::clone(ClonePolicy<Function>
5 {
6 if (!i)
7 i = new_Instruction(pol.context(), op, dType);
8 +#ifdef __GXX_RTTI
9 assert(typeid(*i) == typeid(*this));
10 +#endif
11
12 pol.set<Instruction>(this, i);
13