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
6640eba9
Commit
6640eba9
authored
Oct 14, 1997
by
Brendan Kehoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix two typos
From-SVN: r15906
parent
1f479842
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
gcc/cp/init.c
+1
-1
gcc/cp/typeck.c
+1
-1
No files found.
gcc/cp/init.c
View file @
6640eba9
...
...
@@ -2131,7 +2131,7 @@ resolve_offset_ref (exp)
member
=
cp_convert
(
ptrdiff_type_node
,
build_unary_op
(
ADDR_EXPR
,
member
,
0
));
/* Pointer to data mebers are offset by one, so that a null
/* Pointer to data me
m
bers are offset by one, so that a null
pointer with a real value of 0 is distinguishable from an
offset of the first member of a structure. */
member
=
build_binary_op
(
MINUS_EXPR
,
member
,
...
...
gcc/cp/typeck.c
View file @
6640eba9
...
...
@@ -4660,7 +4660,7 @@ unary_complex_lvalue (code, arg)
DECL_FIELD_BITPOS
(
t
),
size_int
(
BITS_PER_UNIT
)));
/* We offset all pointer to data mem
e
bers by 1 so that we can
/* We offset all pointer to data members by 1 so that we can
distinguish between a null pointer to data member and the first
data member of a structure. */
offset
=
size_binop
(
PLUS_EXPR
,
offset
,
size_int
(
1
));
...
...
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