Re: [Bug tree-optimization/32183] [4.3 Regression] reassoc2 can more extra calculations into a loop

2007-10-10 Thread Daniel Berlin
On 10 Oct 2007 08:58:00 -, steven at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #33 from steven at gcc dot gnu dot org 2007-10-10 08:57 --- What happened with the suggestion to only do this in reassoc2 (see comment #27)? Yeah, i'm not sure why we just made both

Re: [Bug c++/33604] [4.3 Regression] Revision 119502 causes significantly slower results with 4.3 compared to 4.2

2007-10-01 Thread Daniel Berlin
I'm not fixing this until someone can tell me what exactly is going wrong. There have been *so* many changes to PTA since that revision that the majority of the code it touched doesn't even do the same thing anymore. My guess is that this is a case where adding extra vdefs/vuses made some dumb

Re: [Bug c/32575] [4.2/4.3 regression] With -ftree-vrp miscompiles a single line of code in SQLite

2007-09-05 Thread Daniel Berlin
On 28 Aug 2007 15:58:29 -, jakub at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #6 from jakub at gcc dot gnu dot org 2007-08-28 15:58 --- if (a == 0) a = bar (); isn't necessary either. salias has: # BLOCK 2 freq:1 # PRED: ENTRY [100.0%] (fallthru,exec)

Re: [Bug tree-optimization/33159] [4.3 Regression] wrong VDEF for gcc.target/i386/cmov4.c

2007-08-23 Thread Daniel Berlin
Yes, you are right. I wasn't thinking clearly --- Comment #4 from bonzini at gnu dot org 2007-08-23 14:04 --- Hmmm, a store into an int * could not touch nodekind itself, only a store into an int ** could. Isn't SMT.8 the VDEF saying it could touch *the thing pointed to by

Re: [Bug c++/32900] New: [4.2/4.3 regression] compile time and memory regression

2007-07-25 Thread Daniel Berlin
Points-to memory with these is almost nothing, so don't look at meef. It looks like size goes up for each function and is not fully recovered by the time we start the next. On 25 Jul 2007 22:25:22 -, debian-gcc at lists dot debian dot org [EMAIL PROTECTED] wrote: [forwarded from

Re: [Bug tree-optimization/32746] [4.3 Regression] tree-ssa-operands int.comp error

2007-07-22 Thread Daniel Berlin
I already submitted a patch for this (see my followup to HP that fixes valid_gimple_expression_p). As soon as i can bootstrap on darwin, i will commit it. If someone wants to do so before me, all you need to do is change is_gimple_addressable to is_gimple_id in valid_gimple_expression_p

Re: [Bug tree-optimization/32746] [4.3 Regression] tree-ssa-operands int.comp error

2007-07-13 Thread Daniel Berlin
valid_gimple_expression_p claims ((struct RegisterLayout *) (char *) SimulatedRegisters)-intmask; is valid GIMPLE, when it is not. On 13 Jul 2007 23:37:00 -, hp at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #4 from hp at gcc dot gnu dot org 2007-07-13 23:36 ---

Re: [Bug tree-optimization/32705] [4.3 regression] ICE in set_ssa_val_to, at tree-ssa-sccvn.c:1022

2007-07-11 Thread Daniel Berlin
The only way i can see this happening is if you have a truly uninitialized variable, or there is something we have missed. Does this function have cfun-static_chain_decl being used, and we have a copy of that here? It is theoretically safe to call set_ssa_to_val with to == vn_top, but it's

Re: [Bug tree-optimization/32328] [4.2/4.3 Regression] -fstrict-aliasing causes skipped code

2007-07-04 Thread Daniel Berlin
On 4 Jul 2007 03:29:25 -, mmitchel at gcc dot gnu dot org [EMAIL PROTECTED] wrote: -- Just as an update: I have been working with richi (I code, he tests :P) diligently on a patch for mainline, and have one that fixes the dealii regression (and thus, should fix this as well).

Re: [Bug middle-end/30075] Missed optimizations with -fwhole-program -combine

2007-06-26 Thread Daniel Berlin
On 26 Jun 2007 03:10:26 -, acahalan at gmail dot com [EMAIL PROTECTED] wrote: --- Comment #4 from acahalan at gmail dot com 2007-06-26 03:10 --- (In reply to comment #3) Subject: Re: Missed optimizations with -fwhole-program -combine I would not expect this to be fixed anytime

Re: [Bug tree-optimization/30052] [4.2 Regression] possible quadratic behaviour.

2007-05-20 Thread Daniel Berlin
On 20 May 2007 04:57:45 -, pluto at agmk dot net [EMAIL PROTECTED] wrote: --- Comment #25 from pluto at agmk dot net 2007-05-20 05:57 --- Subject: Re: [4.2 Regression] possible quadratic behaviour. -- Change line 4275 of the patched tree-ssa-structalias.c to be rhs.var =

Re: [Bug tree-optimization/30052] [4.2 Regression] possible quadratic behaviour.

2007-05-19 Thread Daniel Berlin
On 19 May 2007 14:30:43 -, pluto at agmk dot net [EMAIL PROTECTED] wrote: --- Comment #21 from pluto at agmk dot net 2007-05-19 15:30 --- with this patc gcc works much better. xf86ScanPci.i : 84MB / ~5sec. sipQtCorepart0.ii.bz2 : 340MB / ~440sec There are optimizations

Re: [Bug tree-optimization/30052] [4.2 Regression] possible quadratic behaviour.

2007-05-19 Thread Daniel Berlin
On 19 May 2007 17:16:35 -, pluto at agmk dot net [EMAIL PROTECTED] wrote: --- Comment #23 from pluto at agmk dot net 2007-05-19 18:16 --- bad news, this patch ices fortran build: (...) ../../../libgfortran/intrinsics/selected_int_kind.f90:22: internal compiler error: in

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-05-14 Thread Daniel Berlin
On 14 May 2007 08:25:27 -, rguenth at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #60 from rguenth at gcc dot gnu dot org 2007-05-14 09:25 --- But it doesn't have a result, does it? Given that, I wonder how moving stmts across it is prevented? Okay, so then it

Re: [Bug tree-optimization/30604] Unable to coalesce ssa_names x and y which are marked as MUST COALESCE

2007-03-09 Thread Daniel Berlin
On 8 Mar 2007 20:12:16 -, amacleod at redhat dot com [EMAIL PROTECTED] wrote: --- Comment #7 from amacleod at redhat dot com 2007-03-08 20:12 --- Looking at the original testcase, the complaint is that _t_8232 and _t_3 are both used in the PHI definition of _t_7. (using mainline

Re: [Bug tree-optimization/30089] Compiling FreeFem3d uses unreasonable amount of time and memory

2007-01-13 Thread Daniel Berlin
okay, i'll update changelog, submit and commit. On 13 Jan 2007 23:02:13 -, rguenth at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #21 from rguenth at gcc dot gnu dot org 2007-01-13 23:02 --- The patch fixed the freefem memory regression. --

Re: [Bug tree-optimization/30089] Compiling FreeFem3d uses unreasonable amount of time and memory

2007-01-09 Thread Daniel Berlin
Try the attached, let me know how it goes. On 9 Jan 2007 21:17:05 -, rguenth at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #16 from rguenth at gcc dot gnu dot org 2007-01-09 21:17 --- Pling! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30089 ---

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-01-01 Thread Daniel Berlin
On 1 Jan 2007 00:41:44 -, mark at codesourcery dot com [EMAIL PROTECTED] wrote: --- Comment #26 from mark at codesourcery dot com 2007-01-01 00:41 --- Subject: Re: [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should dberlin at gcc dot gnu

Re: [Bug tree-optimization/29922] [4.3 Regression] [Linux] ICE in insert_into_preds_of_block

2006-12-19 Thread Daniel Berlin
I will try to get back to this bug this week. I was fighting some other fights last week, i apologize.

Re: [Bug libstdc++/30203] New: std::vector::size() 10x speedup (patch)

2006-12-14 Thread Daniel Berlin
And what are the timings with a recent version of g++ and actually turning on optimization? On 13 Dec 2006 17:38:06 -, charles at rebelbase dot com [EMAIL PROTECTED] wrote: vector::size() in bits/stl_vector.h is currently implemented as size_type size() const { return

Re: [Bug middle-end/30075] Missed optimizations with -fwhole-program -combine

2006-12-05 Thread Daniel Berlin
I would not expect this to be fixed anytime soon. I have yet to find any real people who use either combine or -fwhole-program. They use *way* too much memory on real programs. As a result, no real people involved in optimization work on optimizers for them. On 5 Dec 2006 19:38:51 -,

Re: [Bug debug/29792] DWARF: Not all inline concrete instances are being generated

2006-11-14 Thread Daniel Berlin
OK, so I'll have to find another way of using the DWARF info to see if a inline routine, such as __task_rq_lock was used at all in the build or was just included in the DWARF info but not referenced anywhere, have to dig more into the available information... BTW, if, in these cases,

Re: [Bug debug/29792] DWARF: Not all inline concrete instances are being generated

2006-11-13 Thread Daniel Berlin
On 12 Nov 2006 20:39:43 -, acme at mandriva dot com [EMAIL PROTECTED] wrote: --- Comment #5 from acme at mandriva dot com 2006-11-12 20:39 --- (In reply to comment #4) The only thing left from __task_rq_lock is a label. SNIP task_cpu were inlined and we constant proped the

Re: [Bug debug/29792] DWARF: Not all inline concrete instances are being generated

2006-11-13 Thread Daniel Berlin
On 13 Nov 2006 16:16:50 -, acme at mandriva dot com [EMAIL PROTECTED] wrote: --- Comment #8 from acme at mandriva dot com 2006-11-13 16:16 --- OK, I thought that this was due to something like what you described, even not knowing that much about gcc internals, but I thought

Re: [Bug java/29587] jc1: out of memory allocating 4072 bytes after a total of 708630224 bytes

2006-11-09 Thread Daniel Berlin
Can you try the attached and let me know if it fixes it? fordanglin.diff Description: Binary data

Re: [Bug tree-optimization/29680] [4.3 Regression] Misscompilation of spec2006 gcc

2006-11-09 Thread Daniel Berlin
A detailed proposal: So here is what i was thinking of. When i say symbols below, I mean some VAR_DECL or structure that has a name (like our memory tags do). A symbol is *not* a real variable that occurred in the user program. When I say varaible i mean a variable that occurred in the user

Re: [Bug tree-optimization/29680] [4.3 Regression] Misscompilation of spec2006 gcc

2006-11-09 Thread Daniel Berlin
Memory SSA brings down the number of virtual operators to exactly one per statement. However, it does so in a way that makes the traditional things that actually want to do cool memory optimizations, harder. I'm still on the fence over whether it's a good idea or not. verified before we

Re: [Bug tree-optimization/29680] [4.3 Regression] Misscompilation of spec2006 gcc

2006-11-09 Thread Daniel Berlin
In mem-ssa, you have VDEF's of the same symbol all over the place. version of a symbol

Re: [Bug tree-optimization/29680] [4.3 Regression] Misscompilation of spec2006 gcc

2006-11-06 Thread Daniel Berlin
Zdenek, can you revert your patch until we fix this? It might be a month or two before i get back to it. (Yeah, i know it sucks to have to do this, but) On 6 Nov 2006 15:12:30 -, hjl at lucon dot org [EMAIL PROTECTED] wrote: --- Comment #14 from hjl at lucon dot org 2006-11-06

Re: [Bug java/29587] jc1: out of memory allocating 4072 bytes after a total of 708630224 bytes

2006-11-05 Thread Daniel Berlin
On 5 Nov 2006 21:22:24 -, dave at hiauly1 dot hia dot nrc dot ca [EMAIL PROTECTED] wrote: --- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2006-11-05 21:22 --- Subject: Re: jc1: out of memory allocating 4072 bytes after a total of 708630224 bytes Can you bzip2

Re: [Bug java/29587] jc1: out of memory allocating 4072 bytes after a total of 708630224 bytes

2006-11-04 Thread Daniel Berlin
The change on the 19th caused a significant increase in memory consumption http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01029.html and java bootstrap failures on s390, s390x and ia64. See this thread http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01058.html. Except that all of these were fixed

Re: [Bug tree-optimization/14784] [Tree-ssa] alias analysis deficiency

2006-10-31 Thread Daniel Berlin
Details, source, etc needed. On 31 Oct 2006 15:02:02 -, hjl at lucon dot org [EMAIL PROTECTED] wrote: --- Comment #10 from hjl at lucon dot org 2006-10-31 15:02 --- It miscompiles dwarf2out.c in gcc in SPEC CPU 2006.

Re: [Bug tree-optimization/29585] [4.2/4.3 Regression] tree check: expected ssa_name, have var_decl in is_old_name, at tree-into-ssa.c:558

2006-10-25 Thread Daniel Berlin
On 25 Oct 2006 05:23:00 -, pinskia at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #4 from pinskia at gcc dot gnu dot org 2006-10-25 05:22 --- _ZTCN33_GLOBAL__N_t.cc__2292CFAC11NullostreamE0_13basic_ostream # _ZTI13basic_ostream = V_MAY_DEF

Re: [Bug tree-optimization/25737] ACATS c974001 c974013 hang with struct aliasing

2006-09-24 Thread Daniel Berlin
On 24 Sep 2006 18:23:41 -, ebotcazou at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #37 from ebotcazou at gcc dot gnu dot org 2006-09-24 18:23 --- No, really, you don't seem to understand. If you respect these DECL_NONADDRESSABLE_P or TYPE_NONALIASED_COMPONENT

Re: [Bug tree-optimization/28944] New: tree-dce incorrectly removes an assignment.

2006-09-03 Thread Daniel Berlin
asm volatile ( push %1 \n\t call *%0 \n\t add$4, %%esp \n\t : : r ( test ), r ( x ) ); asm statements are not allowed to alter control flow

Re: [Bug tree-optimization/28937] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1309

2006-09-03 Thread Daniel Berlin
Why does loop change the SMT usage? In addition, since there are times loop doesn't do anything, you should simply be returning PROP_smt_usage when it does do something, and nothing otherwise. On 4 Sep 2006 03:52:04 -, pinskia at gcc dot gnu dot org [EMAIL PROTECTED] wrote: ---

Re: [Bug tree-optimization/28798] remove_phi_node attempts removal of a phi node resized by resize_phi_node

2006-08-25 Thread Daniel Berlin
hosking at cs dot purdue dot edu wrote: --- Comment #13 from hosking at cs dot purdue dot edu 2006-08-24 15:27 --- Is this enough? Here is the dump output, followed by stack traces at the resize and remove points (the remove goes on to fail). So, this edge can't exist. Note:

Re: [Bug tree-optimization/15452] [tree-ssa] Optimize cascaded a = a == 0;

2006-08-24 Thread Daniel Berlin
pinskia at gcc dot gnu dot org wrote: --- Comment #6 from pinskia at gcc dot gnu dot org 2006-08-24 04:27 --- Another interesting case would be (but which could be handled by VRP): int foo (int a) { a = a!=0; a = a!=0; a = a!=0; a = a!=0; a = a!=0; return a; }

Re: [Bug tree-optimization/28798] remove_phi_node attempts removal of a phi node resized by resize_phi_node

2006-08-23 Thread Daniel Berlin
hosking at cs dot purdue dot edu wrote: --- Comment #7 from hosking at cs dot purdue dot edu 2006-08-23 22:29 --- This is with the Modula-3 backend. I am porting it to 4.1.1 and encountered this problem with -O3 turned on. Does 4.1 have the check for EDGE_CRITICAL_P in

Re: [Bug tree-optimization/28798] remove_phi_node attempts removal of a phi node resized by resize_phi_node

2006-08-23 Thread Daniel Berlin
hosking at cs dot purdue dot edu wrote: --- Comment #11 from hosking at cs dot purdue dot edu 2006-08-24 00:57 --- (In reply to comment #9) Does 4.1 have the check for EDGE_CRITICAL_P in insert_aux? Yes: /* This can happen in the very weird case

Re: [Bug tree-optimization/28798] remove_phi_node attempts removal of a phi node resized by resize_phi_node

2006-08-22 Thread Daniel Berlin
pinskia at gcc dot gnu dot org wrote: --- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-22 06:17 --- We should never had needed resize_phi_node inside PRE and resize_phi_node also does an exact replacement so that means you are keeping a reference to the old PHI node when

Re: [Bug tree-optimization/28643] redundant phi-node in latch-block prevents vectorization

2006-08-08 Thread Daniel Berlin
pinskia at gcc dot gnu dot org wrote: --- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-08 01:47 --- SSA copy prop with dce after that should really be the correct way. Err, SSA copy prop should be enough, actually, since after copy-prop, the phi will have no users (and

Re: [Bug c/28073] Type-punned pointer passed as function parameter generates bad assembly sequence

2006-06-19 Thread Daniel Berlin
sorenj at us dot ibm dot com wrote: --- Comment #2 from sorenj at us dot ibm dot com 2006-06-19 16:44 --- Changing just one line of the test program to the (AFAIK) legal C code. By casting through void *, we are addressing Andrew's concerns about violating the C rules. No you

Re: [Bug tree-optimization/28003] [4.2 Regression] optimizer bug

2006-06-13 Thread Daniel Berlin
pinskia at gcc dot gnu dot org wrote: --- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-13 04:41 --- Hmm, we get after dce, just: reduced_cell_two_folds[26] = {}; And DCE removes: this_616 = reduced_cell_two_folds[26].u; # SMT.68_1055 = V_MAY_DEF

Re: [Bug target/27855] reassociation pass produces ~30% slower matrix multiplication code

2006-06-02 Thread Daniel Berlin
steven at gcc dot gnu dot org wrote: --- Comment #4 from steven at gcc dot gnu dot org 2006-06-02 23:19 --- Real bug, despite Andrew's usual portion of x86-hate. It'd be good to know what exactly is going wrong. Reassociation only touches floating point because someone asked me

Re: [Bug middle-end/27445] create_tmp_var_raw (gimplify.c) inadventently asserts 'volatile' on temps

2006-05-05 Thread Daniel Berlin
I haven't looked into the rev. history, to see why/when this fix was made, but will ask the hypothetical: was this fix made to workaround the misbehavior in create_tmp_var_raw()? Note that create_tmp_var_raw() is exported from gimplify.c and appears to be called from quite a few places.

Re: [Bug tree-optimization/26304] [4.2 Regression] 25_algorithms/prev_permutation/1.cc on powerpc{64,}-linux and powerpc-darwin

2006-04-23 Thread Daniel Berlin
On Sun, 2006-04-23 at 23:14 +, pinskia at gcc dot gnu dot org wrote: --- Comment #17 from pinskia at gcc dot gnu dot org 2006-04-23 23:14 --- Rewritting that loop like: [kudzu:local/trunk/gcc] pinskia% svn diff tree-ssa-loop-niter.c Index: tree-ssa-loop-niter.c

Re: [Bug tree-optimization/27140] Compiling LLVM now takes nearly 5x as long with 4.1 as it did with 4.0

2006-04-13 Thread Daniel Berlin
On Apr 13, 2006, at 1:30 PM, rspencer at x10sys dot com wrote: --- Comment #6 from rspencer at x10sys dot com 2006-04-13 20:30 --- Created an attachment (id=11261) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11261action=view) Timing results with -fno-tree-salias Andrew

Re: [Bug tree-optimization/19590] IVs with the same evolution not eliminated

2006-04-08 Thread Daniel Berlin
--- Comment #10 from stevenb dot gcc at gmail dot com 2006-04-08 21:13 --- Subject: Re: IVs with the same evolution not eliminated The new SCC value numberer for PRE i'm working on gets this case right (and this is in fact, one of the advantages of SCC based value numbering).

Re: [Bug tree-optimization/27056] New: ICE in loop_depth_of_name

2006-04-06 Thread Daniel Berlin
On Thu, 2006-04-06 at 11:49 +, jakub at gcc dot gnu dot org wrote: On the attached testcase with today's gcc-4_1-branch -m32 -g -O2 I get ICE during copy propagation. Unfortunately, even doing minor changes in different routines makes the problem go away. What I see in the dumps is: 1)

Re: [Bug tree-optimization/26944] [4.1/4.2 Regression] -ftree-ch generates worse code

2006-03-31 Thread Daniel Berlin
Compare pretmp.28_49 with pretmp.32_11, why are the arguments in a different order? Is there something unstable in the PRE algorithm? No, we just call fold on the expressions we build, and whatever it gives us, we use :)

Re: [Bug tree-optimization/26781] [4.2 Regression] ICE in tree-ssa-pre.c at create_component_ref_by_piec

2006-03-21 Thread Daniel Berlin
On Tue, 2006-03-21 at 15:02 +, malitzke at metronets dot com wrote: --- Comment #5 from malitzke at metronets dot com 2006-03-21 15:02 --- The two if (tree_code(genop) == VALUE_HANDLE) at lines 2190 of tree-ssa-pre.c look suspicious to me. They aren't suspicious at all.

Re: [Bug tree-optimization/26726] -fivopts producing out of bounds array refs

2006-03-17 Thread Daniel Berlin
On Fri, 2006-03-17 at 12:40 +, mueller at gcc dot gnu dot org wrote: --- Comment #2 from mueller at gcc dot gnu dot org 2006-03-17 12:40 --- one possible workaround would be to lower the ARRAY_REF's to indirect mem refs, which I don't track Uh, no. We are in fact, trying

Re: [Bug tree-optimization/26626] [4.2 Regression] ICE in in add_virtual_operand

2006-03-09 Thread Daniel Berlin
On Thu, 2006-03-09 at 22:54 +, pinskia at gcc dot gnu dot org wrote: --- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-09 22:54 --- The difference between copyprop and before is the following. Before: rv.0_3 = rv.0_2; # VUSE NMT.7_13; D.1900_4 = rv.0_3-d;

Re: [Bug tree-optimization/26608] New: address of local variables are said to escape even though it is obvious they don't

2006-03-08 Thread Daniel Berlin
On Wed, 2006-03-08 at 18:59 +, pinskia at gcc dot gnu dot org wrote: Testcase: int *d1; int g(int *b) { d1 = b; } int f(int a, int b, int c) { int i, j; int *d; if (a) d = i; else d = j; i = 2; j = 3; g(b); if (i!=2) link_error(); if (j!=3)

Re: [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867

2006-02-24 Thread Daniel Berlin
On Fri, 2006-02-24 at 13:06 +, pinskia at gcc dot gnu dot org wrote: --- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-24 13:06 --- Confirmed. Though VRP2 is just doing constant propagation at this point. Last time i looked at a bug like this, it was actually some

Re: [Bug fortran/26444] gfortran does not compile cp2k

2006-02-23 Thread Daniel Berlin
On Thu, 2006-02-23 at 18:37 +, jb at gcc dot gnu dot org wrote: --- Comment #2 from jb at gcc dot gnu dot org 2006-02-23 18:37 --- I have the current CVS of cp2k, it fails with gfortran -c -O3 -g -ffast-math -fomit-frame-pointer message_passing.f90 ... message_passing.f90:

Re: [Bug tree-optimization/14784] [Tree-ssa] alias analysis deficiency

2006-02-16 Thread Daniel Berlin
On Thu, 2006-02-16 at 21:40 +, pinskia at gcc dot gnu dot org wrote: --- Comment #4 from pinskia at gcc dot gnu dot org 2006-02-16 21:40 --- We get: # bitmap_free_7 = PHI bitmap_free_1(4), bitmap_free_6(5); L0:; # bitmap_free_1 = PHI bitmap_free_7(3), bitmap_free_2(2);

Re: [Bug tree-optimization/8361] [4.1/4.2 regression] C++ compile-time performance regression

2006-02-11 Thread Daniel Berlin
Flags: -O3 GCC 4.0 (release branch today): real0m24.412s 0m25.000s 0m24.771s user0m23.921s 0m24.430s 0m24.210s sys 0m0.368s0m0.408s0m0.420s GCC 4.1 (release branch today): real0m33.260s 0m33.140s 0m33.188s user

Re: [Bug tree-optimization/24169] Address (full struct) escapes even though the called function does not cause it to escape

2006-01-03 Thread Daniel Berlin
On Sun, 2006-01-01 at 00:41 +, pinskia at gcc dot gnu dot org wrote: --- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-01 00:41 --- Just a clarification here, I just want the SFT for k.j to be considered call clobbered for this testcase. This is not anywhere near as

Re: [Bug rtl-optimization/24762] [killloop-branch] code motion of non-invariant expressions with hard registers.

2005-11-09 Thread Daniel Berlin
On Wed, 2005-11-09 at 23:45 +, steven at gcc dot gnu dot org wrote: --- Comment #10 from steven at gcc dot gnu dot org 2005-11-09 23:45 --- Actually, flow.c does get it right. Okay, then df.c on dataflow branch should get it right too.

Re: [Bug tree-optimization/24694] New: Address taken and addressable variables and call clobber

2005-11-06 Thread Daniel Berlin
On Sun, 2005-11-06 at 15:46 +, pinskia at gcc dot gnu dot org wrote: Take the following code: int f(int); int g(void) { int i; int *iptr = i; int **ipp = iptr; **ipp = 1; f(i); return **ipp; } -- Here we consider i being call clobber because we lose the fact

Re: [Bug rtl-optimization/8361] [3.4/4.0/4.1 regression] C++ compile-time performance regression

2005-10-12 Thread Daniel Berlin
On Thu, 2005-10-13 at 03:34 +, pinskia at gcc dot gnu dot org wrote: --- Comment #57 from pinskia at gcc dot gnu dot org 2005-10-13 03:34 --- A semi recent 4.1 (the 10th) gives: tree PTA : 1.60 ( 6%) usr 0.02 ( 1%) sys 1.73 ( 6%) wall 10338 kB ( 1%) ggc

Re: [Bug libgcj/24170] [SECURITY] readdir_r considered harmful

2005-10-02 Thread Daniel Berlin
On Sun, 2 Oct 2005, ben at decadentplace dot org dot uk wrote: --- Comment #1 from ben at decadentplace dot org dot uk 2005-10-02 23:16 --- Can someone please remove this from public view, as Mozilla does for security bugs on their Bugzilla? Unlike mozilla, we do not remove

Re: [Bug tree-optimization/24146] Optimizes away FPU control word store

2005-09-30 Thread Daniel Berlin
On Fri, 2005-09-30 at 13:58 +, rearnsha at gcc dot gnu dot org wrote: --- Additional Comments From rearnsha at gcc dot gnu dot org 2005-09-30 13:58 --- (In reply to comment #1) volatile is needed here. No, the manual says: An @code{asm} instruction without any output

Re: [Bug tree-optimization/24146] [4.0 Regression] Optimizes away FPU control word store

2005-09-30 Thread Daniel Berlin
On Fri, 2005-09-30 at 14:07 +, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-30 14:07 --- I still say this is invalid. well, that just makes you wrong. the docs clearly say it's supposed to be treated as volatile.

Re: [Bug tree-optimization/24001] Simple redundancy not eliminated

2005-09-22 Thread Daniel Berlin
On Thu, 2005-09-22 at 08:31 +, rguenth at gcc dot gnu dot org wrote: --- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-22 08:31 --- load-pre should sink the load and fix the problem at the tree level. Uh, load PRE doesn't sink loads, it would lift it.

Re: [Bug middle-end/23672] Fold does not fold (a^b)^a to b

2005-09-16 Thread Daniel Berlin
On Sat, 2005-09-17 at 02:12 +, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-17 02:12 --- Confirmed. The new reassoc should take care of this

Re: [Bug tree-optimization/23386] [4.1 Regression] bitmap.c is being miscompiled (VRP)

2005-08-14 Thread Daniel Berlin
On Sun, 2005-08-14 at 17:32 +, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-14 17:32 --- Here is something which is a little more reduced: int f[100]; int g[100]; unsigned char f1 (int a, int b) { unsigned ix;

Re: [Bug tree-optimization/23361] Can't eliminate empty loops with power of two step and variable bounds

2005-08-12 Thread Daniel Berlin
On Fri, 2005-08-12 at 19:10 +, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-12 19:10 --- Personally, i think -funsafe-loop-optimizations should be on by default in -O3, with a warning for when we rely on it. It's

Re: [Bug libstdc++/23278] SJLJ-exceptions broken

2005-08-09 Thread Daniel Berlin
On Tue, 9 Aug 2005, jacob dot navia at ants dot com wrote: --- Additional Comments From jacob dot navia at ants dot com 2005-08-09 19:57 --- If I can't mix SJLJ exceptions with DWARF2 exceptions how this is supposed to work? How is what supposed to work? I mean I have to rebuild

Re: [Bug java/1427] gcj should generate N_MAIN stab or DW_AT_entry_point dwarf2 debug info

2005-08-08 Thread Daniel Berlin
On Tue, 2005-08-09 at 04:11 +, woodzltc at sources dot redhat dot com wrote: --- Additional Comments From woodzltc at sources dot redhat dot com 2005-08-09 04:11 --- OK. I had some time and would like to have a look into this, and I found something inconsistent. My founding is

Re: [Bug c++/23278] New: SJLJ-exceptions broken

2005-08-07 Thread Daniel Berlin
On Sun, 2005-08-07 at 19:50 +, jacob dot navia at ants dot com wrote: We have a program (c++) that needs c++ SJLJ exceptions. We have built all compilers from 3.3.1 to 3.3.6 and they all have the same bug: In the first throw that the program does, we get an exception in the runtime

Re: [Bug c++/22602] New: I can't enter a bug here

2005-07-21 Thread Daniel Berlin
On Fri, 2005-07-22 at 00:57 +, jacob dot navia at ants dot com wrote: Because there is a size limitation to 64K in this software. I prepared a single file with no includes that faithfully reproduced the bug: bug0.cpp: In member function 'double AtomicDouble::CompareExchange(double,

Re: [Bug tree-optimization/22376] PTA is slow on a silly unrealistic test case

2005-07-14 Thread Daniel Berlin
On Thu, 2005-07-14 at 17:13 +, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 17:13 --- Confirmed, patch here: http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00918.html. I'm waiting for mainline to settle a bit

Re: Someone introduced a libiberty crashing bug in the past week

2005-06-20 Thread Daniel Berlin
On Mon, 2005-06-20 at 16:05 +, Joseph S. Myers wrote: On Mon, 20 Jun 2005, Daniel Berlin wrote: The crash line is 3729 if (pedantic !DECL_IN_SYSTEM_HEADER (fundecl)) Here, fundecl is null. Any problem with fundecl being null should also be reproducible

Re: [Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

2005-05-22 Thread Daniel Berlin
On Sun, 2005-05-22 at 19:36 +, rakdver at gcc dot gnu dot org wrote: --- Additional Comments From rakdver at gcc dot gnu dot org 2005-05-22 19:36 --- Because do_something does not have to return, therefore get_type2 does not necessarily have to be executed. In this case we

Re: [Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

2005-05-22 Thread Daniel Berlin
. Nevertheless, even if we are very strict with the definition, moving get_type2 out of the loop is not a good idea, since get_type2 might potentially be very expensive (and we have no way how to determine that this is not the case), thus we would lose in case get_type2 should be never

Re: [Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

2005-05-22 Thread Daniel Berlin
On Sun, 2005-05-22 at 21:13 +, rakdver at atrey dot karlin dot mff dot cuni dot cz wrote: --- Additional Comments From rakdver at atrey dot karlin dot mff dot cuni dot cz 2005-05-22 21:13 --- Subject: Re: missed optimization due with const function and pulling out of loops

Re: [Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

2005-05-22 Thread Daniel Berlin
On Sun, 2005-05-22 at 21:36 +, rakdver at gcc dot gnu dot org wrote: --- Additional Comments From rakdver at gcc dot gnu dot org 2005-05-22 21:36 --- Do you still believe we should move gettype2 out of the loop??? Okay, let's compromise. If i move cgraph do noreturn and infinite

Re: [Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

2005-05-22 Thread Daniel Berlin
On Sun, 2005-05-22 at 21:51 +, rakdver at atrey dot karlin dot mff dot cuni dot cz wrote: --- Additional Comments From rakdver at atrey dot karlin dot mff dot cuni dot cz 2005-05-22 21:50 --- Subject: Re: missed optimization due with const function and pulling out of loops

Re: [Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

2005-05-22 Thread Daniel Berlin
on the other hand, we should not let the definition make the concept useless. Being able to make The definition actually matches what other compilers call isolated (no access to global variables) combined with the property called side-effect free (calling multiple times with same parameters

Re: [Bug tree-optimization/13761] [tree-ssa] component refs to the same struct should not alias

2005-04-23 Thread Daniel Berlin
On Sat, 2005-04-23 at 16:52 +, steven at gcc dot gnu dot org wrote: --- Additional Comments From steven at gcc dot gnu dot org 2005-04-23 16:52 --- Will the second part of the struct alias merge fix Dann's original test case? (http://gcc.gnu.org/wiki/Structure Aliasing Part II)

Re: [Bug middle-end/20674] unexpected result from floating compare

2005-03-28 Thread Daniel Berlin
On Mon, 2005-03-28 at 23:05 +, piaget at us dot ibm dot com wrote: --- Additional Comments From piaget at us dot ibm dot com 2005-03-28 23:05 --- 323 compares 2 values across a function call ... somthing a programmer can reasonably consider. My problem occurs with 2 successive

Re: [Bug rtl-optimization/20376] The missed-optimization of general induction variables in the new rtl-level loop optimizer cause performance degradation.

2005-03-07 Thread Daniel Berlin
On Tue, 2005-03-08 at 03:18 +, pinskia at physics dot uc dot edu wrote: --- Additional Comments From pinskia at physics dot uc dot edu 2005-03-08 03:18 --- Subject: Re: The missed-optimization of general induction variables in the new rtl-level loop optimizer cause performance

Re: [Bug tree-optimization/20134] New: 176.gcc miscompare with -m64 after DOM change

2005-02-21 Thread Daniel Berlin
-23 Daniel Berlin [EMAIL PROTECTED] * tree-ssa-dom.c (record_equality): Use loop depth to determine which way to record the equality as well. (loop_depth_of_name): New

Re: [Bug tree-optimization/14741] missing transformations lead to poorly optimized code

2005-01-28 Thread Daniel Berlin
On Fri, 28 Jan 2005, jv244 at cam dot ac dot uk wrote: --- Additional Comments From jv244 at cam dot ac dot uk 2005-01-28 16:31 --- You could try gfortran -O3 -mtune=pentium4 -ffast-math -mfpmath=sse -ftree-loop-linear -ftree-vectorize yourcode.f90 and see if it helps. Unhappily, seems

Re: [Bug tree-optimization/18595] [4.0 Regression] IV-OPTS is O(N^3)

2005-01-23 Thread Daniel Berlin
I believe seb/zdenek already submitted patches for speeding up scev quite recently, with the goal of alleviating this problem. I'm pretty sure they have not been applied yet.

Re: [Bug tree-optimization/18595] [4.0 Regression] IV-OPTS is O(N^3)

2005-01-23 Thread Daniel Berlin
On Sun, 24 Jan 2005, rakdver at gcc dot gnu dot org wrote: --- Additional Comments From rakdver at gcc dot gnu dot org 2005-01-24 01:46 --- On a side note, PRE also seems to have problems with the testcase. With the patch mentioned above, the largest consumers of compile time are

Re: [Bug inline-asm/11203] source doesn't compile with -O0 but they compile with -O3

2005-01-22 Thread Daniel Berlin
The reason is dead simple: register allocation is NP-complete, so it is even *theoretically* not possible to write register allocators that always find a coloring. register allocation in general is NP-complete, yes, but it seems u forget that this is about finding the optimal solution while gcc

Re: [Bug debug/19367] [4.0 Regression] ICE: tree_check in lookup_local_die with local `using'

2005-01-10 Thread Daniel Berlin
On Mon, 10 Jan 2005, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-10 21:56 --- Confirmed, I think this is the boost ICE. This happens because the orig_decl that we are trying to use in emitting the using decl info appears to

Re: [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g

2005-01-05 Thread Daniel Berlin
On Wed, 5 Jan 2005, ghazi at gcc dot gnu dot org wrote: When running the testsuite with -fpic/-fPIC, I get an additional failure in the testsuite with mainline: FAIL: gcc.c-torture/execute/921215-1.c compilation, -O3 -g The regression appeared sometime in the last day or so between these

Fix longstanding bugzilla anoyance

2004-12-19 Thread Daniel Berlin
Accept bug should now assign the bug to you, as one expects it to. Sorry it took so long for me to fix this, it kept falling off my todo list since it was really a minor annoyance :) --Dan

Re: GCC C bug: sizeof a union of structs returns zero value

2004-12-16 Thread Daniel Berlin
On Thu, 16 Dec 2004, Hugh Daniel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Note, I gave up on GNATS after repeatedly getting this error message no matter what I did to the text: You have not described how to repeat the bug You have not defined a category for the bug If there is a

Re: [Bug rtl-optimization/16613] [3.4 Regression] compile time regression, when adding cerr usage

2004-12-10 Thread Daniel Berlin
On Fri, 10 Dec 2004, andre maute wrote: Once more i couldn't upload an attachment with the bugzilla upload form, so i send it here. You can email it to [EMAIL PROTECTED] with a subject of Bug 16613 (or whatever the bug number is), and it'll auto-add it to the bug for you.

Re: [Bug c++/18368] New: C++ error message regression

2004-11-07 Thread Daniel Berlin
Yes, it happens ta global scope too. struct foo {} void method () {} will give the same error On Sun, 8 Nov 2004, sabre at nondot dot org wrote: On this c++ code: struct C { struct foo { int A; } void method(); }; This probably also happens at global scope. -Chris