* [Patch] pr65658.c: fix excess warnings on LLP64 targets
@ 2023-01-28 18:16 Jonathan Yong
2023-02-09 3:17 ` NightStrike
2023-02-13 7:04 ` Jeff Law
0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Yong @ 2023-01-28 18:16 UTC (permalink / raw)
To: Gcc Patch List; +Cc: NightStrike
[-- Attachment #1: Type: text/plain, Size: 73 bytes --]
Patch OK?
gcc/testsuite/ChangeLog:
* gcc.dg/pr65658.c: fix LLP64 test.
[-- Attachment #2: 0001-pr65658.c-fix-excess-warnings-on-LLP64-targets.patch --]
[-- Type: text/x-patch, Size: 1499 bytes --]
From bd2634e2795723f290dcf4bbb06e70fb6ca6af51 Mon Sep 17 00:00:00 2001
From: Jonathan Yong <10walls@gmail.com>
Date: Sat, 28 Jan 2023 18:12:50 +0000
Subject: [PATCH] pr65658.c: fix excess warnings on LLP64 targets
gcc/testsuite/ChangeLog:
* gcc.dg/pr65658.c: fix LLP64 test.
Signed-off-by: Jonathan Yong <10walls@gmail.com>
---
gcc/testsuite/gcc.dg/pr65658.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/pr65658.c b/gcc/testsuite/gcc.dg/pr65658.c
index bb5c37adbe3..4847dc2d5c7 100644
--- a/gcc/testsuite/gcc.dg/pr65658.c
+++ b/gcc/testsuite/gcc.dg/pr65658.c
@@ -16,10 +16,10 @@ struct undeffoo
};
struct problem
{
- unsigned long l1;
- unsigned long l2;
- unsigned long l3;
- unsigned long l4;
+ __UINTPTR_TYPE__ l1;
+ __UINTPTR_TYPE__ l2;
+ __UINTPTR_TYPE__ l3;
+ __UINTPTR_TYPE__ l4;
};
static unsigned int undef1, undef2, undef3, undef4, undef5, undef6;
static void *undefvp1;
@@ -37,7 +37,7 @@ undefinit1 (void)
}
static int
-undefinit2 (void *problemp, unsigned long problem)
+undefinit2 (void *problemp, __UINTPTR_TYPE__ problem)
{
int ret, u;
if (undefinit1 ())
@@ -60,7 +60,7 @@ fn6 (struct undefinfo *uip, struct problem *problem)
unsigned long amt;
if (external_function3 (((void *) 0), ((void *) 0), &amt, 0, 0))
return 1;
- problem->l1 = (unsigned long) undefvp1;
+ problem->l1 = (__UINTPTR_TYPE__) undefvp1;
problem->l4 = uip->l1;
problem->l3 = uip->l2;
return 0;
--
2.39.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch] pr65658.c: fix excess warnings on LLP64 targets
2023-01-28 18:16 [Patch] pr65658.c: fix excess warnings on LLP64 targets Jonathan Yong
@ 2023-02-09 3:17 ` NightStrike
2023-02-13 7:04 ` Jeff Law
1 sibling, 0 replies; 4+ messages in thread
From: NightStrike @ 2023-02-09 3:17 UTC (permalink / raw)
To: Jonathan Yong; +Cc: Gcc Patch List
ping
On Sat, Jan 28, 2023 at 1:16 PM Jonathan Yong <10walls@gmail.com> wrote:
>
> Patch OK?
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/pr65658.c: fix LLP64 test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch] pr65658.c: fix excess warnings on LLP64 targets
2023-01-28 18:16 [Patch] pr65658.c: fix excess warnings on LLP64 targets Jonathan Yong
2023-02-09 3:17 ` NightStrike
@ 2023-02-13 7:04 ` Jeff Law
2023-02-13 11:50 ` Jonathan Yong
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Law @ 2023-02-13 7:04 UTC (permalink / raw)
To: Jonathan Yong, Gcc Patch List; +Cc: NightStrike
On 1/28/23 11:16, Jonathan Yong via Gcc-patches wrote:
> Patch OK?
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/pr65658.c: fix LLP64 test.
>
> 0001-pr65658.c-fix-excess-warnings-on-LLP64-targets.patch
>
> From bd2634e2795723f290dcf4bbb06e70fb6ca6af51 Mon Sep 17 00:00:00 2001
> From: Jonathan Yong<10walls@gmail.com>
> Date: Sat, 28 Jan 2023 18:12:50 +0000
> Subject: [PATCH] pr65658.c: fix excess warnings on LLP64 targets
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/pr65658.c: fix LLP64 test.
OK.
jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch] pr65658.c: fix excess warnings on LLP64 targets
2023-02-13 7:04 ` Jeff Law
@ 2023-02-13 11:50 ` Jonathan Yong
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Yong @ 2023-02-13 11:50 UTC (permalink / raw)
To: Jeff Law, Gcc Patch List; +Cc: NightStrike
On 2/13/23 07:04, Jeff Law wrote:
>
>
> On 1/28/23 11:16, Jonathan Yong via Gcc-patches wrote:
>> Patch OK?
>>
>> gcc/testsuite/ChangeLog:
>>
>> * gcc.dg/pr65658.c: fix LLP64 test.
>>
>> 0001-pr65658.c-fix-excess-warnings-on-LLP64-targets.patch
>>
>> From bd2634e2795723f290dcf4bbb06e70fb6ca6af51 Mon Sep 17 00:00:00 2001
>> From: Jonathan Yong<10walls@gmail.com>
>> Date: Sat, 28 Jan 2023 18:12:50 +0000
>> Subject: [PATCH] pr65658.c: fix excess warnings on LLP64 targets
>>
>> gcc/testsuite/ChangeLog:
>>
>> * gcc.dg/pr65658.c: fix LLP64 test.
> OK.
> jeff
Thanks pushed to master branch 391f29e60a95335c925040641e99ddef57edac6d.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-13 11:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-28 18:16 [Patch] pr65658.c: fix excess warnings on LLP64 targets Jonathan Yong
2023-02-09 3:17 ` NightStrike
2023-02-13 7:04 ` Jeff Law
2023-02-13 11:50 ` Jonathan Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).