[Bug c++/19628] New: g++ no longer accepts __builtin_constant_p in constant-expressions

2005-01-25 Thread austern at apple dot com
The following test case is accepted by 3.3 (both C and C++) and by 4.0 C, but not by 4.0 C++. #define FOO(x) (__builtin_constant_p(x) ? 1 : 2) int foo(int n) { switch(n) { case FOO(3): return 1; default: return 2; } } Was this change intentional? Even if it was, the C/C++ incomp

[Bug target/19597] [4.0 Regression] avr-gcc 4.0, multiplication by constant, very long code

2005-01-25 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-01-25 20:33 --- (In reply to comment #9) > Not good. With these two patches applied, the size of four > big AVR applications increased slightly. Although it would have been nicer if all 4 got smaller, it's not clear that a <

[Bug java/19629] New: simple anonymous constructor bug

2005-01-25 Thread tromey at gcc dot gnu dot org
test case: public class z { public static void main(String[] args) throws Throwable { final String name = "java_cup.terminal"; Class k; ClassLoader cl = new ClassLoader(null) { }; k = cl.loadClass(name); System.out.println(k); System.out.println(k.getProtectionDomain(

[Bug c++/19628] [3.4/4.0 Regression] g++ no longer accepts __builtin_constant_p in constant-expressions

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 20:44 --- : Search converges between 2003-01-27-trunk (#173) and 2003-02-03-trunk (#174). I should note this was not accepted before: : Search converges between 2001-01-14-trunk (#2) and 2001-01-21-trunk (#3). --

[Bug java/19629] simple anonymous constructor bug

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 20:45 --- Confirmed (there might be another bug like this somewhere). -- What|Removed |Added OtherBugsD

[Bug tree-optimization/19505] [4.0 Regression] Java bytecode ICE in except.c remove_unreachable_regions

2005-01-25 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2005-01-25 20:47 --- (In reply to comment #1) > Just a little more information. > changing "s = redirect_edge_succ_nodup (e, dest);" to a "return false;" in remove_forwarder_block > makes this pass so this is a tree optimization

[Bug ada/19409] ACATS c460010 - valgrind detects wrong code

2005-01-25 Thread laurent at guerby dot net
--- Additional Comments From laurent at guerby dot net 2005-01-25 20:59 --- confirmed with "4.0.0 20050115 (experimental)" (since current doesn't work) on x86_64-linux. -- What|Removed |Added ---

[Bug c++/19630] New: Program hangs when compiling the testcase with -m64 option.

2005-01-25 Thread yanliu at ca dot ibm dot com
The GCC compiler that I am using has the following information: Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs Configured with: /private/var/tmp/gcc/gcc-4031.obj~3/src/configure --disable- checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj- c++ --program

[Bug c++/19630] Program hangs when compiling the testcase with -m64 option.

2005-01-25 Thread yanliu at ca dot ibm dot com
--- Additional Comments From yanliu at ca dot ibm dot com 2005-01-25 21:08 --- Created an attachment (id=8068) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8068&action=view) testcase Command to reproduce the problem: g++ -m64 test.cpp a.out -- http://gcc.gnu.org/bugzilla/show

[Bug libfortran/19478] reading back from /dev/null

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 21:09 --- This may be legal according to the Fortran standard (which knows nothing about /dev/null), but it 1. breaks /dev/null semantics 2. viloates the principle of least surprise 3. is different from g77 4.

[Bug c++/19631] New: [4.0.0 regression] Strange warnings with -Wreturn-type

2005-01-25 Thread martin at mpa-garching dot mpg dot de
<< x; return trim(strstrm.str()); } [EMAIL PROTECTED]:~/tmp> g++ -v -Wreturn-type -c -O test.cc Using built-in specs. Configured with: /home/martin/software/gcc/configure --quiet --prefix=/home/martin/software/ugcc --enable-languages=c++,f95 --disable-checking Thread model: posix gcc version

[Bug c++/19631] [4.0.0 regression] Strange warnings with -Wreturn-type

2005-01-25 Thread martin at mpa-garching dot mpg dot de
-- What|Removed |Added Keywords||diagnostic Known to fail||3.3.4 Known to work|

[Bug ada/19632] New: x86_64 RHE3 internal error: segmentation fault

2005-01-25 Thread pogue dot iii at raytheon dot com
Compiling a simple ada "hello world" results in error... +GNAT BUG DETECTED+ | 3.2.3 20030502 (3.2.3-13) (x86_64-redhat-linux-gnu) GCC error: | | internal error: Segmentation fault | | No source file position information

[Bug c++/19630] Program hangs when compiling the testcase with -m64 option.

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 21:15 --- (In reply to comment #0) > The GCC compiler that I am using has the following information: Can you report this to Apple since that is looks like either a dyld problem or a linker problem because the assemb

[Bug ada/19632] x86_64 RHE3 internal error: segmentation fault

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 21:16 --- Please either report this to Redhat or try a new version of gcc. -- What|Removed |Added

[Bug c++/19631] [4.0.0 regression] Strange warnings with -Wreturn-type

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 21:17 --- (In reply to comment #0) > I'm working on a smaller testcase, but can't promise anything. > As far as I know the new behaviour must have been introduced in the last few > days. No reason to, this is a dup

[Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 21:17 --- *** Bug 19631 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug target/19597] [4.0 Regression] avr-gcc 4.0, multiplication by constant, very long code

2005-01-25 Thread roger at eyesopen dot com
--- Additional Comments From roger at eyesopen dot com 2005-01-25 21:23 --- I'm currently working on an updated and improved patch that should address some of this size regression. Failing that there are a number of middle-end improvements that can be made to address the code size incre

[Bug java/19473] rhug build problem, regression?

2005-01-25 Thread tromey at gcc dot gnu dot org
--- Additional Comments From tromey at gcc dot gnu dot org 2005-01-25 21:26 --- I rebuilt this part of rhug with the 20050124 gcj with no problems. Could you try a newer gcj? Also, what platform are you on? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19473

[Bug tree-optimization/19505] [4.0 Regression] Java bytecode ICE in except.c remove_unreachable_regions

2005-01-25 Thread kazu at cs dot umass dot edu
--- Additional Comments From kazu at cs dot umass dot edu 2005-01-25 21:38 --- I cannot reproduce this. How frustrating! CCing Zdenek because he wrote remove_forwarder_block. -- What|Removed |Added --

[Bug libfortran/19524] 5 times uninitialized var in libgfortran

2005-01-25 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-25 21:40 --- Subject: Bug 19524 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-01-25 21:40:25 Modified files: libgfortran: ChangeLog libgfortran/io : r

[Bug java/19473] rhug build problem, regression?

2005-01-25 Thread timo dot lindfors at iki dot fi
--- Additional Comments From timo dot lindfors at iki dot fi 2005-01-25 22:02 --- Sure. Seems it also fails with 2005-01-21 gcj&rhug. I'll try with 2005-01-25 next and report the results here. The platform is just a normal x86 (intel pentium 4) running fedora with kernel "2.6.10-1.741_F

[Bug c++/19630] Program hangs when compiling the testcase with -m64 option.

2005-01-25 Thread shebs at apple dot com
--- Additional Comments From shebs at apple dot com 2005-01-25 22:47 --- Subject: Re: Program hangs when compiling the testcase with -m64 option. pinskia at gcc dot gnu dot org wrote: >--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 >21:15 --- >(In re

[Bug tree-optimization/19241] [4.0 Regression] ICE in make_decl_rtl with inliner

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-25 23:02 --- Patch here: , note the wrong PR number is on the patch. -- What|Removed |Added

[Bug rtl-optimization/19579] [3.3/3.4/4.0 regression] -march=i686 generates a bogus program for x86*

2005-01-25 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-25 23:09 --- Subject: Bug 19579 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-01-25 23:09:10 Modified files: gcc: ChangeLog ifcvt.c gcc/testsu

[Bug c++/19630] Program hangs when compiling the testcase with -m64 option.

2005-01-25 Thread shebs at apple dot com
--- Additional Comments From shebs at apple dot com 2005-01-25 23:10 --- (In reply to comment #0) > The GCC compiler that I am using has the following information: > Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs > Configured with: /private/var/tmp/gcc/gcc-4031.obj~3/s

[Bug tree-optimization/19505] [4.0 Regression] Java bytecode ICE in except.c remove_unreachable_regions

2005-01-25 Thread tromey at gcc dot gnu dot org
version gcj (GCC) 4.0.0 20050125 (experimental) [...] This is x86 Fedora Core 2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19505

[Bug target/19597] [4.0 Regression] avr-gcc 4.0, multiplication by constant, very long code

2005-01-25 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-01-25 23:19 --- (In reply to comment #11) > The change described above should avoid AVR keeping HImode integer constants > in registers and then copying them when required (its as cheap to load an > immediate constant as it is t

[Bug tree-optimization/19633] New: local address incorrectly thought to escape

2005-01-25 Thread rth at gcc dot gnu dot org
struct S { int w, x, y, z; }; struct T { int r; struct S s; }; void bar (struct S, int); void foo (int a, struct T b) { struct S *c = 0; if (a) c = &b.s; bar (*c, a); } The call to bar appears to not be marked [tail-call] because b is marked as a call-clobbered local variable. Which II

[Bug tree-optimization/19633] local address incorrectly thought to escape

2005-01-25 Thread steven at gcc dot gnu dot org
-- What|Removed |Added OtherBugsDependingO||19616 nThis|| Status|UNCONFIRMED |NEW

[Bug tree-optimization/19633] local address incorrectly thought to escape

2005-01-25 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-01-25 23:32 --- ;; Function foo (foo) Visiting use-def links for 0B Visiting use-def links for &bD.1128.sD.1123 foo: Total number of aliased vops: 0 Referenced variables in foo: 4 Variable: cD.1131, UID 0, struct

[Bug middle-end/19616] [4.0 regression] missed tail call

2005-01-25 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-01-25 23:52 --- The proposed patch may or may not be right. Probably it is not but problems are not exposed at this point because of PR19633. Alright then, the conservative fix is to disallow sibcalls for functions

[Bug rtl-optimization/19198] ICE in copyprop_hardreg_forward_1

2005-01-25 Thread matt at gsicomp dot on dot ca
--- Additional Comments From matt at gsicomp dot on dot ca 2005-01-26 00:05 --- Upgraded to gcc-20050107 and the problem has gone away. Changing this bug to CLOSED. -- What|Removed |Added ---

[Bug middle-end/19616] [4.0 regression] missed tail call

2005-01-25 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-01-26 00:18 --- Another attempt is here: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01857.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19616

[Bug target/7013] [IA64] redeclaring volatile objects forces them always into long data

2005-01-25 Thread wilson at gcc dot gnu dot org
-- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |wilson at gcc dot gnu dot |dot org |org Status|NEW

[Bug target/7013] [IA64] redeclaring volatile objects forces them always into long data

2005-01-25 Thread wilson at gcc dot gnu dot org
--- Additional Comments From wilson at gcc dot gnu dot org 2005-01-26 00:28 --- I can reproduce this with gcc-3.1 and gcc-3.2.3. I can not reproduce this with the gcc-3.3 branch in CVS. I suspect this was fixed by a large 2002-05-18 patch from Richard Henderson that completely rewrote

[Bug libgcj/19611] create 'sources.zip' for use in eclipse

2005-01-25 Thread tromey at gcc dot gnu dot org
--- Additional Comments From tromey at gcc dot gnu dot org 2005-01-26 00:37 --- I'm handling this -- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |tro

[Bug rtl-optimization/19579] [3.3/3.4 regression] -march=i686 generates a bogus program for x86*

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-26 01:19 --- Fixed at least on the mainline. -- What|Removed |Added Known to fail|3.3.4 3.3.5 3.4.0

[Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined

2005-01-25 Thread andre dot maute at gmx dot de
--- Additional Comments From andre dot maute at gmx dot de 2005-01-26 01:20 --- (In reply to comment #11) > Anyways patch here: . the patch (used with gcc-4.0-20050123) doesn't fix the following code -- O3Wall-2.cc

[Bug c++/19634] New: Infinite memory usage on Alpha

2005-01-25 Thread falk at debian dot org
This makes 27_io/basic_istream/extractors_character/char/9826.cc fail (see e.g. http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg01098.html). I'll attach a semi-reduced test case. Doesn't seem to happen on other platforms. Profiling shows prominently "alpha_sa_mask" and "reload". Adding -da makes

[Bug c++/19634] Infinite memory usage on Alpha

2005-01-25 Thread falk at debian dot org
--- Additional Comments From falk at debian dot org 2005-01-26 01:43 --- Created an attachment (id=8072) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8072&action=view) Test case. Compile with no options -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19634

[Bug middle-end/19634] Infinite memory usage on Alpha

2005-01-25 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Component|c++ |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19634

[Bug middle-end/18008] [4.0 Regression] Duplicate mask on bitfield insertion

2005-01-25 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-01-26 01:55 --- Why do we cast "v" to "unsigned char" before casting to the bitfield type? This is already in the GIMPLE dump and comes from the front end: ;; Function store (store) store (bD.1118, vD.1119) { uns

[Bug middle-end/18008] [4.0 Regression] Duplicate mask on bitfield insertion

2005-01-25 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-01-26 02:12 --- g++ produces the same code as 3.3. The .optimized dump for cc1plus: void store(B*, int) (b, v) { unsigned int v.0; : b->b = (unsigned int) v; return; } Look mom, no casts! -- htt

[Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271

2005-01-25 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-26 02:28 --- Subject: Bug 19070 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-01-26 02:28:15 Modified files: libjava: ChangeLog libjava/testsuite/

[Bug middle-end/19600] [4.0 Regression] All acats tests fail

2005-01-25 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-26 03:20 --- Should be fixed by: 2005-01-25 Ian Lance Taylor * gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL. -- http://gcc.gnu.org

[Bug c++/19605] [4.0 Regression] Wrong member offset in inherited classes

2005-01-25 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-01-26 04:12 --- This is certainly undefined code: you are dereferencing the Null pointer. It's a different matter of QoI whether we want to support this anyway. It's basically a different way to say offsetof, an area in which

[Bug c++/19610] default constructor not called for static template member of template class

2005-01-25 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-01-26 04:16 --- The declaration of a specialization is not a definition, unless it has an explicit initializer call. The way you want to write this is as follows: template <> A B::a = A(); The standard specifically says

[Bug c++/19604] vtable error with virtual inheritance and arrays

2005-01-25 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-01-26 04:25 --- You are accessing something here var[1].adresse() that definitely is not an A, but sitting somewhere between other objects. That's definitely not allowed. W. -- What|Removed

[Bug middle-end/19405] 18_support/numeric_limits.cc fails on ppc-darwin (long doubles)

2005-01-25 Thread roger at eyesopen dot com
--- Additional Comments From roger at eyesopen dot com 2005-01-26 06:17 --- I've a patch to fix this problem. Unfortunately the only thing preventing me posting it to gcc-patches, is that I can't work out how to XFAIL a test in gcc.dg/torture for a given target. Specifically, /* { dg-

[Bug libgcj/19527] libgij fails to install in a temporary directory

2005-01-25 Thread debian-gcc at lists dot debian dot org
--- Additional Comments From debian-gcc at lists dot debian dot org 2005-01-26 06:57 --- yes, fixed by the mentioned patch. Matthias -- What|Removed |Added St

[Bug c/19635] New: static nested function workaround for -Wmissing-declarations (see bug #1517) no longer works

2005-01-25 Thread bartoldeman at users dot sourceforge dot net
Using gcc version 4.0.0 20050115 (experimental) (Debian 4.0-0pre4) I see that: int main (void) { int a; static int nested (int b) { return b + 2; } return (a + nested (a)); } gives: nested.c: In function 'main': nested.c:8: error: invalid storage class for function 'nes

<    1   2