diff mbox series

[33/52] visium: Remove macros {FLOAT, DOUBLE, LONG_DOUBLE}_TYPE_SIZE

Message ID d27a7d3d24592dfbf120dc5a5c7fa013838a4cf7.1717134752.git.linkw@linux.ibm.com
State New
Headers show
Series Replace {FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE with new hook | expand

Commit Message

Kewen.Lin June 3, 2024, 3:01 a.m. UTC
This is to remove macros {FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE
defines in visium port.

gcc/ChangeLog:

	* config/visium/visium.h (FLOAT_TYPE_SIZE): Remove.
	(DOUBLE_TYPE_SIZE): Likewise.
	(LONG_DOUBLE_TYPE_SIZE): Likewise.
---
 gcc/config/visium/visium.h | 29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)

Comments

Kewen.Lin June 13, 2024, 7:17 a.m. UTC | #1
Hi,

Gentle ping:

https://gcc.gnu.org/pipermail/gcc-patches/2024-June/653365.html

BR,
Kewen

on 2024/6/3 11:01, Kewen Lin wrote:
> This is to remove macros {FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE
> defines in visium port.
> 
> gcc/ChangeLog:
> 
> 	* config/visium/visium.h (FLOAT_TYPE_SIZE): Remove.
> 	(DOUBLE_TYPE_SIZE): Likewise.
> 	(LONG_DOUBLE_TYPE_SIZE): Likewise.
> ---
>  gcc/config/visium/visium.h | 29 ++++++-----------------------
>  1 file changed, 6 insertions(+), 23 deletions(-)
> 
> diff --git a/gcc/config/visium/visium.h b/gcc/config/visium/visium.h
> index 69e25523e05..afeb68f84cc 100644
> --- a/gcc/config/visium/visium.h
> +++ b/gcc/config/visium/visium.h
> @@ -330,33 +330,16 @@
>     it is rounded up to one unit.) */
>  #define CHAR_TYPE_SIZE  8
>  
> -/* `FLOAT_TYPE_SIZE'
> -
> -   A C expression for the size in bits of the type `float' on the
> -   target machine.  If you don't define this, the default is one word. */
> -#define FLOAT_TYPE_SIZE  32
> -
> -/* `DOUBLE_TYPE_SIZE'
> -
> -   A C expression for the size in bits of the type `double' on the
> -   target machine.  If you don't define this, the default is two
> -   words. */
> -#define DOUBLE_TYPE_SIZE  64
> -
> -/* `LONG_DOUBLE_TYPE_SIZE'
> -
> -   A C expression for the size in bits of the type `long double' on
> -   the target machine.  If you don't define this, the default is two
> -   words. */
> -#define LONG_DOUBLE_TYPE_SIZE   DOUBLE_TYPE_SIZE
> -
>  /* `WIDEST_HARDWARE_FP_SIZE'
>  
>     A C expression for the size in bits of the widest floating-point
>     format supported by the hardware.  If you define this macro, you
> -   must specify a value less than or equal to the value of
> -   `LONG_DOUBLE_TYPE_SIZE'.  If you do not define this macro, the
> -   value of `LONG_DOUBLE_TYPE_SIZE' is the default. */
> +   must specify a value less than or equal to mode precision of the
> +   mode used for C type long double (from hook
> +   targetm.c.mode_for_floating_type with tree_index
> +   TI_LONG_DOUBLE_TYPE).  If you do not define this macro, mode
> +   precision of the mode used for C type long double is the
> +   default.  */
>  
>  /* `DEFAULT_SIGNED_CHAR'
>
diff mbox series

Patch

diff --git a/gcc/config/visium/visium.h b/gcc/config/visium/visium.h
index 69e25523e05..afeb68f84cc 100644
--- a/gcc/config/visium/visium.h
+++ b/gcc/config/visium/visium.h
@@ -330,33 +330,16 @@ 
    it is rounded up to one unit.) */
 #define CHAR_TYPE_SIZE  8
 
-/* `FLOAT_TYPE_SIZE'
-
-   A C expression for the size in bits of the type `float' on the
-   target machine.  If you don't define this, the default is one word. */
-#define FLOAT_TYPE_SIZE  32
-
-/* `DOUBLE_TYPE_SIZE'
-
-   A C expression for the size in bits of the type `double' on the
-   target machine.  If you don't define this, the default is two
-   words. */
-#define DOUBLE_TYPE_SIZE  64
-
-/* `LONG_DOUBLE_TYPE_SIZE'
-
-   A C expression for the size in bits of the type `long double' on
-   the target machine.  If you don't define this, the default is two
-   words. */
-#define LONG_DOUBLE_TYPE_SIZE   DOUBLE_TYPE_SIZE
-
 /* `WIDEST_HARDWARE_FP_SIZE'
 
    A C expression for the size in bits of the widest floating-point
    format supported by the hardware.  If you define this macro, you
-   must specify a value less than or equal to the value of
-   `LONG_DOUBLE_TYPE_SIZE'.  If you do not define this macro, the
-   value of `LONG_DOUBLE_TYPE_SIZE' is the default. */
+   must specify a value less than or equal to mode precision of the
+   mode used for C type long double (from hook
+   targetm.c.mode_for_floating_type with tree_index
+   TI_LONG_DOUBLE_TYPE).  If you do not define this macro, mode
+   precision of the mode used for C type long double is the
+   default.  */
 
 /* `DEFAULT_SIGNED_CHAR'