All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] fp-test fixes
@ 2019-01-22 20:10 Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 1/4] berkeley-testfloat-3: pull 'fail: constify fail_programName' Emilio G. Cota
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Emilio G. Cota @ 2019-01-22 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Alex Bennée

Fix the issues reported by Peter in this thread:
  https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04135.html

The most important fix is in patch 4 -- I forgot to include config-host.h
from platform.h! Thanks to Alex for pointing out on IRC that LITTLEENDIAN
was not consistently defined, that was the hint I needed to find the problem.

This series applies on top of Alex's fpu/next branch. With them,
`make check-softfloat' works on both little and big endian hosts.

Thanks,

		Emilio

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 1/4] berkeley-testfloat-3: pull 'fail: constify fail_programName'
  2019-01-22 20:10 [Qemu-devel] [PATCH 0/4] fp-test fixes Emilio G. Cota
@ 2019-01-22 20:10 ` Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 2/4] tests/fp/Makefile: do not use gcc-only -W flags Emilio G. Cota
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Emilio G. Cota @ 2019-01-22 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Alex Bennée

Pull just one change: 5a59dce ("fail: constify fail_programName",
2019-01-17).

This gets rid of a warning when building fp-test on some hosts, e.g.:

/var/tmp/qemu-test.Z0AmK8/tests/fp/berkeley-testfloat-3/source/fail.c:44:7:
warning: initializing 'char *' with an expression of type 'const char
[1]' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
char *fail_programName = "";
      ^                  ~~

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 tests/fp/berkeley-testfloat-3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/fp/berkeley-testfloat-3 b/tests/fp/berkeley-testfloat-3
index ca9fa2ba05..5a59dcec19 160000
--- a/tests/fp/berkeley-testfloat-3
+++ b/tests/fp/berkeley-testfloat-3
@@ -1 +1 @@
-Subproject commit ca9fa2ba05625ba929958f163b01747e07dd39cc
+Subproject commit 5a59dcec19327396a011a17fd924aed4fec416b3
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 2/4] tests/fp/Makefile: do not use gcc-only -W flags
  2019-01-22 20:10 [Qemu-devel] [PATCH 0/4] fp-test fixes Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 1/4] berkeley-testfloat-3: pull 'fail: constify fail_programName' Emilio G. Cota
@ 2019-01-22 20:10 ` Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 3/4] fp-test: fix signature of slow_clear_flags and qemu_clear_flags Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 4/4] tests/fp/platform.h: include config-host.h Emilio G. Cota
  3 siblings, 0 replies; 5+ messages in thread
From: Emilio G. Cota @ 2019-01-22 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Alex Bennée

The build of testfloat objects now completes with both
gcc and clang.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 tests/fp/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/fp/Makefile b/tests/fp/Makefile
index 5019dcdca0..5a35e7c210 100644
--- a/tests/fp/Makefile
+++ b/tests/fp/Makefile
@@ -65,8 +65,7 @@ QEMU_CFLAGS += $(TF_OPTS)
 TF_CFLAGS :=
 TF_CFLAGS += -Wno-strict-prototypes
 TF_CFLAGS += -Wno-unknown-pragmas
-TF_CFLAGS += -Wno-discarded-qualifiers
-TF_CFLAGS += -Wno-maybe-uninitialized
+TF_CFLAGS += -Wno-uninitialized
 TF_CFLAGS += -Wno-missing-prototypes
 TF_CFLAGS += -Wno-return-type
 TF_CFLAGS += -Wno-unused-function
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 3/4] fp-test: fix signature of slow_clear_flags and qemu_clear_flags
  2019-01-22 20:10 [Qemu-devel] [PATCH 0/4] fp-test fixes Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 1/4] berkeley-testfloat-3: pull 'fail: constify fail_programName' Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 2/4] tests/fp/Makefile: do not use gcc-only -W flags Emilio G. Cota
@ 2019-01-22 20:10 ` Emilio G. Cota
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 4/4] tests/fp/platform.h: include config-host.h Emilio G. Cota
  3 siblings, 0 replies; 5+ messages in thread
From: Emilio G. Cota @ 2019-01-22 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Alex Bennée

To match the type in testfloat.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 tests/fp/fp-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c
index fca576309c..2a35ef601d 100644
--- a/tests/fp/fp-test.c
+++ b/tests/fp/fp-test.c
@@ -789,7 +789,7 @@ static int set_init_flags(const char *flags)
     return 0;
 }
 
-static uint8_t slow_clear_flags(void)
+static uint_fast8_t slow_clear_flags(void)
 {
     uint8_t prev = slowfloat_exceptionFlags;
 
@@ -797,7 +797,7 @@ static uint8_t slow_clear_flags(void)
     return prev;
 }
 
-static uint8_t qemu_clear_flags(void)
+static uint_fast8_t qemu_clear_flags(void)
 {
     uint8_t prev = qemu_flags_to_sf(qsf.float_exception_flags);
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 4/4] tests/fp/platform.h: include config-host.h
  2019-01-22 20:10 [Qemu-devel] [PATCH 0/4] fp-test fixes Emilio G. Cota
                   ` (2 preceding siblings ...)
  2019-01-22 20:10 ` [Qemu-devel] [PATCH 3/4] fp-test: fix signature of slow_clear_flags and qemu_clear_flags Emilio G. Cota
@ 2019-01-22 20:10 ` Emilio G. Cota
  3 siblings, 0 replies; 5+ messages in thread
From: Emilio G. Cota @ 2019-01-22 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Alex Bennée

We get HOST_WORDS_BIGENDIAN from config-host.h, but the include
is missing. Fix it.

This fixes `make check-softfloat' on big endian hosts.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 tests/fp/platform.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/fp/platform.h b/tests/fp/platform.h
index f8c423dde3..c20ba70baa 100644
--- a/tests/fp/platform.h
+++ b/tests/fp/platform.h
@@ -29,6 +29,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+#include "config-host.h"
 
 #ifndef HOST_WORDS_BIGENDIAN
 #define LITTLEENDIAN 1
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-22 20:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 20:10 [Qemu-devel] [PATCH 0/4] fp-test fixes Emilio G. Cota
2019-01-22 20:10 ` [Qemu-devel] [PATCH 1/4] berkeley-testfloat-3: pull 'fail: constify fail_programName' Emilio G. Cota
2019-01-22 20:10 ` [Qemu-devel] [PATCH 2/4] tests/fp/Makefile: do not use gcc-only -W flags Emilio G. Cota
2019-01-22 20:10 ` [Qemu-devel] [PATCH 3/4] fp-test: fix signature of slow_clear_flags and qemu_clear_flags Emilio G. Cota
2019-01-22 20:10 ` [Qemu-devel] [PATCH 4/4] tests/fp/platform.h: include config-host.h Emilio G. Cota

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.