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
22702f93
Commit
22702f93
authored
May 23, 2009
by
Eric Botcazou
Committed by
Eric Botcazou
May 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
From-SVN: r147820
parent
03049a4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/misc.c
+6
-2
No files found.
gcc/ada/ChangeLog
View file @
22702f93
2009
-
05
-
23
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
misc
.
c
(
gnat_get_subrange_bounds
):
Fix
thinko
.
2009
-
05
-
23
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
decl
.
c
(
set_rm_size
):
Bypass
the
check
for
packed
array
types
.
...
...
gcc/ada/gcc-interface/misc.c
View file @
22702f93
...
...
@@ -661,8 +661,12 @@ gnat_get_subrange_bounds (const_tree gnu_type, tree *lowval, tree *highval)
{
tree
min
=
TYPE_MIN_VALUE
(
gnu_type
);
tree
max
=
TYPE_MAX_VALUE
(
gnu_type
);
*
lowval
=
TREE_CONSTANT
(
min
)
?
min
:
TYPE_GCC_MIN_VALUE
(
gnu_type
);
*
highval
=
TREE_CONSTANT
(
max
)
?
max
:
TYPE_GCC_MAX_VALUE
(
gnu_type
);
/* If the bounds aren't constant, use non-representable constant values
to get the same effect on debug info without tree sharing issues. */
*
lowval
=
TREE_CONSTANT
(
min
)
?
min
:
build_int_cstu
(
integer_type_node
,
-
1
);
*
highval
=
TREE_CONSTANT
(
max
)
?
max
:
build_int_cstu
(
integer_type_node
,
-
1
);
}
/* GNU_TYPE is a type. Determine if it should be passed by reference by
...
...
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