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
f0035dca
Commit
f0035dca
authored
May 13, 2014
by
Eric Botcazou
Committed by
Eric Botcazou
May 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
From-SVN: r210403
parent
c29f393f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/decl.c
+6
-5
No files found.
gcc/ada/ChangeLog
View file @
f0035dca
2014
-
05
-
13
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
decl
.
c
(
annotate_value
):
Fix
thinko
in
latest
change
.
2014
-
05
-
06
Kenneth
Zadeck
<
zadeck
@
naturalbridge
.
com
>
2014
-
05
-
06
Kenneth
Zadeck
<
zadeck
@
naturalbridge
.
com
>
Mike
Stump
<
mikestump
@
comcast
.
net
>
Mike
Stump
<
mikestump
@
comcast
.
net
>
Richard
Sandiford
<
rdsandiford
@
googlemail
.
com
>
Richard
Sandiford
<
rdsandiford
@
googlemail
.
com
>
...
...
gcc/ada/gcc-interface/decl.c
View file @
f0035dca
...
@@ -7515,15 +7515,16 @@ annotate_value (tree gnu_size)
...
@@ -7515,15 +7515,16 @@ annotate_value (tree gnu_size)
case
BIT_AND_EXPR
:
case
BIT_AND_EXPR
:
tcode
=
Bit_And_Expr
;
tcode
=
Bit_And_Expr
;
/* For negative values
, build NEGATE_EXPR of the opposite. Such values
/* For negative values
in sizetype, build NEGATE_EXPR of the opposite.
appear in expressions containing aligning patterns. Note that, since
Such values appear in expressions with aligning patterns. Note that,
sizetype is unsigned, we have to jump through some hoops. */
si
nce si
zetype is unsigned, we have to jump through some hoops. */
if
(
TREE_CODE
(
TREE_OPERAND
(
gnu_size
,
1
))
==
INTEGER_CST
)
if
(
TREE_CODE
(
TREE_OPERAND
(
gnu_size
,
1
))
==
INTEGER_CST
)
{
{
tree
op1
=
TREE_OPERAND
(
gnu_size
,
1
);
tree
op1
=
TREE_OPERAND
(
gnu_size
,
1
);
if
(
wi
::
neg_p
(
op1
))
wide_int
signed_op1
=
wi
::
sext
(
op1
,
TYPE_PRECISION
(
sizetype
));
if
(
wi
::
neg_p
(
signed_op1
))
{
{
op1
=
wide_int_to_tree
(
sizetype
,
wi
::
neg
(
op1
));
op1
=
wide_int_to_tree
(
sizetype
,
wi
::
neg
(
signed_
op1
));
pre_op1
=
annotate_value
(
build1
(
NEGATE_EXPR
,
sizetype
,
op1
));
pre_op1
=
annotate_value
(
build1
(
NEGATE_EXPR
,
sizetype
,
op1
));
}
}
}
}
...
...
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