diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2009-06-25 14:41:18 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2009-06-25 14:41:18 +0000 |
commit | 204eb8bc8b00846d11fcbb3c7ff198725dc0ddac (patch) | |
tree | 6391211501bdf17a4df249030fee38785b5ff8c3 /ld/testsuite/ld-pe | |
parent | bdeb4032eaf0e30991521429c3acc85987eda965 (diff) | |
download | gdb-204eb8bc8b00846d11fcbb3c7ff198725dc0ddac.zip gdb-204eb8bc8b00846d11fcbb3c7ff198725dc0ddac.tar.gz gdb-204eb8bc8b00846d11fcbb3c7ff198725dc0ddac.tar.bz2 |
2009-06-25 Kai Tietz <kai.tietz@onevision.com>
* ld-pe/aligncomm-1.c (size_t): Add typedef.
(main): Use it for casting pointer to scalar.
* ld-pe/aligncomm-2.c: Likewise.
* ld-pe/aligncomm-3.c: Likewise.
* ld-pe/aligncomm-4.c: Likewise.
* ld-scripts/empty-address.exp: Make sure that for x86_64-*-mingw*
target imagebase is set to zero.
* ld-scripts/weak.exp: Don't fail for x86_64-*-mingw* target.
Diffstat (limited to 'ld/testsuite/ld-pe')
-rwxr-xr-x | ld/testsuite/ld-pe/aligncomm-1.c | 3 | ||||
-rwxr-xr-x | ld/testsuite/ld-pe/aligncomm-2.c | 3 | ||||
-rwxr-xr-x | ld/testsuite/ld-pe/aligncomm-3.c | 3 | ||||
-rwxr-xr-x | ld/testsuite/ld-pe/aligncomm-4.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/ld/testsuite/ld-pe/aligncomm-1.c b/ld/testsuite/ld-pe/aligncomm-1.c index bff42b8..fc6cb03 100755 --- a/ld/testsuite/ld-pe/aligncomm-1.c +++ b/ld/testsuite/ld-pe/aligncomm-1.c @@ -1,5 +1,6 @@ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); +typedef __SIZE_TYPE__ size_t; long s1 = 0; __m128 r; @@ -7,7 +8,7 @@ __m128 * volatile raddr = &r; int main (int argc, const char **argv) { - return 15 & (int)raddr; + return 15 & (int)(size_t)raddr; } void __main (void) diff --git a/ld/testsuite/ld-pe/aligncomm-2.c b/ld/testsuite/ld-pe/aligncomm-2.c index 61adc69..5e042b8 100755 --- a/ld/testsuite/ld-pe/aligncomm-2.c +++ b/ld/testsuite/ld-pe/aligncomm-2.c @@ -1,5 +1,6 @@ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); +typedef __SIZE_TYPE__ size_t; long s1 = 0; long s2 = 0; @@ -8,7 +9,7 @@ __m128 * volatile raddr = &r; int main (int argc, const char **argv) { - return 15 & (int)raddr; + return 15 & (int)(size_t)raddr; } void __main (void) diff --git a/ld/testsuite/ld-pe/aligncomm-3.c b/ld/testsuite/ld-pe/aligncomm-3.c index ae0dbfb..69184f9 100755 --- a/ld/testsuite/ld-pe/aligncomm-3.c +++ b/ld/testsuite/ld-pe/aligncomm-3.c @@ -1,5 +1,6 @@ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); +typedef __SIZE_TYPE__ size_t; long s1 = 0; long s2 = 0; @@ -9,7 +10,7 @@ __m128 * volatile raddr = &r; int main (int argc, const char **argv) { - return 15 & (int)raddr; + return 15 & (int)(size_t)raddr; } void __main (void) diff --git a/ld/testsuite/ld-pe/aligncomm-4.c b/ld/testsuite/ld-pe/aligncomm-4.c index 0c9e65d..085335a 100755 --- a/ld/testsuite/ld-pe/aligncomm-4.c +++ b/ld/testsuite/ld-pe/aligncomm-4.c @@ -1,5 +1,6 @@ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); +typedef __SIZE_TYPE__ size_t; long s1 = 0; long s2 = 0; @@ -10,7 +11,7 @@ __m128 * volatile raddr = &r; int main (int argc, const char **argv) { - return 15 & (int)raddr; + return 15 & (int)(size_t)raddr; } void __main (void) |