public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix m68k __sync_lock_test_and_set_1 definition
@ 2012-08-17 12:34 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2012-08-17 12:34 UTC (permalink / raw)
  To: gcc-patches

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.

	* config/m68k/linux-atomic.c (__sync_lock_test_and_set_1): Fix
	type.

diff --git a/libgcc/config/m68k/linux-atomic.c b/libgcc/config/m68k/linux-atomic.c
index 6e81d6b..a2bba59 100644
--- a/libgcc/config/m68k/linux-atomic.c
+++ b/libgcc/config/m68k/linux-atomic.c
@@ -1,5 +1,5 @@
 /* Linux-specific atomic operations for m68k Linux.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011, 2012 Free Software Foundation, Inc.
    Based on code contributed by CodeSourcery for ARM EABI Linux.
 
 This file is part of GCC.
@@ -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)
-- 
1.7.11.5

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-17 12:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-17 12:34 [PATCH] Fix m68k __sync_lock_test_and_set_1 definition Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).