public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "danglin at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/29840] [4.3 Regression] build/genconditions ../../gcc/gcc/config/pa/pa.md > tmp-condmd.c: /bin/sh: 13354 Memory fault(coredump)
Date: Sat, 25 Nov 2006 20:15:00 -0000	[thread overview]
Message-ID: <20061125201505.30904.qmail@sourceware.org> (raw)
In-Reply-To: <bug-29840-276@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from danglin at gcc dot gnu dot org  2006-11-25 20:15 -------
In print_c_condition, we have these two calls:

      print_rtx_ptr_loc (cond);
      printf ("(%s)", cond);

The generated assembly code is:

0x400000000000d4d0 <print_c_condition+216>:     ldd -40(ret1),r26
0x400000000000d4d4 <print_c_condition+220>:     ldo -30(sp),ret1
0x400000000000d4d8 <print_c_condition+224>:     b,l 0x400000000000d3b8
<print_rtx_ptr_loc>,rp
0x400000000000d4dc <print_c_condition+228>:     copy dp,r4
0x400000000000d4e0 <print_c_condition+232>:     ldd -40(ret1),r25
0x400000000000d4e4 <print_c_condition+236>:     copy r4,dp
0x400000000000d4e8 <print_c_condition+240>:     addil L%0,dp,r1
0x400000000000d4ec <print_c_condition+244>:     ldd 80(r1),r26
0x400000000000d4f0 <print_c_condition+248>:     ldo -30(sp),ret1
0x400000000000d4f4 <print_c_condition+252>:     b,l 0x400000000000d994
<.stub+60>,rp
0x400000000000d4f8 <print_c_condition+256>:     nop

The insn at 0x400000000000d4e0 is the problem.  Register ret1 is the argument
pointer.  It's call clobbered, so it must be saved and restored if an argument
(in this case cond) needs to be reloaded from the argument block on the stack.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29840


  parent reply	other threads:[~2006-11-25 20:15 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15  2:26 [Bug target/29840] New: " danglin at gcc dot gnu dot org
2006-11-15  2:41 ` [Bug target/29840] " danglin at gcc dot gnu dot org
2006-11-23  0:25 ` danglin at gcc dot gnu dot org
2006-11-23  0:28 ` [Bug target/29840] [4.3 Regression] " pinskia at gcc dot gnu dot org
2006-11-25 20:15 ` danglin at gcc dot gnu dot org [this message]
2006-11-25 21:30 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-25 22:14 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-25 22:24 ` steven at gcc dot gnu dot org
2006-11-25 23:17 ` steven at gcc dot gnu dot org
2006-11-25 23:19 ` steven at gcc dot gnu dot org
2006-11-25 23:21 ` steven at gcc dot gnu dot org
2006-11-25 23:23 ` steven at gcc dot gnu dot org
2006-11-25 23:26 ` [Bug rtl-optimization/29840] " pinskia at gcc dot gnu dot org
2006-11-25 23:32 ` pinskia at gcc dot gnu dot org
2006-11-26  0:04 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-26  1:05 ` steven at gcc dot gnu dot org
2006-11-26  9:06 ` paolo dot bonzini at lu dot unisi dot ch
2006-11-26  9:19 ` stevenb dot gcc at gmail dot com
2006-11-27  0:28 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-27  7:16 ` bonzini at gnu dot org
2006-11-30 18:49 ` bonzini at gnu dot org
2006-11-30 19:10 ` dave at hiauly1 dot hia dot nrc dot ca
2006-11-30 19:18 ` paolo dot bonzini at lu dot unisi dot ch
2006-12-01 21:02 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-01 22:23 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-02  9:27 ` paolo dot bonzini at lu dot unisi dot ch
2006-12-02 16:39 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-02 17:38 ` paolo dot bonzini at lu dot unisi dot ch
2006-12-02 21:17 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-04 21:26 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-19 18:23 ` sje at cup dot hp dot com
2006-12-19 20:05 ` dave at hiauly1 dot hia dot nrc dot ca
2006-12-22 12:29 ` bonzini at gcc dot gnu dot org
2006-12-22 12:52 ` bonzini at gnu dot org

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=20061125201505.30904.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).