🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #826

enumeration type clashes in 1.36.9

#826
From: Hal Peterson
Date: Mon, 27 Nov 1989 21:07
68 lines
3079 bytes
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;
  
Technical Details
Message-ID: <8911272107.AA00598@rothko.cray.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!boring.cray.com!hrp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!boring.cray.com!hrp
From: hrp@boring.cray.com (Hal Peterson)
Newsgroups: gnu.gcc.bug
Subject: enumeration type clashes in 1.36.9
Message-ID: <8911272107.AA00598@rothko.cray.com>
Date: 27 Nov 89 21:07:29 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 68