On Mon, 2012-03-05 at 13:49 -0800, Richard Henderson wrote: > On 03/05/2012 01:44 PM, Oleg Endo wrote: > > Yeah, however, I'm also using the value behind > > TARGET_ATOMIC_TEST_AND_SET_TRUEVAL in sync.md. If it's in sh.c it > > doesn't work. That's why I left it in sh.h. > > That value should be available via targetm.atomic_test_and_set_trueval. >
Just tried out in sync.md ... - gen_int_mode (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL, + gen_int_mode (targetm.atomic_test_and_set_trueval, gives .. /gcc/config/sh/sync.md:421:21: error: ‘targetm’ undeclared Is there something missing?