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
30402573
Commit
30402573
authored
Aug 21, 2009
by
Michael Meissner
Committed by
Michael Meissner
Aug 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 40671, 41145
From-SVN: r151004
parent
5399093b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
gcc/ChangeLog
+11
-0
gcc/config/rs6000/rs6000.c
+10
-10
No files found.
gcc/ChangeLog
View file @
30402573
2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/40671
* config/rs6000/rs6000.c (rs6000_override_options): Use
TARGET_64BIT instead of TARGET_POWERPC64 to set the size of
pointers.
PR target/41145
* config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
reporting of vector + decimal/boolean/complex,
2009-08-21 Jakub Jelinek <jakub@redhat.com>
* config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
...
...
gcc/config/rs6000/rs6000.c
View file @
30402573
...
...
@@ -2198,7 +2198,7 @@ rs6000_override_options (const char *default_cpu)
};
/* Set the pointer size. */
if
(
TARGET_
POWERPC64
)
if
(
TARGET_
64BIT
)
{
rs6000_pmode
=
(
int
)
DImode
;
rs6000_pointer_size
=
64
;
...
...
@@ -22827,7 +22827,15 @@ rs6000_handle_altivec_attribute (tree *node,
mode
=
TYPE_MODE
(
type
);
/* Check for invalid AltiVec type qualifiers. */
if
(
!
TARGET_VSX
)
if
(
type
==
long_double_type_node
)
error
(
"use of %<long double%> in AltiVec types is invalid"
);
else
if
(
type
==
boolean_type_node
)
error
(
"use of boolean types in AltiVec types is invalid"
);
else
if
(
TREE_CODE
(
type
)
==
COMPLEX_TYPE
)
error
(
"use of %<complex%> in AltiVec types is invalid"
);
else
if
(
DECIMAL_FLOAT_MODE_P
(
mode
))
error
(
"use of decimal floating point types in AltiVec types is invalid"
);
else
if
(
!
TARGET_VSX
)
{
if
(
type
==
long_unsigned_type_node
||
type
==
long_integer_type_node
)
{
...
...
@@ -22845,14 +22853,6 @@ rs6000_handle_altivec_attribute (tree *node,
else
if
(
type
==
double_type_node
)
error
(
"use of %<double%> in AltiVec types is invalid without -mvsx"
);
}
else
if
(
type
==
long_double_type_node
)
error
(
"use of %<long double%> in AltiVec types is invalid"
);
else
if
(
type
==
boolean_type_node
)
error
(
"use of boolean types in AltiVec types is invalid"
);
else
if
(
TREE_CODE
(
type
)
==
COMPLEX_TYPE
)
error
(
"use of %<complex%> in AltiVec types is invalid"
);
else
if
(
DECIMAL_FLOAT_MODE_P
(
mode
))
error
(
"use of decimal floating point types in AltiVec types is invalid"
);
switch
(
altivec_type
)
{
...
...
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