public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/14580] [3.5 Regression]  symbol emitted instead of a non_lazy_symbol
Date: Mon, 15 Mar 2004 16:09:00 -0000	[thread overview]
Message-ID: <20040315160945.15096.qmail@sources.redhat.com> (raw)
In-Reply-To: <20040315144015.14580.pinskia@gcc.gnu.org>


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-15 16:09 -------
Before .combine:
(call_insn 33 32 41 0 (parallel [
            (set (reg:SI 3 r3)
                (call (mem:SI (reg/v/u/f:SI 118 [ munmap ]) [0 S4 A8])
                    (const_int 32 [0x20])))
            (use (const_int 0 [0x0]))
            (clobber (scratch:SI))
        ]) 388 {*call_value_indirect_nonlocal_sysv} (insn_list 16 (insn_list 31 (insn_list 32 
(nil))))
    (expr_list:REG_DEAD (reg:SI 4 r4 [ sizet ])
        (expr_list:REG_DEAD (reg/v/u/f:SI 118 [ munmap ])
            (expr_list:REG_UNUSED (scratch:SI)
                (expr_list:REG_UNUSED (reg:SI 3 r3)
                    (nil)))))
    (expr_list (use (reg:SI 4 r4 [ sizet ]))
        (expr_list (use (reg:SI 3 r3 [ caddr ]))
            (nil))))
After .combine:
(call_insn 33 32 41 0 (parallel [
            (set (reg:SI 3 r3)
                (call (mem:SI (symbol_ref:SI ("!t__munmap") [flags 0x41] <function_decl 
0x6c5600 munmap>) [0 S4 A8])
                    (const_int 32 [0x20])))
            (use (const_int 0 [0x0]))
            (clobber (scratch:SI))
        ]) 389 {*call_value_nonlocal_sysv} (insn_list 32 (insn_list 31 (nil)))
    (expr_list:REG_UNUSED (reg:SI 3 r3)
        (expr_list:REG_UNUSED (scratch:SI)
            (expr_list:REG_DEAD (reg:SI 4 r4 [ sizet ])
                (nil))))
    (expr_list (use (reg:SI 4 r4 [ sizet ]))
        (expr_list (use (reg:SI 3 r3 [ caddr ]))
            (nil))))

Since on Darwin extern (library) calls need to go through a stub, this is wrong.
One way of fixing this would be rewrite Darwin's back-end so that the decission about the 
stubs only happen at the last moment when compiling aka when writting out the asm 
from the RTL.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-15 16:09:44
               date|                            |


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


  parent reply	other threads:[~2004-03-15 16:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 14:40 [Bug target/14580] New: " pinskia at gcc dot gnu dot org
2004-03-15 14:41 ` [Bug target/14580] " pinskia at gcc dot gnu dot org
2004-03-15 14:48 ` pinskia at gcc dot gnu dot org
2004-03-15 15:26 ` pinskia at gcc dot gnu dot org
2004-03-15 16:09 ` pinskia at gcc dot gnu dot org [this message]
2004-03-15 16:17 ` roger at eyesopen dot com
2004-03-15 17:27 ` pinskia at gcc dot gnu dot org
2004-03-16 17:48 ` roger at eyesopen dot com
2004-03-16 22:09 ` pinskia at gcc dot gnu dot org
2004-03-21 17:41 ` pinskia at gcc dot gnu dot org
2004-03-21 17:49 ` pinskia at gcc dot gnu dot org
2004-03-22 15:05 ` cvs-commit at gcc dot gnu dot org
2004-03-22 15:08 ` pinskia at gcc dot 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=20040315160945.15096.qmail@sources.redhat.com \
    --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).