X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: bnu214s compiled for djgpp 2.04 alpha Date: Wed, 22 Sep 2004 12:48:54 -0300 Lines: 39 Message-ID: <41519EE6.208@acm.org> References: <1095849299 DOT 415155532ce78 AT webmail DOT wilkes DOT edu> <41518C5C DOT 1000306 AT acm DOT org> <2rdhq3F191i81U1 AT uni-berlin DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de +2ejTWXD99OqDBKhdhephwTCx7kowQq5M7b8rltpsMUFTQnMY= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: pt-br, pt To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker escreveu: > Cesar Rabak wrote: > >>fdonahoe AT wilkes DOT edu escreveu: > > [...] > >>># 628 "./gmp-impl.h" >>>void __gmpz_aorsmul_1 (mp_size_t sub,mpz_ptr w,mpz_srcptr u,mp_limb_t >>>v) __attribute__ ((regparm (1))); >> > [...] > >>># 60 "mpz/aorsmul_i.c" >>>void >>>__gmpz_aorsmul_1 (mp_size_t sub,mpz_ptr w,mpz_srcptr x,mp_limb_t y) >>>{ >> > >>They don't look to have any clash between declaration and definition for >>me. > > > Absence vs. presence of __attribute__((regparm(1)) should not be a > clash? I would rather strongly expect it to count as one --- if the > __attribute___ is useful at all, it's a change of ABI, which makes the > prototype incompatible with the definition. If it changes the ABI, for sure. > > BTW: what exaxctly made the GMP people believe they can violate the > ANSI/ISO standard C reserved-for-implementation namespace like that? > This actually means that strictly speaking, the above causes undefined > behaviour, and everything goes. > Probably the forgiveness of earlier versions of gcc?