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
31aedc36
Commit
31aedc36
authored
Jul 20, 2004
by
Mark Mitchell
Committed by
Mark Mitchell
Jul 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert patch for PR c++/16623.
From-SVN: r84942
parent
e05de6f2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
13 deletions
+5
-13
gcc/cp/ChangeLog
+4
-0
gcc/cp/class.c
+0
-4
gcc/cp/cp-tree.h
+1
-7
gcc/cp/method.c
+0
-2
No files found.
gcc/cp/ChangeLog
View file @
31aedc36
2004-07-19 Mark Mitchell <mark@codesourcery.com>
Revert patch for PR c++/16623.
2004-07-19 Kelley Cook <kcook@gcc.gnu.org>
* except.c: Remove two spurious carriage returns.
...
...
gcc/cp/class.c
View file @
31aedc36
...
...
@@ -2558,11 +2558,7 @@ add_implicitly_declared_members (tree t,
of the parameter to the assignment operator will be a const or
non-const reference. */
if
(
!
TYPE_HAS_ASSIGN_REF
(
t
)
&&
!
TYPE_FOR_JAVA
(
t
))
{
TYPE_HAS_ASSIGN_REF
(
t
)
=
1
;
TYPE_HAS_CONST_ASSIGN_REF
(
t
)
=
!
cant_have_const_assignment
;
CLASSTYPE_LAZY_ASSIGNMENT_OP
(
t
)
=
1
;
}
/* Now, hook all of the new functions on to TYPE_METHODS,
and add them to the CLASSTYPE_METHOD_VEC. */
...
...
gcc/cp/cp-tree.h
View file @
31aedc36
...
...
@@ -989,7 +989,6 @@ struct lang_type_class GTY(())
unsigned
lazy_default_ctor
:
1
;
unsigned
lazy_copy_ctor
:
1
;
unsigned
lazy_assignment_op
:
1
;
unsigned
has_const_init_ref
:
1
;
unsigned
has_complex_init_ref
:
1
;
unsigned
has_complex_assign_ref
:
1
;
...
...
@@ -1003,7 +1002,7 @@ struct lang_type_class GTY(())
/* There are some bits left to fill out a 32-bit word. Keep track
of this by updating the size of this bitfield whenever you add or
remove a flag. */
unsigned
dummy
:
8
;
unsigned
dummy
:
9
;
tree
primary_base
;
tree
vfields
;
...
...
@@ -1098,11 +1097,6 @@ struct lang_type GTY(())
#define CLASSTYPE_LAZY_COPY_CTOR(NODE) \
(LANG_TYPE_CLASS_CHECK (NODE)->lazy_copy_ctor)
/* Nonzero means that NODE (a class type) has an assignment operator
-- but that it has not yet been declared. */
#define CLASSTYPE_LAZY_ASSIGNMENT_OP(NODE) \
(LANG_TYPE_CLASS_CHECK (NODE)->lazy_assignment_op)
/* Nonzero means that this _CLASSTYPE node overloads operator=(X&). */
#define TYPE_HAS_ASSIGN_REF(NODE) (LANG_TYPE_CLASS_CHECK (NODE)->has_assign_ref)
...
...
gcc/cp/method.c
View file @
31aedc36
...
...
@@ -1068,8 +1068,6 @@ lazily_declare_fn (special_function_kind sfk, tree type)
/* Create appropriate clones. */
clone_function_decl
(
fn
,
/*update_method_vec=*/
true
);
}
else
if
(
sfk
==
sfk_assignment_operator
)
CLASSTYPE_LAZY_ASSIGNMENT_OP
(
type
)
=
0
;
return
fn
;
}
...
...
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