This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Minor bugs in C front end


Sun Sep 17 10:46:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* 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.

*** c-decl.c	2000/09/17 07:38:10	1.156
--- c-decl.c	2000/09/17 14:28:43
*************** grokdeclarator (declarator, declspecs, d
*** 4651,4656 ****
  
    if (type != 0 && typedef_type != 0
!       && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (typedef_type)
!       && TREE_CODE (type) == ARRAY_TYPE && TYPE_DOMAIN (type) == 0)
      {
        type = build_array_type (TREE_TYPE (type), 0);
--- 4651,4656 ----
  
    if (type != 0 && typedef_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);
*** c-lex.c	2000/09/17 07:38:10	1.102
--- c-lex.c	2000/09/17 14:28:46
*************** readescape (p, limit, cptr)
*** 1010,1014 ****
      pedwarn ("unknown escape sequence '\\%c'", c);
    else
!     pedwarn ("unknown escape sequence: '\\' followed by char 0x%.2x", c);
  
    *cptr = c;
--- 1010,1014 ----
      pedwarn ("unknown escape sequence '\\%c'", c);
    else
!     pedwarn ("unknown escape sequence: '\\' followed by char 0x%x", c);
  
    *cptr = c;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]