Patchwork [AArch64] Update definitions of _FP_W_TYPE and _FP_WS_TYPE in libgcc to be based on 'long long'

login
register
mail settings
Submitter Yufeng Zhang
Date April 18, 2013, 9:10 p.m.
Message ID <5170612D.8060008@arm.com>
Download mbox | patch
Permalink /patch/237738/
State New
Headers show

Comments

Yufeng Zhang - April 18, 2013, 9:10 p.m.
Hi,

The patch changes _FP_W_TYPE and _FP_WS_TYPE in AArch64 libgcc to be 
based on 'long long', making them ILP32-friendly.  x86_64 has the 
definitions.

OK for the trunk?

Thanks,
Yufeng

libgcc/

2013-04-18  Yufeng Zhang  <yufeng.zhang@arm.com>

	* config/aarch64/sfp-machine.h (_FP_W_TYPE): Change to define
	as 'unsigned long long' instead of 'unsigned long'.
	(_FP_WS_TYPE): Change to define as 'signed long long' instead of
	'signed long'.
Marcus Shawcroft - April 19, 2013, 9:32 a.m.
Looks OK to me.

/Marcus

On 18 April 2013 22:10, Yufeng Zhang <Yufeng.Zhang@arm.com> wrote:
> Hi,
>
> The patch changes _FP_W_TYPE and _FP_WS_TYPE in AArch64 libgcc to be based
> on 'long long', making them ILP32-friendly.  x86_64 has the definitions.
>
> OK for the trunk?
>
> Thanks,
> Yufeng
>
> libgcc/
>
> 2013-04-18  Yufeng Zhang  <yufeng.zhang@arm.com>
>
>         * config/aarch64/sfp-machine.h (_FP_W_TYPE): Change to define
>         as 'unsigned long long' instead of 'unsigned long'.
>         (_FP_WS_TYPE): Change to define as 'signed long long' instead of
>         'signed long'.

Patch

diff --git a/libgcc/config/aarch64/sfp-machine.h b/libgcc/config/aarch64/sfp-machine.h
index 9977308..456bea4 100644
--- a/libgcc/config/aarch64/sfp-machine.h
+++ b/libgcc/config/aarch64/sfp-machine.h
@@ -19,8 +19,8 @@ 
    <http://www.gnu.org/licenses/>.  */
 
 #define _FP_W_TYPE_SIZE		64
-#define _FP_W_TYPE		unsigned long
-#define _FP_WS_TYPE		signed long
+#define _FP_W_TYPE		unsigned long long
+#define _FP_WS_TYPE		signed long long
 #define _FP_I_TYPE		int
 
 typedef int TItype __attribute__ ((mode (TI)));