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]
Other format: [Raw text]

optimization/6698: gcc crashes in reload_cse_simplify_operands (M68HC12)



>Number:         6698
>Category:       optimization
>Synopsis:       gcc crashes in reload_cse_simplify_operands (M68HC12)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 09:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     george@mpimf-heidelberg.mpg.de
>Release:        gcc version 3.1
>Organization:
>Environment:

>Description:
m68hc12-elf-gcc -g -Os -mshort -fomit-frame-pointer -mauto-incdec -msoft-reg-count=0 -Wl,-defsym,ports=0x0,-u,-mm68hc12elfb -o scanner.elf scanner.c
scanner.c: In function `main':
scanner.c:42: insn does not satisfy its constraints:
(insn 67 65 68 (set (mem/v:QI (const_int 174 [0xae]) [0 S1 A8])
        (ior:QI (mem/v:QI (const_int 174 [0xae]) [0 S1 A8])
            (const_int 2 [0x2]))) 83 {*iorqi3_const} (insn_list 60 (nil))
    (nil))
scanner.c:42: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8368
>How-To-Repeat:
See description.

Compilation works if the delay() is placed directly into the while(1) loop.
>Fix:

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

LyogIHNjYW5uZXIuYyAqLwovKiAgSi4gVHJpdHRoYXJkdCwgTVBJTUYvQk1PICovCi8qICBWZXJz
aW9uIDEuMCAtIDI4LjAyLjIwMDIgKi8KCi8qICBUZXN0cHJvZ3JhbW0gZnVlciBkaWUgTEVEcyBk
ZXIgU2Nhbm5lci1Cb3ggKi8KCiNkZWZpbmUgQ09QQ1RMICoodm9sY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luKCkgCnsKICAgIF9fYXNtX18gX192b2xhdGls
ZV9fICgiY2xyIDB4MTYiKTsKfSAKCnZvaWQgZGVsYXkoKQp7CiAgX19hc21fXyBfX3ZvbGF0aWxl
X18gKCJQU0hEXG5cdExERAkweEZGRkZcblx0REJORQlELC0zXG5cdFBVTERcblx0UlRTIik7Cn0K


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