Changeset 2041 for trunk/src/kmk/make.h
- Timestamp:
- Nov 3, 2008, 1:15:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/make.h
r2040 r2041 606 606 alloccache_free (struct alloccache *cache, void *item) 607 607 { 608 struct alloccache_free_ent *f = (struct alloccache_free_ent *)item; /* aliasing problem :-( */608 struct alloccache_free_ent *f = (struct alloccache_free_ent *)item; 609 609 #if 0 /*ndef NDEBUG*/ 610 610 struct alloccache_free_ent *c; … … 613 613 MY_ASSERT_MSG (c != f && i < 0x10000000, 614 614 ("i=%u total_count=%u\n", i, cache->total_count)); 615 #endif 616 #ifdef __GNUC__ 617 /* GCC 3.2.3 has been observed having aliasing issues, so, setup a 618 barrier for it here. */ 619 # if (__GNUC__ == 3 && __GNUC_PATCHLEVEL__ <= 3) || __GNUC__ < 3 620 __asm__ __volatile__ ("" ::: "memory"); 621 # endif 615 622 #endif 616 623
Note:
See TracChangeset
for help on using the changeset viewer.