[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: followup to segfault/builtin_expect
From: |
Andreas Jaeger |
Subject: |
Re: followup to segfault/builtin_expect |
Date: |
14 Jan 2001 12:31:01 +0100 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands) |
>>>>> David Ford writes:
> I checked an older compile, of 2.2, and the config.log.
> HAVE_BUILTIN_EXPECT is undefined in the previous compile and the
> config.log shows a failure for it, however the config.h had it defined.
> I undefined it and commented it out. I'd recommed someone taking a peek
> at the configure script to figure out why the failure resulted in a
> success.
Please check it for yourself - it seem to work for everybody else.
The program is very simple:
int foo (int a)
{
a = __builtin_expect (a, 10);
return a == 10 ? 0 : 1;
}
Compile it with your comiler and check what happens.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj