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
8ca07d92
Commit
8ca07d92
authored
Jan 18, 2018
by
Martin Sebor
Committed by
Martin Sebor
Jan 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be clear about virtual table pointer corruptuion rather than the vtable itself.
From-SVN: r256852
parent
00850e40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/ChangeLog
+4
-0
gcc/doc/invoke.texi
+5
-5
No files found.
gcc/ChangeLog
View file @
8ca07d92
2018-01-18 Martin Sebor <msebor@redhat.com>
* doc/invoke.texi (-Wclass-memaccess): Tweak text.
2018-01-18 Jan Hubicka <hubicka@ucw.cz>
2018-01-18 Jan Hubicka <hubicka@ucw.cz>
PR ipa/83619
PR ipa/83619
...
...
gcc/doc/invoke.texi
View file @
8ca07d92
...
@@ -2970,11 +2970,11 @@ Warn when the destination of a call to a raw memory function such as
...
@@ -2970,11 +2970,11 @@ Warn when the destination of a call to a raw memory function such as
@
code
{
memset
}
or
@
code
{
memcpy
}
is
an
object
of
class
type
,
and
when
writing
@
code
{
memset
}
or
@
code
{
memcpy
}
is
an
object
of
class
type
,
and
when
writing
into
such
an
object
might
bypass
the
class
non
-
trivial
or
deleted
constructor
into
such
an
object
might
bypass
the
class
non
-
trivial
or
deleted
constructor
or
copy
assignment
,
violate
const
-
correctness
or
encapsulation
,
or
corrupt
or
copy
assignment
,
violate
const
-
correctness
or
encapsulation
,
or
corrupt
the
virtual
table
.
Modifying
the
representation
of
such
objects
may
violate
virtual
table
pointers
.
Modifying
the
representation
of
such
objects
may
invariants
maintained
by
member
functions
of
the
class
.
For
example
,
the
call
violate
invariants
maintained
by
member
functions
of
the
class
.
For
example
,
t
o
@
code
{
memset
}
below
is
undefined
because
it
modifies
a
non
-
trivial
class
t
he
call
to
@
code
{
memset
}
below
is
undefined
because
it
modifies
a
non
-
trivial
object
and
is
,
therefore
,
diagnosed
.
The
safe
way
to
either
initialize
or
class
object
and
is
,
therefore
,
diagnosed
.
The
safe
way
to
either
initialize
clear
the
storage
of
objects
of
such
types
is
by
using
the
appropriate
or
clear
the
storage
of
objects
of
such
types
is
by
using
the
appropriate
constructor
or
assignment
operator
,
if
one
is
available
.
constructor
or
assignment
operator
,
if
one
is
available
.
@
smallexample
@
smallexample
std
::
string
str
=
"abc"
;
std
::
string
str
=
"abc"
;
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