diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-27 22:12:42 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-27 22:12:42 +0000 |
commit | c878f5e3b88dd452092bbb5d9d2195c35cb76ce9 (patch) | |
tree | ce3773fbf6c9ef691c03a762c1cba3b1862446db /gcc | |
parent | abb9ea864d1c4122b39f9fb54f4a1b9f6cc5604a (diff) | |
download | gcc-c878f5e3b88dd452092bbb5d9d2195c35cb76ce9.tar.gz |
* g77spec.c (lang_specific_driver): Put `-lg2c' in
front of any `-lm' that is seen.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20763 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/f/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/f/g77spec.c | 2 | ||||
-rw-r--r-- | gcc/f/news.texi | 9 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 581f689c6f8..c6cafbf4f81 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 26 11:54:19 1998 Craig Burley <burley@gnu.org> + + * g77spec.c (lang_specific_driver): Put `-lg2c' in + front of any `-lm' that is seen. + Mon Jun 15 23:39:24 1998 Craig Burley <burley@gnu.org> * Make-lang.in (f/g77.info): Use -f when removing diff --git a/gcc/f/g77spec.c b/gcc/f/g77spec.c index 7c780183106..fa967d05560 100644 --- a/gcc/f/g77spec.c +++ b/gcc/f/g77spec.c @@ -511,6 +511,8 @@ Report bugs to <egcs-bugs@cygnus.org>.\n"); { if (saw_library == 1) saw_library = 2; /* -l<library> -lm. */ + else + append_arg (FORTRAN_LIBRARY); } else if (strcmp (argv[i], FORTRAN_LIBRARY) == 0) saw_library = 1; /* -l<library>. */ diff --git a/gcc/f/news.texi b/gcc/f/news.texi index 06031ce289d..05cb258205e 100644 --- a/gcc/f/news.texi +++ b/gcc/f/news.texi @@ -49,6 +49,15 @@ involve a combination of these elements. @heading In 0.5.24: @itemize @bullet @item +The @code{g77} driver now ensures that @samp{-lg2c} +is specified in the link phase prior to any +occurrence of @samp{-lm}. +This prevents accidentally linking to a routine +in the SunOS4 @samp{-lm} library +when the generated code wants to link to the one +in @code{libf2c} (@code{libg2c}). + +@item @code{g77} no longer crashes when compiling code containing specification statements such as @samp{INTEGER(KIND=7) PTR}. |