title: gcc compiling error on Solaris 10
body: <p>I want to compile a source code, but there are some compiling errors about <code>__sync_xxx</code> functions (<code>__sync_bool_compare_and_swap</code> etc.) </p>
  
  <p>GCC version on machine is 3.4.3 (it must be gcc 4.1 or over for supporting atomic builtins), so I have downloaded GCC v4.6, copied it to another directory (I didn't remove v3.4.3) then change the <code>$PATH</code> path for GCC but it doesn't work (the same error occurs).</p>
  
  <p>I want to ask that is only changing gcc path with <code>export PATH=...</code> enough for compiling with new GCC?</p>