diff mbox series

cgcc: filter-out -msize-long & -msize-llp64

Message ID 20191126203018.63627-1-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series cgcc: filter-out -msize-long & -msize-llp64 | expand

Commit Message

Luc Van Oostenryck Nov. 26, 2019, 8:30 p.m. UTC
These options are sparse-specific and shouldn't be passed to GCC.

Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 cgcc | 1 +
 1 file changed, 1 insertion(+)

Comments

Ramsay Jones Nov. 27, 2019, 12:18 a.m. UTC | #1
On 26/11/2019 20:30, Luc Van Oostenryck wrote:
> These options are sparse-specific and shouldn't be passed to GCC.
> 
> Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
> ---
>  cgcc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cgcc b/cgcc
> index 40dea2a05..ef0375c50 100755
> --- a/cgcc
> +++ b/cgcc
> @@ -131,6 +131,7 @@ sub check_only_option {
>      return 1 if $arg =~ /^-v(no-?)?(entry|dead)$/;
>      return 1 if $arg =~ /^-f(dump-ir|memcpy-max-count|diagnostic-prefix)(=\S*)?$/;
>      return 1 if $arg =~ /^-f(mem2reg|optim)(-enable|-disable|=last)?$/;
> +    return 1 if $arg =~ /^-msize-(long|llp64)$/;
>      return 0;
>  }
>  
> 

Looks good to me: applied and tested on current 'master'.

ATB,
Ramsay Jones
diff mbox series

Patch

diff --git a/cgcc b/cgcc
index 40dea2a05..ef0375c50 100755
--- a/cgcc
+++ b/cgcc
@@ -131,6 +131,7 @@  sub check_only_option {
     return 1 if $arg =~ /^-v(no-?)?(entry|dead)$/;
     return 1 if $arg =~ /^-f(dump-ir|memcpy-max-count|diagnostic-prefix)(=\S*)?$/;
     return 1 if $arg =~ /^-f(mem2reg|optim)(-enable|-disable|=last)?$/;
+    return 1 if $arg =~ /^-msize-(long|llp64)$/;
     return 0;
 }