[gnu.g++.bug] another hp-ux crt0+ fix

glenne%hplsla@HPLABS.HP.COM (Glenn Engel) (11/09/88)

 
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