diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2000-09-17 14:37:55 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2000-09-17 10:37:55 -0400 |
commit | a52fb89bed45b545f6b714450f81f2d3419f73bb (patch) | |
tree | cc0efddd09d8bdb47f8b5820e6b4f9cd817f17a9 /gcc/c-decl.c | |
parent | 6a51f4a073efca1862f0de46b4de066064a1ee58 (diff) | |
download | gcc-a52fb89bed45b545f6b714450f81f2d3419f73bb.zip gcc-a52fb89bed45b545f6b714450f81f2d3419f73bb.tar.gz gcc-a52fb89bed45b545f6b714450f81f2d3419f73bb.tar.bz2 |
c-decl.c (grokdeclarator): Reorder tests to avoid looking at TYPE_MAIN_VARIANT of ERROR_MARK.
* c-decl.c (grokdeclarator): Reorder tests to avoid looking at
TYPE_MAIN_VARIANT of ERROR_MARK.
* c-lex.c (readescape): Avoid using printf syntax we don't recognize.
From-SVN: r36472
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index b8421a7..1de1f97 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4650,8 +4650,8 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) controlled separately by its own initializer. */ if (type != 0 && typedef_type != 0 - && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (typedef_type) - && TREE_CODE (type) == ARRAY_TYPE && TYPE_DOMAIN (type) == 0) + && TREE_CODE (type) == ARRAY_TYPE && TYPE_DOMAIN (type) == 0 + && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (typedef_type)) { type = build_array_type (TREE_TYPE (type), 0); if (size_varies) |