public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch, gfortran.dg] Allow test to pass on mingw
@ 2023-01-21  3:21 Jerry DeLisle
  2023-02-15  4:06 ` NightStrike
  2023-02-15  8:46 ` Tobias Burnus
  0 siblings, 2 replies; 3+ messages in thread
From: Jerry DeLisle @ 2023-01-21  3:21 UTC (permalink / raw)
  To: gfortran; +Cc: gcc-patches

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

Hi all,

Similar to a patch I committed a while ago for Cygwin, the attached
patch allows it to pass on the mingw version of gfortran.

It is trivial.

Ok for trunk?

Regards,

Jerry

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: trythis.diff --]
[-- Type: text/x-patch; name=trythis.diff, Size: 1227 bytes --]

diff --git a/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 b/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90
index 8dd7e8fb088..04faa433435 100644
--- a/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90
+++ b/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90
@@ -16,9 +16,9 @@ integer :: aa(4,4)
 call test(aa)
 end
 
-! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* powerpc-ibm-aix*} } } } }
+! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* powerpc-ibm-aix* *-*-ming* } } } } }
 ! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-* } } } }
-! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* } } } }
+! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* *-*-ming* } } } }
 ! { dg-final { scan-assembler-times "brasl\t%r\[0-9\]*,myBindC" 1 { target { s390*-*-* } } } }
 ! { dg-final { scan-assembler-times "bl \.myBindC" 1 { target { powerpc-ibm-aix* } } } }
 ! { dg-final { scan-assembler-times "add_u32\t\[sv\]\[0-9\]*, \[sv\]\[0-9\]*, myBindC@rel32@lo" 1 { target { amdgcn*-*-* } } } }

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

* Re: [patch, gfortran.dg] Allow test to pass on mingw
  2023-01-21  3:21 [patch, gfortran.dg] Allow test to pass on mingw Jerry DeLisle
@ 2023-02-15  4:06 ` NightStrike
  2023-02-15  8:46 ` Tobias Burnus
  1 sibling, 0 replies; 3+ messages in thread
From: NightStrike @ 2023-02-15  4:06 UTC (permalink / raw)
  To: Jerry DeLisle; +Cc: gfortran, gcc-patches

On Fri, Jan 20, 2023 at 10:21 PM Jerry DeLisle via Fortran
<fortran@gcc.gnu.org> wrote:
>
> Hi all,
>
> Similar to a patch I committed a while ago for Cygwin, the attached
> patch allows it to pass on the mingw version of gfortran.
>
> It is trivial.
>
> Ok for trunk?
>
> Regards,
>
> Jerry

ping

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

* Re: [patch, gfortran.dg] Allow test to pass on mingw
  2023-01-21  3:21 [patch, gfortran.dg] Allow test to pass on mingw Jerry DeLisle
  2023-02-15  4:06 ` NightStrike
@ 2023-02-15  8:46 ` Tobias Burnus
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Burnus @ 2023-02-15  8:46 UTC (permalink / raw)
  To: Jerry DeLisle, gfortran; +Cc: gcc-patches

Hi Jerry,

On 21.01.23 04:21, Jerry DeLisle via Fortran wrote:
> Similar to a patch I committed a while ago for Cygwin, the attached
> patch allows it to pass on the mingw version of gfortran.
>
> It is trivial.
> Ok for trunk?

As you wrote, adding '*-ming*' alongside '*-cygwin*' as target selector
is trivial and it is also in a mere testcase and not touching code.

But as you asked for approval: OK. Thanks for the patch.

Tobias

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

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

end of thread, other threads:[~2023-02-15  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-21  3:21 [patch, gfortran.dg] Allow test to pass on mingw Jerry DeLisle
2023-02-15  4:06 ` NightStrike
2023-02-15  8:46 ` Tobias Burnus

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).