Commited: remove uint32_t declaration from testsuite/gcc.dg/vect/slp-reduc-sad.c

Message ID 5D2328DC.6020604@riscy-ip.com
State New
Headers show
Series
  • Commited: remove uint32_t declaration from testsuite/gcc.dg/vect/slp-reduc-sad.c
Related show

Commit Message

Joern Wolfgang Rennecke July 8, 2019, 11:28 a.m.
The declaration was not used, and it clashed with a system declaration 
from newlib.
On a 32 bit typical system, uint32_t can be defined using unsigned, 
unsigned int or unsigned long.

gcc.dg/vect/slp-reduc-sad.c includes gcc.dg/vect/tree-vect.h,
which includes newlib/libc/include/signal.h,
which includes newlib/libc/include/sys/signal.h,
which includes newlib/libc/include/sys/types.h
which includes newlib/libc/include/sys/_stdint.h, which defines:
typedef __uint32_t uint32_t ;

Committed as obvious.
2019-07-08  Joern Rennecke  <joern.rennecke@riscy-ip.com>

	Avoid clash with system header declaration.
	* testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
	Remove unused declaration.

Patch

Index: testsuite/gcc.dg/vect/slp-reduc-sad.c
===================================================================
--- testsuite/gcc.dg/vect/slp-reduc-sad.c	(revision 272931)
+++ testsuite/gcc.dg/vect/slp-reduc-sad.c	(working copy)
@@ -2,7 +2,6 @@ 
 
 #include "tree-vect.h"
 
-typedef unsigned int uint32_t;
 typedef unsigned short uint16_t;
 typedef unsigned char uint8_t;