aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pe/aligncomm-3.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-06-25 14:41:18 +0000
committerKai Tietz <kai.tietz@onevision.com>2009-06-25 14:41:18 +0000
commit204eb8bc8b00846d11fcbb3c7ff198725dc0ddac (patch)
tree6391211501bdf17a4df249030fee38785b5ff8c3 /ld/testsuite/ld-pe/aligncomm-3.c
parentbdeb4032eaf0e30991521429c3acc85987eda965 (diff)
downloadgdb-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/aligncomm-3.c')
-rwxr-xr-xld/testsuite/ld-pe/aligncomm-3.c3
1 files changed, 2 insertions, 1 deletions
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)