From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1971) id 21F423858D20; Mon, 19 Feb 2024 16:13:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21F423858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708359199; bh=dqsSKCZOzEe6g6Rut3bc99obqzjVLslhCKpOn9Ymj90=; h=From:To:Subject:Date:From; b=QEe6un1qDVnKgOCu2S7Txl4oit/+0xgD5TRLRipicZ/BDf5+CyRfgDl/peHVaMBNn 2WysCa1yUhPDm1qiaBAEPxD1pBBqj3AYpLjLsDAGosDyQr/V2PNuh8XheoBafkVAkk gbA93nXvQ6iqZOtbKDA6yJnfhrsiNumKRfRYxryg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andre Simoes Dias Vieira To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9065] Fix testism where __seg_gs was being used for all targets X-Act-Checkin: gcc X-Git-Author: Andre Simoes Dias Vieira X-Git-Refname: refs/heads/master X-Git-Oldrev: c7151283dc747769d4ac4f216d8f519bda2569b5 X-Git-Newrev: b29f20b6e271b7cd1faad1ced9a55d92d00fcbfe Message-Id: <20240219161319.21F423858D20@sourceware.org> Date: Mon, 19 Feb 2024 16:13:19 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b29f20b6e271b7cd1faad1ced9a55d92d00fcbfe commit r14-9065-gb29f20b6e271b7cd1faad1ced9a55d92d00fcbfe Author: Andre Simoes Dias Vieira Date: Mon Feb 19 15:50:37 2024 +0000 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. Diff: --- gcc/testsuite/gcc.dg/bitint-86.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/bitint-86.c b/gcc/testsuite/gcc.dg/bitint-86.c index 4e5761a203bc..10a2392b6f53 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); }