🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

another hp-ux crt0+ fix

#1528
From: Glenn Engel
Date: Wed, 09 Nov 1988 06:11
40 lines
1412 bytes
 
Here's another patch for g++ crt0.c.  This is applied to version 1.25.1.
A call to _cleanup is needed to flush and close open files.

Also, with the advent of ATT C++ 2.0 on the scene, include files in 
/usr/include/CC are no longer compatible with g++ due to the 
extern "C" declarations.  If the next release of g++ does not yet
implement this feature I suggest that /usr/include/CC be the LAST
directory in the search path for cpp rather than the second path.
This would allow definitions to be picked up from gcc-include before
CC includes.

--
 |  Glenn R. Engel
 |  Hewlett-Packard 
 |  (206) 335-2066
 |  glenne%hplsla@hplabs.hp.com

*** crt0.c.orig	Tue Nov  8 08:00:43 1988
--- crt0.c	Tue Nov  8 08:35:02 1988
***************
*** 676,681
       int status;
  {
    __do_global_cleanup ();
    _exit (status);
  }
  #endif

--- 676,684 -----
       int status;
  {
    __do_global_cleanup ();
+ #ifdef hp9000s300
+   _cleanup();
+ #endif  
    _exit (status);
  }
  #endif
Technical Details
Message-ID: <8811090611.AA14862@labgre.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!HPLABS.HP.COM!glenne%hplsla

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!HPLABS.HP.COM!glenne%hplsla
From: glenne%hplsla@HPLABS.HP.COM (Glenn Engel)
Newsgroups: gnu.g++.bug
Subject: another hp-ux crt0+ fix
Message-ID: <8811090611.AA14862@labgre.HP.COM>
Date: 9 Nov 88 06:11:27 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 39