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
2a8fa26c
Commit
2a8fa26c
authored
May 17, 2003
by
David Edelsohn
Committed by
David Edelsohn
May 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
From-SVN: r66906
parent
6508bdd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
gcc/ChangeLog
+4
-0
gcc/config/rs6000/rs6000.c
+3
-8
No files found.
gcc/ChangeLog
View file @
2a8fa26c
2003-05-17 David Edelsohn <edelsohn@gnu.org>
* rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
2003-05-17 Neil Booth <neil@daikokuya.co.uk>
2003-05-17 Neil Booth <neil@daikokuya.co.uk>
* config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
* config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
...
...
gcc/config/rs6000/rs6000.c
View file @
2a8fa26c
...
@@ -14352,7 +14352,7 @@ rtx
...
@@ -14352,7 +14352,7 @@ rtx
rs6000_function_value
(
tree
valtype
,
tree
func
ATTRIBUTE_UNUSED
)
rs6000_function_value
(
tree
valtype
,
tree
func
ATTRIBUTE_UNUSED
)
{
{
enum
machine_mode
mode
;
enum
machine_mode
mode
;
unsigned
int
regno
=
GP_ARG_RETURN
;
unsigned
int
regno
;
if
((
INTEGRAL_TYPE_P
(
valtype
)
if
((
INTEGRAL_TYPE_P
(
valtype
)
&&
TYPE_PRECISION
(
valtype
)
<
BITS_PER_WORD
)
&&
TYPE_PRECISION
(
valtype
)
<
BITS_PER_WORD
)
...
@@ -14361,14 +14361,9 @@ rs6000_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
...
@@ -14361,14 +14361,9 @@ rs6000_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
else
else
mode
=
TYPE_MODE
(
valtype
);
mode
=
TYPE_MODE
(
valtype
);
if
(
TREE_CODE
(
valtype
)
==
REAL_TYPE
)
if
(
TREE_CODE
(
valtype
)
==
REAL_TYPE
&&
TARGET_HARD_FLOAT
&&
TARGET_FPRS
)
{
if
(
TARGET_HARD_FLOAT
&&
TARGET_FPRS
)
regno
=
FP_ARG_RETURN
;
regno
=
FP_ARG_RETURN
;
else
if
(
TARGET_SPE_ABI
&&
!
TARGET_FPRS
)
else
if
(
TREE_CODE
(
valtype
)
==
VECTOR_TYPE
&&
TARGET_ALTIVEC
)
regno
=
GP_ARG_RETURN
;
}
else
if
(
TARGET_ALTIVEC
&&
TREE_CODE
(
valtype
)
==
VECTOR_TYPE
)
regno
=
ALTIVEC_ARG_RETURN
;
regno
=
ALTIVEC_ARG_RETURN
;
else
else
regno
=
GP_ARG_RETURN
;
regno
=
GP_ARG_RETURN
;
...
...
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