[Bug tree-optimization/21001] VRP is weak when the tested variable in a COND_EXPR is used only in the COND_EXPR.

2005-04-18 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-18 06:10 --- Subject: Bug 21001 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-04-18 06:10:45 Modified files: gcc: ChangeLog tree-optimize.c

[Bug tree-optimization/21001] VRP is weak when the tested variable in a COND_EXPR is used only in the COND_EXPR.

2005-04-18 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2005-04-18 06:11 --- Just checked in a patch. -- What|Removed |Added Status|NEW

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread leslie dot barnes at amd dot com
--- Additional Comments From leslie dot barnes at amd dot com 2005-04-18 06:38 --- (In reply to comment #2) You want: template MyTypeSample list; char *MyTypeSample::name = Hello\n; The following code seg faults with g++ 3.4.3. If I remove the template , it won't compile. On g++

[Bug libfortran/19216] list directed read with leading slash (NIST FM923)

2005-04-18 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-18 07:05 --- Subject: Bug 19216 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-04-18 07:05:28 Modified files: gcc/testsuite : ChangeLog Log message: PR

[Bug libfortran/19216] [4.0 only] list directed read with leading slash (NIST FM923)

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:18 --- This is fixed by Paul T. Richard's namelist patch, but there still is a testcase (gfortran.dg/pr19216.f) to commit on 4.0 branch. -- What|Removed |Added

[Bug libfortran/20950] segfault in INQUIRE asking for SEQUENTIAL status

2005-04-18 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-18 07:34 --- Subject: Bug 20950 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-04-18 07:34:33 Modified files: gcc/testsuite : ChangeLog libgfortran:

[Bug libfortran/18392] [4.0 only] segfault on derived type namelist input

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:39 --- This is indeed legal, and fixed by Thomas's recent namelist patch. Will have to be committed on 4.0 once it's open again. -- What|Removed |Added

[Bug libfortran/20950] [4.0 only] segfault in INQUIRE asking for SEQUENTIAL status

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:40 --- Patch commited to mainline. Waiting for 4.0 to reopen. -- What|Removed |Added

[Bug libfortran/12884] [4.0] error in reading a namelist when it is predeced by a line with a SLASH

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:44 --- This is fixed by Paul's recent namelist patch, applied on mainline. Will be fixed on 4.0 once it's reopened. -- What|Removed |Added

[Bug libfortran/17285] [4.0 only] namelist write does not terminate with end

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:46 --- This one is fixed by the recent namelist patch, will be fixed on 4.0 when it's reopened. -- What|Removed |Added

[Bug libfortran/18122] [4.0 only] gfortran internal error in namelist read

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:50 --- Fixed by the recent namelist patch. Will be fixed on 4.0 once it's reopened. -- What|Removed |Added

[Bug libfortran/18210] namelist output format problems

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:52 --- The uppercase problem is fixed by Paul's recent patch on mainline (will be fixed on 4.0 once it's reopened). Leave this bug open until someone can confirm if leading space is required for namelist output

[Bug libfortran/18879] [4.0 only] ? not supported in namelist input

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:54 --- This is an extension indeed, and is incorporated in mainline by Paul's recent namelist patch. Will be included in 4.0 when it reopens. -- What|Removed |Added

[Bug libf2c/19657] Namelist reading may be skipped if end with a logical variable

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:59 --- Confirm this bug. This is g77-only. Changed component to libf2c. -- What|Removed |Added

[Bug fortran/17472] [4.0 only] namelist does not handle arrays

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 08:02 --- Fixed by Paul's recent namelist patch. Will be fixed on 4.0 when it's reopened. -- What|Removed |Added

[Bug libfortran/18591] gfortran: internal error with namelist

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 08:05 --- This is a duplicate of 18122 (which has just been fixed). *** This bug has been marked as a duplicate of 18122 *** -- What|Removed |Added

[Bug libfortran/18122] [4.0 only] gfortran internal error in namelist read

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 08:05 --- *** Bug 18591 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug fortran/19467] [4.0 only] ICE caused by CHARACTER array in NAMELIST read or write

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 08:06 --- Fixed by Paul's recent namelist patch. Will be fixed on 4.0 when it's reopened. -- What|Removed |Added

[Bug libstdc++/16611] Terrible code generated for vectorbool

2005-04-18 Thread falk at debian dot org
--- Additional Comments From falk at debian dot org 2005-04-18 08:10 --- (In reply to comment #6) Hi. It can well be a libstdc++ problem, and indeed I can imagine ways to avoid signed integers in the code. However, I'm not sure that someone will actually do the work, given the

[Bug c++/13684] local static object variable constructed once but ctors and dtors called multiple times on same memory when called in multiple threads

2005-04-18 Thread adah at netstd dot com
--- Additional Comments From adah at netstd dot com 2005-04-18 09:06 --- Function calls, memory barriers, (and lock operations?) are all overheads. I would like that * GCC provide extensions so that GCC users can use memory barriers and threading calls in a platform-independent way,

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-04-18 09:08 --- A segfault in GCC is always a bug, even if the code is wrong. Would you please open a new bugreport about it? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17445

[Bug target/20633] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative

2005-04-18 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-18 09:23 --- I messed up the quotation too. :-( It should read: #undef CPP_SPEC #define CPP_SPEC \ %(cpp_cpu) \ %(cpp_arch) \ %{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic_} \ %{posix:-D_POSIX_SOURCE} \ --

[Bug tree-optimization/18316] Missed IV optimization

2005-04-18 Thread rakdver at gcc dot gnu dot org
--- Additional Comments From rakdver at gcc dot gnu dot org 2005-04-18 09:33 --- Updated patch: http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01959.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18316

[Bug target/21007] [4.1 Regression] gcc.c-torture/execute/931004-2.c execution fails on hppa64-hpux and cris-elf

2005-04-18 Thread jsm28 at gcc dot gnu dot org
--- Additional Comments From jsm28 at gcc dot gnu dot org 2005-04-18 11:16 --- Appeared on hppa64-hpux between 2005-04-09 01:34 UTC and 2005-04-09 01:38 UTC. I.e., caused by tree-cleanup-branch merge. -- What|Removed |Added

[Bug c++/21084] New: parse error on valid dependent default argument

2005-04-18 Thread sstrasser at systemhaus-gruppe dot de
template typename _Key,typename _Val,typename _KeyOfValue,typename _Compare,typename _Alloc class _Rb_tree; template typename _Key,typename _Compare,typename _Alloc class multiset{ multiset(_Compare const __comp, typename _Rb_tree_Key,_Key,_Key ,_Compare,_Alloc ::allocator_type const

[Bug middle-end/21006] [4.1 Regression] g++.dg/other/static11.C fails

2005-04-18 Thread jsm28 at gcc dot gnu dot org
--- Additional Comments From jsm28 at gcc dot gnu dot org 2005-04-18 11:20 --- Appeared on x86_64-linux between 2005-04-12 21:33 UTC and 2005-04-12 21:37 UTC. I.e., caused by 2005-04-12 Steven Bosscher [EMAIL PROTECTED] Stuart Hastings [EMAIL PROTECTED] Jan

[Bug fortran/15335] runtime error Attempt to allocate a negative amount of memory

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 12:03 --- Using the testcase from comment #4, it seems clear that there is no check on whether the slice selected has negative width... atmp.2.dim[0].stride = 1; atmp.2.dim[0].lbound = 0;

[Bug c++/21084] parse error on valid dependent default argument

2005-04-18 Thread sstrasser at systemhaus-gruppe dot de
--- Additional Comments From sstrasser at systemhaus-gruppe dot de 2005-04-18 12:04 --- here's another, simpler, testcase: template typename T1,typename T2 class A; //it works with only 1 parameter class B{ templatetypename U void hoh(typename AU,U::depname a=AU,U::depname()); }; I'd

[Bug middle-end/20218] Can't use __attribute__ ((visibility (hidden))) to hide a symbol

2005-04-18 Thread matz at suse dot de
-- What|Removed |Added CC||matz at suse dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218

[Bug c++/20240] [3.3 Regression] invalid using-redeclaration accepted

2005-04-18 Thread sstrasser at systemhaus-gruppe dot de
--- Additional Comments From sstrasser at systemhaus-gruppe dot de 2005-04-18 12:08 --- fixed -- What|Removed |Added Status|NEW

[Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations

2005-04-18 Thread matz at suse dot de
--- Additional Comments From matz at suse dot de 2005-04-18 12:49 --- So, any progress on this whole issue? I don't see either the pragmas in the C++ headers, nor HJs changes to the c++ frontend (despite testcase) in CVS. Just for the record, I see these problems (linkproblem with

[Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations

2005-04-18 Thread matz at suse dot de
--- Additional Comments From matz at suse dot de 2005-04-18 12:50 --- Oh, and just annotating the testcase with the visibility push/pop #pragma is not enough, probably because of the problem in the c++ frontend, HJ noted. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664

[Bug fortran/16861] segfault with doubly used module

2005-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 13:12 --- I think I found a patch for this one. See http://gcc.gnu.org/ml/fortran/2005-04/msg00507.html -- What|Removed |Added

[Bug c++/21085] New: Virtual memory exhausted with g++

2005-04-18 Thread strieder at informatik dot uni-kl dot de
Hello, there must be a serious problem in GNU C++ version 4.0.0 20050410 (prerelease) (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809) (SuSE Linux 9.2). The same happens with GNU C++ version 4.0.0 20050410 when built with itself. On a

[Bug c++/17445] too few template-parameter-lists

2005-04-18 Thread leslie dot barnes at amd dot com
--- Additional Comments From leslie dot barnes at amd dot com 2005-04-18 13:37 --- (In reply to comment #4) A segfault in GCC is always a bug, even if the code is wrong. Would you please open a new bugreport about it? Sorry, I wasn't clear. The binary seg faults, not the

[Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations

2005-04-18 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-04-18 14:14 --- Hi Michael and thanks for asking: really, I'm lost in this tangle of front-end, back-end and library issues. When I'm back from Oxford really want to move the issue forward, somehow, asking all the knowledgeable

[Bug tree-optimization/21086] New: VRP does not extract a value from a comparison expression.

2005-04-18 Thread kazu at cs dot umass dot edu
Consider: int foo (int *p) { int a = *p; int b = p != 0; *p = b; if (b) return a; else return 0; } Here is what I get with -O2 -fno-tree-dominator-opts foo (p) { int b; int a; int D.1235; bb 0: a_3 = *p_2; p_7 = p_2; b_4 = p_7 != 0B; *p_7 = b_4; p_10 = p_7;

[Bug regression/20973] [4.0/4.1 Regression] kdelibs (khtml) miscompiled by reload

2005-04-18 Thread matz at suse dot de
--- Additional Comments From matz at suse dot de 2005-04-18 14:22 --- This patch fixes the regressions in khtml for us. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20973

[Bug libstdc++/16611] Terrible code generated for vectorbool

2005-04-18 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-04-18 14:23 --- This is news to me. Does this mean that vectorbool is not going to be special- cased any more? That seems like a very bad idea to me, since programs will suddenly take 8 times as much memory (or even more).

[Bug libfortran/12884] [4.0] error in reading a namelist when it is predeced by a line with a SLASH

2005-04-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884

[Bug libfortran/18879] [4.0 only] ? not supported in namelist input

2005-04-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18879

[Bug fortran/19467] [4.0 only] ICE caused by CHARACTER array in NAMELIST read or write

2005-04-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.0.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19467

[Bug regression/20973] [4.0/4.1 Regression] kdelibs (khtml) miscompiled by reload

2005-04-18 Thread mmitchel at gcc dot gnu dot org
--- Additional Comments From mmitchel at gcc dot gnu dot org 2005-04-18 14:42 --- Michael, have you run the GCC testsuite with your patch? If not, please run on several platforms and confirm that you get no regressions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20973

[Bug c++/21087] New: ICE in do_nonmember_using_decl

2005-04-18 Thread sstrasser at systemhaus-gruppe dot de
the cause for this, the line reported, 17279, definitly is valid. attaching source. ICE with: gcc version 4.0.0 20050418 (prerelease) works with: gcc-Version 3.4.4 20050314 (prerelease) (Debian 3.4.3-12) -- Summary: ICE in do_nonmember_using_decl Product: gcc

[Bug regression/20973] [4.0/4.1 Regression] kdelibs (khtml) miscompiled by reload

2005-04-18 Thread matz at suse dot de
--- Additional Comments From matz at suse dot de 2005-04-18 14:51 --- From http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01508.html where I submitted the patch: the problem in khtml. I've bootstrapped it with gcc 4.0 on i686,x86_64,ppc,ppc64,ia64,s390 (s390x was breaking for

[Bug c++/21087] ICE in do_nonmember_using_decl

2005-04-18 Thread sstrasser at systemhaus-gruppe dot de
--- Additional Comments From sstrasser at systemhaus-gruppe dot de 2005-04-18 14:51 --- Created an attachment (id=8676) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8676action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21087

[Bug libgcj/10353] [3.3/3.4/4.0/4.1 regression] Java testsuite failures

2005-04-18 Thread mckinlay at redhat dot com
--- Additional Comments From mckinlay at redhat dot com 2005-04-18 14:55 --- I don't think a gij test failure is expected. Array_3 is known to fail when native compiled, however. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10353

[Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison

2005-04-18 Thread kazu at cs dot umass dot edu
Around tree-vrp.c:420, we have t = fold (build2 (LT_EXPR, TREE_TYPE (val1), val1, val2)); if (t == boolean_true_node) return -1; Since VAL1 is known to be of a pointer type, the result of fold will never be equal to boolean_true_node, which is of the boolean type. --

[Bug tree-optimization/20922] missed always false conditional

2005-04-18 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-18 15:18 --- Subject: Bug 20922 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-04-18 15:18:22 Modified files: gcc: ChangeLog fold-const.c

[Bug tree-optimization/20922] missed always false conditional

2005-04-18 Thread phython at gcc dot gnu dot org
--- Additional Comments From phython at gcc dot gnu dot org 2005-04-18 15:20 --- Fixed in the last commit. -- What|Removed |Added Status|ASSIGNED

[Bug middle-end/19986] [meta-bug] fold missing optimizations (compared to RTL)

2005-04-18 Thread phython at gcc dot gnu dot org
-- Bug 19986 depends on bug 20922, which changed state. Bug 20922 Summary: missed always false conditional http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20922 What|Old Value |New Value

[Bug tree-optimization/20922] missed always false conditional

2005-04-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20922

[Bug fortran/20945] about 2x perfomance regression in comparision with 3.4.2

2005-04-18 Thread hjl at lucon dot org
-- What|Removed |Added CC||hjl at lucon dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20945

[Bug middle-end/21049] [4.1 Regression] ICE with -fdump-tree-all and fortran

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:20 --- Fixed. -- What|Removed |Added Status|NEW |RESOLVED

[Bug middle-end/21049] [4.1 Regression] ICE with -fdump-tree-all and fortran

2005-04-18 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-18 17:21 --- Subject: Bug 21049 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-04-18 17:20:57 Modified files: gcc: ChangeLog Log message: Add

[Bug tree-optimization/20994] [4.1 regression] ICE with -ftree-vectorize

2005-04-18 Thread dpatel at apple dot com
--- Additional Comments From dpatel at apple dot com 2005-04-18 17:23 --- Subject: Re: [4.1 regression] ICE with -ftree-vectorize This is because invert_truthvalue() does not return valid GIMPLE expr. I've a patch, once it passes usual test cycle, I'll post patch. - Devang --

[Bug c++/21089] New: c++ accepts invalid static const double members with initializer

2005-04-18 Thread matz at suse dot de
See this testcase: - struct Ball { static const double diameter = 20; void setPosition(double ,double ); double vect_Pos; }; void move (double, double); void Ball::setPosition(double xval,double yval) { vect_Pos=xval;

[Bug c++/21089] c++ accepts invalid static const double members with initializer

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:32 --- Yes this is invalid C++ (and is rejected by -pedantic) but we somehow declared this as an extension see PR 11393 which is still open and other threads within a past year. *** This bug has been marked as

[Bug c++/11393] Initializer of static const float class member is not legal in c++98

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:32 --- *** Bug 21089 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c++/11393] Initializer of static const float class member is not legal in c++98

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:38 --- This is a documented deprecated feature: http://gcc.gnu.org/onlinedocs/gcc/Deprecated-Features.html#Deprecated-Features G++ allows static data members of const floating-point type to be declared with an

[Bug tree-optimization/21090] New: VRP does not notice nonzero-ness from a PHI node

2005-04-18 Thread kazu at cs dot umass dot edu
Consider: int g, h; int foo (int a) { int *p; if (a) p = g; else p = h; if (p != 0) return 1; else return 0; } With -O2 -fno-dominator-opts, VRP does not optimize away the if statement. This is because VRP does not run the propagator when it does not insert any

[Bug c++/21089] c++ accepts invalid static const double members with initializer

2005-04-18 Thread matz at suse dot de
--- Additional Comments From matz at suse dot de 2005-04-18 17:40 --- Indeed. Okay, but then this really is an optimization regression compared to gcc 3.3.x which compiled this just fine. As it's only rejected with -pedantic (and I think it's a sensible extension), shouldn't we make

[Bug c++/21089] C++ front-end does not inline the static const double members

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:47 --- (In reply to comment #2) Indeed. Okay, but then this really is an optimization regression compared to gcc 3.3.x which compiled this just fine. As it's only rejected with -pedantic (and I think it's a

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double members

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:50 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:53 --- It has nothing to do with members of classes either, see the following code: static const double a = 1.0; static const double b = a+1.0; double c() { return b; } We now longer inline 2.0 into c. --

[Bug c++/20912] C++ FE emitting assignments to read-only global symbols

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:56 --- Simple code which shows we now have a missed optimization: static const double a = 1.0; static const double b = a+1.0; double c() { return b; } See PR 21089. -- What|Removed

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread matz at suse dot de
--- Additional Comments From matz at suse dot de 2005-04-18 17:59 --- With -O0 we also don't inline 'a'. I thought in the past this already was done in the frontend, so the -O option didn't matter? If yes, this has changed (if not, well, I'm wrong ;-) ). --

[Bug middle-end/20991] [4.0 Regression] ICE in cgraph_mark_reachable_node

2005-04-18 Thread mmitchel at gcc dot gnu dot org
--- Additional Comments From mmitchel at gcc dot gnu dot org 2005-04-18 17:59 --- The patch in Comment #13 is OK for 4.0.0. It's a pessimization, but it's rather more obviously correct. Please apply forthwith. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20991

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:04 --- (In reply to comment #6) With -O0 we also don't inline 'a'. I thought in the past this already was done in the frontend, so the -O option didn't matter? If yes, this has changed (if not, well, I'm

[Bug target/21091] New: -many flag causes problems

2005-04-18 Thread carlos at mind dot be
When compiling for some specific powerpc targets (405 for instance, but for 403 is also true) the -many flag causes problems. This is added when your compiler command is something like: powerpc-eabi-gcc -c -finline-limit=7000 -msoft-float -mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:06 --- Also note this worked with 4.0.0 2004121, so something after that date changed the problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21089

[Bug target/21091] -many flag causes problems

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:10 --- Which binutils are you using because -many changed recently which is why it is done this way in gcc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21091

[Bug target/21091] -many flag causes problems

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:11 --- See the thread at http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01244.html to see why -many was added. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21091

[Bug target/21091] -many flag causes problems

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:12 --- And http://sources.redhat.com/bugzilla/show_bug.cgi?id=147 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21091

[Bug target/21091] -many flag causes problems

2005-04-18 Thread carlos at mind dot be
--- Additional Comments From carlos at mind dot be 2005-04-18 18:13 --- Subject: Re: -many flag causes problems On Monday 18 April 2005 20:10, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:10 --- Which

[Bug target/21091] -many flag causes problems

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:14 --- In my mind MOT messed up by making two different instructions which have the same opcode. Bad MOT (freescale now). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21091

[Bug target/21091] -many flag causes problems

2005-04-18 Thread carlos at mind dot be
--- Additional Comments From carlos at mind dot be 2005-04-18 18:15 --- Subject: Re: -many flag causes problems On Monday 18 April 2005 20:11, pinskia at gcc dot gnu dot org wrote: --- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:11 --- See the

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:19 --- (In reply to comment #8) Also note this worked with 4.0.0 20041211, so something after that date changed the problem. And it was broken by 4.0.0 20050113. so there is only a month time which it could

[Bug c++/13684] local static object variable constructed once but ctors and dtors called multiple times on same memory when called in multiple threads

2005-04-18 Thread jason at redhat dot com
--- Additional Comments From jason at redhat dot com 2005-04-18 18:28 --- Subject: Re: local static object variable constructed once but ctors and dtors called multiple times on same memory when called in multiple threads On 18 Apr 2005 09:07:00 -, adah at netstd dot com [EMAIL

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:34 --- Looks like this was caused by: 2004-12-16 Nathan Sidwell [EMAIL PROTECTED] PR c++/18905 * cp-tree.h (integral_constant_value): Declare. * call.c (null_ptr_cst_p): Use

[Bug tree-optimization/21081] [4.1 Regression] internal compiler error: verify_stmts failed.

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:39 --- Can you try this with today's compiler, I cannot reproduce it with it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21081

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread sabre at nondot dot org
--- Additional Comments From sabre at nondot dot org 2005-04-18 18:41 --- Is this optimization valid? Note that it will change the behavior of this c++ program: #include stdio.h static const double X = 1.0; static struct S { S(); } s; static const double Y = X+2.0; S::S() {

[Bug c++/21084] parse error on valid dependent default argument

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:42 --- This is a dup of one of the oldest bug in the database, PR 57. Basically right now it might be a bug in GCC or GCC is correct in the standard, the work around is the following: template typename

[Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:42 --- *** Bug 21084 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c++/21087] [4.0/4.1 Regression] ICE in do_nonmember_using_decl

2005-04-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Summary|ICE in |[4.0/4.1 Regression] ICE in |do_nonmember_using_decl |do_nonmember_using_decl Target

[Bug c++/21087] [4.0/4.1 Regression] ICE in do_nonmember_using_decl

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:04 --- Reduced testcase: extern C signed int toupper(signed int __c) throw(); namespace std { template typename a a toupper(a,int){} using ::toupper; } Note this has to do with builtin functions as if I

[Bug tree-optimization/21086] VRP does not extract a value from a comparison expression.

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:10 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW

[Bug tree-optimization/21088] VRP passes fold the type of operands of a comparison

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:12 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW

[Bug tree-optimization/21090] VRP does not notice nonzero-ness from a PHI node

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:13 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW

[Bug middle-end/21085] [4.0/4.1 Regression] Virtual memory exhausted with g++

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:18 --- On the mainline we don't get virtual memory exhausted but that is because there has been a patch or two to fix the memory usage but instead we get stack overflow: #1207 0x002fc6e0 in fold_binary

[Bug middle-end/21085] [4.0/4.1 Regression] Virtual memory exhausted with g++

2005-04-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Known to fail||4.0.0 4.1.0 Known to work||3.4.0

[Bug middle-end/21085] [4.0/4.1 Regression] Virtual memory exhausted with g++

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:24 --- Reduced testcase: int main( int argc, char * argv[ ] ) { int maxstringlen = 1; int limit = 0, maxblock = 0, maxblockrem = 0; maxblockrem = (maxstringlen) % (2147483647 + 1); } -- What

[Bug middle-end/21085] [4.0/4.1 Regression] Virtual memory exhausted with g++

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:25 --- (In reply to comment #2) Reduced testcase: Even though there is an overflow which the C front-end says the code was in an if (0) block so it should not matter about that as it is only undefined then but

[Bug c++/20912] C++ FE emitting assignments to read-only global symbols

2005-04-18 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-04-18 19:29 --- (In reply to comment #3) Simple code which shows we now have a missed optimization: static const double a = 1.0; static const double b = a+1.0; double c() { return b; } See PR 21089. I believe the

[Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not inline the static const double

2005-04-18 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-04-18 19:36 --- (In reply to comment #11) I believe the optimization necessitates the variable's declaration be changed (either explicitly, or by implication): static const double b = a+1.0; = const double b = a+1.0; If

[Bug c++/21092] New: friend inaccessibility

2005-04-18 Thread Ralf dot Wildenhues at gmx dot de
A recent change on CVS HEAD breaks this: $ cat a.cc class X { friend class Y; friend int foo(const Y); }; $ g++ -c -W -Wall a.cc a.cc:3: error: expected ',' or '...' before '' token a.cc:3: error: ISO C++ forbids declaration of 'Y' with no type The original bug report is against CLN with

[Bug middle-end/21085] [4.0/4.1 Regression] Virtual memory exhausted with g++

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:38 --- Most likely caused by: 2004-07-05 Roger Sayle [EMAIL PROTECTED] * fold-const.c (fold) TRUNC_MOD_EXPR: Optimize unsigned modulus by a power of two into a bit-wise AND, i.e. X % C as X

[Bug c++/21092] friend inaccessibility

2005-04-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 19:40 --- No, the code is invalid, as Y has not been interjected yet. This is a progression and not a regression. -- What|Removed |Added

[Bug tree-optimization/21093] New: missed tail call optimization when local address could escape

2005-04-18 Thread pinskia at gcc dot gnu dot org
Missed tail call optimization when local address could escape but not on the condition: void f(void); void f1(int *); void g(int i, int j) { if (j) return f(); return f1(i); } This might be a reduced testcase from fold_binary to fold_build2 where we have this issue, but I have not

[Bug testsuite/21094] New: libmudflap C++ tests run even when C++ not configured

2005-04-18 Thread laurent at guerby dot net
=== libmudflap Summary === # of expected passes1212 # of unexpected failures48 Compiler version: 4.0.0 20050418 (prerelease) Platform: x86_64-unknown-linux-gnu configure flags: --prefix=/home/guerby/tmp/install7/ --enable-__cxa_atexit --disable-nls --enable-threads

  1   2   >