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
c19a8067
Commit
c19a8067
authored
May 17, 1995
by
Jason Merrill
Committed by
Mike Stump
May 17, 1995
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
72nd Cygnus<->FSF merge
From-SVN: r9737
parent
01e7bd9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
gcc/cp/ChangeLog
+9
-0
gcc/cp/class.c
+3
-0
gcc/cp/expr.c
+1
-0
No files found.
gcc/cp/ChangeLog
View file @
c19a8067
Wed May 17 01:43:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* class.c (finish_struct): Don't complain about a class with no
user-defined constructors but with a member that has no default
constructor, as this is OK for aggregates.
* expr.c (cplus_expand_expr, NEW_EXPR): If this is an explicit
constructor call, mark slot addressable.
Tue May 16 18:37:51 1995 Douglas Rupp (drupp@cs.washington.edu)
Tue May 16 18:37:51 1995 Douglas Rupp (drupp@cs.washington.edu)
* g++.c: Changed WINNT to _WIN32.
* g++.c: Changed WINNT to _WIN32.
...
...
gcc/cp/class.c
View file @
c19a8067
...
@@ -3287,6 +3287,8 @@ finish_struct (t, list_of_fieldlists, warn_anon)
...
@@ -3287,6 +3287,8 @@ finish_struct (t, list_of_fieldlists, warn_anon)
&&
!
TYPE_HAS_DEFAULT_CONSTRUCTOR
(
type
))
&&
!
TYPE_HAS_DEFAULT_CONSTRUCTOR
(
type
))
{
{
cant_have_default_ctor
=
1
;
cant_have_default_ctor
=
1
;
#if 0
/* This is wrong for aggregates. */
if (! TYPE_HAS_CONSTRUCTOR (t))
if (! TYPE_HAS_CONSTRUCTOR (t))
{
{
if (DECL_NAME (x))
if (DECL_NAME (x))
...
@@ -3296,6 +3298,7 @@ finish_struct (t, list_of_fieldlists, warn_anon)
...
@@ -3296,6 +3298,7 @@ finish_struct (t, list_of_fieldlists, warn_anon)
cp_pedwarn_at ("in class without a constructor",
cp_pedwarn_at ("in class without a constructor",
x);
x);
}
}
#endif
}
}
}
}
if
(
DECL_INITIAL
(
x
)
!=
NULL_TREE
)
if
(
DECL_INITIAL
(
x
)
!=
NULL_TREE
)
...
...
gcc/cp/expr.c
View file @
c19a8067
...
@@ -107,6 +107,7 @@ cplus_expand_expr (exp, target, tmode, modifier)
...
@@ -107,6 +107,7 @@ cplus_expand_expr (exp, target, tmode, modifier)
type
=
TYPE_POINTER_TO
(
type
);
type
=
TYPE_POINTER_TO
(
type
);
/* Don't clobber a value that might be part of a default
/* Don't clobber a value that might be part of a default
parameter value. */
parameter value. */
mark_addressable
(
slot
);
if
(
TREE_PERMANENT
(
args
))
if
(
TREE_PERMANENT
(
args
))
args
=
tree_cons
(
0
,
build1
(
ADDR_EXPR
,
type
,
slot
),
args
=
tree_cons
(
0
,
build1
(
ADDR_EXPR
,
type
,
slot
),
TREE_CHAIN
(
args
));
TREE_CHAIN
(
args
));
...
...
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