Summary: | [mcore-elf] unsigned char assign gets hosed. | ||
---|---|---|---|
Product: | gcc | Reporter: | jcphillips |
Component: | target | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, kazu |
Priority: | P3 | Keywords: | wrong-code |
Version: | 3.2 | ||
Target Milestone: | 3.3.3 | ||
Host: | Target: | mcore-elf | |
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2003-05-26 14:26:40 |
Description
jcphillips
2002-12-12 08:56:02 UTC
Hello, I can confirm that this problem is still present on gcc 3.3 branch and mainline (20030524). Thanks, Dara See Dara's comment. If compiled as little endian, correct code is produced. Compile with: mcore-elf-gcc -c -O2 -m210 test.c With current mainline, different code is generated. Most notably, bmaski does not appear any more. Could you check if the following is correct? The following patch fixed many regressions, so this problem may have been fixed at that time. http://gcc.gnu.org/ml/gcc-patches/2003-09/msg00044.html test: subi sp,16 stw r15,(sp,8) movi r7,89 not r7 // -90 0xffffffa6 st.b r7,(sp) mov r2,sp jbsr ExtFunc ldw r15,(sp,8) addi sp,16 jmp r15 Running the testcase with mcore-elf-run shows it's OK now. Confirmed on 3.3 branch and mainline. |