Skip to contentSkip to conversation

exec/helper-head: Include missing "fpu/softfloat-types.h" header

PATCH Applied Philippe Mathieu-Daudé 2 participants 2 messages Dec 16, 2022 – Feb 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exec/helper-head: Include missing "fpu/softfloat-types.h" header

'dh_ctype_f32' is defined as 'float32', itself declared in "fpu/softfloat-types.h". Include this header to avoid when refactoring other headers:

In file included from include/exec/helper-proto.h:7,

                   from include/tcg/tcg-op.h:29,
                   from ../../tcg/tcg-op-vec.c:22:
  include/exec/helper-head.h:44:22: error: unknown type name ‘float32’; did you mean ‘_Float32’?
     44 | #define dh_ctype_f32 float32
        |                      ^~~~~~~
---
 include/exec/helper-head.h | 2 ++
 1 file changed, 2 insertions(+)
include/exec/helper-head.h +2 -0
index 584b120312..325a42b14e 100644
@@ -18,6 +18,8 @@
 #ifndef EXEC_HELPER_HEAD_H
 #define EXEC_HELPER_HEAD_H
 
+#include "fpu/softfloat-types.h"
+
 #define HELPER(name) glue(helper_, name)
 
 /* Some types that make sense in C, but not for TCG.  */
Signature · 1 line
2.38.1
#1 lore raw
Quoted 4 lines · Philippe Mathieu-Daudé

'dh_ctype_f32' is defined as 'float32', itself declared in "fpu/softfloat-types.h". Include this header to avoid when refactoring other headers:

Quoted 8 lines
   In file included from include/exec/helper-proto.h:7,
                    from include/tcg/tcg-op.h:29,
                    from ../../tcg/tcg-op-vec.c:22:
   include/exec/helper-head.h:44:22: error: unknown type name ‘float32’; did you mean ‘_Float32’?
      44 | #define dh_ctype_f32 float32
         |                      ^~~~~~~

Queued to tcg-next.

r~

Quoted 17 lines
---
  include/exec/helper-head.h | 2 ++
  1 file changed, 2 insertions(+)
include/exec/helper-head.h +2 -0
index 584b120312..325a42b14e 100644
@@ -18,6 +18,8 @@
  #ifndef EXEC_HELPER_HEAD_H
  #define EXEC_HELPER_HEAD_H
 
+#include "fpu/softfloat-types.h"
+
  #define HELPER(name) glue(helper_, name)
 
  /* Some types that make sense in C, but not for TCG.  */