Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/clang/files: clang-2.6-gcc45.patch
Date: Wed, 28 Apr 2010 08:40:10
Message-Id: 20100428084006.EE6E62C05E@corvid.gentoo.org
1 voyageur 10/04/28 08:40:06
2
3 Added: clang-2.6-gcc45.patch
4 Log:
5 GCC 4.5 support for 2.6, bug #317467
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sys-devel/clang/files/clang-2.6-gcc45.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/clang/files/clang-2.6-gcc45.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/clang/files/clang-2.6-gcc45.patch?rev=1.1&content-type=text/plain
13
14 Index: clang-2.6-gcc45.patch
15 ===================================================================
16 --- llvm-2.6/tools/clang/lib/CodeGen/CGObjCGNU.cpp.bak 2010-04-27 15:07:20.000000000 +0300
17 +++ llvm-2.6/tools/clang/lib/CodeGen/CGObjCGNU.cpp 2010-04-27 15:08:26.000000000 +0300
18 @@ -1170,7 +1170,7 @@
19 Elements.push_back(llvm::ConstantInt::get(LongTy, RuntimeVersion));
20 }
21 // sizeof(ModuleTy)
22 - llvm::TargetData td = llvm::TargetData::TargetData(&TheModule);
23 + llvm::TargetData td = llvm::TargetData(&TheModule);
24 Elements.push_back(llvm::ConstantInt::get(LongTy,
25 td.getTypeSizeInBits(ModuleTy)/8));
26 //FIXME: Should be the path to the file where this module was declared
27 @@ -1320,7 +1320,7 @@
28 CGF.EmitBlock(TryHandler);
29
30 // Get the correct versions of the exception handling intrinsics
31 - llvm::TargetData td = llvm::TargetData::TargetData(&TheModule);
32 + llvm::TargetData td = llvm::TargetData(&TheModule);
33 int PointerWidth = td.getTypeSizeInBits(PtrTy);
34 assert((PointerWidth == 32 || PointerWidth == 64) &&
35 "Can't yet handle exceptions if pointers are not 32 or 64 bits");