Commit 3c370d42 by Georg-Johann Lay Committed by Georg-Johann Lay

re PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)

	* gcc.c-torture/execute/20111208-1.c (int16_t): Use __INT16_TYPE__
	for typedef.
	(int32_t): Use __INT32_TYPE__ for typedef.
	PR tree-optimization/51315

From-SVN: r182115
parent 13818114
2011-12-08 Georg-Johann Lay <avr@gjlay.de>
PR tree-optimization/51315
* gcc.c-torture/execute/20111208-1.c (int16_t): Use __INT16_TYPE__
for typedef.
(int32_t): Use __INT32_TYPE__ for typedef.
2011-12-08 Georg-Johann Lay <avr@gjlay.de>
PR tree-optimization/51315
* gcc.c-torture/execute/20111208-1.c: Fix wrong assumption
sizeof(int)==4.
......
......@@ -10,26 +10,8 @@ extern void *memcpy (void *__restrict __dest,
extern size_t strlen (__const char *__s)
__attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
#if __SIZEOF_SHORT__ == 2
typedef short int int16_t;
#elif __SIZEOF_INT__ == 2
typedef int int16_t;
#elif __SIZEOF_LONG__ == 2
typedef long int16_t;
#else
#error Fix this
#endif
#if __SIZEOF_INT__ == 4
typedef int int32_t;
#elif __SIZEOF_LONG__ == 4
typedef long int32_t;
#elif __SIZEOF_SHORT__ == 4
typedef short int32_t;
#else
#error Fix this
#endif
typedef __INT16_TYPE__ int16_t;
typedef __INT32_TYPE__ int32_t;
extern void abort (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment