[gnu.gcc.bug] enumeration type clashes in 1.36.9

hrp@boring.cray.com (Hal Peterson) (11/28/89)

While building GCC 1.36.9 on a Sun-3/280 running SunOS 3.5, I got the
following string of errors:

    cc -c -g   -I. -I. -I./config dbxout.c
    "dbxout.c", line 626: warning: enumeration type clash, operator =
    "dbxout.c", line 658: warning: enumeration type clash, operator =
    "dbxout.c", line 706: warning: enumeration type clash, operator =
    "dbxout.c", line 715: warning: enumeration type clash, operator =
    "dbxout.c", line 719: warning: enumeration type clash, operator =
    "dbxout.c", line 726: warning: enumeration type clash, operator =
    "dbxout.c", line 733: warning: enumeration type clash, operator =
    "dbxout.c", line 751: warning: enumeration type clash, operator =
    "dbxout.c", line 756: warning: enumeration type clash, operator =
    "dbxout.c", line 771: warning: enumeration type clash, operator =
    "dbxout.c", line 778: warning: enumeration type clash, operator =
    "dbxout.c", line 844: warning: enumeration type clash, operator =
    "dbxout.c", line 891: warning: enumeration type clash, operator =
    "dbxout.c", line 906: warning: enumeration type clash, operator =
    "dbxout.c", line 956: warning: enumeration type clash, operator =
    "dbxout.c", line 982: warning: enumeration type clash, operator =
    "dbxout.c", line 1049: warning: enumeration type clash, operator =

The problem is in the declaration of current_sym_code, which should
not be an integer.  A patch follows.

--
Hal Peterson			Domain:  hrp@cray.com
Cray Research			Old style:  hrp%cray.com@uc.msc.umn.edu
1440 Northland Dr.		UUCP:  uunet!cray!hrp
Mendota Hts, MN  55120  USA	Telephone:  +1 612 681 3145

========================================================================
*** dbxout-DIST.c	Thu Sep 21 14:01:52 1989
--- dbxout.c	Mon Nov 27 15:05:04 1989
***************
*** 135,141 ****
     when the value is an offset (such as for auto variables,
     register variables and parms).  */
  
! static int current_sym_code;
  static int current_sym_value;
  static rtx current_sym_addr;
  
--- 135,141 ----
     when the value is an offset (such as for auto variables,
     register variables and parms).  */
  
! static enum __stab_debug_code current_sym_code;
  static int current_sym_value;
  static rtx current_sym_addr;
  
***************
*** 595,601 ****
        dbxout_types (get_permanent_types ());
      }
  
!   current_sym_code = 0;
    current_sym_value = 0;
    current_sym_addr = 0;
  
--- 595,601 ----
        dbxout_types (get_permanent_types ());
      }
  
!   current_sym_code = (enum __stab_debug_code) 0;
    current_sym_value = 0;
    current_sym_addr = 0;