mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 12:22:20 +08:00
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.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-07-13 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
|
* gdb.arch/i386-sse.c (have_sse) <edx>: Make unsigned.
|
||||||
|
|
||||||
2020-07-13 Gary Benson <gbenson@redhat.com>
|
2020-07-13 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
* gdb.base/bigcore.c (main): Use a volatile pointer when
|
* gdb.base/bigcore.c (main): Use a volatile pointer when
|
||||||
|
@ -51,7 +51,7 @@ v4sf_t data[] =
|
|||||||
int
|
int
|
||||||
have_sse (void)
|
have_sse (void)
|
||||||
{
|
{
|
||||||
int edx;
|
unsigned int edx;
|
||||||
|
|
||||||
if (!x86_cpuid (1, NULL, NULL, NULL, &edx))
|
if (!x86_cpuid (1, NULL, NULL, NULL, &edx))
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user