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
47f8b473
Commit
47f8b473
authored
Jan 20, 2001
by
Joseph Myers
Committed by
Joseph Myers
Jan 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (digest_init): Handle boolean types as scalars.
From-SVN: r39157
parent
2954d7db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
gcc/ChangeLog
+4
-0
gcc/c-typeck.c
+1
-1
No files found.
gcc/ChangeLog
View file @
47f8b473
2001-01-20 Joseph S. Myers <jsm28@cam.ac.uk>
* c-typeck.c (digest_init): Handle boolean types as scalars.
Sat Jan 20 12:46:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sat Jan 20 12:46:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stmt.c (expand_return): Don't return anything if size is zero.
* stmt.c (expand_return): Don't return anything if size is zero.
...
...
gcc/c-typeck.c
View file @
47f8b473
...
@@ -4781,7 +4781,7 @@ digest_init (type, init, require_constant, constructor_constant)
...
@@ -4781,7 +4781,7 @@ digest_init (type, init, require_constant, constructor_constant)
/* Handle scalar types, including conversions. */
/* Handle scalar types, including conversions. */
if
(
code
==
INTEGER_TYPE
||
code
==
REAL_TYPE
||
code
==
POINTER_TYPE
if
(
code
==
INTEGER_TYPE
||
code
==
REAL_TYPE
||
code
==
POINTER_TYPE
||
code
==
ENUMERAL_TYPE
||
code
==
COMPLEX_TYPE
)
||
code
==
ENUMERAL_TYPE
||
code
==
BOOLEAN_TYPE
||
code
==
COMPLEX_TYPE
)
{
{
/* Note that convert_for_assignment calls default_conversion
/* Note that convert_for_assignment calls default_conversion
for arrays and functions. We must not call it in the
for arrays and functions. We must not call it in 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