diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-13 08:00:48 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-13 08:00:48 +0000 |
commit | 8bfe5753492bfe542555904ce7d0a6021ab42427 (patch) | |
tree | 8cecf23aef6e66bf41d420e5722b052aef5792fc /gcc/cp/typeck.c | |
parent | e8dd1a36f06b57231dab9946e684a1d3af7d40a1 (diff) | |
download | ppe42-gcc-8bfe5753492bfe542555904ce7d0a6021ab42427.tar.gz ppe42-gcc-8bfe5753492bfe542555904ce7d0a6021ab42427.zip |
* class.c (build_vtbl_ref_1): Use fixed_type_or_null.
(fixed_type_or_null): See through reference vars.
(build_base_path): Vtable contents are constant.
* typeck.c (get_member_function_from_ptrfunc): Likewise.
* rtti.c (emit_tinfo_decl): Call import_export_decl.
* decl2.c (import_export_decl): Set DECL_NOT_REALLY_EXTERN on
tinfo decls by default. Don't mess with the builtins.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 329bc3300ca..3b92a64ac83 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -2911,6 +2911,7 @@ get_member_function_from_ptrfunc (instance_ptrptr, function) /* Finally, extract the function pointer from the vtable. */ e2 = fold (build (PLUS_EXPR, TREE_TYPE (vtbl), vtbl, idx)); e2 = build_indirect_ref (e2, NULL); + TREE_CONSTANT (e2) = 1; /* When using function descriptors, the address of the vtable entry is treated as a function pointer. */ |