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
3551c177
Commit
3551c177
authored
26 years ago
by
Jason Merrill
Committed by
Jason Merrill
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* typeck2.c (build_functional_cast): Handle default-initialization.
From-SVN: r21427
parent
b3abfd6f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletions
+13
-1
gcc/cp/ChangeLog
+3
-0
gcc/cp/Makefile.in
+1
-1
gcc/cp/parse.c
+0
-0
gcc/cp/typeck2.c
+9
-0
No files found.
gcc/cp/ChangeLog
View file @
3551c177
1998-07-27 Jason Merrill <jason@yorick.cygnus.com>
* typeck2.c (build_functional_cast): Handle default-initialization.
* call.c (build_over_call): Pass 1 to popclass.
* parse.y (direct_notype_declarator): Add precedence declaration
to notype_unqualified_id case.
* Makefile.in (EXPECT): Adjust.
* tree.c (ovl_member): Fix for single function in OVL.
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/Makefile.in
View file @
3551c177
...
...
@@ -215,7 +215,7 @@ parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h \
$(CC)
-c
$(ALL_CFLAGS)
$(ALL_CPPFLAGS)
$(INCLUDES)
$(BIG_SWITCHFLAG)
\
`
echo
$(PARSE_C)
| sed
's,^\./,,'
`
CONFLICTS
=
expect 2
8
shift
/reduce conflicts and 42 reduce/reduce conflicts.
CONFLICTS
=
expect 2
6
shift
/reduce conflicts and 42 reduce/reduce conflicts.
$(PARSE_H)
:
$(PARSE_C)
$(PARSE_C)
:
$(srcdir)/parse.y
@
echo
$(CONFLICTS)
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/parse.c
View file @
3551c177
This diff is collapsed.
Click to expand it.
gcc/cp/typeck2.c
View file @
3551c177
...
...
@@ -1501,6 +1501,15 @@ build_functional_cast (exp, parms)
if
(
parms
&&
TREE_CHAIN
(
parms
)
==
NULL_TREE
)
return
build_c_cast
(
type
,
TREE_VALUE
(
parms
));
/* We need to zero-initialize POD types. Let's do that for everything
that doesn't need a constructor. */
if
(
parms
==
NULL_TREE
&&
!
TYPE_NEEDS_CONSTRUCTING
(
type
)
&&
TYPE_HAS_DEFAULT_CONSTRUCTOR
(
type
))
{
exp
=
build
(
CONSTRUCTOR
,
type
,
NULL_TREE
,
NULL_TREE
);
return
get_target_expr
(
exp
);
}
exp
=
build_method_call
(
NULL_TREE
,
ctor_identifier
,
parms
,
TYPE_BINFO
(
type
),
LOOKUP_NORMAL
);
...
...
This diff is collapsed.
Click to expand it.
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