public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch] Resolve bugzilla #108150 and #108192 for mingw
@ 2023-01-11  9:56 Jonathan Yong
  2023-01-19  9:26 ` Jonathan Yong
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Yong @ 2023-01-11  9:56 UTC (permalink / raw)
  To: Gcc Patch List

[-- Attachment #1: Type: text/plain, Size: 34 bytes --]

Are the patches and changelogs OK?

[-- Attachment #2: 0001-PR-c-108150-Fix-alignment-test-for-Windows-targets.patch --]
[-- Type: text/x-patch, Size: 1110 bytes --]

From 6edfba9e9a5f8fddc45d137b9f2d07c7f9065eaa Mon Sep 17 00:00:00 2001
From: Jonathan Yong <10walls@gmail.com>
Date: Sun, 8 Jan 2023 01:28:34 +0000
Subject: [PATCH 1/2] PR c/108150 - Fix alignment test for Windows targets

gcc/testsuite/ChangeLog:

	PR c/108150
	* gcc.dg/attr-aligned.c: Make errors emitted on Windows
	target same as on Linux.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
---
 gcc/testsuite/gcc.dg/attr-aligned.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/attr-aligned.c b/gcc/testsuite/gcc.dg/attr-aligned.c
index a2e11c96180..887bdd0f379 100644
--- a/gcc/testsuite/gcc.dg/attr-aligned.c
+++ b/gcc/testsuite/gcc.dg/attr-aligned.c
@@ -22,6 +22,9 @@
 #  define ALIGN_MAX_STATIC      2
 /* Work around a pdp11 ICE (see PR target/87821).  */
 #  define ALIGN_MAX_AUTO        (ALIGN_MAX_HARD >> 14)
+#elif __WIN32__ || __CYGWIN__
+#  define ALIGN_MAX_STATIC      8192
+#  define ALIGN_MAX_AUTO        8192
 #elif __powerpc64__ || __x86_64__
 /* Is this processor- or operating-system specific?  */
 #  define ALIGN_MAX_STATIC      ALIGN_MAX_HARD
-- 
2.39.0


[-- Attachment #3: 0002-PR-c-108192-Fix-test-for-mingw.patch --]
[-- Type: text/x-patch, Size: 1016 bytes --]

From 1c9781f7af30e600367682fe0e47128ea85552ab Mon Sep 17 00:00:00 2001
From: Jonathan Yong <10walls@gmail.com>
Date: Wed, 11 Jan 2023 09:51:02 +0000
Subject: [PATCH 2/2] PR c/108192 - Fix test for mingw

gcc/testsuite/ChangeLog:

	PR c/108192
	* g++.dg/cet-notrack-1.C: Use puts instead of printf,
	so function call is not mangled by __mingw_printf when
	doing assembly symbol inspection.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
---
 gcc/testsuite/g++.dg/cet-notrack-1.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/cet-notrack-1.C b/gcc/testsuite/g++.dg/cet-notrack-1.C
index ee98fd43d58..a19eed0fb82 100644
--- a/gcc/testsuite/g++.dg/cet-notrack-1.C
+++ b/gcc/testsuite/g++.dg/cet-notrack-1.C
@@ -18,8 +18,8 @@ B b;
 A& a = b;
 int (A::*amem) () __attribute__((nocf_check)) = &A::foo; // take address
 if ((a.*amem)() == 73) // use the address
-  printf("pass\n");
+  puts("pass\n");
 else
-  printf("fail\n");
+  puts("fail\n");
 return 0;
 }
-- 
2.39.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Patch] Resolve bugzilla #108150 and #108192 for mingw
  2023-01-11  9:56 [Patch] Resolve bugzilla #108150 and #108192 for mingw Jonathan Yong
@ 2023-01-19  9:26 ` Jonathan Yong
  2023-01-28 16:33   ` Jonathan Yong
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Yong @ 2023-01-19  9:26 UTC (permalink / raw)
  To: Gcc Patch List

On 1/11/23 09:56, Jonathan Yong wrote:
> Are the patches and changelogs OK?

Ping1.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Patch] Resolve bugzilla #108150 and #108192 for mingw
  2023-01-19  9:26 ` Jonathan Yong
@ 2023-01-28 16:33   ` Jonathan Yong
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Yong @ 2023-01-28 16:33 UTC (permalink / raw)
  To: Gcc Patch List

On 1/19/23 09:26, Jonathan Yong wrote:
> On 1/11/23 09:56, Jonathan Yong wrote:
>> Are the patches and changelogs OK?
> 
> Ping1.
> 

Pushed to master branch.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-28 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11  9:56 [Patch] Resolve bugzilla #108150 and #108192 for mingw Jonathan Yong
2023-01-19  9:26 ` Jonathan Yong
2023-01-28 16:33   ` 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).