public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8312] testsuite: Pattern does not match when using --specs=nano.specs
@ 2024-02-09  8:47 Torbjorn Svensson
  0 siblings, 0 replies; only message in thread
From: Torbjorn Svensson @ 2024-02-09  8:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:810b0b3f75c454da3f6b5722870716796d2d7a83

commit r13-8312-g810b0b3f75c454da3f6b5722870716796d2d7a83
Author: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Date:   Tue Feb 6 17:58:26 2024 +0100

    testsuite: Pattern does not match when using --specs=nano.specs
    
    When running the testsuite for newlib nano, the --specs=nano.specs
    option is used.  This option prepends cpp_unique_options with
    "-isystem =/include/newlib-nano" so that the newlib nano header files
    override the newlib standard ones.  As the -isystem option is prepended,
    the -quiet option is no longer the first option to cc1.  Adjust the test
    accordingly.
    
    Patch has been verified on Windows and Linux.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.misc-tests/options.exp: Allow other options before the
            -quite option for cc1.
    
    Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
    
    (cherry picked from commit 1175d1b35ce7bf8ee7c9b37b334370f01eb95335)

Diff:
---
 gcc/testsuite/gcc.misc-tests/options.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp
index b3aa57643a59..65376670e165 100644
--- a/gcc/testsuite/gcc.misc-tests/options.exp
+++ b/gcc/testsuite/gcc.misc-tests/options.exp
@@ -57,7 +57,7 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_
 	remote_file build delete $dumpfile
     }   
 
-    if {![regexp -- "/${compiler}(\\.exe)? -quiet.*$compiler_pattern" $gcc_output]} {
+    if {![regexp -- "/${compiler}(\\.exe)? \[^\r\n\]*-quiet.*$compiler_pattern" $gcc_output]} {
 	fail "$test (compiler options)"
 	return
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-09  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-09  8:47 [gcc r13-8312] testsuite: Pattern does not match when using --specs=nano.specs Torbjorn Svensson

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