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
aee2c3c5
Commit
aee2c3c5
authored
Apr 21, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sparc_type_code): Don't put more than 30 bits of info
into the variable qualifiers. From-SVN: r7123
parent
c1da1f33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
gcc/config/sparc/sparc.c
+11
-3
No files found.
gcc/config/sparc/sparc.c
View file @
aee2c3c5
...
@@ -2886,6 +2886,11 @@ sparc_type_code (type)
...
@@ -2886,6 +2886,11 @@ sparc_type_code (type)
register
unsigned
long
qualifiers
=
0
;
register
unsigned
long
qualifiers
=
0
;
register
unsigned
shift
=
6
;
register
unsigned
shift
=
6
;
/* Only the first 30 bits of the qualifer are valid. We must refrain from
setting more, since some assemblers will give an error for this. Also,
we must be careful to avoid shifts of 32 bits or more to avoid getting
unpredictable results. */
for
(;;)
for
(;;)
{
{
switch
(
TREE_CODE
(
type
))
switch
(
TREE_CODE
(
type
))
...
@@ -2894,14 +2899,16 @@ sparc_type_code (type)
...
@@ -2894,14 +2899,16 @@ sparc_type_code (type)
return
qualifiers
;
return
qualifiers
;
case
ARRAY_TYPE
:
case
ARRAY_TYPE
:
qualifiers
|=
(
3
<<
shift
);
if
(
shift
<
30
)
qualifiers
|=
(
3
<<
shift
);
shift
+=
2
;
shift
+=
2
;
type
=
TREE_TYPE
(
type
);
type
=
TREE_TYPE
(
type
);
break
;
break
;
case
FUNCTION_TYPE
:
case
FUNCTION_TYPE
:
case
METHOD_TYPE
:
case
METHOD_TYPE
:
qualifiers
|=
(
2
<<
shift
);
if
(
shift
<
30
)
qualifiers
|=
(
2
<<
shift
);
shift
+=
2
;
shift
+=
2
;
type
=
TREE_TYPE
(
type
);
type
=
TREE_TYPE
(
type
);
break
;
break
;
...
@@ -2909,7 +2916,8 @@ sparc_type_code (type)
...
@@ -2909,7 +2916,8 @@ sparc_type_code (type)
case
POINTER_TYPE
:
case
POINTER_TYPE
:
case
REFERENCE_TYPE
:
case
REFERENCE_TYPE
:
case
OFFSET_TYPE
:
case
OFFSET_TYPE
:
qualifiers
|=
(
1
<<
shift
);
if
(
shift
<
30
)
qualifiers
|=
(
1
<<
shift
);
shift
+=
2
;
shift
+=
2
;
type
=
TREE_TYPE
(
type
);
type
=
TREE_TYPE
(
type
);
break
;
break
;
...
...
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