public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: gcc@treblig.org
To: gcc-gnats@gcc.gnu.org
Subject: optimization/2556: gcc (3 CVS branch) SPARC, produces code with a nonexisting label
Date: Sun, 15 Apr 2001 09:56:00 -0000	[thread overview]
Message-ID: <20010415165213.20411.qmail@sourceware.cygnus.com> (raw)

>Number:         2556
>Category:       optimization
>Synopsis:       gcc (3 CVS branch) SPARC, produces code with a nonexisting label
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 15 09:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dave Gilbert
>Release:        GCC: (GNU) 3.0 20010407 (prerelease)
>Organization:
>Environment:
Linux/SPARC
>Description:
The following code produces assembly output with the following
line in, but with no label LL9 defined:

	sethi	%hi(_GLOBAL_OFFSET_TABLE_-(.LL9-.)), %g2

(The code is from the XFree source distribution, it has
been preprocessed and reduced as far as it will go while
still producing the error.  Removing the -O2 or the -fPIC
stops it failing)
>How-To-Repeat:
gcc -c -O2 -fPIC Paned_hack.i -S
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="Paned_hack.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Paned_hack.i"

c3RydWN0IGR1bW15IHsKICBpbnQgeF9yb290OwogIGludCB5X3Jvb3Q7Cn07CnR5cGVkZWYgdW5p
b24gX1hFdmVudCB7CiAgICAgICAgaW50IHR5cGU7CiAgICAgICAgc3RydWN0IGR1bW15IHhidXR0
b247Cn0gWEV2ZW50Owp0eXBlZGVmIHN0cnVjdCBfUGFuZWRSZWMgKlBhbmVkV2lkZ2V0OwpzdGF0
aWMgaW50CkdldEV2ZW50TG9jYXRpb24oUGFuZWRXaWRnZXQgcHcsIFhFdmVudCAqZXZlbnQpCnsK
ICAgIGludCB4LCB5OwoKICAgIHN3aXRjaCAoZXZlbnQtPnR5cGUpIHsKICAgICAgICBjYXNlIDQ6
CiAgICAgICAgY2FzZSA1OgogICAgICAgICAgICB4ID0gZXZlbnQtPnhidXR0b24ueF9yb290Owog
ICAgICAgICAgICB5ID0gZXZlbnQtPnhidXR0b24ueV9yb290OwogICAgICAgICAgICBicmVhazsK
ICAgICAgICBjYXNlIDI6CiAgICAgICAgY2FzZSAzOgogICAgICAgICAgICB4ID0gZXZlbnQtPnhi
dXR0b24ueF9yb290OwogICAgICAgICAgICB5ID0gZXZlbnQtPnhidXR0b24ueV9yb290OwogICAg
ICAgICAgICBicmVhazsKICAgICAgICBjYXNlIDY6CiAgICAgICAgICAgIHggPSBldmVudC0+eGJ1
dHRvbi54X3Jvb3Q7CiAgICAgICAgICAgIHkgPSBldmVudC0+eGJ1dHRvbi55X3Jvb3Q7CiAgICAg
ICAgICAgIGJyZWFrOwogICAgfQogICAgaWYgKChwdykpCiAgICAgICAgcmV0dXJuICh5KTsKICBy
ZXR1cm4gKHgpOwp9Cg==


             reply	other threads:[~2001-04-15  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-15  9:56 gcc [this message]
2002-04-02  0:29 rth

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=20010415165213.20411.qmail@sourceware.cygnus.com \
    --to=gcc@treblig.org \
    --cc=gcc-gnats@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).