[GASPP] Filter out the armasm argument "-oldit" from the preprocessor

Message ID 20191002075846.11539-1-martin@martin.st
State New
Headers show
Series
  • [GASPP] Filter out the armasm argument "-oldit" from the preprocessor
Related show

Commit Message

Martin Storsjö Oct. 2, 2019, 7:58 a.m.
---
 gas-preprocessor.pl | 1 +
 1 file changed, 1 insertion(+)

Comments

Janne Grunau Oct. 3, 2019, 9:35 a.m. | #1
On 2019-10-02 10:58:46 +0300, Martin Storsjö wrote:
> ---
>  gas-preprocessor.pl | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
> index 6da37c1..b6c2786 100755
> --- a/gas-preprocessor.pl
> +++ b/gas-preprocessor.pl
> @@ -162,6 +162,7 @@ if ($as_type ne "armasm") {
>      @preprocess_c_cmd = grep ! /^-fp/, @preprocess_c_cmd;
>      @preprocess_c_cmd = grep ! /^-EHsc$/, @preprocess_c_cmd;
>      @preprocess_c_cmd = grep ! /^-O/, @preprocess_c_cmd;
> +    @preprocess_c_cmd = grep ! /^-oldit/, @preprocess_c_cmd;
>  
>      @gcc_cmd = grep ! /^-G/, @gcc_cmd;
>      @gcc_cmd = grep ! /^-W/, @gcc_cmd;

ok

Janne

Patch

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 6da37c1..b6c2786 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -162,6 +162,7 @@  if ($as_type ne "armasm") {
     @preprocess_c_cmd = grep ! /^-fp/, @preprocess_c_cmd;
     @preprocess_c_cmd = grep ! /^-EHsc$/, @preprocess_c_cmd;
     @preprocess_c_cmd = grep ! /^-O/, @preprocess_c_cmd;
+    @preprocess_c_cmd = grep ! /^-oldit/, @preprocess_c_cmd;
 
     @gcc_cmd = grep ! /^-G/, @gcc_cmd;
     @gcc_cmd = grep ! /^-W/, @gcc_cmd;