Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
59be85d7
Commit
59be85d7
authored
Feb 03, 1995
by
Jason Merrill
Committed by
Jason Merrill
Feb 03, 1995
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MI conversions
From-SVN: r8856
parent
31117bfb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
gcc/cp/ChangeLog
+7
-0
gcc/cp/class.c
+4
-0
gcc/cp/cvt.c
+6
-0
No files found.
gcc/cp/ChangeLog
View file @
59be85d7
Thu Feb 2 15:07:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* class.c (build_vbase_path): Bash types to make the backend happy.
* cvt.c (build_up_reference): Bash the types bashed by
build_vbase_path to be reference types instead of pointer types.
(convert_to_reference): Ditto.
Wed Jan 25 15:02:09 1995 David S. Miller (davem@nadzieja.rutgers.edu)
* class.c (instantiate_type): Change error message text.
...
...
gcc/cp/class.c
View file @
59be85d7
...
...
@@ -303,6 +303,10 @@ build_vbase_path (code, type, expr, path, alias_this)
if
(
TREE_INT_CST_LOW
(
offset
))
{
/* Bash types to make the backend happy. */
offset
=
convert
(
type
,
offset
);
expr
=
build1
(
NOP_EXPR
,
type
,
expr
);
/* For multiple inheritance: if `this' can be set by any
function, then it could be 0 on entry to any function.
Preserve such zeroness here. Otherwise, only in the
...
...
gcc/cp/cvt.c
View file @
59be85d7
...
...
@@ -609,6 +609,9 @@ build_up_reference (type, arg, flags, checkconst)
rval
=
convert_to_pointer_force
(
build_pointer_type
(
target_type
),
rval
);
TREE_TYPE
(
rval
)
=
type
;
if
(
TREE_CODE
(
rval
)
==
PLUS_EXPR
||
TREE_CODE
(
rval
)
==
MINUS_EXPR
)
TREE_TYPE
(
TREE_OPERAND
(
rval
,
0
))
=
TREE_TYPE
(
TREE_OPERAND
(
rval
,
1
))
=
type
;
}
TREE_CONSTANT
(
rval
)
=
literal_flag
;
return
rval
;
...
...
@@ -683,6 +686,9 @@ convert_to_reference (reftype, expr, convtype, flags, decl)
convtype
,
flags
);
TREE_TYPE
(
expr
)
=
type
;
TREE_TYPE
(
rval
)
=
reftype
;
if
(
TREE_CODE
(
rval
)
==
PLUS_EXPR
||
TREE_CODE
(
rval
)
==
MINUS_EXPR
)
TREE_TYPE
(
TREE_OPERAND
(
rval
,
0
))
=
TREE_TYPE
(
TREE_OPERAND
(
rval
,
1
))
=
reftype
;
return
rval
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment