diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2011-12-08 13:57:43 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2011-12-08 13:57:43 +0000 |
commit | 3c370d424086c3ad94caac955d9c79aed71a0c12 (patch) | |
tree | ac8cb614a918c69852f06a81318f57b5698c46f1 /gcc | |
parent | 1381811407eec3c8107b1f43622eb4816cd8f717 (diff) | |
download | gcc-3c370d424086c3ad94caac955d9c79aed71a0c12.zip gcc-3c370d424086c3ad94caac955d9c79aed71a0c12.tar.gz gcc-3c370d424086c3ad94caac955d9c79aed71a0c12.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20111208-1.c | 22 |
2 files changed, 9 insertions, 20 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 930f3b9..7cec9a6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,13 @@ 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. diff --git a/gcc/testsuite/gcc.c-torture/execute/20111208-1.c b/gcc/testsuite/gcc.c-torture/execute/20111208-1.c index 31426a3..dc2b9ca 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20111208-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20111208-1.c @@ -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); |