🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2494

Possible Bug

#2494
From: Jeff Nisewanger
Date: Mon, 03 Apr 1989 20:04
26 lines
1140 bytes
In gcc-1.34
In file varasm.c
In function make_decl_rtl
Near line 213

1     /* Now handle ordinary static variables and functions (in memory).
2        Also handle vars declared register invalidly.  */
3 X   if (DECL_RTL (decl) == 0)
4 X     {
5 X       if (DECL_RTL (decl) && asmspec == 0)
6           name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
7
8         /* Can't use just the variable's own name for a variable
9	     whose scope is less than the whole file.
10	     Concatenate a distinguishing number.  */
11	  else if (!top_level && !TREE_EXTERNAL (decl) && asmspec == 0)
12	    {

	Since DECL_RTL(decl) is checked for "0" on psuedo-line 3
the "if" statement conditional expression on psuedo-line 5 will never
be true.

	Jeff Nisewanger
	Measurex Automation Systems
	...apple!mas1!jdn
Technical Details
Message-ID: <1765@mas1.mas.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!mas!jdn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!mas!jdn
From: jdn@mas.UUCP (Jeff Nisewanger)
Newsgroups: gnu.gcc.bug
Subject: Possible Bug
Message-ID: <1765@mas1.mas.UUCP>
Date: 3 Apr 89 20:04:48 GMT
Organization: Measurex Automation Systems, Cupertino CA
Lines: 26