public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "raj dot khem at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/44290] arm linux kernel crahes when built with -fipa-sra Date: Thu, 27 May 2010 07:13:00 -0000 [thread overview] Message-ID: <20100527071243.11125.qmail@sourceware.org> (raw) In-Reply-To: <bug-44290-10179@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from raj dot khem at gmail dot com 2010-05-27 07:12 ------- here is diff of two assembly outputs $ diff copypage-v4wb.s copypage-v4wb.no-ipa-sra.S -u --- copypage-v4wb.s 2010-05-27 00:11:03.130607878 -0700 +++ copypage-v4wb.no-ipa-sra.S 2010-05-27 00:10:54.790615578 -0700 @@ -120,19 +120,30 @@ v4wb_copy_user_highpage: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 - stmfd sp!, {r4, lr} - mov r1, sp - bic r4, r1, #8128 + stmfd sp!, {r4, r5, r6, lr} + mov ip, sp + bic r4, ip, #8128 bic r4, r4, #63 - ldr r1, [r4, #4] - add r1, r1, #1 - str r1, [r4, #4] - ldr r1, [r4, #4] - add r1, r1, #1 - str r1, [r4, #4] - ldr r1, [r3, #0] - ldr r1, [r1, #332] - tst r1, #1 + ldr ip, [r4, #4] + add ip, ip, #1 + str ip, [r4, #4] + ldr ip, .L8 + ldr lr, [r4, #4] + ldr r6, [ip, #0] + add lr, lr, #1 + rsb r6, r6, r0 + mov r6, r6, asr #5 + mov r6, r6, asl #12 + add r6, r6, #-1073741824 + str lr, [r4, #4] + ldr r5, [ip, #0] + ldr r0, [r3, #0] + rsb r5, r5, r1 + ldr r0, [r0, #332] + mov r5, r5, asr #5 + mov r5, r5, asl #12 + tst r0, #1 + add r5, r5, #-1073741824 beq .L6 bic r2, r2, #4080 bic r0, r2, #15 @@ -140,6 +151,8 @@ ldr r2, [r3, #20] bl arm926_flush_user_cache_range .L6: + mov r0, r6 + mov r1, r5 bl v4wb_copy_user_page ldr r3, [r4, #4] sub r3, r3, #1 @@ -147,7 +160,11 @@ ldr r3, [r4, #4] sub r3, r3, #1 str r3, [r4, #4] - ldmfd sp!, {r4, pc} + ldmfd sp!, {r4, r5, r6, pc} +.L9: + .align 2 +.L8: + .word mem_map .size v4wb_copy_user_highpage, .-v4wb_copy_user_highpage .global v4wb_user_fns .section .init.data,"aw",%progbits -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44290
next prev parent reply other threads:[~2010-05-27 7:13 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-27 6:26 [Bug tree-optimization/44290] New: " raj dot khem at gmail dot com 2010-05-27 7:07 ` [Bug tree-optimization/44290] " raj dot khem at gmail dot com 2010-05-27 7:13 ` raj dot khem at gmail dot com [this message] 2010-05-27 10:41 ` [Bug tree-optimization/44290] [4.5 Regression] " rguenth at gcc dot gnu dot org 2010-05-27 17:26 ` raj dot khem at gmail dot com 2010-05-27 17:27 ` raj dot khem at gmail dot com 2010-05-28 11:49 ` mikpe at it dot uu dot se 2010-05-28 22:03 ` mikpe at it dot uu dot se 2010-05-29 11:36 ` mikpe at it dot uu dot se 2010-05-29 11:43 ` [Bug target/44290] [4.5 Regression] arm linux kernel crahes when built with -fipa-sra, __naked attribute is broken rguenth at gcc dot gnu dot org 2010-05-29 11:47 ` rguenth at gcc dot gnu dot org 2010-05-29 11:50 ` rguenth at gcc dot gnu dot org 2010-05-29 13:30 ` Andrew Pinski 2010-05-29 13:30 ` pinskia at gmail dot com 2010-05-29 14:27 ` mikpe at it dot uu dot se 2010-05-29 14:40 ` mikpe at it dot uu dot se 2010-05-29 14:45 ` [Bug target/44290] [4.5 Regression] " rguenth at gcc dot gnu dot org 2010-05-29 14:46 ` rguenth at gcc dot gnu dot org 2010-05-29 14:47 ` mikpe at it dot uu dot se 2010-05-29 18:00 ` mikpe at it dot uu dot se 2010-05-30 5:58 ` raj dot khem at gmail dot com 2010-05-30 6:55 ` raj dot khem at gmail dot com 2010-05-30 17:04 ` rguenth at gcc dot gnu dot org 2010-07-23 14:48 ` jiez at gcc dot gnu dot org 2010-07-23 14:51 ` jiez at gcc dot gnu dot org 2010-07-23 14:52 ` jiez at gcc dot gnu dot org 2010-07-26 8:05 ` [Bug target/44290] [4.5 only] " ramana at gcc dot gnu dot org 2010-07-26 14:38 ` jiez at gcc dot gnu dot org 2010-07-27 17:34 ` jiez at gcc dot gnu dot org 2010-07-31 9:35 ` rguenth at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100527071243.11125.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).