diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-09-13 00:20:51 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-09-13 00:20:51 -0700 |
commit | 21fa14c8dba6b615564beff6b4e60f2b54f530ae (patch) | |
tree | 7c44e538ece9939c36ba10b9692f4ce02dbca87d /gcc-4.4.3/gcc/testsuite/lib | |
parent | 5d8cb1af30dc348b89a0dfc4a00ef6ab0b466d66 (diff) | |
download | toolchain_gcc-21fa14c8dba6b615564beff6b4e60f2b54f530ae.tar.gz toolchain_gcc-21fa14c8dba6b615564beff6b4e60f2b54f530ae.tar.bz2 toolchain_gcc-21fa14c8dba6b615564beff6b4e60f2b54f530ae.zip |
Fix GCC 4.4.3 crashes on NEON specific typedef for float
Backport the following: r152030, r152242, r152408, and r153858
Related issue:
http://code.google.com/p/android/issues/detail?id=34613
Change-Id: I44563f618220fbe9e01915962fe411ac2f385bbb
Diffstat (limited to 'gcc-4.4.3/gcc/testsuite/lib')
-rw-r--r-- | gcc-4.4.3/gcc/testsuite/lib/target-supports.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc-4.4.3/gcc/testsuite/lib/target-supports.exp b/gcc-4.4.3/gcc/testsuite/lib/target-supports.exp index 792d0918a..b38ba0ef6 100644 --- a/gcc-4.4.3/gcc/testsuite/lib/target-supports.exp +++ b/gcc-4.4.3/gcc/testsuite/lib/target-supports.exp @@ -1215,7 +1215,7 @@ proc check_effective_target_fixed_point { } { proc check_effective_target_dfp_nocache { } { verbose "check_effective_target_dfp_nocache: compiling source" 2 set ret [check_no_compiler_messages_nocache dfp object { - _Decimal32 x; _Decimal64 y; _Decimal128 z; + float x __attribute__((mode(DD))); }] verbose "check_effective_target_dfp_nocache: returning $ret" 2 return $ret @@ -1223,7 +1223,8 @@ proc check_effective_target_dfp_nocache { } { proc check_effective_target_dfprt_nocache { } { return [check_runtime_nocache dfprt { - _Decimal32 x = 1.2df; _Decimal64 y = 2.3dd; _Decimal128 z; + typedef float d64 __attribute__((mode(DD))); + d64 x = 1.2df, y = 2.3dd, z; int main () { z = x + y; return 0; } }] } @@ -2899,7 +2900,8 @@ proc check_effective_target_pow10 { } { proc check_effective_target_hard_dfp {} { return [check_no_messages_and_pattern hard_dfp "!adddd3" assembly { - _Decimal64 x, y, z; + typedef float d64 __attribute__((mode(DD))); + d64 x, y, z; void foo (void) { z = x + y; } }] } |