Re: Question about ECPGset_noind_null() and ECPGis_noind_null()
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Boszormenyi Zoltan <zb@cybertec.at>, Michael Meskes <meskes@postgresql.org>, pgsql-hackers@postgresql.org, Hans-Juergen Schoenig <hs@cybertec.at>
Date: 2009-11-19T19:46:50Z
Lists: pgsql-hackers
Tom Lane wrote: > Boszormenyi Zoltan <zb@cybertec.at> writes: > >> for (; length > 0 && ptr[--length] == 0xff;); >> > > >> I suspect that GCC does the "--length" after checking >> "length > 0" and before checking the "ptr[...] == 0xff", >> but HP CC does it before checking "length > 0". >> > > If it does, that is *unquestionably* a bug in HP's CC and should be > reported to them. > Wow, I recall fighting HP over a bad compiler bug (although not as bad as this would be) 15 years ago. Their official response amounted to "we don't care and we're not going to fix it". Maybe not much has changed. cheers andrew