All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rix <trix@redhat.com>
To: linux-sparse@vger.kernel.org, dan.carpenter@oracle.com
Cc: Tom Rix <trix@redhat.com>
Subject: [PATCH] cgcc: handle -x assembler
Date: Sun, 10 Apr 2022 10:00:26 -0400	[thread overview]
Message-ID: <20220410140026.1830513-1-trix@redhat.com> (raw)

On linux-next, using
make CC=cgcc

fails with
cgcc: unknown assembler invoked
scripts/Kconfig.include:50: Sorry, this assembler is not supported.

cgcc is being invoked with
cgcc -Wa,--version -c -x assembler /dev/null -o /dev/null
And dieing when the '-x c' is not matched.

Add a check for -x assember.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 cgcc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cgcc b/cgcc
index 9c78ee63..dc5cb624 100755
--- a/cgcc
+++ b/cgcc
@@ -42,10 +42,10 @@ while (@ARGV) {
 	$nargs = 1;
     }
 
-    # Ignore the extension if '-x c' is given.
+    # Ignore the extension if '-x c' or '-x assembler' is given.
     if ($_ eq '-x') {
 	die ("$0: missing argument for $_") if !@ARGV;
-	die ("$0: invalid argument for $_") if $ARGV[0] ne 'c';
+	die ("$0: invalid argument for $_") if $ARGV[0] ne 'c' and $ARGV[0] ne 'assembler';
 	$do_check = 1;
 	$nargs = 1;
     }
-- 
2.27.0


             reply	other threads:[~2022-04-10 14:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-10 14:00 Tom Rix [this message]
2022-05-22  9:38 ` [PATCH] cgcc: handle -x assembler Luc Van Oostenryck

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20220410140026.1830513-1-trix@redhat.com \
    --to=trix@redhat.com \
    --cc=dan.carpenter@oracle.com \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.