public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
To: Leif Lindholm <leif.lindholm@linaro.org>
Cc: edk2-devel-groups-io <devel@edk2.groups.io>,
	Laszlo Ersek <lersek@redhat.com>,
	 "Gao, Liming" <liming.gao@intel.com>,
	"Wang, Jian J" <jian.j.wang@intel.com>,
	 Michael D Kinney <michael.d.kinney@intel.com>
Subject: Re: [PATCH v3 2/7] ArmPkg/ArmSoftFloatLib: switch to new version of softfloat library
Date: Fri, 31 May 2019 15:22:25 +0200	[thread overview]
Message-ID: <CAKv+Gu95S4YM_pgdQkYoLTEE2B6mBe4gytcJ5LvdFmgKk3VDpQ@mail.gmail.com> (raw)
In-Reply-To: <20190531132055.zsbratmpugwaqxd2@bivouac.eciton.net>

On Fri, 31 May 2019 at 15:20, Leif Lindholm <leif.lindholm@linaro.org> wrote:
>
> On Fri, May 31, 2019 at 02:49:53PM +0200, Ard Biesheuvel wrote:
> > diff --git a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
> > index cbb49f49ade6..4d0c94df83db 100644
> > --- a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
> > +++ b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
> > @@ -2,7 +2,7 @@
> >  #  ARM Software floating point Library.
> >  #
> >  #  Copyright (c) 2014, ARM Ltd. All rights reserved.
> > -#  Copyright (c) 2015, Linaro Ltd. All rights reserved.
> > +#  Copyright (c) 2015 - 2019, Linaro Ltd. All rights reserved.
> >  #
> >  #  SPDX-License-Identifier: BSD-2-Clause-Patent
> >  #
> > @@ -10,7 +10,7 @@
> >  ##
> >
> >  [Defines]
> > -  INF_VERSION                    = 0x00010005
> > +  INF_VERSION                    = 0x0001001B
> >    BASE_NAME                      = ArmSoftFloatLib
> >    FILE_GUID                      = a485f921-749e-41a0-9f91-62f09a38721c
> >    MODULE_TYPE                    = BASE
> > @@ -22,26 +22,71 @@
> >  #
> >
> >  [Sources]
> > -  bits32/softfloat.c
> > -  Arm/__aeabi_dcmpeq.c
> > -  Arm/__aeabi_fcmpeq.c
> > -  Arm/__aeabi_dcmpge.c
> > -  Arm/__aeabi_fcmpge.c
> > -  Arm/__aeabi_dcmpgt.c
> > -  Arm/__aeabi_fcmpgt.c
> > -  Arm/__aeabi_dcmple.c
> > -  Arm/__aeabi_fcmple.c
> > -  Arm/__aeabi_dcmplt.c
> > -  Arm/__aeabi_fcmplt.c
> > -  Arm/__aeabi_dcmpun.c
> > -  Arm/__aeabi_fcmpun.c
> > +  berkeley-softfloat-3/source/ARM-VFPv2/s_propagateNaNF64UI.c
> > +  berkeley-softfloat-3/source/ARM-VFPv2/softfloat_raiseFlags.c
> > +  berkeley-softfloat-3/source/ARM-VFPv2/specialize.h
> > +  berkeley-softfloat-3/source/f32_add.c
> > +  berkeley-softfloat-3/source/f32_div.c
> > +  berkeley-softfloat-3/source/f32_eq.c
> > +  berkeley-softfloat-3/source/f32_le.c
> > +  berkeley-softfloat-3/source/f32_lt.c
> > +  berkeley-softfloat-3/source/f32_mul.c
> > +  berkeley-softfloat-3/source/f32_sub.c
> > +  berkeley-softfloat-3/source/f32_to_f64.c
> > +  berkeley-softfloat-3/source/f32_to_i32_r_minMag.c
> > +  berkeley-softfloat-3/source/f32_to_i64_r_minMag.c
> > +  berkeley-softfloat-3/source/f32_to_ui32_r_minMag.c
> > +  berkeley-softfloat-3/source/f32_to_ui64_r_minMag.c
> > +  berkeley-softfloat-3/source/f64_add.c
> > +  berkeley-softfloat-3/source/f64_div.c
> > +  berkeley-softfloat-3/source/f64_eq.c
> > +  berkeley-softfloat-3/source/f64_le.c
> > +  berkeley-softfloat-3/source/f64_lt.c
> > +  berkeley-softfloat-3/source/f64_mul.c
> > +  berkeley-softfloat-3/source/f64_sub.c
> > +  berkeley-softfloat-3/source/f64_to_f32.c
> > +  berkeley-softfloat-3/source/f64_to_i32_r_minMag.c
> > +  berkeley-softfloat-3/source/f64_to_i64_r_minMag.c
> > +  berkeley-softfloat-3/source/f64_to_ui32_r_minMag.c
> > +  berkeley-softfloat-3/source/f64_to_ui64_r_minMag.c
> > +  berkeley-softfloat-3/source/i32_to_f32.c
> > +  berkeley-softfloat-3/source/i32_to_f64.c
> > +  berkeley-softfloat-3/source/i64_to_f32.c
> > +  berkeley-softfloat-3/source/i64_to_f64.c
> > +  berkeley-softfloat-3/source/include/internals.h
> > +  berkeley-softfloat-3/source/include/opts-GCC.h
> > +  berkeley-softfloat-3/source/include/primitiveTypes.h
> > +  berkeley-softfloat-3/source/include/primitives.h
> > +  berkeley-softfloat-3/source/include/softfloat.h
> > +  berkeley-softfloat-3/source/include/softfloat_types.h
> > +  berkeley-softfloat-3/source/s_addMagsF32.c
> > +  berkeley-softfloat-3/source/s_addMagsF64.c
> > +  berkeley-softfloat-3/source/s_countLeadingZeros32.c
> > +  berkeley-softfloat-3/source/s_countLeadingZeros64.c
> > +  berkeley-softfloat-3/source/s_countLeadingZeros8.c
> > +  berkeley-softfloat-3/source/s_mul64To128.c
> > +  berkeley-softfloat-3/source/s_normRoundPackToF32.c
> > +  berkeley-softfloat-3/source/s_normRoundPackToF64.c
> > +  berkeley-softfloat-3/source/s_normSubnormalF32Sig.c
> > +  berkeley-softfloat-3/source/s_normSubnormalF64Sig.c
> > +  berkeley-softfloat-3/source/s_roundPackToF32.c
> > +  berkeley-softfloat-3/source/s_roundPackToF64.c
> > +  berkeley-softfloat-3/source/s_shiftRightJam32.c
> > +  berkeley-softfloat-3/source/s_shiftRightJam64.c
> > +  berkeley-softfloat-3/source/s_shortShiftRightJam64.c
> > +  berkeley-softfloat-3/source/s_subMagsF32.c
> > +  berkeley-softfloat-3/source/s_subMagsF64.c
> > +  berkeley-softfloat-3/source/softfloat_state.c
> > +  berkeley-softfloat-3/source/ui32_to_f32.c
> > +  berkeley-softfloat-3/source/ui32_to_f64.c
> > +  berkeley-softfloat-3/source/ui64_to_f32.c
> > +  berkeley-softfloat-3/source/ui64_to_f64.c
> >
> > -  Arm/__aeabi_cdcmp.asm   | RVCT
> > -  Arm/__aeabi_cfcmp.asm   | RVCT
> > +  ArmSoftFloatLib.c
> > +  platform.h
> >
> >  [Packages]
> >    MdePkg/MdePkg.dec
> >
> >  [BuildOptions]
> > -  GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-lto
> > -  RVCT:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC
>
> It doesn't need to be a separate patch, but could you add a note to
> commit message about dropping RVCT support?
>
> > +  GCC:*_*_*_CC_FLAGS = -fno-lto -ffreestanding -Wno-unused-label
>
> Hmm. You add -ffreestanding here, but you also add it to the CLANG
> profiles in 4/7. Could we do one of:
> - dropping this one, adding -ffreestanding to GCC profiles too in 4/7
> - keeping this one, dropping the -ffreestanding from 4/7?
>

In my opinion, we should be using -ffreestanding for all GCC family
toolchains for all architectures.

  reply	other threads:[~2019-05-31 13:22 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-31 12:49 [PATCH v3 0/7] update ArmSoftFloatLib to latest upstream version Ard Biesheuvel
2019-05-31 12:49 ` [PATCH v3 1/7] ArmPkg: import Berkeley Softfloat library as git submodule Ard Biesheuvel
2019-05-31 12:49 ` [PATCH v3 2/7] ArmPkg/ArmSoftFloatLib: switch to new version of softfloat library Ard Biesheuvel
2019-05-31 13:20   ` Leif Lindholm
2019-05-31 13:22     ` Ard Biesheuvel [this message]
2019-05-31 13:26       ` Leif Lindholm
2019-05-31 13:39         ` Ard Biesheuvel
2019-05-31 13:49           ` Leif Lindholm
2019-05-31 14:32             ` Ard Biesheuvel
2019-05-31 12:49 ` [PATCH v3 3/7] ArmPkg/ArmSoftFloatLib: remove source files that are no longer used Ard Biesheuvel
2019-05-31 12:49 ` [PATCH v3 4/7] BaseTools/tools_def CLANG3x ARM AARCH64: force use of C99 standard Ard Biesheuvel
2019-05-31 12:49 ` [PATCH v3 5/7] ArmPkg/ArmLib ARM: set .fpu to let Clang 7 assemble ArmV7Support.S Ard Biesheuvel
2019-05-31 12:49 ` [PATCH v3 6/7] MdeModulePkg/PeCoffImageEmulator: avoid redeclaration of typedef Ard Biesheuvel
2019-06-03  0:33   ` Liming Gao
2019-05-31 12:49 ` [PATCH v3 7/7] MdePkg: avoid redeclaration of typedefs Ard Biesheuvel
2019-06-03  0:33   ` Liming Gao
2019-05-31 13:09 ` [PATCH v3 0/7] update ArmSoftFloatLib to latest upstream version Leif Lindholm
2019-05-31 16:00   ` [edk2-devel] " Ard Biesheuvel
2019-05-31 16:21     ` Michael D Kinney
2019-05-31 19:28       ` Leif Lindholm
2019-05-31 19:31         ` Michael D Kinney
2019-06-03  0:59         ` Liming Gao
2019-06-03  6:04           ` Ard Biesheuvel
2019-06-03  0:32     ` Liming Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKv+Gu95S4YM_pgdQkYoLTEE2B6mBe4gytcJ5LvdFmgKk3VDpQ@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox