g77 segfault with ss-19990920

Toon Moene toon@moene.indiv.nluug.nl
Thu Sep 30 19:57:00 GMT 1999


martin.kahlert@provi.de wrote:

> egcs-19990920 produces segfault on Linux AXP (Alpha) with

> PS: It seems to prode Segfaults with nearly every program more
>     complicate then hello world.

Yeah, this is a case of me not acting fast enough.  On Sunday, 19th of
September, I discovered that:

*** f/g77spec.c.orig    Sun Sep 19 11:40:41 1999
--- f/g77spec.c Sun Sep 19 11:29:00 1999
*************** lang_specific_driver (in_argc, in_argv, 
*** 304,309 ****
--- 304,311 ----
    fprintf (stderr, "\n");
  #endif
  
+   real_g77_newargv = argv;
+ 
    g77_xargc = argc;
    g77_xargv = argv;
    g77_newargc = 0;


would fix this.  Unfortunately, I didn't post this to gcc-patches until
the 20th - too late for the Monday Is Snapshot Day Show.

Sorry,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html

PS:  Somehow, I get a lot of attention because of this one line bug fix 
     - conspiracy theorists could have a field day analysing *that*.

PS2: Note how I got all the semicolons right (the first time, I might
     add :-)



More information about the Gcc-bugs mailing list