[backport from gcc-4.8/trunk r190480 ] From: Andreas Schwab Subject: [PATCH] Fix m68k __sync_lock_test_and_set_1 definition Date: Fri, 17 Aug 2012 14:34:29 +0200 List-Archive: This fixes a warning about the definition not matching the builtin. Since the type is not actually used for accessing the data, this doesn't affect the generated code. Tested on m68k-linux and committed. Andreas. libgcc/ 2012-08-17 Andreas Schwab * config/m68k/linux-atomic.c (__sync_lock_test_and_set_1): Fix type. --- gcc-4.7.1/libgcc/config/m68k/linux-atomic.c.~1~ 2011-11-27 00:57:37.000000000 +0100 +++ gcc-4.7.1/libgcc/config/m68k/linux-atomic.c 2012-09-01 14:56:48.000000000 +0200 @@ -207,5 +207,5 @@ SUBWORD_BOOL_CAS (unsigned char, 1) #define COMMA , WORD_SYNC_OP (test_and_set, , COMMA, oldval) -SUBWORD_SYNC_OP (test_and_set, , COMMA, unsigned short, 1, oldval) +SUBWORD_SYNC_OP (test_and_set, , COMMA, unsigned char, 1, oldval) SUBWORD_SYNC_OP (test_and_set, , COMMA, unsigned short, 2, oldval)