From owner-freebsd-hackers Tue Mar 4 14:42:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA21359 for hackers-outgoing; Tue, 4 Mar 1997 14:42:31 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA21353 for ; Tue, 4 Mar 1997 14:42:28 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id PAA10555; Tue, 4 Mar 1997 15:37:21 -0700 From: Terry Lambert Message-Id: <199703042237.PAA10555@phaeton.artisoft.com> Subject: Re: gcc question To: guido@gvr.win.tue.nl (Guido van Rooij) Date: Tue, 4 Mar 1997 15:37:21 -0700 (MST) Cc: terry@lambert.org, FreeBSD-hackers@freebsd.org In-Reply-To: <199703042130.WAA03370@gvr.win.tue.nl> from "Guido van Rooij" at Mar 4, 97 10:30:12 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > > > I still interface between the two, without having to write a wrapper > > > > > (becasue I think that is ugly). > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Then you must create a stub function, eg: > > What I meant was isn't there an __whatever__ function attruibute that does > this. You mean "acts as if there were a prototype in scope for -traditional compilations"? No. It is not an attribute in the object file; it's a question of how arguments are pushed an popped with a prototype in scope and not in scope. Since ANSI does not *require* prototypes be used... why can't you dispense with -traditional? What behaviour are you depending on? You aren't going to change the way the stack is framed by caller vs. the way it is framed by callee without a stub function (or compiling the caller and callee in the same context). Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.