🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #509

gcc.c in latest g++.xtar.Z

#509
From: Dirk Grunwald
Date: Tue, 17 Oct 1989 18:00
32 lines
1444 bytes
There's a slight error w.r.t. collect. My patches from two versions
ago were applied to the source of one version ago; this causes the
USE_COLLECT patch to land in the middle of the do_spec call to ld. The
correct source should look like (sorry, forgot to make RCS file, so no diff)


  /* Run ld to link all the compiler output files.  */

  if (error_count == 0)
    {
      int tmp = execution_count;
      value = do_spec (link_spec);
      if (value < 0)
	error_count = 1;
      linker_was_run = (tmp != execution_count);
    }

#ifdef USE_COLLECT
      /* C++: now collect all the requirements for
	 calling global constructors and destructors,
	 and write them to a file.  We will link this file
	 in when we run.  */
      if (linker_was_run && ! error_count)
	{
	  int tmp = execution_count;
	  value = do_spec (collect_spec);
	  if (value < 0)
	    error_count = 1;
	  linker_was_run &= (tmp != execution_count);
	}
#endif
Technical Details
Message-ID: <8910171800.AA07072@foobar.colorado.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!rpi!tut.cis.ohio-state.edu!FOOBAR.COLORADO.EDU!grunwald

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!rpi!tut.cis.ohio-state.edu!FOOBAR.COLORADO.EDU!grunwald
From: grunwald@FOOBAR.COLORADO.EDU (Dirk Grunwald)
Newsgroups: gnu.g++.bug
Subject: gcc.c in latest g++.xtar.Z
Message-ID: <8910171800.AA07072@foobar.colorado.edu>
Date: 17 Oct 89 18:00:55 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: grunwald@foobar.colorado.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32