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
9677ef52
Commit
9677ef52
authored
May 25, 2015
by
Marek Polacek
Committed by
Marek Polacek
May 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-ubsan.c (ubsan_instrument_shift): Use type0.
From-SVN: r223646
parent
ea292448
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
gcc/c-family/ChangeLog
+4
-0
gcc/c-family/c-ubsan.c
+1
-1
No files found.
gcc/c-family/ChangeLog
View file @
9677ef52
2015
-
05
-
25
Marek
Polacek
<
polacek
@
redhat
.
com
>
*
c
-
ubsan
.
c
(
ubsan_instrument_shift
):
Use
type0
.
2015
-
05
-
22
Marek
Polacek
<
polacek
@
redhat
.
com
>
PR
c
/
47043
...
...
gcc/c-family/c-ubsan.c
View file @
9677ef52
...
...
@@ -173,7 +173,7 @@ ubsan_instrument_shift (location_t loc, enum tree_code code,
x < 0 || ((unsigned) x >> (uprecm1 - y))
if > 1, is undefined. */
if
(
code
==
LSHIFT_EXPR
&&
!
TYPE_UNSIGNED
(
TREE_TYPE
(
op0
)
)
&&
!
TYPE_UNSIGNED
(
type0
)
&&
(
cxx_dialect
>=
cxx11
))
{
tree
x
=
fold_build2
(
MINUS_EXPR
,
op1_utype
,
uprecm1
,
...
...
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