This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/2556: gcc (3 CVS branch) SPARC, produces code with a nonexisting label



>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==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]