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
f6a35e89
Commit
f6a35e89
authored
Oct 31, 2017
by
Henry Linjamäki
Committed by
Pekka Jääskeläinen
Oct 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIGFE] Fix PR 82771.
From-SVN: r254265
parent
12e9c8ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/brig/ChangeLog
+4
-0
gcc/brig/brig-lang.c
+5
-5
No files found.
gcc/brig/ChangeLog
View file @
f6a35e89
2017-10-31 Henry Linjamäki <henry.linjamaki@parmance.com>
* brig-lang.c (brig_langhook_type_for_mode): Fix PR 82771.
2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
* brig-lang.c (brig_langhook_type_for_mode): Use scalar_int_mode
...
...
gcc/brig/brig-lang.c
View file @
f6a35e89
...
...
@@ -280,9 +280,9 @@ brig_langhook_type_for_mode (machine_mode mode, int unsignedp)
scalar_int_mode
imode
;
scalar_float_mode
fmode
;
if
(
is_
int_mode
(
mode
,
&
i
mode
))
if
(
is_
float_mode
(
mode
,
&
f
mode
))
{
switch
(
GET_MODE_BITSIZE
(
i
mode
))
switch
(
GET_MODE_BITSIZE
(
f
mode
))
{
case
32
:
return
float_type_node
;
...
...
@@ -291,15 +291,15 @@ brig_langhook_type_for_mode (machine_mode mode, int unsignedp)
default:
/* We have to check for long double in order to support
i386 excess precision. */
if
(
i
mode
==
TYPE_MODE
(
long_double_type_node
))
if
(
f
mode
==
TYPE_MODE
(
long_double_type_node
))
return
long_double_type_node
;
gcc_unreachable
();
return
NULL_TREE
;
}
}
else
if
(
is_
float_mode
(
mode
,
&
f
mode
))
return
brig_langhook_type_for_size
(
GET_MODE_BITSIZE
(
f
mode
),
unsignedp
);
else
if
(
is_
int_mode
(
mode
,
&
i
mode
))
return
brig_langhook_type_for_size
(
GET_MODE_BITSIZE
(
i
mode
),
unsignedp
);
else
{
/* E.g., build_common_builtin_nodes () asks for modes/builtins
...
...
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