Fix gdb.arch/i386-sse.exp with clang
authorGary Benson <gbenson@redhat.com>
Mon, 13 Jul 2020 14:14:07 +0000 (15:14 +0100)
committerGary Benson <gbenson@redhat.com>
Mon, 13 Jul 2020 14:14:07 +0000 (15:14 +0100)
commit915771bb8a8c14fce7af0d45967b955d0adc830b
tree1197927a7668b26bec872325220dcee8479cda45
parent0a5c31d1ac2da51fae02f42196873f06b05e73be
Fix gdb.arch/i386-sse.exp with clang

gdb.arch/i386-sse.exp fails to run with clang, because of:

 gdb compile failed, /gdbtest/src/gdb/testsuite/gdb.arch/i386-sse.c:56:40: warning:
       passing 'int *' to parameter of type 'unsigned int *' converts between
       pointers to integer types with different sign [-Wpointer-sign]
   if (!x86_cpuid (1, NULL, NULL, NULL, &edx))
                                        ^~~~
 /gdbtest/src/gdb/testsuite/../nat/x86-cpuid.h:35:41: note: passing
       argument to parameter '__edx' here
             unsigned int *__ecx, unsigned int *__edx)
                                               ^
 1 warning generated.

Fix it by declaring edx unsigned.

gdb/testsuite/ChangeLog:

* gdb.arch/i386-sse.c (have_sse) <edx>: Make unsigned.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/i386-sse.c