]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR debug/68244
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Feb 2016 00:38:17 +0000 (00:38 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Feb 2016 00:38:17 +0000 (00:38 +0000)
* g++.dg/parse/parens3.C: Use register "4" on hppa.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233028 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/parens3.C

index 24940a8654e51b081fbe371bdcdff82fb41a5885..f7f2d07c84ffe4d769a281636b20fffeba1508d8 100644 (file)
@@ -1,5 +1,8 @@
 2016-01-31  John David Anglin  <danglin@gcc.gnu.org>
 
+       PR debug/68244
+       * g++.dg/parse/parens3.C: Use register "4" on hppa.
+
        * gcc.dg/tree-ssa/vector-5.c: Add -fno-common option on hppa*-*-hpux*.
 
 2016-01-31  Paul Thomas  <pault@gcc.gnu.org>
index afb392bc5dae4f2788e1c1a81758fb7a9bf3fec7..60044751e47a9cb1a8217a33a23a80222ccd5f5a 100644 (file)
@@ -5,7 +5,12 @@ struct s {
   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)
 {