target/10775: m32r-elf-gcc -O3 (regrename) used lr in leaf-functions without saving
inaoka.kazuhiro@renesas.com
inaoka.kazuhiro@renesas.com
Wed May 14 06:26:00 GMT 2003
>Number: 10775
>Category: target
>Synopsis: m32r-elf-gcc -O3 (regrename) used lr in leaf-functions without saving
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed May 14 06:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Kazuhiro Inaoka
>Release: gcc 3.2.3
>Organization:
>Environment:
Linux 2.4.18-24.7.x i686, target m32r-elf
>Description:
In gcc/testsuite:
FAIL: gcc.c-torture/execute/20000726-1.c execution, -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/20000726-1.c execution, -O3 -g
When regrename optimizing (-O3) in leaf-functions, lr(R14) was used without saving.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="20000726-1.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="20000726-1.c"
dm9pZCBhZGp1c3RfeHkgKHNob3J0ICosIHNob3J0ICopOwoKc3RydWN0IGFkanVzdF90ZW1wbGF0
ZQp7CiAgc2hvcnQga3hfeDsKICBzaG9ydCBreF95OwogIHNob3J0IGt4OwogIHNob3J0IGt6Owp9
OwoKc3RhdGljIHN0cnVjdCBhZGp1c3RfdGVtcGxhdGUgYWRqdXN0ID0gezAsIDAsIDEsIDF9OwoK
bWFpbiAoKQp7CiAgc2hvcnQgeCA9IDEsIHkgPSAxOwoKICBhZGp1c3RfeHkgKCZ4LCAmeSk7Cgog
IGlmICh4ICE9IDEpCiAgICBhYm9ydCAoKTsKCiAgZXhpdCAoMCk7Cn0KCnZvaWQKYWRqdXN0X3h5
ICh4LCB5KQogICAgIHNob3J0ICAqeDsKICAgICBzaG9ydCAgKnk7CnsKICAqeCA9IGFkanVzdC5r
eF94ICogKnggKyBhZGp1c3Qua3hfeSAqICp5ICsgYWRqdXN0Lmt4Owp9Cg==
More information about the Gcc-bugs
mailing list