Article View: gnu.gcc.help
Article #53280Re: using gcc with dbm on sparc +FIX for gas-1.38 (SPARC, input="unimp 0")
From: Jim Wilson
Date: Tue, 25 Feb 1992 07:24
Date: Tue, 25 Feb 1992 07:24
13 lines
1140 bytes
1140 bytes
In article <9202210944.AA15738@hudson.cs.columbia.edu> dupuy@cs.columbia.edu writes:
>> Our ndbm seems to do little more than core dump. ...
>> It seems that if I switch from using gcc to plain cc, everything works?????
>
>The problem is that the {n,g,}dbm libraries all pass structs as arguments, and
>return structs as well. But gcc and Sun cc have different conventions about
>passing aggregates (structs or unions) as arguments and returning them.
This is fixed in GCC 2.0. The sparc port always uses the same calling
convention as Sun cc now.
--
Jim Wilson wilson@kithrup.com
Technical Details
Message-ID:
<1992Feb25.072401.15164@kithrup.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!wilsonReferences:
<9202210944.AA15738@hudson.cs.columbia.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f46ad052c9d8235c X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-24 23:40:45 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!wilson From: wilson@kithrup.COM (Jim Wilson) Subject: Re: using gcc with dbm on sparc +FIX for gas-1.38 (SPARC, input="unimp 0") Organization: Kithrup Enterprises, Ltd. Date: Tue, 25 Feb 1992 07:24:01 GMT Message-ID: <1992Feb25.072401.15164@kithrup.COM> References: <9202210944.AA15738@hudson.cs.columbia.edu>