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
ef49f590
Commit
ef49f590
authored
Mar 19, 2000
by
Richard Henderson
Committed by
Richard Henderson
Mar 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stor-layout.c (layout_decl): Don't abort on any zero sized decl.
From-SVN: r32638
parent
5d6a090f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
gcc/ChangeLog
+2
-0
gcc/stor-layout.c
+0
-11
No files found.
gcc/ChangeLog
View file @
ef49f590
...
...
@@ -7,6 +7,8 @@
*
fold
-
const
.
c
(
extract_muldiv
)
:
Apply
type
check
for
defined
overflow
to
multiply
as
well
as
divide
.
*
stor
-
layout
.
c
(
layout_decl
)
:
Don
'
t
abort
on
any
zero
sized
decl
.
2000
-
03
-
18
Mark
Mitchell
<
mark
@codesourcery
.
com
>
*
emit
-
rtl
.
c
(
remove_unncessary_notes
)
:
Check
that
all
...
...
gcc/stor-layout.c
View file @
ef49f590
...
...
@@ -308,17 +308,6 @@ layout_decl (decl, known_align)
{
HOST_WIDE_INT
spec_size
;
/* The front-end may set the explicit width of the field, so its
size may not be the same as the size of its type. This happens
with bitfields, of course (an `int' bitfield may be only 2 bits,
say), but it also happens with other fields. For example, the
C++ front-end creates zero-sized fields corresponding to empty
base classes, and depends on layout_type setting
DECL_FIELD_BITPOS correctly for the field. */
if
(
integer_zerop
(
DECL_SIZE
(
decl
))
&&
DECL_NAME
(
decl
)
!=
NULL_TREE
)
abort
();
/* Size is specified in number of bits. */
spec_size
=
TREE_INT_CST_LOW
(
DECL_SIZE
(
decl
));
if
(
spec_size
%
BITS_PER_UNIT
==
0
)
...
...
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