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 |
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 --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; }
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(+)