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
6b99d470
Commit
6b99d470
authored
Feb 16, 1999
by
Ovidiu Predescu
Committed by
Ovidiu Predescu
Feb 16, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied Richard Frith-Macdonald's patch to objc/objc-act.c for encoding the type.
From-SVN: r25249
parent
ebf84769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
42 deletions
+46
-42
gcc/ChangeLog
+6
-0
gcc/objc/objc-act.c
+40
-42
No files found.
gcc/ChangeLog
View file @
6b99d470
Tue
Feb
16
15
:
31
:
39
1999
Ovidiu
Predescu
<
ovidiu
@cup
.
hp
.
com
>
*
objc
/
objc
-
act
.
c
(
encode_type
)
:
Encode
the
type
instead
of
encoding
the
mode
of
the
type
(
patch
from
Richard
Frith
-
Macdonald
<
richard
@brainstorm
.
co
.
uk
>
).
Tue
Feb
16
10
:
53
:
51
1999
Richard
Earnshaw
(
rearnsha
@arm
.
com
)
*
config
/
arm
/
arm
.
md
(
*
zeroextractqi_compare0_scratch
)
:
Re
-
add
load
...
...
gcc/objc/objc-act.c
View file @
6b99d470
...
...
@@ -6782,38 +6782,37 @@ encode_type (type, curtype, format)
{
/* Unsigned integer types. */
if
(
TYPE_MODE
(
type
)
==
QImode
)
type
=
TYPE_MAIN_VARIANT
(
type
);
if
(
type
==
unsigned_type_node
)
obstack_1grow
(
&
util_obstack
,
'I'
);
else
if
(
type
==
long_unsigned_type_node
)
obstack_1grow
(
&
util_obstack
,
'L'
);
else
if
(
type
==
unsigned_char_type_node
)
obstack_1grow
(
&
util_obstack
,
'C'
);
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
else
if
(
type
==
short_unsigned_type_n
ode
)
obstack_1grow
(
&
util_obstack
,
'S'
);
else
if
(
TYPE_MODE
(
type
)
==
SImode
)
{
if
(
type
==
long_unsigned_type_node
)
obstack_1grow
(
&
util_obstack
,
'L'
);
else
obstack_1grow
(
&
util_obstack
,
'I'
);
}
else
if
(
TYPE_MODE
(
type
)
==
DImode
)
else
if
(
type
==
long_long_unsigned_type_node
)
obstack_1grow
(
&
util_obstack
,
'Q'
);
else
fatal
(
"attempt to encode unsigned int of unknown type"
);
}
else
/* Signed integer types. */
{
if
(
TYPE_MODE
(
type
)
==
QImode
)
type
=
TYPE_MAIN_VARIANT
(
type
);
if
(
type
==
integer_type_node
)
obstack_1grow
(
&
util_obstack
,
'i'
);
else
if
(
type
==
long_integer_type_node
)
obstack_1grow
(
&
util_obstack
,
'l'
);
else
if
(
type
==
char_type_node
||
type
==
signed_char_type_node
)
obstack_1grow
(
&
util_obstack
,
'c'
);
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
else
if
(
type
==
short_integer_type_n
ode
)
obstack_1grow
(
&
util_obstack
,
's'
);
else
if
(
TYPE_MODE
(
type
)
==
SImode
)
{
if
(
type
==
long_integer_type_node
)
obstack_1grow
(
&
util_obstack
,
'l'
);
else
obstack_1grow
(
&
util_obstack
,
'i'
);
}
else
if
(
TYPE_MODE
(
type
)
==
DImode
)
else
if
(
type
==
long_long_integer_type_node
)
obstack_1grow
(
&
util_obstack
,
'q'
);
else
fatal
(
"attempt to encode signed int of unknown type"
);
}
}
...
...
@@ -6858,38 +6857,37 @@ encode_complete_bitfield (int position, tree type, int size)
{
/* Unsigned integer types. */
if
(
TYPE_MODE
(
type
)
==
QImode
)
type
=
TYPE_MAIN_VARIANT
(
type
);
if
(
type
==
unsigned_type_node
)
charType
=
'I'
;
else
if
(
type
==
long_unsigned_type_node
)
charType
=
'L'
;
else
if
(
type
==
unsigned_char_type_node
)
charType
=
'C'
;
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
else
if
(
type
==
short_unsigned_type_n
ode
)
charType
=
'S'
;
else
if
(
TYPE_MODE
(
type
)
==
SImode
)
{
if
(
type
==
long_unsigned_type_node
)
charType
=
'L'
;
else
charType
=
'I'
;
}
else
if
(
TYPE_MODE
(
type
)
==
DImode
)
else
if
(
type
==
long_long_unsigned_type_node
)
charType
=
'Q'
;
else
fatal
(
"attempt to encode unsigned int of unknown type"
);
}
else
/* Signed integer types. */
{
if
(
TYPE_MODE
(
type
)
==
QImode
)
type
=
TYPE_MAIN_VARIANT
(
type
);
if
(
type
==
unsigned_type_node
)
charType
=
'i'
;
else
if
(
type
==
long_unsigned_type_node
)
charType
=
'l'
;
else
if
(
type
==
char_type_node
||
type
==
signed_char_type_node
)
charType
=
'c'
;
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
else
if
(
type
==
short_unsigned_type_n
ode
)
charType
=
's'
;
else
if
(
TYPE_MODE
(
type
)
==
SImode
)
{
if
(
type
==
long_integer_type_node
)
charType
=
'l'
;
else
charType
=
'i'
;
}
else
if
(
TYPE_MODE
(
type
)
==
DImode
)
else
if
(
type
==
long_long_unsigned_type_node
)
charType
=
'q'
;
else
fatal
(
"attempt to encode signed int of unknown 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