[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 18:11 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Thu, 2004-12-09 at 05:24 +, kazu at cs dot umass dot edu wrote: > --- Additional Comments From kazu at cs dot umass dot edu 20

[Bug middle-end/18928] [4.0 regression] ice on valid code with -O2 -fPIC

2004-12-10 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2004-12-10 18:13 --- Here's a small testcase: -- const char *toHex( unsigned short u ) { static char hexVal[5]; int i = 3; while ( i >= 0 ) { unsigned short hex = (u & 0x000f); if ( hex

[Bug middle-end/18928] [4.0 regression] ice on valid code with -O2 -fPIC

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 18:14 --- : Search converges between 2004-11-03-014001-trunk (#612) and 2004-11-03-161001-trunk (#613). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18928

[Bug c/18929] New: Profiling optimized code causes segfaults on ARM due to missing frames

2004-12-10 Thread opensource at artnaseef dot com
When compiling with the arm-linux compiler with optimization enabled, the compiler removes frame pointers from functions even when they are profiled. This leads to a segmentation fault with the glibc version of mcount when it attempts to determine the caller of a function from the current stack

[Bug c/18929] Profiling optimized code causes segfaults on ARM due to missing frames

2004-12-10 Thread opensource at artnaseef dot com
--- Additional Comments From opensource at artnaseef dot com 2004-12-10 18:19 --- Created an attachment (id=7720) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7720&action=view) recommended fix This patch fixes the problem by forcing functions to keep their frame pointers when com

[Bug target/18929] Profiling optimized code causes segfaults on ARM due to missing frames

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 18:20 --- Does this work in 3.4.? -- What|Removed |Added Component|c

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 18:24 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Fri, 2004-12-10 at 00:28 +, kazu at cs dot umass dot edu wrote: > --- Additional Comments From kazu at cs dot umass dot edu 20

[Bug c/18930] New: name clash in C?

2004-12-10 Thread jacob at engelbrecht dot dk
On several different version of gcc (2.95, 3.3 and 3.4) (gcc-3.4 --version reports: gcc-3.4 (GCC) 3.4.2 (Debian 3.4.2-2)) When I compile a.c I get errors: a.c:6: error: parse error before "c" etc but b.c compiles without errors. As I understand the ANSI-C standard, type names and variable names s

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Additional Comments From rakdver at atrey dot karlin dot mff dot cuni dot cz 2004-12-10 18:38 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) > > or simply use dominated_by_p, which is not too expensive - > > only a couple of "if" statements, assuming the

[Bug target/18929] Profiling optimized code causes segfaults on ARM due to missing frames

2004-12-10 Thread opensource at artnaseef dot com
--- Additional Comments From opensource at artnaseef dot com 2004-12-10 18:40 --- Subject: Re: Profiling optimized code causes segfaults on ARM due to missing frames I have not tested it, but I don't see why not. The patch is fairly short and straight-forward, I believe. ---

[Bug rtl-optimization/18928] [4.0 regression] ice on valid code with -O2 -fPIC

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 18:40 --- simplify_plus_minus is where the problem is. -- What|Removed |Added Component|middl

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2004-12-10 18:53 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) Hi Zdenek, > > > or simply use dominated_by_p, which is not too expensive - > > > only a couple of "if" statements, assuming the domina

[Bug other/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic

2004-12-10 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2004-12-10 18:58 --- I'm not sure redirecting __addvsi3 to __addvdi3 is correct. If we provide that symbol at all, I think it should do what it advertises. Just so I'm clear, are we invoking __addvsi3 right now, or is it just that

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 19:18 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Fri, 2004-12-10 at 19:08 +, kazu at cs dot umass dot edu wrote: > I think so. :-) I don't. :( I think it'll record tmp_1 = next_

[Bug c/18282] PR c/17384 patch causes regression from 3.4.2

2004-12-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-10 19:23 --- Subject: Bug 18282 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-3_4-branch Changes by: [EMAIL PROTECTED] 2004-12-10 19:23:25 Modified files: gcc: Change

[Bug c/18282] PR c/17384 patch causes regression from 3.4.2

2004-12-10 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2004-12-10 19:24 --- Fixed. -- What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug other/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic

2004-12-10 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-12-10 19:24 --- > I'm not sure redirecting __addvsi3 to __addvdi3 is correct. If we provide > that > symbol at all, I think it should do what it advertises. But what we export now as __addvsi3 will be exported as __add

[Bug middle-end/18903] [4.0 Regression] ice in bsi_after_labels

2004-12-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-10 19:32 --- Subject: Bug 18903 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-10 19:32:14 Modified files: gcc: ChangeLog tree-cfg.c gcc/tes

[Bug middle-end/18931] jar -> .so optimization problem

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 19:41 --- What target is this on? i686-pc-linux? I cannot reproduce this on 20041204 on powerpc-darwin. -- What|Removed |Added -

[Bug middle-end/18931] jar -> .so optimization problem

2004-12-10 Thread overholt at redhat dot com
--- Additional Comments From overholt at redhat dot com 2004-12-10 19:43 --- Yes, this is i686-linux. I'll update to a more recent snapshot and see if I can reproduce. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18931

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 19:44 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Fri, 2004-12-10 at 19:08 +, kazu at cs dot umass dot edu wrote: > By the way, I am now wondering how many times we succeed in thre

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 20:00 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Fri, 2004-12-10 at 19:08 +, kazu at cs dot umass dot edu wrote: > --- Additional Comments From kazu at cs dot umass dot edu 20

[Bug other/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic

2004-12-10 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-12-10 20:04 --- > If addvsi3 actually performs addvdi3, that will be most surprising to > everyone. I think that's a very bad idea. Since we are not invoking > addvsi3, > and I suspect it's impossible to convince the

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 20:12 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Fri, 2004-12-10 at 19:57 +, kazu at cs dot umass dot edu wrote: > --- Additional Comments From kazu at cs dot umass dot edu 20

[Bug other/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic

2004-12-10 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2004-12-10 20:17 --- Since the symbol exists in 3.3 (which I'd forgotten), we have to keep it. But I don't see any reason we can't fix the bug in its implementation. So let's do proper simode arithmetic. -- http://gcc.gnu.org/bu

[Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE

2004-12-10 Thread hjl at lucon dot org
This patch http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00701.html causes a regression on i386. -- Summary: [3.4 regression] -march=pentium4 -O2 causes ICE Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: critical Priori

[Bug target/18932] [3.4 regression] -march=pentium4 -O2 causes ICE

2004-12-10 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2004-12-10 20:25 --- Do not assign prs to people unless they request it. Assignment implies actively working on the problem. Use cc for advisory. -- What|Removed |Added

[Bug c++/18933] New: pointer-to-member called on incomplete type generates bad code

2004-12-10 Thread efrias at syncad dot com
When presented with the attached code, gcc (taken from CVS on Dec. 6 2004) generates bad code for the function callpmf(). The code it generates never calls the member function, so the exit status of this program is garbage (I get 39). No diagnostic is issued when compiling. If you replace the de

[Bug c++/18933] pointer-to-member called on incomplete type generates bad code

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 21:09 --- Yes this invalid code and here is the werid part we have a error_mark_node. So this is a dup of bug 15684. *** This bug has been marked as a duplicate of 15684 *** -- What|Removed

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2004-12-10 21:31 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) Hi Jeff, > Err, no. You're totally warping how the the equivalency code is meant > to work. It's a symmetric relationship and it's you

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread law at redhat dot com
--- Additional Comments From law at redhat dot com 2004-12-10 21:42 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) On Fri, 2004-12-10 at 21:31 +, kazu at cs dot umass dot edu wrote: > Can you come up with a hypothetical scenario? No need. It's fun

[Bug c++/18933] pointer-to-member called on incomplete type generates bad code

2004-12-10 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2004-12-10 21:53 --- The fact that we don't issue any errors is a duplicate of PR 15684. However, the code is fundamentally broken in that you cast a pointer to B into a pointer to A and use it to do something with it. This violat

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

2004-12-10 Thread andre maute
Once more i couldn't upload an attachment with the bugzilla upload form, so i send it here. I'll refer to it later. Regards Andre compiletimetest2.cc.gz Description: GNU Zip compressed data

[Bug tree-optimization/18694] [4.0 regression] loop miscompilation at -O1 (-ftree-ch)

2004-12-10 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2004-12-10 22:25 --- Subject: Re: [4.0 regression] loop miscompilation at -O1 (-ftree-ch) Hi Jeff, > > Can you come up with a hypothetical scenario? > No need. It's fundamentally broken in that it's recording > an invalid equ

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

2004-12-10 Thread andre dot maute at gmx dot de
--- Additional Comments From andre dot maute at gmx dot de 2004-12-10 22:36 --- I don't think the compile time regression is solved in the actual g++-4.0. I made some run time measurements with the attached file compiletimetest2.cc on a PIII 550. The __DEBUG__ tests only enable and so

[Bug target/18459] [4.0 Regression] gcj no longer works on win32

2004-12-10 Thread dannysmith at users dot sourceforge dot net
--- Additional Comments From dannysmith at users dot sourceforge dot net 2004-12-10 23:11 --- Ugh, I see what is wrong with the patch I posted at: http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02192.html * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Overide default.

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

2004-12-10 Thread dberlin at gcc dot gnu dot org
--- Additional Comments From dberlin at gcc dot gnu dot org 2004-12-10 23:12 --- (In reply to comment #9) > g++-4.0-20041205 -v > Reading specs from > /opt/gcc-4.0-20041205/lib/gcc/i686-pc-linux-gnu/4.0.0/specs > Configured with: ../gcc-4.0-20041205/configure --prefix=/opt/gcc-4.0-20

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

2004-12-10 Thread andre dot maute at gmx dot de
--- Additional Comments From andre dot maute at gmx dot de 2004-12-10 22:42 --- sorry missed the following two lines > time g++-3.3.5 -c -O3 -D __DEBUG__ compiletimetest2.cc real0m12.454suser0m12.210ssys 0m0.230s so g++-3.3.5 is really good, and I don't hope t

[Bug c++/18934] Spurious Uninitialized Variable Warning

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 23:20 --- Fixed in 4.0.0 by moving the uninitializing warning to the tree level where the exceptions have not been lowered to setjmp/longjmp which is what is causing the warning. -- What|Removed

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.

[Bug driver/18732] Compiler will not compile two source files if first has error or is unreadable

2004-12-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-11 00:02 --- Subject: Bug 18732 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-11 00:02:00 Modified files: gcc: ChangeLog gcc.c Log message:

[Bug c/18935] New: Error on reference of 'extern' variable in block scope.

2004-12-10 Thread sorie at sorie dot net
This problem occurs in both mode c89 and c99. I will try to describe it with a simple example. - code.c -- #include int main(void) { extern int a; printf("a: %d\n", a); int a = 20; /* internal compiler error */ return 0; } ---

[Bug c/18935] [3.4 Regression] Error on reference of 'extern' variable in block scope.

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-11 01:21 --- Fixed at least on the mainline: Search converges between 2004-07-31-trunk (#500) and 2004-08-01- trunk (#501). But it is a regression from 2.95.3: : Search converges between 2001-03-11-trunk (#10) and 2001

[Bug fortran/18913] [g77 only] seg. fault with -finit-local-zero option on complex array of dimension 1

2004-12-10 Thread bdavis at gcc dot gnu dot org
--- Additional Comments From bdavis at gcc dot gnu dot org 2004-12-11 01:35 --- same results on 3.4.2 -- What|Removed |Added Status|UNCONFIRMED |

[Bug target/18002] [3.4/4.0 Regression] 'while' loop performace regression on avr target

2004-12-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-11 01:49 --- Subject: Bug 18002 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-11 01:49:06 Modified files: gcc: ChangeLog dojump.c Log message:

[Bug middle-end/18424] [3.4/4.0 Regression] ~6x+ performance regression, constant trees not being computed.

2004-12-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-11 01:49 --- Subject: Bug 18424 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2004-12-11 01:49:06 Modified files: gcc: ChangeLog dojump.c Log message:

[Bug fortran/17423] gfortran segfault when compiling FM509.f from NIST testsuite

2004-12-10 Thread jvdelisle at verizon dot net
--- Additional Comments From jvdelisle at verizon dot net 2004-12-11 05:59 --- ICE on NIST FM252.f reduced case similar to pr#18827 PROGRAM FM252 C ASSIGN 0012 TO I 0012 FORMAT (" ASSIGN FORMAT NUMBER TO INTEGER VARIABLE " ) END -- http://gcc.gnu.org/b

[Bug fortran/17423] gfortran segfault when compiling FM509.f from NIST testsuite

2004-12-10 Thread jvdelisle at verizon dot net
/trans.c:154 gcc version 4.0.0 20041210 (experimental) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17423

[Bug tree-optimization/18892] missed optimization with & and ==

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-11 07:19 --- (In reply to comment #5) > (In reply to comment #4) > > when I compile this program with mainline. Isnt this what you claimed it > > should > > be compiled to? or are you claiming it should be optimized t

[Bug driver/15690] [4.0 Regression] compilation stops after the first file with errors

2004-12-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-11 07:45 --- Fixed by: PR 18732 * gcc.c (main): Do not break out of loop when error is reported while processing one source file. -- What|Removed |Added --

<    1   2