public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/37170] [4.4 Regression]: gcc.dg/weak/weak-1.c
Date: Sat, 30 Aug 2008 02:49:00 -0000	[thread overview]
Message-ID: <20080830024832.1762.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37170-507@http.gcc.gnu.org/bugzilla/>



------- Comment #68 from dave at hiauly1 dot hia dot nrc dot ca  2008-08-30 02:48 -------
Subject: Re:  [4.4 Regression]: gcc.dg/weak/weak-1.c

> > If the encoding for function names is getting stripped, then
> > ASM_OUTPUT_EXTERNAL_REAL will fail to type the symbol correctly.
> 
> Not sure what you meant by that comment; that's not what happens here AFAICT.
> I stated that output_operand does not see the same symbol_ref as was passed to
> the rtl insn expander, so target-specific code is needed just like for Darwin
> - or maybe it's just missing in generic code, for the constant pool.

I believe that the only special aspect of symbol_ref processing on the
32-bit hppa port is the symbol name encoding.  There's also some flag
bits.  Other than that, it's not clear why output_operand would see
something different from what was passed to the rtl insn expander.

There's nothing new in the hppa backend wrt symbol references.

Besides the .import issue, function pointers have to point to a
function descriptor (not the real code).  This is done using a plabel
which is a relocation which tells the linker to create a pointer to
a function descriptor.  This happens automatically if the output for
the function pointer output uses assembler_integer (assuming the name
encoding is correct).

Because the output of .import directives is a two stage process, there
might be an issue if a symbol_ref was garbage collected after the
assemble_external call.

Dave


-- 


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


  parent reply	other threads:[~2008-08-30  2:49 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20  0:47 [Bug middle-end/37170] New: " hp at gcc dot gnu dot org
2008-08-20  0:47 ` [Bug middle-end/37170] " hp at gcc dot gnu dot org
2008-08-20 15:32 ` hp at gcc dot gnu dot org
2008-08-21  0:27 ` eric dot weddington at atmel dot com
2008-08-21  0:34 ` hp at gcc dot gnu dot org
2008-08-21  9:17 ` dominiq at lps dot ens dot fr
2008-08-21 13:30 ` hp at gcc dot gnu dot org
2008-08-21 15:34 ` dominiq at lps dot ens dot fr
2008-08-21 17:08 ` eric dot weddington at atmel dot com
2008-08-21 17:14 ` eric dot weddington at atmel dot com
2008-08-21 19:05 ` eric dot weddington at atmel dot com
2008-08-21 19:07 ` dominiq at lps dot ens dot fr
2008-08-21 20:06 ` hp at gcc dot gnu dot org
2008-08-22  2:18 ` hp at gcc dot gnu dot org
2008-08-22  2:25 ` hp at gcc dot gnu dot org
2008-08-22  3:39 ` eric dot weddington at atmel dot com
2008-08-22 11:49 ` dominiq at lps dot ens dot fr
2008-08-22 11:53 ` dominiq at lps dot ens dot fr
2008-08-22 13:15 ` hp at gcc dot gnu dot org
2008-08-22 13:24 ` dominiq at lps dot ens dot fr
2008-08-22 13:46 ` eric dot weddington at atmel dot com
2008-08-22 14:16 ` rguenth at gcc dot gnu dot org
2008-08-22 14:20 ` hp at gcc dot gnu dot org
2008-08-22 14:52 ` eric dot weddington at atmel dot com
2008-08-22 14:53 ` eric dot weddington at atmel dot com
2008-08-22 14:55 ` dominiq at lps dot ens dot fr
2008-08-22 14:56 ` dominiq at lps dot ens dot fr
2008-08-22 15:27 ` hp at gcc dot gnu dot org
2008-08-22 17:10 ` dominiq at lps dot ens dot fr
2008-08-22 17:19 ` hp at gcc dot gnu dot org
2008-08-22 18:08 ` eric dot weddington at atmel dot com
2008-08-22 18:19 ` hp at gcc dot gnu dot org
2008-08-22 18:43 ` andreast at gcc dot gnu dot org
2008-08-23  8:18 ` andreast at gcc dot gnu dot org
2008-08-23 18:40 ` hp at gcc dot gnu dot org
2008-08-24 16:47 ` dominiq at lps dot ens dot fr
2008-08-24 16:51 ` dominiq at lps dot ens dot fr
2008-08-25  1:28 ` hp at gcc dot gnu dot org
2008-08-25  1:50 ` hp at gcc dot gnu dot org
2008-08-25  2:10 ` hp at gcc dot gnu dot org
2008-08-25  9:57 ` dominiq at lps dot ens dot fr
2008-08-25 11:45 ` dominiq at lps dot ens dot fr
2008-08-25 13:36 ` dominiq at lps dot ens dot fr
2008-08-25 15:14 ` eric dot weddington at atmel dot com
2008-08-25 16:52 ` eric dot weddington at atmel dot com
2008-08-25 17:11 ` dominiq at lps dot ens dot fr
2008-08-25 17:22 ` eric dot weddington at atmel dot com
2008-08-25 17:26 ` dominiq at lps dot ens dot fr
2008-08-25 17:59 ` hp at gcc dot gnu dot org
2008-08-25 18:14 ` dominiq at lps dot ens dot fr
2008-08-25 18:19 ` dominiq at lps dot ens dot fr
2008-08-25 18:37 ` hp at gcc dot gnu dot org
2008-08-25 18:59 ` pinskia at gcc dot gnu dot org
2008-08-25 19:17 ` hp at gcc dot gnu dot org
2008-08-25 20:25 ` dominiq at lps dot ens dot fr
2008-08-25 21:37 ` hp at gcc dot gnu dot org
2008-08-26  2:01 ` hp at gcc dot gnu dot org
2008-08-26 11:58 ` dominiq at lps dot ens dot fr
2008-08-27 14:53 ` hp at gcc dot gnu dot org
2008-08-27 15:24 ` dominiq at lps dot ens dot fr
2008-08-27 15:42 ` hp at gcc dot gnu dot org
2008-08-27 16:35 ` hp at gcc dot gnu dot org
2008-08-28 21:07 ` eric dot weddington at atmel dot com
2008-08-29 17:18 ` andreast at gcc dot gnu dot org
2008-08-29 20:52 ` hp at gcc dot gnu dot org
2008-08-29 22:41 ` dave at hiauly1 dot hia dot nrc dot ca
2008-08-30  0:41 ` hp at gcc dot gnu dot org
2008-08-30  1:07 ` hp at gcc dot gnu dot org
2008-08-30  1:09 ` hp at gcc dot gnu dot org
2008-08-30  1:20 ` dave at hiauly1 dot hia dot nrc dot ca
2008-08-30  2:49 ` dave at hiauly1 dot hia dot nrc dot ca [this message]
2008-08-30  3:21 ` hp at gcc dot gnu dot org
2008-08-30  3:39 ` hp at gcc dot gnu dot org
2008-08-30  6:28 ` hp at gcc dot gnu dot org
2008-08-30 18:20 ` dave at hiauly1 dot hia dot nrc dot ca
2008-08-30 18:46 ` hp at gcc dot gnu dot org
2008-08-31  3:21 ` dave at hiauly1 dot hia dot nrc dot ca
2008-08-31 20:34 ` hp at gcc dot gnu dot org
2008-08-31 21:32 ` dave at hiauly1 dot hia dot nrc dot ca
2008-08-31 22:53 ` hp at gcc dot gnu dot org
2008-09-01  1:43 ` hp at gcc dot gnu dot org
2008-09-02 10:20 ` hp at gcc dot gnu dot org
2008-09-02 14:07 ` dave at hiauly1 dot hia dot nrc dot ca
2008-09-09 20:23 ` jsm28 at gcc dot gnu dot org
2008-09-22  1:56 ` hp at gcc dot gnu dot org
2008-09-22  1:57 ` hp at gcc dot gnu dot org
2008-09-22  2:07 ` hp at gcc dot gnu dot org
2008-09-24  9:53 ` aldot at gcc dot gnu dot org
2008-11-03 13:15 ` [Bug target/37170] " jakub at gcc dot gnu dot org
2008-11-22  8:25 ` jakub at gcc dot gnu dot org
2008-11-22  8:28 ` jakub at gcc dot gnu dot org
2008-11-22  8:32 ` jakub at gcc dot gnu dot org
2008-12-10  8:49 ` ebotcazou 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=20080830024832.1762.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).