[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #9 from rguenth at gcc dot gnu dot org 2008-01-09 15:56 --- Trying someone else - Eric, any clue about post-increment? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||ebotcazou at gcc dot gnu dot ||org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #4 from tbm at cyrius dot com 2008-01-03 18:03 --- Bugzilla wraps the testcase in a way that some commented out is no longer commented out and so you don't see the segfault. Here's the testcase again with proper wrapping: typedef unsigned short u16; typedef unsigned char u8; static void do_segfault(u8 in_buf[], const u8 out_buf[], const int len) { int i; for (i = 0; i len; i++) { //SSVAL(in_buf, 2*i, SVAL(out_buf,2*i)); // more or less just a // byte-wise memcpy asm(nop\n); in_buf[2*i] = ( out_buf[2*i] | out_buf[(2*i)+1]8 ) 0xFF; // in_buf[2*i] = out_buf[2*i]; asm(nop\n); in_buf[(2*i)+1] = ( out_buf[2*i] | out_buf[(2*i)+1]8 ) 8; // in_buf[(2*i)+1] = out_buf[(2*i)+1]; asm(nop\n); } } int main(int argc, char *argv[]) { u8 outbuf[32] = buffer ; u8 inbuf[32] = \f; asm(nop\n); do_segfault(inbuf, outbuf, 12); asm(nop\n); return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #5 from tbm at cyrius dot com 2008-01-03 18:07 --- Created an attachment (id=14870) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14870action=view) optimized tree dump (4.2) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
-- tbm at cyrius dot com changed: What|Removed |Added Status|WAITING |UNCONFIRMED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #6 from tbm at cyrius dot com 2008-01-03 18:22 --- (In reply to comment #2) I see different IL for 4.2 compared to 4.3, is the bug present in 4.3? Can you attach the optimized tree dump? I also get a segfault with the testcase and 4.3.0 20070916. The original program (samba) compiled with 4.2 shows bad code (smbclient returning 'string length'+1 of the first character of the share name rather than the share name) whereas it segfaults when compiled with 4.3. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-01-03 18:58 --- The final tree IL looks good, so I suspect the RTL loop optimizer gets this wrong. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||rakdver at gcc dot gnu dot ||org Keywords||wrong-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
-- aldot at gcc dot gnu dot org changed: What|Removed |Added CC||aldot at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||zadeck at naturalbridge dot ||com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #8 from rakdver at gcc dot gnu dot org 2008-01-03 21:23 --- (In reply to comment #7) The final tree IL looks good, so I suspect the RTL loop optimizer gets this wrong. add r1, sp, #56 // upper loop-bound; should have been #12 I actually wanted to say 'should have been #24' :-) This insn is actually correct, r1 = outbuf + 24. The missing increment of r4 seems to be the problem. Post-increment is created for r4, but it disappears in the combine pass. Does not seem to be loop optimizer related. -- rakdver at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2008-01-03 21:23:36 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
-- tim at buttersideup dot com changed: What|Removed |Added CC||tim at buttersideup dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
--- Comment #3 from mmitchel at gcc dot gnu dot org 2008-01-02 23:14 --- Put into WAITING state until the information requested in Comment #2 is available. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
-- tbm at cyrius dot com changed: What|Removed |Added CC||debian-gcc at lists dot ||debian dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug target/34628] [4.2/4.3 Regression] problems with inlining on ARM
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot ||org Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]