summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-26 06:55:39 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-26 06:55:39 +0000
commitf25f1b25ff2e084c6e1ca01b700c29b02a4bd94b (patch)
tree5934302fc668ef6709812dd9066946ce4c184e71 /gcc
parent9375092628642ebde22e7785e814468d94ca6c66 (diff)
downloadgcc-f25f1b25ff2e084c6e1ca01b700c29b02a4bd94b.tar.gz
PR c/39525
* doc/extend.texi (Designated Inits): Describe what happens to omitted field members. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208835 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/extend.texi3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ee0df1c23e9..ff4a21bcf83 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2014-03-26 Marek Polacek <polacek@redhat.com>
+ PR c/39525
+ * doc/extend.texi (Designated Inits): Describe what happens to omitted
+ field members.
+
+2014-03-26 Marek Polacek <polacek@redhat.com>
+
PR other/59545
* ira-color.c (update_conflict_hard_regno_costs): Perform the
multiplication in unsigned type.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index c0da713e821..90bf6d841a0 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -1967,6 +1967,9 @@ Another syntax that has the same meaning, obsolete since GCC 2.5, is
struct point p = @{ y: yvalue, x: xvalue @};
@end smallexample
+Omitted field members are implicitly initialized the same as objects
+that have static storage duration.
+
@cindex designators
The @samp{[@var{index}]} or @samp{.@var{fieldname}} is known as a
@dfn{designator}. You can also use a designator (or the obsolete colon