[Bug inline-asm/40124] Inline asm should support limited control flow

2009-05-13 Thread scovich at gmail dot com
--- Comment #9 from scovich at gmail dot com 2009-05-13 07:55 --- RE: __builtin_expect -- Thanks! It did help quite a bit, even though the compiler was already emitting not-taken branch hints on its own. RE: Filing bugs -- I have. This RFE arose out of Bug #40078, which was triggered

[Bug target/40068] GCC fails to apply dllexport attribute to typeinfo.

2009-05-13 Thread dannysmith at users dot sourceforge dot net
--- Comment #6 from dannysmith at users dot sourceforge dot net 2009-05-13 08:12 --- (In reply to comment #5) Also, I don't think this is necessarily an either-or situation; we could add my patch and have the typeinfo exported from the DLL, and also add yours so that clients

[Bug inline-asm/40124] Inline asm should support limited control flow

2009-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2009-05-13 08:19 --- Of course there is a very important reason. If you allow inline asms to change control flow, even just to labels whose address has been taken through label, you penalize a lot of code which doesn't change the

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #18 from jakub at gcc dot gnu dot org 2009-05-13 08:30 --- No, .p2align is the right thing to do, given that GCC doesn't have 100% accurate information about instruction sizes (for e.g. inline asms it can't have, for stuff where branch shortening can decrease the size

[Bug fortran/39624] short-list explicit interfaces in generic interfaces if no match is found

2009-05-13 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last

[Bug libfortran/33905] show_backtrace hangs on SIGSEGV in malloc/free

2009-05-13 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2009-05-13 09:03 --- Frankly, this is a snag in a non-default debugging feature in rare conditions; that has to be a third-order enhancement request, at least! :) We cannot provide completely foolproof debugging capablities anyway:

[Bug c/40128] New: [ARM] Incorrect optimized code = -O2

2009-05-13 Thread al at alarsen dot net
This code: # 1 fs.c # 1 built-in # 1 command line # 1 fs.c int foo(unsigned int bar) { unsigned int mask = bar 0x8001; if (mask 0x8000) mask = 0x8000; return mask; } produces incorrect assembly code with -Os or -O2: .file fs.c .text .align 2

[Bug c/40129] New: M16C invalid shift count used by pack_d - ashldi3

2009-05-13 Thread eightdot at hotmail dot com
some disasm listings to show what is going wrong.. i cant find the guilty source files:-( 000fa8b2 ___pack_d: snip fadb7: 75 42 push.w:g r2//pushing 64 bit exponent [63:48] fadb9: 75 42 push.w:g r2//pushing 64 bit exponent [47:32] fadbb: 75 42 push.w:g

[Bug inline-asm/40124] Inline asm should support limited control flow

2009-05-13 Thread scovich at gmail dot com
--- Comment #11 from scovich at gmail dot com 2009-05-13 09:51 --- If you allow inline asms to change control flow, even just to labels whose address has been taken through label, you penalize a lot of code which doesn't change the control flow, as the compiler will have to

[Bug c/40128] [ARM] Incorrect optimized code = -O2

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #1 from ramana at gcc dot gnu dot org 2009-05-13 09:52 --- Can you try a newer version of the compiler ? 4.1.x is unsupported today. I can see this is fixed on trunk and 4.3 as of revisions 147467 147441. An older version of 4.4 does not show this problem. -- ramana at

[Bug debug/40126] [4.5 Regression] -O2 -g results in: can't resolve `.LFE95' {*UND* section} - `.Ltext0' {.text section}

2009-05-13 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||hubicka at gcc dot gnu dot |

[Bug inline-asm/40124] Inline asm should support limited control flow

2009-05-13 Thread rguenth at gcc dot gnu dot org
--- Comment #12 from rguenth at gcc dot gnu dot org 2009-05-13 09:58 --- I strongly oppose to making asm handling even more complex. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/37179] gcc emits bad opcode 'ffreep'

2009-05-13 Thread uros at gcc dot gnu dot org
--- Comment #16 from uros at gcc dot gnu dot org 2009-05-13 10:06 --- Subject: Bug 37179 Author: uros Date: Wed May 13 10:05:48 2009 New Revision: 147469 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147469 Log: PR target/37179 * config/i386/driver-i386.c

[Bug middle-end/39246] FAIL: gcc.dg/uninit-13.c

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-05-13 10:08 --- I can see this with trunk at r147467 -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39251] FAIL: g++.dg/tree-ssa/new1.C scan-tree-dump-not forwprop1 = .* \+ -

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #3 from ramana at gcc dot gnu dot org 2009-05-13 10:10 --- Appears on trunk as of r147467. -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/37987] iwmmxt: insn does not satisfy its constraints on (int64_t)

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-05-13 10:14 --- Can you check this with a later compiler. 4.2.x is closed. Works for me with current trunk. -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug ada/37109] can't canadian cross ada (if host=target, but host!=build)

2009-05-13 Thread christian dot joensson at gmail dot com
--- Comment #2 from christian dot joensson at gmail dot com 2009-05-13 10:24 --- what is the current situation concerning gnatlib? is that passed explicitly from stage to stage? -- christian dot joensson at gmail dot com changed: What|Removed

[Bug ada/37109] can't canadian cross ada (if host=target, but host!=build)

2009-05-13 Thread christian dot joensson at gmail dot com
--- Comment #3 from christian dot joensson at gmail dot com 2009-05-13 10:25 --- sorry, I meant gnatbind instead of gnatlib... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37109

[Bug target/34341] GCC generates incorrect code on ARM in certain case, resulting in stack corruption

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #1 from ramana at gcc dot gnu dot org 2009-05-13 10:52 --- I see a problem with your testcase here. r is assigned to h which has not been initialized if I uncomment the line //r=h as per your comment above. int test_func(void *p) { dummy_func(); register

[Bug c/40128] [ARM] Incorrect optimized code = -O2

2009-05-13 Thread al at alarsen dot net
--- Comment #2 from al at alarsen dot net 2009-05-13 11:20 --- Created an attachment (id=17856) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17856action=view) preprocessed intermediate -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40128

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread vvv at ru dot ru
--- Comment #19 from vvv at ru dot ru 2009-05-13 11:42 --- (In reply to comment #18) No, .p2align is the right thing to do, given that GCC doesn't have 100% accurate information about instruction sizes (for e.g. inline asms it can't have, for stuff where branch shortening can

[Bug target/37386] Interrupt service routine for arm target corrupts program counter

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-05-13 12:31 --- This appears to be fixed with trunk as of r147467. Can you reproduce this with 4.3 or 4.4 ? If not we can close this one out. _Z18serial_IRQ_Routinev: @ Interrupt Service Routine. @ args = 0, pretend

[Bug target/36966] arm iwmmxt builtin problem

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-05-13 12:34 --- Appears with today's trunk (r147467) with the following options. /home/ramrad01/fsfbugzilla/pr36966.c: In function 'foo': /home/ramrad01/fsfbugzilla/pr36966.c:5: internal compiler error: in arm_expand_binop_builtin,

[Bug target/36798] internal compiler error: in arm_expand_binop_builtin, at config/arm/arm.c:12548

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #7 from ramana at gcc dot gnu dot org 2009-05-13 12:45 --- I get an ICE with trunk as of r146467 using -flax-vector-conversions otherwise the test doesn't compile. -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug bootstrap/40027] [4.4/4.5 regression] i686-pc-solaris2.10 bootstrap fails using Sun ld

2009-05-13 Thread ro at techfak dot uni-bielefeld dot de
--- Comment #5 from ro at techfak dot uni-bielefeld dot de 2009-05-13 13:02 --- Subject: Re: [4.4/4.5 regression] i686-pc-solaris2.10 bootstrap fails using Sun ld jakub at gcc dot gnu dot org writes: Look for DEEP_BRANCH_PREDICTION in config/i386/*. On i386/i486/i586 doing call

[Bug c/37384] Assembler error message when building vlc-0.9.1

2009-05-13 Thread michael dot haubenwallner at salomon dot at
--- Comment #6 from michael dot haubenwallner at salomon dot at 2009-05-13 13:08 --- As this seems to be a bug in glibc headers: Would it be feasible to add an include-fix for this, to be able to use gcc-4.3 with older glibc? -- michael dot haubenwallner at salomon dot at changed:

[Bug rtl-optimization/40086] [4.5 Regression]: cris-elf gfortran.dg/forall_1.f90 -O1 execution

2009-05-13 Thread hp at gcc dot gnu dot org
--- Comment #12 from hp at gcc dot gnu dot org 2009-05-13 13:09 --- The relax_delay_slots (first) call finds that there's a branch to a redundant insn that it can eliminate. It does this by redirecting the branch to a new or existing label and deleting the insn, or rather move it and

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread rguenth at gcc dot gnu dot org
--- Comment #20 from rguenth at gcc dot gnu dot org 2009-05-13 13:31 --- Instruction decoders generally operate on whole cache-lines, so 16-byte chunk very very likely refers to a cache-line. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39942

[Bug tree-optimization/39251] FAIL: g++.dg/tree-ssa/new1.C scan-tree-dump-not forwprop1 = .* \+ -

2009-05-13 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-13 13:35 --- trunk or 4.4? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39251

[Bug c/40128] [ARM] Incorrect optimized code = -O2

2009-05-13 Thread al at alarsen dot net
--- Comment #3 from al at alarsen dot net 2009-05-13 13:37 --- (In reply to comment #1) Can you try a newer version of the compiler ? 4.1.x is unsupported today. I can see this is fixed on trunk and 4.3 as of revisions 147467 147441. An older version of 4.4 does not show this

[Bug fortran/39782] [4.3/4.4 Regression] IO depends on uninitialised value

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2009-05-13 13:47 --- For 4.4 the equivalent diff should be the following (untested). I don't see ad hoc whether the sfree can be removed as well or not. Index: libgfortran/io/transfer.c

[Bug target/40130] New: rint from gcc.c-torture/execute miscompiled with -march=i486

2009-05-13 Thread bonzini at gnu dot org
I see these failures when running the testsuite at -march=i486 (note: execute/ieee means that -mieee-fp is also added to the command line) FAIL: gcc.c-torture/execute/ieee/20010114-2.c execution, -O1 FAIL: gcc.c-torture/execute/ieee/20010114-2.c execution, -O2 FAIL:

[Bug target/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-13 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-05-13 14:07 --- Created an attachment (id=17857) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17857action=view) a test case I've got a small test case from libiberty/concat.c. With -O1, 4.3 compiles vconcat_length to the

[Bug tree-optimization/33404] Predictive commoning + ivopts possibly introducing extra sign extensions.

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #5 from ramana at gcc dot gnu dot org 2009-05-13 14:33 --- (In reply to comment #4) (In reply to comment #3) (In reply to comment #2) Also IV-opts is messing up anyways, it should have done out+1 as the base instead of out, blah. Filed as

[Bug target/39244] Various cleanup tests fail

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-05-13 14:39 --- I don't see these failing with trunk as of 147209 or on an arm-none-linux-gnueabi 4.4.x on the testresults mailing list. Do these still fail for your tester? -- ramana at gcc dot gnu dot org changed:

[Bug c++/40131] New: [C++0x] uniform init with std::string causes internal compiler segfault

2009-05-13 Thread mobileforces at gmail dot com
Produce this bug by the following: std::string foo {bar}; -- Summary: [C++0x] uniform init with std::string causes internal compiler segfault Product: gcc Version: unknown Status: UNCONFIRMED Severity: major

[Bug c/37384] Assembler error message when building vlc-0.9.1

2009-05-13 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2009-05-13 14:48 --- (In reply to comment #6) As this seems to be a bug in glibc headers: Would it be feasible to add an include-fix for this, to be able to use gcc-4.3 with older glibc? It should have already been. As libgfortran

[Bug target/38703] testsuite __gnu_mcount_nc link error when profiling on arm

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #5 from ramana at gcc dot gnu dot org 2009-05-13 14:51 --- (In reply to comment #1) That's what dg-require-profiling does. IMHO this is a deficiency in your glibc. It's very hard to distinguish between something is subtly busted and my glibc sucks, so I'm not sure

[Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or END PROGRAM

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-13 14:53 --- Subject: Bug 34153 Author: burnus Date: Wed May 13 14:52:54 2009 New Revision: 147477 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147477 Log: 2009-05-13 Tobias Burnus bur...@net-b.de PR

[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-13 Thread dodji at gcc dot gnu dot org
--- Comment #2 from dodji at gcc dot gnu dot org 2009-05-13 14:58 --- Patch submitted for review at http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00706.html. -- dodji at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39251] FAIL: g++.dg/tree-ssa/new1.C scan-tree-dump-not forwprop1 = .* \+ -

2009-05-13 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2009-05-13 15:20 --- Subject: Re: FAIL: g++.dg/tree-ssa/new1.C scan-tree-dump-not forwprop1 = .* \+ - trunk or 4.4? I see it in trunk revision 147374. Dave -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39251

[Bug c/37384] Assembler error message when building vlc-0.9.1

2009-05-13 Thread michael dot haubenwallner at salomon dot at
--- Comment #8 from michael dot haubenwallner at salomon dot at 2009-05-13 15:21 --- (In reply to comment #7) (In reply to comment #6) Would it be feasible to add an include-fix for this It should have already been. As libgfortran uses those headers. Hmm, cannot find anything

[Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or END PROGRAM

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-13 16:14 --- FIXED on the trunk (4.5). Thanks for the bug report! -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/40126] [4.5 Regression] -O2 -g results in: can't resolve `.LFE95' {*UND* section} - `.Ltext0' {.text section}

2009-05-13 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-05-13 16:32 --- It is caused by revision 14734: http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00316.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40126

[Bug target/40130] rint from gcc.c-torture/execute miscompiled with -march=i486

2009-05-13 Thread ubizjak at gmail dot com
--- Comment #2 from ubizjak at gmail dot com 2009-05-13 16:34 --- Adding -ffloat-store also fixes these failures. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40130

[Bug target/35623] RTL check failure in arm_const_double_rtx

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #3 from ramana at gcc dot gnu dot org 2009-05-13 16:34 --- Can you try a later compiler ? -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/39836] [4.4/4.5 regression] unoptimal code generated

2009-05-13 Thread ramana at gcc dot gnu dot org
-- ramana at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last

[Bug target/40130] rint from gcc.c-torture/execute miscompiled with -march=i486

2009-05-13 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2009-05-13 16:50 --- Subject: Re: rint from gcc.c-torture/execute miscompiled with -march=i486 On Wed, 13 May 2009, ubizjak at gmail dot com wrote: Adding -ffloat-store also fixes these failures. ieee.exp already uses

[Bug regression/40132] New: failure to assign asm constraints properly

2009-05-13 Thread rostedt at goodmis dot org
# gcc -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.4.0/configure --prefix=/usr/local/dist --program-prefix=dist- --without-doc --enable-bootstrap Thread model: posix gcc version 4.4.0 (GCC) I just compiled to gcc 4.4.0 (replacing my 4.2.2 version) and found

[Bug libstdc++/40133] New: exception propagation support not enabled in libstdc++ 4.4 on {armeabi,hppa}-linux

2009-05-13 Thread debian-gcc at lists dot debian dot org
Tracking http://gcc.gnu.org/ml/gcc/2009-05/msg00035.html as a bug report. Paolo checked in a patch in rev 147123 on the gcc-4_4-branch to do link tests for the atomic builtins, which works ok on hppa, but fails for arm. -- Summary: exception propagation support not enabled in

[Bug target/40134] New: symbols not resolved when building shared libraries (link with -lgcc_s -lgcc?)

2009-05-13 Thread debian-gcc at lists dot debian dot org
this showed up when trying to address PR40133. Enabling the exception propagation support keeps the __sync_val_compare_and_swap_4 unresolved. /usr/bin/ld: ./atomic-1.exe: hidden symbol `__sync_val_compare_and_swap_4' in /home/doko/gcc/4.4/gcc-4.4-4.4.0/build/gcc/libgcc.a(linux-atomic.o) is

[Bug libstdc++/40133] exception propagation support not enabled in libstdc++ 4.4 on {armeabi,hppa}-linux

2009-05-13 Thread debian-gcc at lists dot debian dot org
--- Comment #1 from debian-gcc at lists dot debian dot org 2009-05-13 17:07 --- the arm failure is PR40134 now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40133

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread vvv at ru dot ru
--- Comment #21 from vvv at ru dot ru 2009-05-13 17:13 --- I guess! Your patch is absolutely correct for AMD AthlonTM 64 and AMD OpteronTM processors, but it is nonoptimal for Intel processors. Because: 1. AMD limitation for 16-bytes page (memory range XXX0 - XXXF), but Intel

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-13 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2009-05-13 17:15 --- FAIL: gfortran.dg/interface_19.f90 -O0 (test for excess errors) FAIL: gfortran.dg/proc_ptr_result_1.f90 -O0 (test for excess errors) The last of these three test cases is probably invalid, the second failure

[Bug regression/40132] failure to assign asm constraints properly

2009-05-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-13 17:17 --- What GCC is doing is correct according to the source you gave it. The source needs to be modified to mark old as being an early clobber. Like: asm volatile( 1: _ASM_MOV (%[parent]),

[Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures

2009-05-13 Thread matz at gcc dot gnu dot org
--- Comment #4 from matz at gcc dot gnu dot org 2009-05-13 17:51 --- flatten-2.c is the more important one. We leave the static function doubleindirect1 in there, which we shouldn't. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095

[Bug target/40130] rint from gcc.c-torture/execute miscompiled with -march=i486

2009-05-13 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-13 17:57 --- So -- invalid? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40130

[Bug target/40130] rint from gcc.c-torture/execute miscompiled with -march=i486

2009-05-13 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2009-05-13 18:16 --- (In reply to comment #4) So -- invalid? There was a reason Paolo reported this problem, so let him have the last word. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40130

[Bug middle-end/39976] [4.5 Regression] Big sixtrack degradation on powerpc 32/64 after revision r146817

2009-05-13 Thread matz at gcc dot gnu dot org
--- Comment #14 from matz at gcc dot gnu dot org 2009-05-13 18:16 --- http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00753.html should fix it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39976

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread ubizjak at gmail dot com
--- Comment #22 from ubizjak at gmail dot com 2009-05-13 18:22 --- (In reply to comment #21) I guess! Your patch is absolutely correct for AMD AthlonTM 64 and AMD OpteronTM processors, but it is nonoptimal for Intel processors. Because: ... CCing H.J for Intel optimization issues.

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread rguenth at gcc dot gnu dot org
--- Comment #23 from rguenth at gcc dot gnu dot org 2009-05-13 18:34 --- Note that we need something that works for the generic model as well, which in this case looks like it is the same as for AMD models. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39942

[Bug libstdc++/40133] exception propagation support not enabled in libstdc++ 4.4 on {armeabi,hppa}-linux

2009-05-13 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-05-13 18:42 --- To be clear, due to PR40134, the patch mentioned has been reverted for now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40133

[Bug libstdc++/40133] exception propagation support not enabled in libstdc++ 4.4 on {armeabi,hppa}-linux

2009-05-13 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-05-13 18:42 --- To be clear, due to PR40134, the patch mentioned has been reverted for now. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread hjl dot tools at gmail dot com
--- Comment #24 from hjl dot tools at gmail dot com 2009-05-13 18:45 --- Using padding to avoid 4 branches in 16byte chunk may not be a good idea since it will increase code size. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39942

[Bug target/37386] Interrupt service routine for arm target corrupts program counter

2009-05-13 Thread fede dot tft at hotmail dot it
--- Comment #3 from fede dot tft at hotmail dot it 2009-05-13 18:53 --- (In reply to comment #2) This appears to be fixed with trunk as of r147467. Can you reproduce this with 4.3 or 4.4 ? If not we can close this one out. Tested with GCC 4.3.2, the bug is fixed. --

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread vvv at ru dot ru
--- Comment #25 from vvv at ru dot ru 2009-05-13 18:56 --- (In reply to comment #22) CCing H.J for Intel optimization issues. VVV 1. AMD limitation for 16-bytes page (memory range XXX0 - XXXF), but VVV Intel limitation for 16-bytes chunk (memory range - +10h)

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread vvv at ru dot ru
--- Comment #26 from vvv at ru dot ru 2009-05-13 19:05 --- (In reply to comment #23) Note that we need something that works for the generic model as well, which in this case looks like it is the same as for AMD models. There is processor property TARGET_FOUR_JUMP_LIMIT, may be create

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #27 from jakub at gcc dot gnu dot org 2009-05-13 19:08 --- If inserting the padding isn't worth it for say core2, m_CORE2 could be dropped from X86_TUNE_FOUR_JUMP_LIMIT, but certainly it would be interesting to see SPEC numbers backing that up. Similarly for AMD CPUs, and

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread vvv at ru dot ru
--- Comment #28 from vvv at ru dot ru 2009-05-13 19:18 --- (In reply to comment #24) Using padding to avoid 4 branches in 16byte chunk may not be a good idea since it will increase code size. It's enough only one byte NOP per 16-byte chunk for padding. But, IMHO, four branches in 16

[Bug fortran/31519] spurious ICE messages when module does not compile

2009-05-13 Thread fxcoudert at gcc dot gnu dot org
--- Comment #8 from fxcoudert at gcc dot gnu dot org 2009-05-13 19:37 --- I used to see that, but now not any more. Does someone else still see this happening? And with what testcase? -- fxcoudert at gcc dot gnu dot org changed: What|Removed

[Bug bootstrap/24382] ORIGINAL_LD_FOR_TARGET has bizarre value

2009-05-13 Thread fxcoudert at gcc dot gnu dot org
--- Comment #8 from fxcoudert at gcc dot gnu dot org 2009-05-13 19:48 --- As far as I know, this one has disappeared a long time ago. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/38900] ICE: unable to find a register to spill

2009-05-13 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2009-05-13 20:04 --- Simpler testcase, confirmed on native i386-pc-mingw32 (trunk, SVN rev. 147441): $ cat a.c void __attribute__((dllimport,fastcall)) h(int); void f() { h(2); h(1); } $ gcc -S -O1 a.c -foptimize-sibling-calls

[Bug middle-end/39976] [4.5 Regression] Big sixtrack degradation on powerpc 32/64 after revision r146817

2009-05-13 Thread matz at gcc dot gnu dot org
--- Comment #15 from matz at gcc dot gnu dot org 2009-05-13 20:14 --- Subject: Bug 39976 Author: matz Date: Wed May 13 20:14:44 2009 New Revision: 147494 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147494 Log: PR middle-end/39976 * tree-outof-ssa.c

[Bug target/34625] msgl-check.c:199: error: unrecognizable insn:

2009-05-13 Thread fxcoudert at gcc dot gnu dot org
--- Comment #10 from fxcoudert at gcc dot gnu dot org 2009-05-13 20:24 --- Fixed, at least for current trunk. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40135] New: using alias-set zero for union accesses necessary because of RTL alias oracle

2009-05-13 Thread rguenth at gcc dot gnu dot org
The RTL alias oracle does defer to TBAA even for the case of disambiguating two accesses based on decls. This makes /* Permit type-punning when accessing a union, provided the access is directly through the union. For example, this code does not permit taking the address of a union

[Bug middle-end/40135] using alias-set zero for union accesses necessary because of RTL alias oracle

2009-05-13 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-13 20:31 --- The tree alias oracle gets this right. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40135

[Bug middle-end/39986] decimal float constant is incorrect when cc1 is a 64-bit binary

2009-05-13 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2009-05-13 20:46 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40035] ICE when cross-compiling with -Os

2009-05-13 Thread bje at gcc dot gnu dot org
--- Comment #2 from bje at gcc dot gnu dot org 2009-05-13 20:52 --- Subject: Bug 40035 Author: bje Date: Wed May 13 20:52:00 2009 New Revision: 147498 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147498 Log: PR middle-end/40035 * dse.c (check_mem_read_rtx):

[Bug middle-end/40035] ICE when cross-compiling with -Os

2009-05-13 Thread bje at gcc dot gnu dot org
--- Comment #3 from bje at gcc dot gnu dot org 2009-05-13 20:56 --- Fixed. -- bje at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/40035] ICE when cross-compiling with -Os

2009-05-13 Thread bje at gcc dot gnu dot org
--- Comment #4 from bje at gcc dot gnu dot org 2009-05-13 21:42 --- Subject: Bug 40035 Author: bje Date: Wed May 13 21:42:03 2009 New Revision: 147501 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147501 Log: Backport from mainline: PR middle-end/40035 * dse.c

[Bug target/39942] Nonoptimal code - leaveq; xchg %ax,%ax; retq

2009-05-13 Thread hjl dot tools at gmail dot com
--- Comment #29 from hjl dot tools at gmail dot com 2009-05-13 21:44 --- Created an attachment (id=17858) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17858action=view) Impact of X86_TUNE_FOUR_JUMP_LIMIT on SPEC CPU 2K This is my old data of X86_TUNE_FOUR_JUMP_LIMIT on Penryn

[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-13 Thread dodji at gcc dot gnu dot org
-- dodji at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dodji at gcc dot gnu dot org |dot org

[Bug target/34341] GCC generates incorrect code on ARM in certain case, resulting in stack corruption

2009-05-13 Thread awalbran at innaworks dot com
--- Comment #2 from awalbran at innaworks dot com 2009-05-13 21:27 --- Yes, I agree that the testcase does not make much sense, it is just the smallest testcase that I could find which demonstrates the bug. It is fine that the return value is undefined; the problem is that the stack

[Bug preprocessor/36674] #include location is offset by one row in errors from preprocessed files

2009-05-13 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2009-05-13 23:18 --- Subject: Bug 36674 Author: manu Date: Wed May 13 23:17:55 2009 New Revision: 147504 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147504 Log: 2009-05-14 Manuel Lopez-Ibanez m...@gcc.gnu.org PR

[Bug preprocessor/36674] #include location is offset by one row in errors from preprocessed files

2009-05-13 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2009-05-13 23:19 --- FIXED in GCC 4.5 -- manu at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug c/40136] New: Initializing a union whose first member is an anonymous struct

2009-05-13 Thread markleone at gmail dot com
Not sure if this is a bug or a standards interpretation issue. Consider the following union, whose first member is an anonymous struct: union Foo { struct { float a,b,c; }; const char* x; }; icc (10.1) permits initialization of the first member of the union: Foo foo = { .0f, .0f, .0f

[Bug c++/40137] New: Segmentation fault compiling simple c++ code

2009-05-13 Thread piccinini dot santiago at gmail dot com
san ~ $ g++ -v -save-temps gcc4.4.0_segfaults.cpp Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info

[Bug target/38703] testsuite __gnu_mcount_nc link error when profiling on arm

2009-05-13 Thread ramana at gcc dot gnu dot org
--- Comment #7 from ramana at gcc dot gnu dot org 2009-05-13 23:56 --- Marking as WONTFIX as per comment#1 above. -- ramana at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40137] Segmentation fault compiling simple c++ code

2009-05-13 Thread piccinini dot santiago at gmail dot com
--- Comment #1 from piccinini dot santiago at gmail dot com 2009-05-13 23:56 --- Created an attachment (id=17859) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17859action=view) preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40137

[Bug fortran/39865] ICE in gfc_conv_scalarized_array_ref

2009-05-13 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2009-05-14 00:00 --- Subject: Bug 39865 Author: jakub Date: Thu May 14 00:00:27 2009 New Revision: 147507 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147507 Log: PR fortran/39865 * io.c (resolve_tag_format):

[Bug target/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-13 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2009-05-14 00:12 --- Created an attachment (id=17860) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17860action=view) A patch A binary search on trunk shows me that the patch in r146829 and its follow-up r146988 fix the issue. See

[Bug rtl-optimization/40086] [4.5 Regression]: cris-elf gfortran.dg/forall_1.f90 -O1 execution

2009-05-13 Thread hp at gcc dot gnu dot org
--- Comment #13 from hp at gcc dot gnu dot org 2009-05-14 00:12 --- By chance I stumbled upon an old fix I did some years ago in which I changed a use of next_active_insn to next_real insn (to avoid skipping USE insns). You can see it in comments referring to a now-deleted main use

[Bug c++/40137] Segmentation fault compiling simple c++ code

2009-05-13 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-05-14 00:35 --- *** This bug has been marked as a duplicate of 40013 *** -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug c++/40013] [4.4/4.5 Regression] ICE when creating a local array with size from the return value of a member function of an object in a nested class in a template class

2009-05-13 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-05-14 00:35 --- *** Bug 40137 has been marked as a duplicate of this bug. *** -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug c/40136] Initializing a union whose first member is an anonymous struct

2009-05-13 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2009-05-14 00:42 --- 4.0 branch is closed. Gcc 4.1.2 gave [...@gnu-3 tmp]$ cat u.cc union Foo { struct { float a,b,c; }; const char* x; }; Foo foo = { .0f, .0f, .0f }; Foo foo1 = { foo }; [...@gnu-3 tmp]$ gcc -c u.cc u.cc:7:

[Bug c/40065] spurious format string warnings

2009-05-13 Thread bje at gcc dot gnu dot org
--- Comment #4 from bje at gcc dot gnu dot org 2009-05-14 01:01 --- Andrew wrote: GCC can assume %qE means anything from just printing E in quotes Can you explain this? Is it really the case that the format specifier can have an optional argument? --

[Bug rtl-optimization/40086] [4.5 Regression]: cris-elf gfortran.dg/forall_1.f90 -O1 execution

2009-05-13 Thread hp at gcc dot gnu dot org
--- Comment #14 from hp at gcc dot gnu dot org 2009-05-14 01:18 --- Created an attachment (id=17861) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17861action=view) patch for just the bug at hand. This patch just changes the next_active_insn for the exposure in this PR. I think

[Bug middle-end/39301] ICE in register_overhead, at bitmap.c:115

2009-05-13 Thread bje at gcc dot gnu dot org
--- Comment #7 from bje at gcc dot gnu dot org 2009-05-14 01:31 --- The test case does not run in a GB of RAM on my x86-64 system. It sends the system deep into swap until the out-of-memory manager kicks in. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39301

[Bug target/40129] M16C invalid shift count used by pack_d - ashldi3

2009-05-13 Thread dj at redhat dot com
--- Comment #1 from dj at redhat dot com 2009-05-14 02:52 --- Do you have a test case that shows an actual problem? Because the m32c port has special code that tests for shift counts outside -16..16 and pre-shifts the value to make the shift count fit (see gcc/config/m32c/m32c.c

[Bug libstdc++/19495] basic_string::_M_rep() can produce an unnaturally aligned pointer to _Rep

2009-05-13 Thread bje at gcc dot gnu dot org
--- Comment #26 from bje at gcc dot gnu dot org 2009-05-14 02:54 --- This test now passes on powerpc*-linux-gnu. -- bje at gcc dot gnu dot org changed: What|Removed |Added

  1   2   >