c/544: current GCC failed with "invalid lvalue in assignment"

aj@suse.de aj@suse.de
Sun Sep 17 23:26:00 GMT 2000


>Number:         544
>Category:       c
>Synopsis:       current GCC failed with "invalid lvalue in assignment"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 17 23:26:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Jaeger
>Release:        2.96 20000917 (from CVS)
>Organization:
>Environment:
Linux 2.4.0 test9-pre2, glibc 2.1.3
>Description:
The attached file (destilled from glibc) fails with current
gcc:
$ /opt/gcc-2.96.test/bin/gcc rcmd2.i -c -O3  -o /builds/glibc/20000725-gcc-2.96.test/inet/rcmd.o
rcmd2.i: In function `rcmd_af':
rcmd2.i:28: invalid lvalue in assignment
>How-To-Repeat:
Compile the file with optimization on an ix86 target.
>Fix:

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

CmV4dGVybiBpbnQgbXlzbnByaW50ZiAoY2hhciAqX19yZXN0cmljdCBfX3MsIGxvbmcgX19tYXhs
ZW4sCiAgICAgICAgICAgICAgICAgICAgIF9fY29uc3QgY2hhciAqX19yZXN0cmljdCBfX2Zvcm1h
dCwgLi4uKQogX19hdHRyaWJ1dGVfXyAoKF9fZm9ybWF0X18gKF9fcHJpbnRmX18sIDMsIDQpKSk7
CgoKZXh0ZXJuIGludCByY21kX2FmICh1bnNpZ25lZCBzaG9ydCBpbnQgX19ycG9ydCwKICAgICAg
ICAgICAgICAgICAgICBfX2NvbnN0IGNoYXIgKl9fcmVzdHJpY3QgX19sb2N1c2VyLAogICAgICAg
ICAgICAgICAgICAgIF9fY29uc3QgY2hhciAqX19yZXN0cmljdCBfX3JlbXVzZXIsCiAgICAgICAg
ICAgICAgICAgICAgX19jb25zdCBjaGFyICpfX3Jlc3RyaWN0IF9fY21kKTsKCgoKaW50CnJjbWRf
YWYocnBvcnQsIGxvY3VzZXIsIHJlbXVzZXIsIGNtZCkKICAgICAgICB1bnNpZ25lZCBzaG9ydCBp
bnQgcnBvcnQ7CiAgICAgICAgY29uc3QgY2hhciAqbG9jdXNlciwgKnJlbXVzZXIsICpjbWQ7CnsK
ICAgICAgICBjaGFyIG51bVs4XTsKCgogICAgICAgICh2b2lkKW15c25wcmludGYobnVtLCBzaXpl
b2YobnVtKSwgIiVkIiwKCQkJIChfX2V4dGVuc2lvbl9fCgkJCSAgKHsgcmVnaXN0ZXIgdW5zaWdu
ZWQgc2hvcnQgaW50IF9fdjsKCQkJICBpZiAoX19idWlsdGluX2NvbnN0YW50X3AgKHJwb3J0KSkK
CQkJICAgIF9fdiA9ICgoKChycG9ydCkgPj4gOCkgJiAweGZmKSB8ICgoKHJwb3J0KSAmIDB4ZmYp
IDw8IDgpKTsKCQkJICBlbHNlCgkJCSAgICBfX2FzbV9fIF9fdm9sYXRpbGVfXyAoInJvcncgJDgs
ICV3MCIgOiAiPXIiIChfX3YpIDogIjAiICgodW5zaWduZWQgc2hvcnQgaW50KSAocnBvcnQpKSA6
ICJjYyIpOwoJCQkgIF9fdjsKCQkJICB9KSkpOwp9Cgo=


More information about the Gcc-bugs mailing list