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
b9ef73ea
Commit
b9ef73ea
authored
Feb 22, 1999
by
Ovidiu Predescu
Committed by
Ovidiu Predescu
Feb 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted to the old behavior of encoding the types.
From-SVN: r25368
parent
43297964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
40 deletions
+48
-40
gcc/ChangeLog
+6
-0
gcc/objc/objc-act.c
+42
-40
No files found.
gcc/ChangeLog
View file @
b9ef73ea
Mon
Feb
22
08
:
55
:
05
1999
Ovidiu
Predescu
<
ovidiu
@cup
.
hp
.
com
>
*
objc
/
objc
-
act
.
c
(
encode_type
)
:
Temporary
revert
to
the
old
behavior
of
encoding
types
as
the
new
one
seems
to
break
the
encoding
of
bitfields
.
Mon
Feb
22
11
:
40
:
44
1999
Craig
Burley
<
craig
@jcb
-
sc
.
com
>
Sat
Feb
20
09
:
59
:
36
1999
Craig
Burley
<
craig
@jcb
-
sc
.
com
>
...
...
gcc/objc/objc-act.c
View file @
b9ef73ea
...
...
@@ -6782,37 +6782,38 @@ encode_type (type, curtype, format)
{
/* Unsigned integer types. */
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
)
if
(
TYPE_MODE
(
type
)
==
QImode
)
obstack_1grow
(
&
util_obstack
,
'C'
);
else
if
(
type
==
short_unsigned_type_n
ode
)
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
obstack_1grow
(
&
util_obstack
,
'S'
);
else
if
(
type
==
long_long_unsigned_type_node
)
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
)
obstack_1grow
(
&
util_obstack
,
'Q'
);
else
fatal
(
"attempt to encode unsigned int of unknown type"
);
}
else
/* Signed integer types. */
{
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
)
if
(
TYPE_MODE
(
type
)
==
QImode
)
obstack_1grow
(
&
util_obstack
,
'c'
);
else
if
(
type
==
short_integer_type_n
ode
)
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
obstack_1grow
(
&
util_obstack
,
's'
);
else
if
(
type
==
long_long_integer_type_node
)
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
)
obstack_1grow
(
&
util_obstack
,
'q'
);
else
fatal
(
"attempt to encode signed int of unknown type"
);
}
}
...
...
@@ -6857,37 +6858,38 @@ encode_complete_bitfield (int position, tree type, int size)
{
/* Unsigned integer types. */
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
)
if
(
TYPE_MODE
(
type
)
==
QImode
)
charType
=
'C'
;
else
if
(
type
==
short_unsigned_type_n
ode
)
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
charType
=
'S'
;
else
if
(
type
==
long_long_unsigned_type_node
)
else
if
(
TYPE_MODE
(
type
)
==
SImode
)
{
if
(
type
==
long_unsigned_type_node
)
charType
=
'L'
;
else
charType
=
'I'
;
}
else
if
(
TYPE_MODE
(
type
)
==
DImode
)
charType
=
'Q'
;
else
fatal
(
"attempt to encode unsigned int of unknown type"
);
}
else
/* Signed integer types. */
{
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
)
if
(
TYPE_MODE
(
type
)
==
QImode
)
charType
=
'c'
;
else
if
(
type
==
short_unsigned_type_n
ode
)
else
if
(
TYPE_MODE
(
type
)
==
HIm
ode
)
charType
=
's'
;
else
if
(
type
==
long_long_unsigned_type_node
)
else
if
(
TYPE_MODE
(
type
)
==
SImode
)
{
if
(
type
==
long_integer_type_node
)
charType
=
'l'
;
else
charType
=
'i'
;
}
else
if
(
TYPE_MODE
(
type
)
==
DImode
)
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