From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id EF4534BDE7 for ; Fri, 3 Oct 2025 12:50:10 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'j9RMwOvZcgUL0XcnI0m8mu9N/3R0+ckRAekU+ScwX6o=', expected b'CsRCN3IRitj+iRxzZh8NG3crOpc1TkU5Xo8WsF1Uppk=')) header.d=martin-st.20230601.gappssmtp.com header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1759495803; h=to : date : message-id : mime-version : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=WjGwSomNKhdcSmsdzAllPJ6Rugh9xtBWOYGNr5gqOgU=; b=kvbt1PPxGErnaaA+jT6BkBabu1dtfPiBoyhJMRUja/4Nr8qFdJ5XYyJ5U4FTBJaWULKPF hzDfFPN5fFNwY4DwCFbjoEJ8sZglQjoJX1AGquCCfRlROLYca6jYTi1cY08gqmMOmFkoueN lmZ6KjYzYJNVsSdBLiGxLgujMP5YOXABjbi5ZPm2Q310D8iD4kbVN2TvTO7qBhKUIm99LHn kiSPQh0EZ2gat0vJn5hoqmhEhlkEk4xUW50DMsAMnDVS10JmuKp3UuVX9BBB1soAFhj2/Pz 4EcxIeSWy3a5jgwmYvvBedTKfFzqcL/3nkrjMWuV3aHH7Cv4Rwab60OBZvGA== Received: from [172.19.0.2] (unknown [172.19.0.2]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 0C74F68EFDA; Fri, 3 Oct 2025 15:50:03 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1759495787; b=WDm09G521Pp3fEMk1imfx+bRKZonJfZ7Rk3wcpuQNCPuHLv28XpxqQPthRBrAfj9OEHyA EzIKPhlVDjOK3DyDZGpURgDDUh867yKKsryc0uzyC49HhSXTGph52IwzNYhismZjg4nl6sY A9A7mDju+GtVTLlGyeaptG/P3A2Yg512nnBLHXXX6fH4t7YYgu6hhTECf9YFIm95+vtzD8T b71wtuuOFzCYAtjqsz9igMIyITfwhbK+Kvo29HjWLiUkYSwDcy/+rc4SVi4xrE0urOAoz0V YzuTpzADPx4Jfh7HHl3Db74cO0/S6wTQxZU+EFAmJmtsXxANsI6gVRMPm0ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1759495787; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=j9RMwOvZcgUL0XcnI0m8mu9N/3R0+ckRAekU+ScwX6o=; b=G7PQsA30picXsEgAzTImidoa1ImzW1FrhctqxRyZcqGkF52IR6kLgGmqwzC2hTGRtGE6W PT+7Ze4SJ9sXfIjh7RpCPIyFZpgeClnrV2chT+HHaDYYBiZnh6/WpaSNo2Y2++0z/bgnM6x WKkrsfeuk7Cjk9/Zf3Afn2vCQK6YioIWhF9uoFyl77d+MWNrXNUkysyC3m1gCB38N4w1OsQ hqsVO8fziNZwlMaa7zUNpI44z/l0I6g+bw7Ud6pcgCTyU1H4xk/yCmmgDK+AdgvVfysgjqI kdsSgzuNWCOAwfuA149g0JnTofjc6JHo+LLsR+41HrtderlkO9bciMZtm+XA== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=martin-st.20230601.gappssmtp.com; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=martin-st.20230601.gappssmtp.com; arc=none (Message is not ARC signed); dmarc=none Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id B07216802C0 for ; Fri, 3 Oct 2025 15:49:36 +0300 (EEST) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-58d29830058so817478e87.0 for ; Fri, 03 Oct 2025 05:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1759495776; x=1760100576; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CsRCN3IRitj+iRxzZh8NG3crOpc1TkU5Xo8WsF1Uppk=; b=q4yj8FjGejg2Tx/BEPy7Kj2oMD/YJxR1EIumd2TO+TCTdRhhlZ8jzFvbt3PYnBIymQ SwwjdqRuoLcf4PFDIlFRohbrX8ciUZMQOyelYRme+nCLAtt2UIDCLhNlIh9BU0NWr1gw Pb4BV90nL5LXhU0FqzZ9w9CT9AwXnS00oA02hdll7msAzhjdfprsW9Im8W98ec/LQn06 Ij0hZPI3Ja1jZbTPBAT00pwlK88afyXkas2WQEb0SedL2cPgT2LxsG2yUPBHqHTJBg1h qXxmTergOz+qe+P0ciTpAoJZAs5brplKsPJyClcfOMycQkEQenimUmXgx8Y/49/wR2zr jIKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759495776; x=1760100576; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CsRCN3IRitj+iRxzZh8NG3crOpc1TkU5Xo8WsF1Uppk=; b=Z/WkOjpuJJmopKUrfO9ov3HKoJuB9OOrEDZC8Eyp7RKcsv6alhemFwXdI0IOZJ6h1M eOWm8Md2WQk+8I2PRKRmtaTBv8Rt22udj3a68LqrtzY4cD2hs6lq7KI/6Qj+7MNwcX51 w+B/RhQgWuAoa+AXd0XDnp5htFgJiB50vWKlPdPms8pnd24fTFVFuqunnwqq1xmvRm8W rlC3+6TCP/J6/95qEscgdYNbGjkjSvCQAi0FrJmn47dF33woIVaQxvuGkXwrzVoWSHb4 3hjpWHOTMy61ALlPVQAGcIZbs6l4hoKxKur0KM6zKBDuOSxT4N5lHWN7TyQ1EdQwYyuU tnfQ== X-Gm-Message-State: AOJu0YxLwGcDfGbCTl2iOG4PMxnrfcBgwazgjsGMeGBexaD9Jlk97tIA KOByVIy6AEMuhiZv5TcUgeQn+vSic/bFCtMShuwLZ+OBtmHzAkRwqu0mgn1pbm6hbOVavxQH9aP X47NiAw== X-Gm-Gg: ASbGncv4x9YwL34A1I2Fa8zAMrGZvLk1LwweYzVlaSIQcreI/hF2b/Oihoq6Qu3jCvQ L3Nezi8PcpOgurmfzcYZ28mCaVfmX+TLzuMbMX1gaU019quCMI28eOdOUC/Ye20WXj/crBmRyZB d63qmF7xxHoKbgPtsH3GLanGpYrmpniCWPzCUVuSg2bh/rD/hnmbPcMKHvEfB+F7B0dcG9/UtyT C2AQ6+N+MCLuB8MY3lq2kZc+0AmGGa7nZThedpW0Va7eaW8oQLuW51VYTxGy5LNEof7RIlEQdHf 51h23op7Op0KS6vXVyYFAJHzHSJPxFnKBRA4Y6fGY1VDwDMdM9euFm/jo2ZaUXA4uMWqCqJVim6 kdwFV2XChJNlrB6QBxwjO3vtZEWk+9AOGvJBcGAumm7mvXrCf307iSXUGP0RlRj9E3Nqav+yg0J ca8AnQ4XI3JNn4 X-Google-Smtp-Source: AGHT+IEsRhjJyKygMFiTwxPsFLtfKZJaIC4GuT8OgnSbUzpiFKTqaC3qm8HgCvpoGPu6OPewYWvpXA== X-Received: by 2002:a05:6512:1195:b0:58a:fc55:883a with SMTP id 2adb3069b0e04-58cba0f61famr897488e87.4.1759495775706; Fri, 03 Oct 2025 05:49:35 -0700 (PDT) Received: from localhost (dsl-tkubng21-50de30-198.dhcp.inet.fi. [80.222.48.198]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-58b0119ed6csm1783622e87.105.2025.10.03.05.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 05:49:35 -0700 (PDT) To: ffmpeg-devel@ffmpeg.org Date: Fri, 3 Oct 2025 15:49:27 +0300 Message-ID: <20251003124935.2495620-1-martin@martin.st> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: C6XQAN5CXFPSABQTHE4XCYNBMARNRWTF X-Message-ID-Hash: C6XQAN5CXFPSABQTHE4XCYNBMARNRWTF X-MailFrom: SRS0=4Tgu=4M=martin.st=martin@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [GASPP PATCH 1/2] Pass "-machine" options through to armasm List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: =?utf-8?q?Martin_Storsj=C3=B6_via_ffmpeg-devel?= Cc: harish.rajaselvan@multicorewareinc.com, =?UTF-8?q?Martin=20Storsj=C3=B6?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: Filter them out from the preprocessor invocation, and don't remove them based on matching the "^-m" pattern. As an alternative, we could also have gas-preprocessor.pl implicitly add this option if the option "-arm64EC" is found, but requiring the user to pass "-machine arm64ec" explicitly is more transparent. --- gas-preprocessor.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 62c1a04..234c005 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -104,13 +104,17 @@ if ($as_type eq "armasm") { $preprocess_c_cmd[0] = "cpp"; - # Remove -ignore XX parameter pairs from preprocess_c_cmd + # Remove -ignore XX and -machine XX parameter pairs from preprocess_c_cmd my $index = 1; while ($index < $#preprocess_c_cmd) { if ($preprocess_c_cmd[$index] eq "-ignore" and $index + 1 < $#preprocess_c_cmd) { splice(@preprocess_c_cmd, $index, 2); next; } + if ($preprocess_c_cmd[$index] eq "-machine" and $index + 1 < $#preprocess_c_cmd) { + splice(@preprocess_c_cmd, $index, 2); + next; + } $index++; } if (grep /^-MM$/, @preprocess_c_cmd) { @@ -195,7 +199,8 @@ if ($as_type ne "armasm") { # which doesn't support any of the common compiler/preprocessor options. @gcc_cmd = grep ! /^-D/, @gcc_cmd; @gcc_cmd = grep ! /^-U/, @gcc_cmd; - @gcc_cmd = grep ! /^-m/, @gcc_cmd; + # Remove -m* parameters, except for -machine, which is a valid armasm option. + @gcc_cmd = grep ! /^-m(?!achine)/, @gcc_cmd; @gcc_cmd = grep ! /^-M/, @gcc_cmd; @gcc_cmd = grep ! /^-c$/, @gcc_cmd; @gcc_cmd = grep ! /^-I/, @gcc_cmd; -- 2.43.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org