[Bug c++/71145] Alpha: Error: No lda !gpdisp!278 was found

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue May 17 07:39:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71145

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2016-05-17
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com
     Ever confirmed|0                           |1

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
Following patch fixes the failure for me:

--cut here--
Index: alpha.md
===================================================================
--- alpha.md    (revision 236296)
+++ alpha.md    (working copy)
@@ -3738,7 +3738,8 @@

 ;; BUGCHK is documented common to OSF/1 and VMS PALcode.
 (define_insn "trap"
-  [(trap_if (const_int 1) (const_int 0))]
+  [(trap_if (const_int 1) (const_int 0))
+   (use (reg:DI 29))]
   ""
   "call_pal 0x81"
   [(set_attr "type" "callpal")])
@@ -5157,7 +5158,7 @@
   "TARGET_ABI_OSF"
 {
   if (TARGET_EXPLICIT_RELOCS)
-    return "ldah $29,0($26)\t\t!gpdisp!%*\;lda $29,0($29)\t\t!gpdisp!%*";
+    return "#";
   else
     return "ldgp $29,0($26)";
 }
--cut here--

Can you please test the above patch?


More information about the Gcc-bugs mailing list