public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: John David Anglin <dave.anglin@bell.net>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: [committed] Fix failure of g++.dg/parse/parens3.C on hppa
Date: Mon, 01 Feb 2016 00:42:00 -0000	[thread overview]
Message-ID: <7ECC5B6E-01FA-4500-A8D2-6C14D390C976@bell.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

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.anglin@bell.net



[-- Attachment #2: parens3.C.d.txt --]
[-- Type: text/plain, Size: 535 bytes --]

2016-01-31  John David Anglin  <danglin@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	other threads:[~2016-02-01  0:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ECC5B6E-01FA-4500-A8D2-6C14D390C976@bell.net \
    --to=dave.anglin@bell.net \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).