Date: Tue, 1 Aug 1995 04:20:13 +0900 From: Takeshi WATANABE <watanabe@himawari.earth.s.kobe-u.ac.jp> To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/644: f77 -r8 Message-ID: <199507311920.EAA07568@himawari.earth.s.kobe-u.ac.jp> Resent-Message-ID: <199507311930.MAA20706@freefall.cdrom.com>
index | next in thread | raw e-mail
>Number: 644
>Category: gnu
>Synopsis: executable file that compiled by "f77 -r8" makes core dump.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 31 12:30:00 PDT 1995
>Last-Modified:
>Originator: Takeshi WATANABE
>Organization:
Kobe University, Kobe, Japan.
>Release: FreeBSD 2.0-BUILT-19950603 i386
>Environment:
FreeBSD-2.0.5-RELEASE original.
>Description:
Executable file that compiled by "f77 -r8" makes core dump. ("f77"
without "-r8" option makes no problem)
% f77 -r8 test.f
% ./a.out
Segmentation fault (core dumped)
# "-r8" is meaningful option for "f2c" command. "f77" calls "f2c".
In spite of this, "f77 -c -r8" makes no problem.
% f77 -c -r8 test.f
% f77 test.o
% ./a.out
(This is OK.)
I tested "f77" command with "-v" option. It was found that "f77" command
(without "-r8") calls finally "ld" command with "-e start" option. However,
"f77 -r8" calls "ld" command without "-e start" option.
I think that this feature is meaningful for "f77 -r". However, it's
maybe meaningless for "f77 -r8".
So, the condition for "-e start" option may change from "!r*" to "!r".
>How-To-Repeat:
Always on FreeBSD-2.0(.5)-RELEASE. Never on FreeBSD-1.1.5.1-RELEASE.
>Fix:
*** /usr/src/gnu/usr.bin/cc/include/tm.h.orig Mon Nov 7 06:32:11 1994
--- /usr/src/gnu/usr.bin/cc/include/tm.h Fri Jul 28 07:25:41 1995
***************
*** 42,48 ****
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
#define LINK_SPEC \
! "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \
%{p:-Bstatic} %{pg:-Bstatic} %{Z}"
/* This goes away when the math emulator is fixed. */
--- 42,48 ----
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
#define LINK_SPEC \
! "%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \
%{p:-Bstatic} %{pg:-Bstatic} %{Z}"
/* This goes away when the math emulator is fixed. */
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507311920.EAA07568>
