This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g77 -v broken?
- To: d dot love at dl dot ac dot uk
- Subject: Re: g77 -v broken?
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 16 Jul 1998 14:42:24 -0700
- CC: egcs at cygnus dot com
: From: Dave Love <d.love@dl.ac.uk>
: Date: 16 Jul 1998 11:03:34 +0100
:
: With essentially current release branch source, bootstrapped on
: i586-pc-linux-gnu, I find that `./g77 -B./ -v' in the build directory
: loops indefinitely after running cpp, so the g77 tests hang.
The patch below fixes this. There was nothing wrong with the g77
spec, it was just that the sequence "... %g %g%O ..." was causing a
very long suffix to be chosen for the temporary file name, longer than
was supported by the filesystem.
Cheers
Nick
Index: gcc.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gcc.c,v
retrieving revision 1.48
diff -p -w -r1.48 gcc.c
*** gcc.c 1998/07/14 14:18:54 1.48
--- gcc.c 1998/07/16 21:41:07
*************** do_spec_1 (spec, inswitch, soft_matched_
*** 3653,3659 ****
t->length = p - suffix;
t->suffix = save_string (suffix, p - suffix);
t->unique = (c != 'g');
! temp_filename = make_temp_file (suffix);
}
temp_filename_length = strlen (temp_filename);
t->filename = temp_filename;
--- 3654,3660 ----
t->length = p - suffix;
t->suffix = save_string (suffix, p - suffix);
t->unique = (c != 'g');
! temp_filename = make_temp_file (t->suffix);
}
temp_filename_length = strlen (temp_filename);
t->filename = temp_filename;