[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc Status: Unknown => Fix Released ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
fixed in precise, won't fix for 4.5 ** Changed in: gcc-4.6 (Ubuntu) Status: Confirmed => Fix Released ** Changed in: gcc-4.5 (Ubuntu) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc-linaro/4.6 Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** No longer affects: gcc ** Also affects: gmime via http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313 Importance: Unknown Status: Unknown ** Also affects: gcc via http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313 Importance: Unknown Status: Unknown ** No longer affects: gmime -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc-linaro/4.6 Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc-linaro/4.6 Milestone: None => 4.6-2012.02 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc-linaro Status: Triaged => In Progress ** Also affects: gcc-linaro/4.6 Importance: Medium Assignee: Ramana Radhakrishnan (ramana) Status: In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
Author: ramana Date: Wed Jan 25 08:52:39 2012 New Revision: 183512 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183512 Log: 2012-01-25 Ramana Radhakrishnan PR rtl-optimization/48308 * combine.c (enum undo_kind): Add UNDO_LINKS. (struct undo): Add member l to other_contents and where. (do_SUBST_LINK): New. (SUBST_LINK): New. (try_combine): Handle LOG_LINKS for the dummy i1 case. (undo_all): Handle UNDO_LINKS. Modified: trunk/gcc/ChangeLog trunk/gcc/combine.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
(In reply to comment #14) > Note, can't be reproduced on the trunk, the strcmp isn't DCEd there, but guess > the problem is just latent there. Latent still in trunk with the testcase - you can try it with -fdbg- cnt=cprop:0 with the first reduced testcase and you should be able to see the same behaviour with trunk. The other testcase which is in PR50313 also fails with the same error on trunk (with -Os -fPIC -mcpu=arm9tdmi -marm ) The problem with reduced^2 testcase or reduced testcase appears to get fixed if we add LOG_LINKS to keep track of the dummy i1 in the form of a patch of the following nature. combine.c: try_combine attempts to create a dummy i1 instruction in case i1 is NULL and i2 looks like (parallel [(set (reg:CC X) (compare:CC OP (const_int 0))) (set Y OP)]) which is exactly how the intermediate instruction looks (parallel [ (set (reg:CC 24 cc) (compare:CC (reg:SI 0 r0) (const_int 0 [0]))) (set (reg:SI 168) (reg:SI 0 r0)) ]) i1 now becomes (set (reg:SI 168) (reg:SI 0 r0)) and i2 becomes (set (reg:CC 24 cc) (compare:CC (reg:SI 0 r168) (const_int 0 [0]))) but there are no LOG_LINKS to indicate that even when we've created the dummy i1 - i2 actually feeds into i1. After changing try_combine[1] to create a LOG_LINKS to indicate this relationship between i1 and i2 we no longer eliminate the wrong strcmp call and therefore this should IMHO be the handled in combine rather than faffing around in the backend. However this doesn't fix the testcase from PR50313 (gmime.i) which prima-facie appeared to exhibit the same behaviour as this particular testcase and that needs reopening and further investigation to be sure that the IR is valid when cfgcleanup decides to eliminate the PIC insn in. cheers Ramana diff --git a/gcc/combine.c b/gcc/combine.c index 4178870..f6b8769 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2865,6 +2865,8 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p, SUBST (PATTERN (i2), XVECEXP (PATTERN (i2), 0, 0)); SUBST (XEXP (SET_SRC (PATTERN (i2)), 0), SET_DEST (PATTERN (i1))); + LOG_LINKS (i2) = alloc_insn_link (i1, LOG_LINKS (i2)); + } } #endif -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
(reg:SI 0 r0) (const_int 0 [0]))) (set (reg:SI 168) (reg:SI 0 r0)) ]) and then further trying to combine insn 188 into insn 189 we get the following Trying 188 -> 189: Failed to match this instruction: (parallel [ (set (reg/v:SI 136 [ badarg ]) (const_int 0 [0])) (set (reg:CC 24 cc) (compare:CC (reg:SI 168) (const_int 0 [0]))) ]) Failed to match this instruction: (parallel [ (set (reg/v:SI 136 [ badarg ]) (const_int 0 [0])) (set (reg:CC 24 cc) (compare:CC (reg:SI 168) (const_int 0 [0]))) ]) Successfully matched this instruction: (set (reg:CC 24 cc) (compare:CC (reg:SI 168) (const_int 0 [0]))) Successfully matched this instruction: (set (reg/v:SI 136 [ badarg ]) (const_int 0 [0])) deferring deletion of insn with uid = 188. modifying insn i2 188 cc:CC=cmp(r168:SI,0) REG_DEAD: r168:SI deferring rescan insn with uid = 188. modifying insn i3 189 r136:SI=0 deferring rescan insn with uid = 189. I still need to debug through try_combine to figure out where everything goes pear shaped but that's my understanding on this bug as of today. Ofcourse, the simple workaround is to simply disable the transformation in this form in the ARM backend (*movsi_compare0) but I don't want to do that before I've finished stepping through combine. diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 794b865..01c2a87 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -5380,7 +5380,7 @@ (const_int 0))) (set (match_operand:SI 0 "s_register_operand" "=r,r") (match_dup 1))] - "TARGET_32BIT" + "TARGET_32BIT && 0" "@ cmp%?\\t%0, #0 sub%.\\t%0, %1, #0" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Branch linked: lp:ubuntu/gmime2.4 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Happens again in the same way in Precise, with -O1 this time (that was added as a work-around). Dropping that work-around and reverting to the default -O2 fixes it. So apparently the original issue is not present in the Precise toolchain? ** Changed in: gmime2.4 (Ubuntu) Status: Fix Released => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
This bug was fixed in the package gmime2.4 - 2.4.31-0ubuntu2 --- gmime2.4 (2.4.31-0ubuntu2) precise; urgency=low * debian/rules: No longer force -O1 on armel, it causes a FTBFS similar to the one it worked-around last cycle. The -O2 default works now. This syncs up armel and armhf again, the latter did not have the work-around in Oneiric (LP: #836588) -- Jani MonosesWed, 11 Jan 2012 16:36:25 +0200 ** Changed in: gmime2.4 (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Branch linked: lp:~ubuntu-desktop/gmime/ubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
I think it would be better to just generate a single insn early on and then to split it once the loop optimizers have had a chance to run. Then the optimizers should be able to throw the whole expression away if it's not needed and hoist it as a whole if it's inside a loop. Splitting it before sched1 would be ideal, but the split could be delayed until after reload if necessary. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
Ramana (or some other ARM maintainer), could you please try to implement this? Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
I'm away of holiday until the 4th of January. For anything urgent, please contact k...@linaro.org. -- Michael -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
Note, can't be reproduced on the trunk, the strcmp isn't DCEd there, but guess the problem is just latent there. It looks like a target bug to me. Before RTL loop opts we have: (insn 91 90 92 13 (set (reg:SI 167) (unspec:SI [ (const:SI (unspec:SI [ (symbol_ref/v/f:SI ("*.LC4") [flags 0x82] ) (const:SI (plus:SI (unspec:SI [ (const_int 4 [0x4]) ] 21) (const_int 8 [0x8]))) ] 27)) ] 3)) pr48308.i:228 170 {pic_load_addr_32bit} (nil)) (insn 92 91 94 13 (set (reg:SI 167) (unspec:SI [ (reg:SI 167) (const_int 8 [0x8]) (const_int 4 [0x4]) ] 4)) pr48308.i:228 173 {pic_add_dot_plus_eight} (expr_list:REG_EQUAL (symbol_ref/v/f:SI ("*.LC4") [flags 0x82] ) (nil))) and the pseudo 167 is then used to load one of the strcmp parameters. Then (probably loop invariant motion) moves insn 91 before the loop, as it looks to be loop invariant, but insn 92 is kept in the loop. Next during RA, the register pressure is high and thus pseudo 167 is spilled, so before the loop there is a store. Then during the *.csa pass DCE is performed and the strcmp is removed, which means insn 92 is removed as well, but the store before the loop of course is kept. And there is no further DSE pass that would optimize that (now dead) store away. So, IMHO arm_reorg needs to handle this case, find out what minipool entries don't have the corresponding UNSPEC_PIC_BASE insn and handle them somehow (either by emitting there a dummy 0 or similar, or trying to replace the insn with UNSPEC_PIC_SYM with something else, ...). That said, perhaps it would be nice to help the loop optimizers somehow figure out that even the UNSPEC_PIC_BASE is loop invariant (wrap it into CONST?). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
(In reply to comment #12) > Please tell me this bug is fixed in gcc 4.6.2 release? If this is fixed in > gcc4.6.2 release can I use the fix patch into gcc 4.6-linaro? > > Thanks & Regards, > Madhu This has not been fixed yet. That's evident from the status of the bug. Ramana -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
Please tell me this bug is fixed in gcc 4.6.2 release? If this is fixed in gcc4.6.2 release can I use the fix patch into gcc 4.6-linaro? Thanks & Regards, Madhu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Launchpad has imported 12 comments from the remote bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48308. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2011-03-28T02:30:01+00:00 Dev-gcc-20110327-b588 wrote: Created attachment 23786 reduced testcase Hello, I tried to crosscompile openssl to arm and it stopped with the following error message: {standard input}: Assembler messages: {standard input}:113: Error: can't resolve `.LC4' {.rodata.str1.1 section} - `.LPIC4' {*UND* section} This happens only if I try to compile the file with "-Os -fPIC". /data/br-build/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -fPIC -Os -c pkeyparam.out.i Output of arm-unknown-linux-uclibcgnueabi-gcc -v: COLLECT_GCC=/data/br-build/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc COLLECT_LTO_WRAPPER=/data/br-build/host/usr/libexec/gcc/arm-unknown-linux-uclibcgnueabi/4.6.0/lto-wrapper Target: arm-unknown-linux-uclibcgnueabi Configured with: /data/br-build/toolchain/gcc-4.6.0/configure --prefix=/home/data/br-build/host/usr --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-unknown-linux-uclibcgnueabi --enable-languages=c --with-sysroot=/data/br-build/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot --with-build-time-tools=/data/br-build/host/usr/arm-unknown-linux-uclibcgnueabi/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp --disable-multilib --disable-tls --enable-shared --with-gmp=/data/br-build/host/usr --with-mpfr=/data/br-build/host/usr --with-mpc=/data/br-build/host/usr --enable-threads --disable-decimal-float --with-float=soft --with-abi=aapcs-linux --with-pkgversion='Buildroot 2011.05-git-dirty' --with-bugurl=http://bugs.buildroot.net/ Thread model: posix gcc version 4.6.0 (Buildroot 2011.05-git-dirty) Output of arm-unknown-linux-uclibcgnueabi-as -version: GNU assembler (GNU Binutils) 2.21 Copyright 2010 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `arm-unknown-linux-uclibcgnueabi' Regards, Gerhard Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/0 On 2011-03-28T07:47:41+00:00 Mikpe wrote: Works for me on armv5tel-linux-gnueabi with gcc-4.6-20110325 (r171529) and binutils-2.20.1 (heavily updated). Please attach the intermediate assembly file. Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/1 On 2011-03-28T12:34:31+00:00 Dev-gcc-20110327-b588 wrote: Created attachment 23791 generated assembler On line 114, the generates assembler code refers to .LPIC4, which does not exists. Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/2 On 2011-03-28T13:09:15+00:00 Mikpe wrote: (In reply to comment #2) > Created attachment 23791 [details] > generated assembler > > On line 114, the generates assembler code refers to .LPIC4, which does not > exists. Indeed. If I compile with -mcpu=arm9tdmi as your assembly file indicates then I lose several lines of code, including the .LPIC4 label and a strcmp() call, but the reference to .LPIC4 remained. Normally I have -march=armv5te -mtune=xscale, and in that case the .LPIC4 label and surrounding code is not lost. Works(*) with gcc-4.4.5 and 4.5.2, so it's a regression. (*) Had to eliminate some apparent C1X-isms from the test case though. Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/3 On 2011-03-28T22:24:05+00:00 Mikpe wrote: It's triggered by r163998: Author: matz Date: Wed Sep 8 12:34:52 2010 New Revision: 163998 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163998 Log: PR tree-optimization/33244 * tree-ssa-sink.c (statement_sink_location): Don't sink into empty loop latches. Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/4 On 2011-03-28T22:57:21+00:00 Mikpe wrote: Created attachment 23793 reduced^2 test case Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/5 On 2011-03-29T15:23:12+00:00 Ibolton wrote: Using trunk, r171422, I have compiled the reduced test case as follows: arm-none-linux-gnueabi-gcc -fPI
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Assigned the LP bug to Ramana as he's assigned to the upstream. ** Changed in: gcc-linaro Assignee: (unassigned) => Ramana Radhakrishnan (ramana) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc Importance: Medium => Unknown ** Changed in: gcc Status: Invalid => Unknown ** Changed in: gcc Remote watch: GCC Bugzilla #50313 => GCC Bugzilla #48308 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
The GCC canonical bug is: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48308 Launchpad won't let me attach it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Changed in: gcc Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588]
Looks like a DUP of PR48308. *** This bug has been marked as a duplicate of bug 48308 *** -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Related: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48308 ** Bug watch added: GCC Bugzilla #48308 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48308 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Launchpad has imported 2 comments from the remote bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2011-09-07T03:56:48+00:00 Michael Hope wrote: Created attachment 25211 Preprocessed source Building gmime with GCC 4.6.1 for ARM gives the following error: michaelh@ursa1:~/linaro/bugs$ gcc -c -O2 -fPIC -save-temps gmime2.i gmime2.s: Assembler messages: gmime2.s:1007: Error: can't resolve `.rodata' {.rodata section} - `.LPIC18' {*UND* section} The assembler is correct - the code references a label which doesn't exist. The suspicious code is around: bl g_hash_table_new(PLT) mov sl, r0 add r0, sp, #32 bl g_mime_decode_lwsp(PLT) ldr r3, .L146+24 ldr r1, [sp, #4] str r3, [sp, #16] ldr r3, [sp, #32] ... .L146: ... .word .LANCHOR0-(.LPIC18+4) The 'ldr r3, .L146+24' references the offset. The value is spilt to the stack before the normal `add r3, pc` and doesn't seem to be used afterwards. The work-around is to compile at -O1 or -O3. The fault also exists in gcc-4.6.1. It does not exist in gcc-4.5.3 or trunk r178025. This is in a Cortex-A9+NEON+Thumb-2 configuration. Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/4 On 2011-09-07T05:55:26+00:00 Mikpe wrote: I suspect this is a dupe of PR48308. Reply at: https://bugs.launchpad.net/gcc/+bug/836588/comments/5 ** Changed in: gcc Status: Unknown => New ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Bug watch added: GCC Bugzilla #50313 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313 ** Also affects: gcc via http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Also affects: gcc-4.6 (Ubuntu) Importance: Undecided Status: New ** Also affects: gcc-4.5 (Ubuntu) Importance: Undecided Status: New ** Changed in: gcc-4.5 (Ubuntu) Importance: Undecided => Medium ** Changed in: gcc-4.5 (Ubuntu) Status: New => Confirmed ** Changed in: gcc-4.6 (Ubuntu) Importance: Undecided => Medium ** Changed in: gcc-4.6 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Thank you for the bug report. I've confirmed this with gcc- linaro-4.6-2011.08 on ARM: michaelh@ursa1:~/linaro/bugs$ /tools/toolchains/arch/armv7l/gcc-linaro-4.6-2011.08-armv7l-natty-cbuild162-ursa1-cortexa9r1/bin/gcc -c -O2 -fPIC -save-temps gmime2.i gmime2.s: Assembler messages: gmime2.s:1007: Error: can't resolve `.rodata' {.rodata section} - `.LPIC18' {*UND* section} The assembler is correct - the code references a label which doesn't exist. The suspicious code is around: bl g_hash_table_new(PLT) mov sl, r0 add r0, sp, #32 bl g_mime_decode_lwsp(PLT) ldr r3, .L146+24 ldr r1, [sp, #4] str r3, [sp, #16] ldr r3, [sp, #32] ... .L146: ... .word .LANCHOR0-(.LPIC18+4) The 'ldr r3, .L146+24' references the offset. The value is spilt to the stack before the normal `add r3, pc` and doesn't seem to be used afterwards. The work-around is to compile at -O1 or -O3. The fault also exists in gcc-4.6.1. It does not exist in gcc-4.5.3 or trunk r178025. Could you please also report this in GCC bugzilla and attach it to this ticket? I've set it to medium priority as it is a ftbfs, a work around exists, and the fault exists on an upstream release branch. ** Changed in: gcc-linaro Status: New => Triaged ** Changed in: gcc-linaro Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Branch linked: lp:ubuntu/gmime2.4 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
This bug was fixed in the package gmime2.4 - 2.4.26-0ubuntu2 --- gmime2.4 (2.4.26-0ubuntu2) oneiric; urgency=low * debian/rules: Work around gcc bug by building with -O1, fixes armel FTBFS. (LP: #836588) -- Jani MonosesMon, 29 Aug 2011 14:03:31 +0300 ** Changed in: gmime2.4 (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] Re: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
** Attachment added: "preprocessed source" https://bugs.launchpad.net/gcc-linaro/+bug/836588/+attachment/2329417/+files/gmime.ii -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 836588] [NEW] armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC
Public bug reported: A reference to an inexistent label in the asm file causes FTBFS. Using -O1 or dropping -fPIC works fine, so does gcc-4.4 with O2 and fPIC on. gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../util -DGMIME_VERSION=\"2.4.26\" -DGMIME_MAJOR_VERSION=2 -DGMIME_MINOR_VERSION=4 -DGMIME_MICRO_VERSION=26 -DG_LOG_DOMAIN=\"gmime\" -DG_DISABLE_DEPRECATED -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -O2 -c gmime-param.c -fPIC -o .libs/gmime-param.o /tmp/ccDqUYcb.s: Assembler messages: /tmp/ccDqUYcb.s:1153: Error: can't resolve `.rodata' {.rodata section} - `.LPIC20' {*UND* section} ** Affects: gcc-linaro Importance: Undecided Status: New ** Affects: gmime2.4 (Ubuntu) Importance: Undecided Status: New ** Also affects: gcc-linaro Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/836588 Title: armel FTBFS with gcc 4.5 org 4.6 O2 and fPIC To manage notifications about this bug go to: https://bugs.launchpad.net/gcc-linaro/+bug/836588/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs