ia64: Disable optimizations using floating-point arithmetics
PATCH 1/1 ia64: Disable optimizations using floating-point arithmetics
They don't work in ski emulator and we don't really need them
--- configure.ac | 4 ++-- grub-core/Makefile.core.def | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
configure.ac +2 -2
@@ -933,9 +933,9 @@ if test x"$platform" != xemu ; then [grub_cv_target_cc_soft_float="-march=rv64imac_zicsr_zifencei -mabi=lp64"], []) fi if test "x$target_cpu" = xia64; then - CFLAGS="$TARGET_CFLAGS -mno-inline-float-divide -mno-inline-sqrt -Werror" + CFLAGS="$TARGET_CFLAGS -mno-inline-int-divide -mno-inline-float-divide -mno-inline-sqrt -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], - [grub_cv_target_cc_soft_float="-mno-inline-float-divide -mno-inline-sqrt"], []) + [grub_cv_target_cc_soft_float="-mno-inline-int-divide -mno-inline-float-divide -mno-inline-sqrt"], []) fi if test "x$target_cpu" = xsh4; then CFLAGS="$TARGET_CFLAGS -m4-nofpu -Werror"
grub-core/Makefile.core.def +1 -1
@@ -57,7 +57,7 @@ kernel = { x86_64_efi_ldflags = '-shared'; x86_64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; - ia64_efi_cflags = '-fshort-wchar -fno-builtin -fpic -minline-int-divide-max-throughput'; + ia64_efi_cflags = '-fshort-wchar -fno-builtin -fpic'; ia64_efi_ldflags = '-shared'; ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version';
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 13 lines · Vladimir Serbinenko
They don't work in ski emulator and we don't really need them
Signed-off-by Vladimir Serbinenko <[email protected]>--- configure.ac | 4 ++-- grub-core/Makefile.core.def | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)configure.ac +0
-0
configure.ac if test x"$platform" != xemu ; then · line 938
Quoted 8 lines
configure.ac +2
-2@@ -933,9 +933,9 @@ if test x"$platform" != xemu ; then [grub_cv_target_cc_soft_float="-march=rv64imac_zicsr_zifencei -mabi=lp64"], []) fi if test "x$target_cpu" = xia64; then - CFLAGS="$TARGET_CFLAGS -mno-inline-float-divide -mno-inline-sqrt -Werror" + CFLAGS="$TARGET_CFLAGS -mno-inline-int-divide -mno-inline-float-divide -mno-inline-sqrt -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], - [grub_cv_target_cc_soft_float="-mno-inline-float-divide -mno-inline-sqrt"], []) + [grub_cv_target_cc_soft_float="-mno-inline-int-divide -mno-inline-float-divide -mno-inline-sqrt"], [])
I think you are dealing with int instead of float. I suppose the subject has to be fixed.
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Regards
Vladimir 'phcoder' Serbinenko
Quoted 25 lines · Daniel Kiper
Quoted 13 lines · Vladimir Serbinenko
They don't work in ski emulator and we don't really need them
Signed-off-by Vladimir Serbinenko <[email protected]>--- configure.ac | 4 ++-- grub-core/Makefile.core.def | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)configure.ac +0
-0configure.ac if test x"$platform" != xemu ; then · line 933
Quoted 1 line
configure.ac +0
-0@@ -933,9 +933,9 @@ if test x"$platform" != xemu ; then[grub_cv_target_cc_soft_float="-march=rv64imac_zicsr_zifencei -mabi=lp64"], [])
configure.ac if test x"$platform" != xemu ; then
Quoted 3 lines
configure.ac +0
-1fi if test "x$target_cpu" = xia64; then - CFLAGS="$TARGET_CFLAGS -mno-inline-float-divide -mno-inline-sqrt-Werror"
configure.ac if test x"$platform" != xemu ; then · line 936
Quoted 1 line
configure.ac +1
-0+ CFLAGS="$TARGET_CFLAGS -mno-inline-int-divide-mno-inline-float-divide -mno-inline-sqrt -Werror"
configure.ac if test x"$platform" != xemu ; then · line 938
Quoted 2 lines
configure.ac +0
-1AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], -
Quoted 9 lines
[grub_cv_target_cc_soft_float="-mno-inline-float-divide -mno-inline-sqrt"], [])
configure.ac if test x"$platform" != xemu ; then · line 938
Quoted 1 line
configure.ac +1
-0+[grub_cv_target_cc_soft_float="-mno-inline-int-divide -mno-inline-float-divide -mno-inline-sqrt"], [])
I think you are dealing with int instead of float. I suppose the subject has to be fixed.
-minline-int-divide replaced integer divisions with floating point operations. So it does use for arithmetic despite its name
Quoted 2 lines
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 32 lines · Vladimir 'phcoder' Serbinenko
Regards
Vladimir 'phcoder' SerbinenkoLe jeu. 10 avr. 2025, 18:32, Daniel Kiper <[email protected]> a écrit :
On Thu, Apr 10, 2025 at 01:45:37PM +0300, Vladimir Serbinenko wrote:
> They don't work in ski emulator and we don't really need them >
> Signed-off-by: Vladimir Serbinenko <[email protected]> > ---
> configure.ac | 4 ++--
> grub-core/Makefile.core.def | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index25f3ff932..ecb8bc666100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -933,9 +933,9 @@ if test x"$platform" != xemu ; then > [grub_cv_target_cc_soft_float="- march=rv64imac_zicsr_zifencei -mabi=lp64"], [])
> fi
> if test "x$target_cpu" = xia64; then
> - CFLAGS="$TARGET_CFLAGS -mno-inline-float-divide -mno- inline-sqrt -Werror"
> + CFLAGS="$TARGET_CFLAGS -mno-inline-int-divide -mno-inline- float-divide -mno-inline-sqrt -Werror"
> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], > - [grub_cv_target_cc_soft_float="-mno-inline- float-divide -mno-inline-sqrt"], [])
> + [grub_cv_target_cc_soft_float="-mno-inline- int-divide -mno-inline-float-divide -mno-inline-sqrt"], [])
Quoted 4 lines
I think you are dealing with int instead of float. I suppose the subject
has to be fixed.
-minline-int-divide replaced integer divisions with floating point operations.
It looks there is no -minline-int-divide. Though there are -minline-int-divide-min-latency and -minline-int-divide-max-throughput.
Quoted 1 line
So it does use for arithmetic despite its name
So, I think it should be better explained in the commit message.
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel