[i386] : Change x86_prefetch_sse to unsigned char

Message ID CAFULd4bR4Gr2PyDi9kkQq6m-2yqKoFhKRELkdmDsNFg+smWsqg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Sept. 12, 2012, 7:27 p.m.

This will match "fake" bool type that is used throughout gcc sources.
We can't use bool there, since the header is used in libgcc which
doesn't include system.h

2012-09-12  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
	* config/i386/i386.h (x86_prefetch_sse): Ditto.

Tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN.



Index: config/i386/i386.c
--- config/i386/i386.c	(revision 191226)
+++ config/i386/i386.c	(working copy)
@@ -2517,8 +2517,8 @@ 
 /* Which instruction set architecture to use.  */
 enum processor_type ix86_arch;
-/* true if sse prefetch instruction is not NOOP.  */
-int x86_prefetch_sse;
+/* True if processor has SSE prefetch instruction.  */
+unsigned char x86_prefetch_sse;
 /* -mstackrealign option */
 static const char ix86_force_align_arg_pointer_string[]
Index: config/i386/i386.h
--- config/i386/i386.h	(revision 191224)
+++ config/i386/i386.h	(working copy)
@@ -458,8 +458,7 @@ 
-extern int x86_prefetch_sse;
+extern unsigned char x86_prefetch_sse;
 #define TARGET_PREFETCH_SSE	x86_prefetch_sse
 #define ASSEMBLER_DIALECT	(ix86_asm_dialect)