aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>2024-02-19 15:50:37 +0000
committerAndre Vieira <andre.simoesdiasvieira@arm.com>2024-02-19 16:12:31 +0000
commitb29f20b6e271b7cd1faad1ced9a55d92d00fcbfe (patch)
treeb9529fd6b3bf79593b3682469c883b052c3cf2ff
parentc7151283dc747769d4ac4f216d8f519bda2569b5 (diff)
downloadgcc-b29f20b6e271b7cd1faad1ced9a55d92d00fcbfe.zip
gcc-b29f20b6e271b7cd1faad1ced9a55d92d00fcbfe.tar.gz
gcc-b29f20b6e271b7cd1faad1ced9a55d92d00fcbfe.tar.bz2
Fix testism where __seg_gs was being used for all targets
Replaced uses of __seg_gs with the MACRO SEG defined in the testcase to pick (if any) the right __seg_{gs,fs} keyword based on target. gcc/testsuite/ChangeLog: * gcc.dg/bitint-86.c (__seg_gs): Replace with SEG MACRO.
-rw-r--r--gcc/testsuite/gcc.dg/bitint-86.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/bitint-86.c b/gcc/testsuite/gcc.dg/bitint-86.c
index 4e5761a..10a2392 100644
--- a/gcc/testsuite/gcc.dg/bitint-86.c
+++ b/gcc/testsuite/gcc.dg/bitint-86.c
@@ -15,14 +15,14 @@ struct T { struct S b[4]; };
#endif
void
-foo (__seg_gs struct T *p)
+foo (SEG struct T *p)
{
struct S s;
p->b[0] = s;
}
void
-bar (__seg_gs struct T *p, _BitInt(710) x, int y, double z)
+bar (SEG struct T *p, _BitInt(710) x, int y, double z)
{
p->b[0].a = x + 42;
p->b[1].a = x << y;
@@ -31,7 +31,7 @@ bar (__seg_gs struct T *p, _BitInt(710) x, int y, double z)
}
int
-baz (__seg_gs struct T *p, _BitInt(710) x, _BitInt(710) y)
+baz (SEG struct T *p, _BitInt(710) x, _BitInt(710) y)
{
return __builtin_add_overflow (x, y, &p->b[1].a);
}