public inbox for
 help / color / mirror / Atom feed
From: Alexandre Oliva <>
Cc: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>,
	Mike Stump <>,
	David Edelsohn <>,
	Segher Boessenkool <>,
	Kewen Lin <>
Subject: [PATCH] [testsuite] [ppc] skip ppc-fortran if fortran is disabled
Date: Thu, 06 Apr 2023 03:19:16 -0300	[thread overview]
Message-ID: <> (raw)

Skip ppc-fortran.exp if a trivial fortran program cannot be compiled.

Regstrapped on x86_64-linux-gnu and ppc64-linux-gnu.  Also tested on
ppc64-vx7r2 with gcc-12, with the Fortran language disabled.  Ok to

for  gcc/testsuite/ChangeLog

	* Test for
	fortran compiler, skip if missing.
 .../ |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gcc/testsuite/ b/gcc/testsuite/
index f7e99ac848753..d05c27ab589a7 100644
--- a/gcc/testsuite/
+++ b/gcc/testsuite/
@@ -33,6 +33,15 @@ if ![info exists DEFAULT_FFLAGS] then {
 # Initialize `dg'.
+if { ![check_no_compiler_messages fortran_available assembly {
+! Fortran
+program P
+  stop
+end program P
+} ""] } {
+    return
 global gfortran_test_path
 global gfortran_aux_module_flags
 set gfortran_test_path $srcdir/$subdir

Alexandre Oliva, happy hacker      
   Free Software Activist                       GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <>

             reply	other threads:[~2023-04-06  6:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06  6:19 Alexandre Oliva [this message]
2023-04-06  8:32 ` Kewen.Lin
2023-04-07  3:41   ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).