aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2004-02-08 20:55:34 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2004-02-08 20:55:34 +0000
commitb46b8fb40cf29c5f724d87f6022c6c8242e50bf2 (patch)
treea5c63a5fe903e39908fd3ca4487c968d50575291
parent7c476bdec6f46df5da4984a0a0cdff2ce4f00ff1 (diff)
downloadgcc-b46b8fb40cf29c5f724d87f6022c6c8242e50bf2.zip
gcc-b46b8fb40cf29c5f724d87f6022c6c8242e50bf2.tar.gz
gcc-b46b8fb40cf29c5f724d87f6022c6c8242e50bf2.tar.bz2
README.Portability: Change "ISO C89" to "ISO C90".
* README.Portability: Change "ISO C89" to "ISO C90". * c-parse.in (primary, initelt): Likewise. testsuite: * gcc.dg/c90-init-1.c: Adjust expected error messages. From-SVN: r77499
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/README.Portability2
-rw-r--r--gcc/c-parse.in4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/c90-init-1.c8
5 files changed, 16 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8ea1cd6..59aa6a8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * README.Portability: Change "ISO C89" to "ISO C90".
+ * c-parse.in (primary, initelt): Likewise.
+
2004-02-08 Richard Sandiford <rsandifo@redhat.com>
* real.c (encode_ibm_extended): Normalize the input value before
diff --git a/gcc/README.Portability b/gcc/README.Portability
index 2724f2a..32a33e2 100644
--- a/gcc/README.Portability
+++ b/gcc/README.Portability
@@ -10,7 +10,7 @@ This knowledge until know has been sparsely spread around, so I
thought I'd collect it in one useful place. Please add and correct
any problems as you come across them.
-I'm going to start from a base of the ISO C89 standard, since that is
+I'm going to start from a base of the ISO C90 standard, since that is
probably what most people code to naturally. Obviously using
constructs introduced after that is not a good idea.
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index d177250..6645dea 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -652,7 +652,7 @@ primary:
finish_init ();
if (pedantic && ! flag_isoc99)
- pedwarn ("ISO C89 forbids compound literals");
+ pedwarn ("ISO C90 forbids compound literals");
$$ = build_compound_literal (type, constructor);
}
| '(' expr ')'
@@ -1515,7 +1515,7 @@ initlist1:
initelt:
designator_list '=' initval
{ if (pedantic && ! flag_isoc99)
- pedwarn ("ISO C89 forbids specifying subobject to initialize"); }
+ pedwarn ("ISO C90 forbids specifying subobject to initialize"); }
| designator initval
{ if (pedantic)
pedwarn ("obsolete use of designated initializer without `='"); }
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d8aa19d..f4c3aed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * gcc.dg/c90-init-1.c: Adjust expected error messages.
+
2004-02-08 Richard Sandiford <rsandifo@redhat.com>
* gcc.c-torture/execute/20040208-[12].c: New tests.
diff --git a/gcc/testsuite/gcc.dg/c90-init-1.c b/gcc/testsuite/gcc.dg/c90-init-1.c
index 1ea0bdb..68308d3 100644
--- a/gcc/testsuite/gcc.dg/c90-init-1.c
+++ b/gcc/testsuite/gcc.dg/c90-init-1.c
@@ -7,10 +7,10 @@ struct A {
int B;
short C[2];
};
-int a[10] = { 10, [4] = 15 }; /* { dg-error "ISO C89 forbids specifying subobject to initialize" } */
-struct A b = { .B = 2 }; /* { dg-error "ISO C89 forbids specifying subobject to initialize" } */
-struct A c[] = { [3].C[1] = 1 }; /* { dg-error "ISO C89 forbids specifying subobject to initialize" } */
-struct A d[] = { [4 ... 6].C[0 ... 1] = 2 }; /* { dg-error "(forbids specifying range of elements to initialize)|(ISO C89 forbids specifying subobject to initialize)" } */
+int a[10] = { 10, [4] = 15 }; /* { dg-error "ISO (C89|C90) forbids specifying subobject to initialize" } */
+struct A b = { .B = 2 }; /* { dg-error "ISO (C89|C90) forbids specifying subobject to initialize" } */
+struct A c[] = { [3].C[1] = 1 }; /* { dg-error "ISO (C89|C90) forbids specifying subobject to initialize" } */
+struct A d[] = { [4 ... 6].C[0 ... 1] = 2 }; /* { dg-error "(forbids specifying range of elements to initialize)|(ISO (C89|C90) forbids specifying subobject to initialize)" } */
int e[] = { [2] 2 }; /* { dg-error "use of designated initializer without" } */
struct A f = { C: { 0, 1 } }; /* { dg-error "use of designated initializer with " } */
int g;