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
ba05abd3
Commit
ba05abd3
authored
22 years ago
by
Geoffrey Keating
Committed by
Geoffrey Keating
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/extend.texi (Empty Structures): New.
From-SVN: r65497
parent
15c812e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
gcc/ChangeLog
+4
-0
gcc/doc/extend.texi
+16
-0
No files found.
gcc/ChangeLog
View file @
ba05abd3
2003-04-11 Geoffrey Keating <geoffk@apple.com>
* doc/extend.texi (Empty Structures): New.
2003-04-11 Eric Christopher <echristo@redhat.com>
* emit-rtl.c (gen_rtx): Fix typos.
...
...
This diff is collapsed.
Click to expand it.
gcc/doc/extend.texi
View file @
ba05abd3
...
...
@@ -436,6 +436,7 @@ extensions, accepted by GCC in C89 mode and in C++.
* Hex Floats:: Hexadecimal floating-point constants.
* Zero Length:: Zero-length arrays.
* Variable Length:: Arrays whose length is computed at run time.
* Empty Structures:: Structures with no members.
* Variadic Macros:: Macros with a variable number of arguments.
* Escaped Newlines:: Slightly looser rules for escaped newlines.
* Multi-line Strings:: String literals with embedded newlines.
...
...
@@ -1358,6 +1359,21 @@ struct bar c = @{ @{ 1, @{ @} @} @}; // @r{Valid.}
struct foo d[1] = @{ @{ 1 @{ 2, 3, 4 @} @} @}; // @r{Invalid.}
@end example
@node Empty Structures
@section Structures With No Members
@cindex empty structures
@cindex zero-size structures
GCC permits a C structure to have no members:
@example
struct empty @{
@};
@end example
The structure will have size zero. In C++, empty structures are part
of the language, and the language standard says they have size 1.
@node Variable Length
@section Arrays of Variable Length
@cindex variable-length arrays
...
...
This diff is collapsed.
Click to expand it.
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