This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Fix compilation of libgcc/config/alpha/qrnnd.S on VMS


Hi,

latest versions of gas are picky about the use of the pseudos.  Consequently we need to adjust them in qrnnd.S.

Tested by building gcc for alpha-vms.

Ok for the trunk ?

Tristan.

2011-11-07  Tristan Gingold  <gingold@adacore.com>
    
        * config/alpha/qrnnd.S: Use specific pseudos for VMS.

diff --git a/libgcc/config/alpha/qrnnd.S b/libgcc/config/alpha/qrnnd.S
index 51b13bc..794cf65 100644
--- a/libgcc/config/alpha/qrnnd.S
+++ b/libgcc/config/alpha/qrnnd.S
@@ -33,9 +33,15 @@
 
 	.globl __udiv_qrnnd
 	.ent __udiv_qrnnd
+#ifdef __VMS__
+__udiv_qrnnd..en:
+	.frame $29,0,$26,0
+	.prologue
+#else
 __udiv_qrnnd:
 	.frame $30,0,$26,0
 	.prologue 0
+#endif
 
 #define cnt	$2
 #define tmp	$3
@@ -160,4 +166,10 @@ $Odd:
 	bis	$31,n0,$0
 	ret	$31,($26),1
 
+#ifdef __VMS__
+	.link
+	.align 3
+__udiv_qrnnd:
+	.pdesc	__udiv_qrnnd..en,null
+#endif
 	.end	__udiv_qrnnd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]