VirtualBox

Changeset 2041 in kBuild


Ignore:
Timestamp:
Nov 3, 2008 12:15:48 PM (16 years ago)
Author:
bird
Message:

kmk: fixed gcc 3.2.3 issue.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/make.h

    r2040 r2041  
    606606alloccache_free (struct alloccache *cache, void *item)
    607607{
    608   struct alloccache_free_ent *f = (struct alloccache_free_ent *)item; /* aliasing problem :-( */
     608  struct alloccache_free_ent *f = (struct alloccache_free_ent *)item;
    609609#if 0 /*ndef NDEBUG*/
    610610  struct alloccache_free_ent *c;
     
    613613    MY_ASSERT_MSG (c != f && i < 0x10000000,
    614614                   ("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
    615622#endif
    616623
  • trunk/src/kmk/read.c

    r2040 r2041  
    11071107#else
    11081108              alloccache_free (&nameseq_cache, files);
    1109               files = 0;
    11101109#endif
    11111110              files = next;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette