public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andreas Wortmann <andreas.wortmann@ohb-system.de>
To: gcc-help@gcc.gnu.org
Subject: address of labels in the symbol table
Date: Wed, 30 Nov 2011 18:45:00 -0000	[thread overview]
Message-ID: <76f8eada-790c-49f3-b885-0f249df2313c@zm01.ohb-system.de> (raw)
In-Reply-To: <43eedc17-cf45-41c3-b111-34f026c8a00b@zm01.ohb-system.de>

Hi, 

I'm using gcc 4.2.1 for the SPARC V8 architecture and I want to access the address of labels placed in the c code from the symbol table. 
This is working fine if I do not optimize (-O0) or optimize with -O1. 
But when optimizing with -O2 or -Os the unused labels (event though they are still listed in the symbol table) have a wrong address.
What is happening here ?

Thanks,
Andreas

           reply	other threads:[~2011-11-30 10:31 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <43eedc17-cf45-41c3-b111-34f026c8a00b@zm01.ohb-system.de>]

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=76f8eada-790c-49f3-b885-0f249df2313c@zm01.ohb-system.de \
    --to=andreas.wortmann@ohb-system.de \
    --cc=gcc-help@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).