作者jesse.bbs@bbs.sayya.org (Jesse) 看板: linux
標題[問題]請問該如何更新gcc patch?
時間SayYA 資訊站 (2008/02/27 Wed 15:21:33)
各位好,
請問針對gcc的patch要如何上呢?
目前我的gcc版本:gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
因為在安裝軟體時,系統要求修正gcc patch "pr28045.c"
"pr28045.c"的內容如下:
extern void abort(void);
struct a
{
unsigned int bits : 1;
signed long val : ((sizeof(long) * 8) - 1);
};
int Fnegate (struct a b)
{
if ((-((long)b.val)) <= ((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))
&& (-((long)b.val)) >= (-(((long) ((1UL << ((sizeof(long) * 8) - 2))
-1UL))) - 1))
return 0 ;
abort ();
}
int main ()
{
struct a b = {1, 1};
Fnegate (b);
return 0;
}
煩請指教,謝謝
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: 59-120-223-59.hinet-ip.hinet.net