[Bug debug/43177] Handle at least simple cases of reversible insns in debug info

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-03-02 08:04 --- Unfortunately, the patch didn't bootstrap. One issue is loc_cmp, which asserts everywhere the modes are the same. Which isn't necessarily true, we can end up comparing e.g.: (subreg:QI (value/s/u:DI 28:4092

[Bug fortran/43173] Unnecessary array temporary: Passing contiguous array as actual argument

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2010-03-02 09:16 --- I do not see the temporaries with [...] 4.5.0 20100214 but I see this with [...]4.5.0 20100227 I think the regression is due to: http://gcc.gnu.org/viewcvs?view=revisionrevision=156926 Namely due

[Bug fortran/43173] Unnecessary array temporary: Passing contiguous array as actual argument

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2010-03-02 09:24 --- Completely untested patch: --- trans-array.c (revision 157160) +++ trans-array.c (working copy) @@ -,5 +,5 @@ gfc_conv_array_parameter (gfc_se * se, g no_pack = ((sym sym-as

[Bug rtl-optimization/43226] New: simplify_binary_operation_1 MINUS x const_int issue

2010-03-02 Thread jakub at gcc dot gnu dot org
On 32-bit HWI host calling simplify_binary_operation (MINUS, DImode, (reg/v:DI 60 [ x ]), (const_int -2147483648 [0x8000])) returns (plus:DI (reg/v:DI 60 [ x ]) (const_int -2147483648 [0x8000])) which is wrong. I guess we need to avoid the INTVAL wrap in that case. 2041 /* Don't

[Bug fortran/43227] New: [fortran-dev Regression] ICE: segmentation fault in mio_expr

2010-03-02 Thread dominiq at lps dot ens dot fr
Compiling the original test for pr43199 with fortran-dev revision 157148 gives a segmentation fault: (gdb) run pr43199.f90 Starting program: /opt/gcc/gcc4.5d/libexec/gcc/x86_64-apple-darwin10/4.5.0/f951 pr43199.f90 Reading symbols for shared libraries .. done Program received

[Bug fortran/42274] [fortran-dev Regression] ICE: segmentation fault

2010-03-02 Thread dominiq at lps dot ens dot fr
--- Comment #15 from dominiq at lps dot ens dot fr 2010-03-02 09:47 --- I just opened pr43227 for a similar regression. For the record the backtrace for the test in comment#1 with fortran-dev revision 157148 is (gdb) run pr42274.f90 The program being debugged has been started already.

[Bug fortran/43217] Output of Hollerith constants which are not a multiple of 4 bytes

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-03-02 09:50 --- For DATA gfortran already pads the Hollerith constant; maybe the simplest would be to modify primary.c's match_hollerith_constant to simply add tailing spaces such that the length is multiples of the storage size of,

[Bug fortran/43173] Unnecessary array temporary: Passing contiguous array as actual argument

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2010-03-02 10:01 --- (In reply to comment #8) Completely untested patch: Still untested, but I think it might lead to wrong code with either allocatable(1)%pointer(1:2) ! Potentially non-contiguous or pointer%allocatable(1:2) !

[Bug tree-optimization/42640] wrong code for -ftree-loop-distribution in 175.vpr

2010-03-02 Thread spop at gcc dot gnu dot org
--- Comment #5 from spop at gcc dot gnu dot org 2010-03-02 10:23 --- Subject: Bug 42640 Author: spop Date: Tue Mar 2 10:22:30 2010 New Revision: 157161 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157161 Log: Fix PR42640: Correctly initialize the value of the new induction

[Bug tree-optimization/42640] wrong code for -ftree-loop-distribution in 175.vpr

2010-03-02 Thread spop at gcc dot gnu dot org
--- Comment #6 from spop at gcc dot gnu dot org 2010-03-02 10:24 --- Fixed. -- spop at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/40976] Merge DECL of procedure call with DECL of gfc_get_function_type

2010-03-02 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2010-03-02 10:37 --- Could pr41056 be related to this one? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40976

[Bug debug/43222] two DEBUG i = 0 generated after loop copy header

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-03-02 11:12 --- The extra DEBUG stmts or DEBUG_INSNs only consume memory, they shouldn't affect debug info generation, though perhaps it wouldn't hurt once or twice during gimple optimizations and once or twice during RTL

[Bug target/40457] use stm and ldm to access consecutive memory words

2010-03-02 Thread jiez at gcc dot gnu dot org
-- jiez at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jiez at gcc dot gnu dot org |dot org

[Bug fortran/43228] New: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread luflarois at gmail dot com
When we read this kind of sctructure in gfortran, just the first values (akh20(01,1)) is read. The others values are ignored an receives zeros. akh2o(01,:)=0.02080, 0.01550, 0.01040, 0.00510, 0.00200, 0.00062 akh2o(02,:)=0.17070, 0.12910, 0.08630, 0.04300,

[Bug tree-optimization/42326] [4.5 Regression][graphite] segfault in tree-data-ref.c with Graphite building 200.sixtrack

2010-03-02 Thread spop at gcc dot gnu dot org
--- Comment #10 from spop at gcc dot gnu dot org 2010-03-02 11:39 --- Comment #9 is not the same as the original reported bug. I have a fix for #9. Sebastian -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42326

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-02 Thread jwakely dot gcc at gmail dot com
--- Comment #16 from jwakely dot gcc at gmail dot com 2010-03-02 11:41 --- I might have caused a regression with this change: FAIL: 30_threads/promise/members/set_value3.cc execution test WARNING: program timed out. Will investigate later today... --

[Bug tree-optimization/42326] [4.5 Regression][graphite] segfault in tree-data-ref.c with Graphite building 200.sixtrack

2010-03-02 Thread spop at gcc dot gnu dot org
--- Comment #11 from spop at gcc dot gnu dot org 2010-03-02 11:51 --- Subject: Bug 42326 Author: spop Date: Tue Mar 2 11:51:21 2010 New Revision: 157162 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157162 Log: Fix PR42326: handle default definitions. 2010-03-02 Sebastian Pop

[Bug fortran/43180] [4.5 Regression] Bad results without temporary copy of intent(in) argument

2010-03-02 Thread pault at gcc dot gnu dot org
--- Comment #11 from pault at gcc dot gnu dot org 2010-03-02 11:58 --- Subject: Bug 43180 Author: pault Date: Tue Mar 2 11:58:02 2010 New Revision: 157163 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157163 Log: 2010-03-02 Paul Thomas pa...@gcc.gnu.org PR

[Bug fortran/43173] Unnecessary array temporary: Passing contiguous array as actual argument

2010-03-02 Thread pault at gcc dot gnu dot org
--- Comment #10 from pault at gcc dot gnu dot org 2010-03-02 11:58 --- Subject: Bug 43173 Author: pault Date: Tue Mar 2 11:58:02 2010 New Revision: 157163 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157163 Log: 2010-03-02 Paul Thomas pa...@gcc.gnu.org PR

[Bug fortran/43173] Unnecessary array temporary: Passing contiguous array as actual argument

2010-03-02 Thread pault at gcc dot gnu dot org
--- Comment #11 from pault at gcc dot gnu dot org 2010-03-02 12:10 --- Fixed on trunk, thanks for the report! Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43180] [4.5 Regression] Bad results without temporary copy of intent(in) argument

2010-03-02 Thread pault at gcc dot gnu dot org
--- Comment #12 from pault at gcc dot gnu dot org 2010-03-02 12:11 --- Fixed on trunk, thanks for the report! Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/43225] Structure copies not vectorized

2010-03-02 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-03-02 12:15 --- It's not really the vectorizers job to do this optimization but that of the expander. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43225

[Bug tree-optimization/43224] Constant load not raised out of loop

2010-03-02 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-02 12:18 --- (In reply to comment #4) Is it possible for aliased writes to affect a const pointer? I was assuming that it wasn't. Yes, it is possible. C const qualification doesn't add any useful information for a compiler

[Bug debug/43177] Handle at least simple cases of reversible insns in debug info

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-02 12:34 --- Updated patch which actually bootstraps/regtests posted: http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00096.html -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-02 Thread jwakely dot gcc at gmail dot com
--- Comment #17 from jwakely dot gcc at gmail dot com 2010-03-02 12:44 --- The 30_threads/promise/members/set_value3.cc test had a latent bug which was revealed by the unique_ptr fix. I'll change the test. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43183

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-03-02 12:46 --- Luiz: Can you please state the version of gfortran? (Use: gfortran -v and post the Target: line and the gcc version). Additionally: For a good bugreport, please also include a minimal example. Without an example

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2010-03-02 12:54 --- On powerpc-apple-darwin9, I have the same kind of outputs (1, 4, 7, 8, and 9 are correct, 6 is correct but at the wrong place, the rest is 0 or garbage) for the test in comment#1 from 4.2.4 to trunk. --

[Bug debug/43176] var-tracking fails to notice a value change

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-02 13:17 --- There is another very important issue and that is that emit_note_insn_var_location and vt_expand_loc_callback completely ignores cur_loc, but the code that decides whether a variable actually changed uses heavily

[Bug rtl-optimization/43229] New: [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-02 Thread jv244 at cam dot ac dot uk
/vondele/gcc_trunk/build/ --with-libelf=/data03/vondele/libelf-0.8.12/build/ --enable-gold --enable-lto --enable-plugins Thread model: posix gcc version 4.5.0 20100302 (experimental) [trunk revision 157164] (GCC) COLLECT_GCC_OPTIONS='-g' '-O3' '-ffast-math' '-v' '-shared-libgcc' /data03/vondele

[Bug debug/43229] [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-02 Thread jv244 at cam dot ac dot uk
-- jv244 at cam dot ac dot uk changed: What|Removed |Added Component|rtl-optimization|debug Target Milestone|--- |4.5.0

[Bug c++/43230] New: [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread hjl dot tools at gmail dot com
On Linux/x86, revision 157158: http://gcc.gnu.org/ml/gcc-cvs/2010-03/msg00030.html caused: FAIL: 30_threads/promise/members/set_value3.cc execution test -- Summary: [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

[Bug c++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43230

[Bug target/43175] __builtin_ia32_vec_perm_v4si doesn't work with -msse4.1

2010-03-02 Thread hjl dot tools at gmail dot com
--- Comment #18 from hjl dot tools at gmail dot com 2010-03-02 13:31 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug debug/43229] [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-02 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-03-02 13:41 --- Confirmed on x86_64-apple-darwin10 with '-O3 -g -ffast-math'. It seems to appear between revisions 157098 and 157143. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43229

[Bug debug/43176] var-tracking fails to notice a value change

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-03-02 13:48 --- The disadvantage of clearing cur_loc in check_changed_vars_{1,2} is that we'd lose track of the preferred location. I guess we want to prefer the previous cur_loc (at least if it in the end results in REG or MEM or

[Bug target/43231] New: Vectorizer patterns missing for AVX

2010-03-02 Thread rguenth at gcc dot gnu dot org
There is no vec_unpacks_{hi,lo}_v8sf necessary for v8sf - v8df float extension. Index: config/i386/sse.md === --- config/i386/sse.md (revision 157148) +++ config/i386/sse.md (working copy) @@ -3068,6 +3069,29 @@ (define_expand

[Bug c++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-03-02 14:10 --- see bug 43183 -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread luflarois at gmail dot com
--- Comment #3 from luflarois at gmail dot com 2010-03-02 14:10 --- (In reply to comment #1) Luiz: Can you please state the version of gfortran? (Use: gfortran -v and post the Target: line and the gcc version). Additionally: For a good bugreport, please also include a minimal

[Bug c++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-03-02 14:13 --- The fix is to remove the ~tester destructor, it's invalid to test the future's state from the tester destructor, because the future state has already started being destroyed and its condition_variable and mutex get

[Bug libstdc++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-03-02 14:16 --- P.S. I won't be able to commit the change until later today, in 4-5 hours -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/42585] [4.5 Regression] SRA is not good for structure copies with one replacement any more

2010-03-02 Thread jamborm at gcc dot gnu dot org
--- Comment #10 from jamborm at gcc dot gnu dot org 2010-03-02 14:45 --- (In reply to comment #9) This caused testsuite regressions for 4.4 on (at least) powerpc64 and arm: http://gcc.gnu.org/ml/gcc-testresults/2010-02/msg02633.html

[Bug tree-optimization/43191] [4.5 Regression] ice in load_assign_lhs_subreplacements, at tree-sra.c:2459

2010-03-02 Thread jamborm at gcc dot gnu dot org
--- Comment #2 from jamborm at gcc dot gnu dot org 2010-03-02 14:56 --- Mine. -- jamborm at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-03-02 15:12 --- Jerry, you wrote almost exactly one month ago: Funny how namelist always shows up as we approach release. -- now that we have a new one: Does this mean that we indeed approach a release? In any case, the half life

[Bug c++/43232] New: .eh_frame section created despite -fno-exceptions

2010-03-02 Thread mh+gcc at glandium dot org
With a source as simple as the following: -8 int foo(int a, int b) { return a + b; } -8 a .eh_frame section is created on x86-64 when using -fno-exceptions. The section is *not* created on x86. on x86-64: $ g++ -o test.o -c test.cpp -fno-exceptions $ objdump -h

[Bug libstdc++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread paolo at gcc dot gnu dot org
--- Comment #4 from paolo at gcc dot gnu dot org 2010-03-02 15:36 --- Subject: Bug 43230 Author: paolo Date: Tue Mar 2 15:36:00 2010 New Revision: 157166 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157166 Log: 2010-03-02 Jonathan Wakely jwakely@gmail.com PR

[Bug libstdc++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-03-02 15:37 --- Thanks Jon, I did it for you to make regtesting faster. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/43232] .eh_frame section created despite -fno-exceptions

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-03-02 15:43 --- That's because x86-64 defaults to -fasynchronous-unwind-tables. You really want that by default on x86_64, as frame pointer is usually omitted. -- jakub at gcc dot gnu dot org changed: What

[Bug libstdc++/43230] [4.5 regression] Revision 157158 failed 30_threads/promise/members/set_value3.cc

2010-03-02 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-03-02 15:51 --- Thanks! sorry for the breakage, I missed that regression amongst some other failures in 30_threads/promise which were caused by some local changes. I should have backed them out before testing the fix for bug 43183

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-03-02 16:23 --- Paul confirmed that it (comment 1) also fails on the trunk (4.5.0) -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/43229] [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-02 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2010-03-02 16:34 --- Created an attachment (id=20003) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20003action=view) gcc45-pr43229.patch Untested fix. -- jakub at gcc dot gnu dot org changed: What|Removed

[Bug debug/43229] [4.5 Regression] ice expand_debug_expr, at cfgexpand.c:2957

2010-03-02 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2010-03-02 16:36 --- It is caused by revision 157009: http://gcc.gnu.org/ml/gcc-cvs/2010-02/msg00592.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

[BUG] gcc 3.3 and 3.4, TLS, structure offset and volatile pointer cast

2010-03-02 Thread Mathieu Desnoyers
Hi, I found the following bug in gcc 3.3 and 3.4 with TLS on x86-32. It seems to be OK with gcc 4.0-4.4. This problem affects the Userspace RCU library (http://lttng.org/urcu). I am providing a small test case to show the problem. comp...@compumobile:~/test$ gcc-3.4 -v -save-temps -c -o

[Bug c++/43232] .eh_frame section created despite -fno-exceptions

2010-03-02 Thread mh+gcc at glandium dot org
--- Comment #2 from mh+gcc at glandium dot org 2010-03-02 17:37 --- (In reply to comment #1) That's because x86-64 defaults to -fasynchronous-unwind-tables. You really want that by default on x86_64, as frame pointer is usually omitted. Why would you want

[Bug c++/43232] .eh_frame section created despite -fno-exceptions

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-02 17:40 --- (In reply to comment #2) (In reply to comment #1) That's because x86-64 defaults to -fasynchronous-unwind-tables. You really want that by default on x86_64, as frame pointer is usually omitted. Why would

[Bug c++/43232] .eh_frame section created despite -fno-exceptions

2010-03-02 Thread mh+gcc at glandium dot org
--- Comment #4 from mh+gcc at glandium dot org 2010-03-02 17:48 --- Because it can be used for the backtrace when debugging. Without a frame pointer on x86/x86_64, you cannot get a real backtrace without unwinding info. So, in case I build with -g, I can just use

[Bug c++/43232] .eh_frame section created despite -fno-exceptions

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-03-02 17:52 --- (In reply to comment #4) So, in case I build with -g, I can just use -fno-asynchronous-unwind-tables safely ? Yes it is safe but not recommended though. I should mention the x86_64 elf ABI requires this section

[Bug c++/43232] .eh_frame section created despite -fno-exceptions

2010-03-02 Thread mh+gcc at glandium dot org
--- Comment #6 from mh+gcc at glandium dot org 2010-03-02 17:56 --- (In reply to comment #5) (In reply to comment #4) So, in case I build with -g, I can just use -fno-asynchronous-unwind-tables safely ? Yes it is safe but not recommended though. I should mention the x86_64 elf

[Bug tree-optimization/36905] [4.3/4.4/4.5 Regression] IV-opts needs a little help with a[i+1]

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2010-03-02 18:15 --- Fixed on the trunk. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/37273] [4.4/4.5 Regression] IRA does not re-materializes addresses (loads from the TOC)

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-02 18:18 --- Still happens on the trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37273

[Bug rtl-optimization/36758] [4.3/4.4/4.5 Regression] addition moved out of the loop when used with an argument

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #19 from pinskia at gcc dot gnu dot org 2010-03-02 18:24 --- Here is a testcase which shows the problem on MIPS too: extern int f0(int *, int *); int f1() { int x = 0 , x1 = 0; while (f0(x, x1)); return x + x1; } -- pinskia at gcc dot gnu dot org changed:

[Bug rtl-optimization/37262] Two branches of the same condition being emitted

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 18:29 --- Still happens as of today on the trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37262

[Bug target/32110] vector extract and then vector splat is not optimized

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 18:34 --- Hmm, we get worse code now on the trunk: addi 9,1,-80 li 0,48 stvewx 2,9,0 lwz 0,-32(1) stw 0,-16(1) stw 0,-12(1) stw 0,-8(1) stw 0,-4(1) li

[Bug tree-optimization/36602] memset should be optimized into an empty CONSTRUCTOR

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 18:52 --- We do look through the memset at the tree level now but we don't remove it still. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/37471] Move invariant pulls too many cmps out of a loop

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-02 18:53 --- Still happens on the trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37471

[Bug c++/36431] The C++ front-end produces some NOP_EXPR for vector types

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-02 18:58 --- Even though the C++ front-end produces the NOP_EXPR still, the gimplifier removes them early on and uses VCE instead. So this is no longer a missed optimization. I am unassigning myself too. -- pinskia at gcc

[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 19:01 --- Still happens as of today on the trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38497

[Bug tree-optimization/37166] variable is still committed to stack even though it is not aliased

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 19:05 --- This has been fixed on the trunk. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/38885] missed FRE with BIT_FIELD_REF and vectors

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-02 19:07 --- Still happens as of today. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38885

[Bug tree-optimization/38884] missed FRE with __real and __imag

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-02 19:09 --- Still happens as of today. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38884

[Bug rtl-optimization/30967] Extra sign/zero extend with word comparison result

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 19:14 --- Still happens on the trunk as of today. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30967

[Bug target/43233] New: x86 flags not combined across blocks

2010-03-02 Thread astrange at ithinksw dot com
Source: int g1,g2,g3; int f1(int a, int b) { a = 1; if (a) return g1; return g2; } int f2(int a, int b) { a = 1; if (b) g3++; if (a) return g1; return g2; } Compiled with: gcc -O3 -fomit-frame-pointer -S and_flags.c f1 is ok but f2 generates this: _f2:

[Bug tree-optimization/43234] New: ICE with per-function -ftree-loop-distribution (via attribute optimize or pragma)

2010-03-02 Thread zsojka at seznam dot cz
Command line: gcc -O1 -c testcase.c Tested revisions: trunk r157161 x86_64 - segfault trunk r156472 i686 - segfault trunk r153685 x86_64 - segfault 4.4 r157120 x86_64 - assert at tree-nrv.c:143 4.4 r156591 i686 - OK 4.4 r149995 x86_64 - assert at tree-nrv.c:143 (all with checking=yes) Output

[Bug tree-optimization/43234] ICE with per-function -ftree-loop-distribution (via attribute optimize or pragma)

2010-03-02 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-03-02 19:32 --- Created an attachment (id=20004) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20004action=view) reduced testcase Crashes with both __attribute__((optimize(-ftree-loop-distribution))) and

[Bug c++/41090] [4.3/4.4/4.5 Regression] Using static label reference in c++ class constructor produces wrong code

2010-03-02 Thread mrs at gcc dot gnu dot org
--- Comment #10 from mrs at gcc dot gnu dot org 2010-03-02 19:40 --- Subject: Bug 41090 Author: mrs Date: Tue Mar 2 19:40:02 2010 New Revision: 157172 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157172 Log: PR c++/41090 * g++.dg/ext/label13.C (C::C): xfail for

[Bug target/41176] [4.4/4.5 Regression] ICE in reload_cse_simplify_operands at postreload.c:396

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2010-03-02 19:42 --- The original testcase still ICEs, just not the reduced testcase. On the trunk, the original testcase has: (insn 218 217 219 26 t.c:624 (set (reg/v:DF 203 [ ___F64V2 ]) (mem:DF (plus:DI (reg:DI 197 [

[Bug target/41176] [4.4/4.5 Regression] ICE in reload_cse_simplify_operands at postreload.c:396

2010-03-02 Thread uweigand at gcc dot gnu dot org
--- Comment #11 from uweigand at gcc dot gnu dot org 2010-03-02 19:56 --- (In reply to comment #10) I don't see where reload is creating the whole instruction; maybe I am misunderstanding that statement. Well, after reload you have insn 624, which presumably didn't exist before.

[Bug rtl-optimization/39837] [4.3/4.4/4.5 regression] extra spills due to RTL LICM

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2010-03-02 19:59 --- I think this is the same issue as PR 36758. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43235] New: -Wall gives no warning

2010-03-02 Thread spolematt at gmail dot com
unsigned long long da; da = ( 1234567ULL 32 ) | ( 362436069ULL ); unsigned int a; a = da; I would expect a warning on the assignment of a lower precision data type to a higher precision data type with no cast. gcc V4.4.1-ubuntu with -Wall gives no warning on the above code. The

[Bug c/43235] -Wall gives no warning

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-02 20:08 --- -Wconversion is needed for the warning you want to happen. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43228] NAMELIST I/O: Reading at 2 dimensions (rank) array values.

2010-03-02 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2010-03-02 20:09 --- I will try to get started on this tonight. Is the half-life proportaional to the degrees of freedom? :) -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/39837] [4.3/4.4/4.5 regression] extra spills due to RTL LICM

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2010-03-02 20:10 --- Actually looking at comment #4 shows that is an exact duplicate of PR 36758 so closing as a dup. *** This bug has been marked as a duplicate of 36758 *** -- pinskia at gcc dot gnu dot org changed:

[Bug rtl-optimization/36758] [4.3/4.4/4.5 Regression] addition moved out of the loop when used with an argument

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #20 from pinskia at gcc dot gnu dot org 2010-03-02 20:10 --- *** Bug 39837 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/43236] New: -ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails

2010-03-02 Thread zsojka at seznam dot cz
Tested revisions: trunk r157161 - fail (fix for pr42640 doesn't help) trunk r156598 - fail It causes bootstrap comparison failure with BOOT_CFLAGS=-O2 -ftree-loop-distribution: Comparing stages 2 and 3 warning: gcc/cc1plus-checksum.o differs warning: gcc/cc1-checksum.o differs Bootstrap

[Bug tree-optimization/42729] [4.5 Regression] -fcompare-debug failure with -O1 -fgraphite-identity

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-02 20:17 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug tree-optimization/42729] [4.5 Regression] -fcompare-debug failure with -O1 -fgraphite-identity

2010-03-02 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last

[Bug tree-optimization/43236] -ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails

2010-03-02 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-03-02 20:20 --- Created an attachment (id=20005) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20005action=view) this patch causes bootstrap with BOOT_CFLAGS=-O2 -ftree-loop-distribution to assert Assert message is:

[Bug tree-optimization/43065] [4.5 Regression] gcc.c-torture/execute/20051215-1.c is miscompiled with -fgraphite-identity

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 20:31 --- Confirmed, the testcase is gcc.c-torture/execute/20051215-1.c by the way. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/43236] -ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails

2010-03-02 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-03-02 20:33 --- Created an attachment (id=20006) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20006action=view) this patch causes regular bootstrap to assert Assert message is: /mnt/svn/gcc-trunk/libgcc/../gcc/libgcc2.c: In

[Bug target/43196] [4.5 regression] ICE in dwarf2out_frame_debug_expr

2010-03-02 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug debug/43237] New: [4.5 Regression] Wrong DW_AT_upper_bound

2010-03-02 Thread jakub at gcc dot gnu dot org
On x86_64-linux with -O2 -g gcc creates invalid DW_AT_upper_bound: struct S { int *a; int b; int **c; int d; }; void foo (struct S *); void bar (struct S *); int baz (void) { struct S s; foo (s); { int a[s.b]; int *c[s.d]; s.a = a; s.c = c; bar (s); } return

[Bug c/43238] New: GCC 4.5 ICE segfault on any -O flag

2010-03-02 Thread il dot basso dot buffo at gmail dot com
The attached preprocessed file (from the mplayer sources) results in a GCC 4.5 (today's SVN snapshot) segfault when compiled with any -O flag. Compilation without -O completes correctly. gcc -O -c -o af_format.o af_format.c af_format.pre.c: In function 'play': af_format.pre.c:1166:19: internal

[Bug c/43238] GCC 4.5 ICE segfault on any -O flag

2010-03-02 Thread il dot basso dot buffo at gmail dot com
--- Comment #1 from il dot basso dot buffo at gmail dot com 2010-03-02 20:53 --- Created an attachment (id=20007) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20007action=view) Preprocessed C source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43238

[Bug middle-end/43238] GCC 4.5 ICE segfault on any -O flag

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-02 20:58 --- af_format.pre.c: In function ‘play’: af_format.pre.c:1166:19: internal compiler error: in try_improve_iv_set, at tree-ssa-loop-ivopts.c:5238 Please submit a full bug report, with preprocessed source if

[Bug middle-end/43238] GCC 4.5 ICE segfault on any -O flag

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-02 20:58 --- *** This bug has been marked as a duplicate of 43209 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/43209] [4.5 Regression] ICE in try_improve_iv_set, at tree-ssa-loop-ivopts.c:5238

2010-03-02 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2010-03-02 20:58 --- *** Bug 43238 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43239] New: Profile timer hangs fork()

2010-03-02 Thread Greg dot Beeley at LightSys dot org
I'm not sure if this should be reported on glibc or gcc, so I'll report it here first. When a program is compiled with -pg, and the SIGPROF signal occurs during (perhaps certain points in) the fork () system call, it causes the program to enter an endless loop of re-calling fork() and having the

[Bug target/43196] [4.5 regression] ICE in dwarf2out_frame_debug_expr

2010-03-02 Thread jason at gcc dot gnu dot org
--- Comment #3 from jason at gcc dot gnu dot org 2010-03-02 21:11 --- I'm not seeing this with a cross-compiler. -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/43240] New: Code does not work at -O1

2010-03-02 Thread bdavis at gcc dot gnu dot org
the code below behaves differently at -O1 and -O2. #include stdio.h static void swapcopy_int( int * target, char * source, int num_bytes ) { int * to = target ; int * from = (int *) source ; for(int count=0; count num_bytes/sizeof(int); count++ ){ int t2 ; int

[Bug middle-end/43238] GCC 4.5 ICE segfault on any -O flag

2010-03-02 Thread changpeng dot fang at amd dot com
--- Comment #4 from changpeng dot fang at amd dot com 2010-03-02 21:56 --- I have verified that the patch proposed in bug 43209 did fix this problem. I am going to checkin the change soon. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43238

[Bug rtl-optimization/36758] [4.3/4.4/4.5 Regression] addition moved out of the loop when used with an argument

2010-03-02 Thread steven at gcc dot gnu dot org
--- Comment #21 from steven at gcc dot gnu dot org 2010-03-02 21:56 --- Prototype patch here: http://gcc.gnu.org/bugzilla/attachment.cgi?id=19755 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36758

  1   2   >