This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: binary compatibility ABI (was: Re: [boehm-gc] Import 6.3 alpha 1)
- From: Tom Tromey <tromey at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Andrew Haley <aph at redhat dot com>, Bryce McKinlay <bryce at mckinlay dot net dot nz>, <java at gcc dot gnu dot org>
- Date: 23 Sep 2003 10:54:27 -0600
- Subject: Re: binary compatibility ABI (was: Re: [boehm-gc] Import 6.3 alpha 1)
- References: <Pine.LNX.4.44.0309092339260.23668-100000@ops2.one-point.com>
- Reply-to: tromey at redhat dot com
>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:
>> jint *Body::count() __attribute__((pure));
>> jint *Body::count()
>> {
>> _Jv_InitClass (&class$);
>> return &count$;
>> }
Jeff> Is this legal for a pure function? I mean, the _Jv_InitClass
Jeff> call clearly has side effects.
We can always add a new attribute like "idempotent" to cover this
case.
Tom