From owner-freebsd-hackers Tue Oct 24 22:11:41 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA27902 for hackers-outgoing; Tue, 24 Oct 1995 22:11:41 -0700 Received: from subnet.sub.net (root@subnet.sub.net [192.101.75.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id WAA27897 for ; Tue, 24 Oct 1995 22:11:37 -0700 Received: from ud.dinoex.sub.org (root@localhost) by subnet.sub.net (8.6.12/8.6.12) with UUCP id GAA14474; Wed, 25 Oct 1995 06:10:26 +0100 Received: from phase23.dinoex.sub.org by ud.dinoex.sub.org with uucp (Linux Smail3.1.28.1 #14) id m0t7xRL-000JiQC; Wed, 25 Oct 95 05:27 MET Received: from citylink.dinoex.sub.org by phase23.dinoex.sub.org with uucp (CY Smail3.1.28.1 #6) id m0t7xKh-0005KfC; Wed, 25 Oct 95 05:20 MET From: peter@citylink.dinoex.sub.org (Peter Much) Message-Id: <199510241504.QAA05680@citylink.dinoex.sub.org> Received: by citylink.dinoex.sub.org (8.6.12 FreeBSD-1/PMuch) id QAA05680; Tue, 24 Oct 1995 16:04:20 +0100 Subject: Re: modf.S (in libc.a): stack access fault To: bde@zeta.org.au (Bruce Evans) Date: Tue, 24 Oct 1995 16:04:18 +0100 (MET) Cc: freebsd-hackers@freebsd.org In-Reply-To: <199510230625.QAA15714@godzilla.zeta.org.au> from "Bruce Evans" at Oct 23, 95 04:25:25 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 499 Sender: owner-hackers@freebsd.org Precedence: bulk > $ cc -Wall prog.c > prog.c:4: warning: return-type defaults to `int' > prog.c: In function `main': > prog.c:12: warning: implicit declaration of function `modf' > prog.c:18: warning: control reaches end of non-void function > > `modf' is not declared and so the compiler has to assume that > it returns `int'. Since it actually returns double, the behaviour > is undefined. Oh well... Next time i get stack access trobles, i will look for the most possible explanation first... thanks, Peter