diff options
| author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-05 15:57:35 +0000 |
|---|---|---|
| committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-05 15:57:35 +0000 |
| commit | dc77ae824caaa5fc0f250e08957bb91207a67e10 (patch) | |
| tree | cc69de6af439764a4b6e5fb32865a1fcb23d2e45 /gcc | |
| parent | b0f5ff8c04708bc23884ab27f241c55d68fa427f (diff) | |
| download | ppe42-gcc-dc77ae824caaa5fc0f250e08957bb91207a67e10.tar.gz ppe42-gcc-dc77ae824caaa5fc0f250e08957bb91207a67e10.zip | |
* search.c (get_dynamic_cast_base_type): When building a new
constant, set its type to ssizetype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41117 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/search.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fe4c12523ec..1803a0d5e53 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 5 16:54:29 2001 J"orn Rennecke <amylaar@redhat.com> + + * search.c (get_dynamic_cast_base_type): When building a new + constant, set its type to ssizetype. + 2001-04-04 Jakub Jelinek <jakub@redhat.com> * optimize.c (expand_call_inline): Only add newly inlined statements diff --git a/gcc/cp/search.c b/gcc/cp/search.c index c52620f0cf3..1c0a50d949b 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -561,7 +561,9 @@ get_dynamic_cast_base_type (subtype, target) if (!boff) return offset; - return build_int_2 (boff, -1); + offset = build_int_2 (boff, -1); + TREE_TYPE (offset) = ssizetype; + return offset; } /* Search for a member with name NAME in a multiple inheritance lattice |

