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
b02cb287
Commit
b02cb287
authored
May 18, 1994
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow any integral type for bitfields (such as booleans).
From-SVN: r7330
parent
1d1a832c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
gcc/stor-layout.c
+2
-3
No files found.
gcc/stor-layout.c
View file @
b02cb287
...
...
@@ -217,11 +217,10 @@ layout_decl (decl, known_align)
if
(
code
==
FIELD_DECL
&&
DECL_BIT_FIELD
(
decl
))
{
/* This is a bit-field. We don't know how to handle
them except for integ
ers and enums, and front end
should
them except for integ
ral types, and front ends
should
never generate them otherwise. */
if
(
!
(
TREE_CODE
(
type
)
==
INTEGER_TYPE
||
TREE_CODE
(
type
)
==
ENUMERAL_TYPE
))
if
(
!
INTEGRAL_TYPE_P
(
type
))
abort
();
if
(
spec_size
==
0
&&
DECL_NAME
(
decl
)
!=
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