|
From: <sv...@va...> - 2008-06-19 08:14:52
|
Author: sewardj
Date: 2008-06-19 09:14:58 +0100 (Thu, 19 Jun 2008)
New Revision: 8257
Log:
Helgrind (in this HGDEV branch) doesn't work correctly when compiled
by "gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch
revision 135036]" as supplied on openSUSE 11 rc1 (x86). This commit
"fixes" it, but I suspect this is really a gcc bug. No other gccs I
have tried have this problem.
Modified:
branches/HGDEV/helgrind/hg_main.c
Modified: branches/HGDEV/helgrind/hg_main.c
===================================================================
--- branches/HGDEV/helgrind/hg_main.c 2008-06-19 07:49:49 UTC (rev 8256)
+++ branches/HGDEV/helgrind/hg_main.c 2008-06-19 08:14:58 UTC (rev 8257)
@@ -1291,7 +1291,7 @@
}
static inline Bool get_SHVAL_TRACE_BIT (SVal sv) {
- return (sv >> TRACE_BIT_POSITION) & 1;
+ return 1 == ((sv >> TRACE_BIT_POSITION) & 1);
}
static inline SVal set_SHVAL_TRACE_BIT (SVal sv, Bool trace_bit) {
|