Changeset 2041 in kBuild
- Timestamp:
- Nov 3, 2008 12:15:48 PM (16 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 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 -
trunk/src/kmk/read.c
r2040 r2041 1107 1107 #else 1108 1108 alloccache_free (&nameseq_cache, files); 1109 files = 0;1110 1109 #endif 1111 1110 files = next;
Note:
See TracChangeset
for help on using the changeset viewer.