author | Mike Kinghan <mikek@symbian.org> |
Tue, 27 Jul 2010 07:53:26 +0100 | |
branch | GCC_SURGE |
changeset 236 | 7dc50dc94301 |
parent 235 | cbd07013118c |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 |
// All rights reserved. |
|
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "ARM EABI LICENCE.txt" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// in kernel/eka/compsupp. |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
12 |
// |
|
13 |
// Description: |
|
14 |
// This file is part of drtaeabi.dll. |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
||
19 |
#include <e32std.h> |
|
20 |
#include <e32panic.h> |
|
21 |
||
22 |
extern "C" { |
|
23 |
||
24 |
EXPORT_C void abort() |
|
25 |
{ |
|
26 |
User::RaiseException(EExcAbort); |
|
27 |
} |
|
28 |
||
29 |
EXPORT_C void __cxa_pure_virtual() |
|
30 |
{ |
|
31 |
User::Panic( _L("Pure virtual"), EPureVirtualCalled ); |
|
32 |
} |
|
33 |
||
34 |
#if __ARMCC_VERSION < 300000 |
|
35 |
IMPORT_C void* __get_typeid(void*); |
|
36 |
EXPORT_C void* __ARM_get_typeid(void* p) |
|
37 |
{ |
|
38 |
return __get_typeid(p); |
|
39 |
} |
|
40 |
#endif |
|
41 |
||
42 |
} // extern "C" |
|
43 |
||
44 |
||
45 |
// |
|
46 |
// Create the type_info object for void. |
|
47 |
// |
|
48 |
||
49 |
extern const char * const $Sub$$_ZTSv = "v"; |
|
50 |
||
235
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
51 |
#if defined(__ARMCC__) |
0 | 52 |
__asm void __rt_exporter_dummy() |
53 |
{ |
|
54 |
IMPORT _ZTVN10__cxxabiv123__fundamental_type_infoE [DYNAMIC] |
|
55 |
IMPORT _ZTSv |
|
56 |
||
57 |
#if __ARMCC_VERSION < 300000 |
|
58 |
EXPORT |$Sub$$_ZTIv| |
|
59 |
#else |
|
60 |
EXPORT |$Sub$$_ZTIv| [DYNAMIC] |
|
61 |
#endif |
|
62 |
||
63 |
|$Sub$$_ZTIv| |
|
64 |
||
65 |
DCD _ZTVN10__cxxabiv123__fundamental_type_infoE |
|
66 |
DCD _ZTSv |
|
67 |
} |
|
235
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
68 |
#elif defined(__GCCE__) |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
69 |
__NAKED__ void __rt_exporter_dummy() |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
70 |
{ |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
71 |
asm(".weak ZTVN10__cxxabiv123__fundamental_type_infoE"); |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
72 |
asm(".extern _ZTSv"); |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
73 |
asm(".global $Sub$$_ZTIv"); |
236
7dc50dc94301
1) Fix for bug 3413 - [GCCE] Namespace 'abi' not declared in e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
235
diff
changeset
|
74 |
asm("$Sub$$_ZTIv:"); |
235
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
75 |
asm(".word _ZTVN10__cxxabiv123__fundamental_type_infoE"); |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
76 |
asm(".word _ZTSv"); |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
77 |
} |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
78 |
|
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
79 |
#else |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
80 |
#error What compiler? |
cbd07013118c
1) Fix for bug 3392 - [GCCE] GCC definition for FORCEINLINE required for e32test build.
Mike Kinghan <mikek@symbian.org>
parents:
0
diff
changeset
|
81 |
#endif |
0 | 82 |
|
83 |
#if __ARMCC_VERSION > 400000 |
|
84 |
asm void __symbian_prevent_export() |
|
85 |
{ |
|
86 |
IMPORT __rt_uread4 |
|
87 |
IMPORT __rt_uread8 |
|
88 |
IMPORT __rt_uwrite4 |
|
89 |
IMPORT __rt_uwrite8 |
|
90 |
IMPORT _ll_mul |
|
91 |
IMPORT _ll_scmp |
|
92 |
IMPORT _ll_sdiv |
|
93 |
IMPORT _ll_shift_l |
|
94 |
IMPORT _ll_sshift_r |
|
95 |
IMPORT _ll_ucmp |
|
96 |
IMPORT _ll_udiv |
|
97 |
IMPORT _ll_udiv_donemoving |
|
98 |
IMPORT _ll_ushift_r |
|
99 |
||
100 |
IMPORT __ARM_array_delete_general |
|
101 |
IMPORT __ARM_array_new_general |
|
102 |
IMPORT __ARM_vec_cleanup_rethrow |
|
103 |
} |
|
104 |
#endif |
|
105 |