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
eec6bb06
Commit
eec6bb06
authored
Jan 26, 2005
by
Richard Henderson
Committed by
Richard Henderson
Jan 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert last change.
From-SVN: r94291
parent
78ef1e3d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
21 deletions
+8
-21
gcc/ChangeLog
+4
-0
gcc/c-decl.c
+2
-5
gcc/expmed.c
+1
-1
gcc/expr.c
+1
-15
No files found.
gcc/ChangeLog
View file @
eec6bb06
2005-01-26 Richard Henderson <rth@redhat.com>
* c-decl.c, expmed.c, expr.c: Revert last change.
2005-01-26 Richard Henderson <rth@redhat.com>
PR middle-end/18008
* c-decl.c (finish_struct): Set DECL_MODE after resetting a
field's type.
...
...
gcc/c-decl.c
View file @
eec6bb06
...
...
@@ -5301,11 +5301,8 @@ finish_struct (tree t, tree fieldlist, tree attributes)
=
tree_low_cst
(
DECL_INITIAL
(
*
fieldlistp
),
1
);
tree
type
=
TREE_TYPE
(
*
fieldlistp
);
if
(
width
!=
TYPE_PRECISION
(
type
))
{
TREE_TYPE
(
*
fieldlistp
)
=
build_nonstandard_integer_type
(
width
,
TYPE_UNSIGNED
(
type
));
DECL_MODE
(
*
fieldlistp
)
=
TYPE_MODE
(
TREE_TYPE
(
*
fieldlistp
));
}
TREE_TYPE
(
*
fieldlistp
)
=
build_nonstandard_integer_type
(
width
,
TYPE_UNSIGNED
(
type
));
DECL_INITIAL
(
*
fieldlistp
)
=
0
;
}
else
...
...
gcc/expmed.c
View file @
eec6bb06
...
...
@@ -878,7 +878,7 @@ store_fixed_bit_field (rtx op0, unsigned HOST_WIDE_INT offset,
if
(
GET_MODE
(
value
)
!=
mode
)
{
if
((
REG_P
(
value
)
||
GET_CODE
(
value
)
==
SUBREG
)
&&
GET_MODE_SIZE
(
GET_MODE
(
value
))
<=
bitsize
)
&&
GET_MODE_SIZE
(
mode
)
<
GET_MODE_SIZE
(
GET_MODE
(
value
))
)
value
=
gen_lowpart
(
mode
,
value
);
else
value
=
convert_to_mode
(
mode
,
value
,
1
);
...
...
gcc/expr.c
View file @
eec6bb06
...
...
@@ -5215,21 +5215,7 @@ store_field (rtx target, HOST_WIDE_INT bitsize, HOST_WIDE_INT bitpos,
&&
TREE_CODE
(
TYPE_SIZE
(
TREE_TYPE
(
exp
)))
==
INTEGER_CST
&&
compare_tree_int
(
TYPE_SIZE
(
TREE_TYPE
(
exp
)),
bitsize
)
!=
0
))
{
rtx
temp
;
/* If EXP is a NOP_EXPR of precision less than its mode, then that
implies a mask operation. If the precision is the same size as
the field we're storing into, that mask is redundant. This is
particularly common with bit field assignments generated by the
C front end. */
if
(
TREE_CODE
(
exp
)
==
NOP_EXPR
&&
INTEGRAL_TYPE_P
(
TREE_TYPE
(
exp
))
&&
(
TYPE_PRECISION
(
TREE_TYPE
(
exp
))
<
GET_MODE_BITSIZE
(
TYPE_MODE
(
TREE_TYPE
(
exp
))))
&&
bitsize
==
TYPE_PRECISION
(
TREE_TYPE
(
exp
)))
exp
=
TREE_OPERAND
(
exp
,
0
);
temp
=
expand_expr
(
exp
,
NULL_RTX
,
VOIDmode
,
0
);
rtx
temp
=
expand_expr
(
exp
,
NULL_RTX
,
VOIDmode
,
0
);
/* If BITSIZE is narrower than the size of the type of EXP
we will be narrowing TEMP. Normally, what's wanted are the
...
...
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