The attached change uses a different register to avoid ICEing in  
dwarf2out_frame_debug_expr.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.

Committed to trunk.

Dave
--
John David Anglin       dave.ang...@bell.net


2016-01-31  John David Anglin  <dang...@gcc.gnu.org>

        PR debug/68244
        * g++.dg/parse/parens3.C: Use register "4" on hppa.

Index: g++.dg/parse/parens3.C
===================================================================
--- g++.dg/parse/parens3.C      (revision 232999)
+++ g++.dg/parse/parens3.C      (working copy)
@@ -5,7 +5,12 @@
   int i;
 };
 
+#ifdef __hppa__ 
+/* Register %r1 can't be fixed when generating PIC code.  */
+register struct s *reg __asm__( "4" );
+#else
 register struct s *reg __asm__( "1" );
+#endif
 
 int f(void)
 {

Reply via email to