[Bug target/38203] attribute `noreturn' isn't effective when -mthumb param is active

2009-03-24 Thread ramana dot r at gmail dot com
--- Comment #2 from ramana dot r at gmail dot com 2009-03-24 18:34 --- (In reply to comment #1) Created an attachment (id=16728) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16728action=view) [edit] A more involved testcase. This testcase shows the preserving behaviour

[Bug target/36209] arm-*-linux-gnueabi-gcc (4.3.0) segment fault during build of procps-3.2.7

2009-03-24 Thread ramana dot r at gmail dot com
--- Comment #5 from ramana dot r at gmail dot com 2009-03-24 18:53 --- I can confirm that this is fixed with revision 145038 in the 4.3 branch which is due to the fix committed here. http://gcc.gnu.org/viewcvs?view=revrevision=143942 which is essentially a backport of the patch http

[Bug target/39501] -O -ffinite-math-only gets min(x,y) optimization wrong for SF on arm-*-gnueabi

2009-03-19 Thread ramana dot r at gmail dot com
--- Comment #1 from ramana dot r at gmail dot com 2009-03-19 15:53 --- Adding self to CC list - mainline is also broken. The only difference in mainline is that we generate a movle instead of movgt. It should indeed be a moveq instead of a movle. cheers Ramana -- ramana dot r

[Bug target/39501] -O -ffinite-math-only gets min(x,y) optimization wrong for SF on arm-*-gnueabi

2009-03-19 Thread ramana dot r at gmail dot com
--- Comment #2 from ramana dot r at gmail dot com 2009-03-19 16:05 --- Or get rid of the cmp. The Runtime ABI suggests that the Z,N,C flags are set for the result of the comparison. If that is true then the second cmp is unnecessary. Table 5 section 4.1.2 of the ARM Runtime ABI

[Bug target/39501] -O -ffinite-math-only gets min(x,y) optimization wrong for SF on arm-*-gnueabi

2009-03-19 Thread ramana dot r at gmail dot com
--- Comment #4 from ramana dot r at gmail dot com 2009-03-19 16:49 --- (In reply to comment #3) ramana: I think you'll find the flags are only set for the 3-way comparisons. __aeabi_cmple just returns 0 or 1 Use for C = in the table means the C language, not the carry flag. If you

[Bug middle-end/35964] ICE with -funroll-loops on arm/arm eabi

2009-03-17 Thread ramana dot r at gmail dot com
--- Comment #18 from ramana dot r at gmail dot com 2009-03-17 14:27 --- This commit here http://gcc.gnu.org/viewcvs?view=revrevision=143942 which is essentially a backport of the patch http://gcc.gnu.org/viewcvs?view=revrevision=137235 . If this fixes the problem, then the bug can

[Bug middle-end/34109] Incorrect code for tail calls with a structure as 4th argument

2009-03-17 Thread ramana dot r at gmail dot com
--- Comment #2 from ramana dot r at gmail dot com 2009-03-17 14:40 --- This appears to be fixed on mainline on gcc version 4.4.0 20090317 (experimental) (GCC). output obtained 42 69 105 42 69 105 -- ramana dot r at gmail dot com changed: What|Removed

[Bug target/10242] [ARM] subsequent use of plus and minus operators could be improved

2009-03-16 Thread ramana dot r at gmail dot com
--- Comment #4 from ramana dot r at gmail dot com 2009-03-17 00:05 --- Still present with 4.4 mainline as on 20090312 revision. It looks like some sort of relic left behind with the calculations of the soft frame pointer. Maybe a peephole will help. -- ramana dot r at gmail dot com

[Bug rtl-optimization/11222] arm/thumb __Unwind_SjLj_Register prologue optimization causes crash on interrupts

2009-03-16 Thread ramana dot r at gmail dot com
--- Comment #10 from ramana dot r at gmail dot com 2009-03-17 00:11 --- This should be a target bug. Also with mainline the testcase empty described in comment #9 appears fixed. -- ramana dot r at gmail dot com changed: What|Removed |Added

[Bug tree-optimization/39468] New: Constant propagation in a number of tree passes does not take into account machine costs.

2009-03-15 Thread ramana dot r at gmail dot com
Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ramana dot r at gmail dot com GCC build triplet: i686-unknown-linux-gnu GCC host triplet: i686-unknown-linux-gnu GCC target triplet: arm-eabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39468

[Bug tree-optimization/39468] Constant propagation in a number of tree passes does not take into account machine costs.

2009-03-15 Thread ramana dot r at gmail dot com
--- Comment #1 from ramana dot r at gmail dot com 2009-03-15 22:20 --- I took a look at this for some time on Friday and I found that the conditional constant propagation pass has pushed down the value (tree-ssa-ccp.c). This is done by the CCP pass up in the optimization pipeline

[Bug target/9831] [ARM] Peephole for multiple load/store could be more effective.

2009-03-13 Thread ramana dot r at gmail dot com
--- Comment #3 from ramana dot r at gmail dot com 2009-03-13 10:54 --- (In reply to comment #2) See Dara's comment. Occurs even today . foo: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated

[Bug rtl-optimization/11826] [ARM] Minor register allocation problem before function return

2009-03-13 Thread ramana dot r at gmail dot com
--- Comment #6 from ramana dot r at gmail dot com 2009-03-13 12:28 --- (In reply to comment #5) Can an ARM maintainer please check this bug? Comment #4 suggests this bug is fixed, but it needs re-checking now that IRA has been merged. This is now fixed on mainline even after IRA

[Bug target/11831] [ARM] Logical expression evaluation with condition fields

2009-03-13 Thread ramana dot r at gmail dot com
--- Comment #4 from ramana dot r at gmail dot com 2009-03-13 12:33 --- With Mainline today it looks worse - stmfd sp!, {r4, lr} mov r4, r0 bl func add r0, r4, r0 ldrbr3, [r0, #-4] @ zero_extendqisi2 cmp r3, #97

[Bug target/9760] [arm] Combine cannot do its job because immediate operand is used instead of register

2009-03-12 Thread ramana dot r at gmail dot com
--- Comment #6 from ramana dot r at gmail dot com 2009-03-12 18:45 --- With Mainline today gcc produces : stmfd sp!, {r4, lr} mov r1, r0, lsr #24 mov r4, r0 mov r0, #8 bl func mov r1, r4, lsr #16 and r1

[Bug middle-end/39378] Multiple inheritence thunk not working with -mthumb

2009-03-11 Thread ramana dot r at gmail dot com
--- Comment #1 from ramana dot r at gmail dot com 2009-03-11 23:30 --- Patch submitted at http://gcc.gnu.org/viewcvs?view=revrevision=143367 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39378

[Bug target/9663] [arm] gcc-20030127 misses an optimization opportunity

2009-02-07 Thread ramana dot r at gmail dot com
--- Comment #8 from ramana dot r at gmail dot com 2009-02-08 05:17 --- (In reply to comment #7) Note you have to do with -fno-inline now on the mainline as the function is inlined at -O2. It looks as though this is fixed in 4.3 and mainline today. I checked with 4.1 and saw

[Bug target/9703] [arm] Accessing data through constant pool more times could be solved in less instructions

2009-02-07 Thread ramana dot r at gmail dot com
--- Comment #11 from ramana dot r at gmail dot com 2009-02-08 05:23 --- (In reply to comment #10) This might have been implemented for 4.4 already. Section anchors now have been enabled for ARM. 4.4 seems to enable this with section anchors turned on. This is the code generated

[Bug target/39076] internal compiler error when cross-compiling flac

2009-02-04 Thread ramana dot r at gmail dot com
--- Comment #6 from ramana dot r at gmail dot com 2009-02-04 08:34 --- (In reply to comment #5) (In reply to comment #4) Looking at the dumps this rtx is generated by the rename registers pass in 4.3.x . In trunk however rename register does not generate this rtx and hence

[Bug rtl-optimization/39076] internal compiler error when cross-compiling flac

2009-02-04 Thread ramana dot r at gmail dot com
--- Comment #7 from ramana dot r at gmail dot com 2009-02-04 21:56 --- (In reply to comment #6) This has now been committed as revision 143942 in the 4.3 branch - Sven, could you check and get back if you still see a problem . If not this bug can be closed -- http://gcc.gnu.org

[Bug target/36409] Additional instructions in prologue and epilogue.

2009-02-04 Thread ramana dot r at gmail dot com
--- Comment #1 from ramana dot r at gmail dot com 2009-02-04 23:38 --- 4.4.0 with revision id 143499 generates the following code with -O3 , -O2 and -Os . The same code is generated for 4.3.3 as well sub sp, sp, #8 mov r3, sp mov r2, #0

[Bug target/39076] internal compiler error when cross-compiling flac

2009-02-03 Thread ramana dot r at gmail dot com
--- Comment #4 from ramana dot r at gmail dot com 2009-02-03 21:43 --- (In reply to comment #2) No problem with the trunk, but it's still there in the 4.3 branch. Here's a test case. Requires -funroll-loops -Os, no problem with any other -O, or without -funroll-loops

[Bug target/39076] internal compiler error when cross-compiling flac

2009-02-03 Thread ramana dot r at gmail dot com
--- Comment #5 from ramana dot r at gmail dot com 2009-02-03 22:06 --- (In reply to comment #4) Looking at the dumps this rtx is generated by the rename registers pass in 4.3.x . In trunk however rename register does not generate this rtx and hence there is no problem. It could

[Bug lto/39049] New: ICE with an empty function

2009-01-31 Thread ramana dot r at gmail dot com
ReportedBy: ramana dot r at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39049

[Bug lto/39016] New: [LTO] ICE in output_expr_operand because of BLOCK Expressions.

2009-01-29 Thread ramana dot r at gmail dot com
ReportedBy: ramana dot r at gmail dot com GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39016

[Bug bootstrap/39001] lto branch doesn't build

2009-01-28 Thread ramana dot r at gmail dot com
--- Comment #2 from ramana dot r at gmail dot com 2009-01-28 14:49 --- (In reply to comment #0) It doesn't build on SLES10 either, libelf0-0.8.10-36, it ICEs during build of libgcc: ... /gcc/spec/sb-haydn-df-64/gcc/libgcc/../gcc/libgcc2.c:1102: internal compiler error