[google 4_7] fix unsat for target w/o atomic builtins (issue7031051)

2013-01-02 Thread Rong Xu
Hi, This patch fixes an issue in r194725. The call to atmoic builtin is emmitted regardless of -fprofile-gen-atomic -- which results in link unsat for targets without sync builtin support. Tested with regression test in x86 (with builtin support.) and powerpc32 (without builtin support).

Re: [google 4_7] fix unsat for target w/o atomic builtins (issue7031051)

2013-01-02 Thread Xinliang David Li
Ok for google branch, but it might be better to warn this at compile time (more discussion needed for the trunk version). David On Wed, Jan 2, 2013 at 4:58 PM, Rong Xu x...@google.com wrote: Hi, This patch fixes an issue in r194725. The call to atmoic builtin is emmitted regardless of