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
7c76b292
Commit
7c76b292
authored
Apr 01, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
From-SVN: r18934
parent
570221c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
gcc/cp/call.c
+19
-13
No files found.
gcc/cp/call.c
View file @
7c76b292
...
@@ -494,6 +494,7 @@ build_call (function, result_type, parms)
...
@@ -494,6 +494,7 @@ build_call (function, result_type, parms)
{
{
int
is_constructor
=
0
;
int
is_constructor
=
0
;
tree
tmp
;
tree
tmp
;
tree
decl
;
function
=
build_addr_func
(
function
);
function
=
build_addr_func
(
function
);
...
@@ -504,23 +505,28 @@ build_call (function, result_type, parms)
...
@@ -504,23 +505,28 @@ build_call (function, result_type, parms)
}
}
if
(
TREE_CODE
(
function
)
==
ADDR_EXPR
if
(
TREE_CODE
(
function
)
==
ADDR_EXPR
&&
TREE_CODE
(
TREE_OPERAND
(
function
,
0
))
==
FUNCTION_DECL
&&
TREE_CODE
(
TREE_OPERAND
(
function
,
0
))
==
FUNCTION_DECL
)
&&
DECL_CONSTRUCTOR_P
(
TREE_OPERAND
(
function
,
0
)))
decl
=
TREE_OPERAND
(
function
,
0
);
else
decl
=
NULL_TREE
;
if
(
decl
&&
DECL_CONSTRUCTOR_P
(
decl
))
is_constructor
=
1
;
is_constructor
=
1
;
/* Don't
actually pass empty class objects to a function
. This is useful
/* Don't
pass empty class objects by value
. This is useful
for tags in STL, which are used to control overload resolution.
for tags in STL, which are used to control overload resolution.
We don't need to handle other cases of copying empty classes. */
We don't need to handle other cases of copying empty classes. */
for
(
tmp
=
parms
;
tmp
;
tmp
=
TREE_CHAIN
(
tmp
))
if
(
!
decl
||
!
DECL_BUILT_IN
(
decl
))
if
(
is_empty_class
(
TREE_TYPE
(
TREE_VALUE
(
tmp
)))
for
(
tmp
=
parms
;
tmp
;
tmp
=
TREE_CHAIN
(
tmp
))
&&
!
TREE_ADDRESSABLE
(
TREE_TYPE
(
TREE_VALUE
(
tmp
))))
if
(
is_empty_class
(
TREE_TYPE
(
TREE_VALUE
(
tmp
)))
{
&&
!
TREE_ADDRESSABLE
(
TREE_TYPE
(
TREE_VALUE
(
tmp
))))
tree
t
=
make_node
(
RTL_EXPR
);
{
TREE_TYPE
(
t
)
=
TREE_TYPE
(
TREE_VALUE
(
tmp
));
tree
t
=
make_node
(
RTL_EXPR
);
RTL_EXPR_RTL
(
t
)
=
const0_rtx
;
TREE_TYPE
(
t
)
=
TREE_TYPE
(
TREE_VALUE
(
tmp
));
RTL_EXPR_SEQUENCE
(
t
)
=
NULL_RTX
;
RTL_EXPR_RTL
(
t
)
=
const0_rtx
;
TREE_VALUE
(
tmp
)
=
t
;
RTL_EXPR_SEQUENCE
(
t
)
=
NULL_RTX
;
}
TREE_VALUE
(
tmp
)
=
t
;
}
function
=
build_nt
(
CALL_EXPR
,
function
,
parms
,
NULL_TREE
);
function
=
build_nt
(
CALL_EXPR
,
function
,
parms
,
NULL_TREE
);
TREE_HAS_CONSTRUCTOR
(
function
)
=
is_constructor
;
TREE_HAS_CONSTRUCTOR
(
function
)
=
is_constructor
;
...
...
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