[Bug rtl-optimization/32557] [4.3 Regression] internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:956

2007-08-20 Thread bonzini at gnu dot org
--- Comment #5 from bonzini at gnu dot org 2007-08-20 07:11 --- Richard, is this the issue you had a patch for? -- bonzini at gnu dot org changed: What|Removed |Added

[Bug fortran/31711] was "rhs array is changed while assiging to same lhs array"

2007-08-20 Thread pault at gcc dot gnu dot org
--- Comment #16 from pault at gcc dot gnu dot org 2007-08-20 07:16 --- comment #10 from Roger-Sayle is being kept "live" by this PR. Whilst I am interested, I have to give priority to other PRs to make best use of my limited time. I may yet come back to it Paul -- pault at gcc

[Bug bootstrap/33070] Bootstrap comparison failure between stage2/3 but no objdump differences

2007-08-20 Thread Axel dot Thimm at ATrpms dot net
--- Comment #2 from Axel dot Thimm at ATrpms dot net 2007-08-20 07:36 --- (In reply to comment #1) > Considering how old 3.4.3 is, I doubt we can do anything to help you here > except to suggest to try 4.2.1, the latest release. We would need to stay at 3.4.x. If we can reproduce this

[Bug bootstrap/33070] Bootstrap comparison failure between stage2/3 but no objdump differences

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-08-20 07:40 --- (In reply to comment #2) > We would need to stay at 3.4.x. If we can reproduce this for the latest 3.4.x > release (3.4.6) would there be interest in fixing it? Thanks! None as 3.4.x is no longer supported. Why do

[Bug tree-optimization/30564] [4.3 Regression] ice for legal code with -O3

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #16 from pinskia at gcc dot gnu dot org 2007-08-20 07:43 --- Subject: Bug 30564 Author: pinskia Date: Mon Aug 20 07:42:55 2007 New Revision: 127638 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127638 Log: 2007-08-20 Andrew Pinski <[EMAIL PROTECTED]> PR

[Bug tree-optimization/30564] [4.3 Regression] ice for legal code with -O3

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #17 from pinskia at gcc dot gnu dot org 2007-08-20 07:43 --- Fixed, sorry it took me this long to test/submit/commit this patch, I had been busy with other patches and other work. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/33025] [4.3 Regression] Wrong calling of placement new with conditionals

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2007-08-20 07:54 --- Subject: Bug 33025 Author: jakub Date: Mon Aug 20 07:53:58 2007 New Revision: 127639 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127639 Log: PR c++/33025 * init.c (build_new_1): Rename place

[Bug c/31886] (different from bug report c/31077 and 29241) C handling of always_inline attribute error and a solution

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-08-20 07:58 --- Honza, can you look into this pls? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31886

[Bug libmudflap/33119] New: Missing mf-runtime.h after make -j2 install

2007-08-20 Thread Joey dot ye at intel dot com
mf-runtime.h won't be installed with "make -j2 install" under x86_64 target. >From the log file apparantly it is installed at first and then removed when installing rest of gcc headers files. Can be caused by incorrect dependence between mudflap and other target. -- Summary: Missing

[Bug libmudflap/33119] Missing mf-runtime.h after make -j2 install

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-08-20 08:11 --- Nobody does "make install" with -j. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33119

[Bug c++/32992] [4.1/4.2/4.3 Regression] Incorrect code generated for anonymous union and return

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2007-08-20 08:11 --- Subject: Bug 32992 Author: jakub Date: Mon Aug 20 08:10:54 2007 New Revision: 127640 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127640 Log: PR c++/32992 * typeck.c (check_return_expr): Don'

[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-08-20 08:12 --- With - 1, we get: (plus:DI (symbol_ref:DI ("a") [flags 0x1402] ) (const_int -1 [0x])) While with +1, we get: (const:SI (plus:SI (symbol_ref:SI ("a") [flags 0x1402] ) (const_int 1 [0x1])))

[Bug c++/32992] [4.1/4.2/4.3 Regression] Incorrect code generated for anonymous union and return

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2007-08-20 08:17 --- Subject: Bug 32992 Author: jakub Date: Mon Aug 20 08:17:21 2007 New Revision: 127641 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127641 Log: PR c++/32992 * typeck.c (check_return_expr): Don'

[Bug c++/32992] [4.1/4.2/4.3 Regression] Incorrect code generated for anonymous union and return

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2007-08-20 08:19 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c++/33025] [4.3 Regression] Wrong calling of placement new with conditionals

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2007-08-20 08:19 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

Fix gcc bootstrap problem

2007-08-20 Thread Nick Clifton
Hi Guys, I ran a x86 hosted bootstrap of the mainline gcc and binutils sources over the weekend and it failed with this error report: bfd/elflink.c: In function 'elf_fixup_link_order': bfd/elflink.c:9893: error: type mismatch in unary expression long unsigned int int D.167

Re: Fix gcc bootstrap problem

2007-08-20 Thread Andrew Pinski
On 8/20/07, Nick Clifton <[EMAIL PROTECTED]> wrote: > bfd/ChangeLog > 2007-08-20 Nick Clifton <[EMAIL PROTECTED]> > > * elflink.c (elf_fixup_link_order): Rewrite conversion of > s->alignment_power into an offset mask in order to avoid a gcc > error message. This is wrong,

[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-08-20 08:35 --- Hmm, the difference between +/- 1 is that get_inner_reference returns bitpos of 8 and offset of 0 for +1, while -1 it returns bitpos of 0 and offset of -1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32563

[Bug tree-optimization/32544] [4.2 Regression] miscompiles Mesa's r300 DRI driver with -ftree-vrp

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-08-20 08:37 --- Confirmed. (use -m32 on x86_64) -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-08-20 08:38 --- The difference comes from: /* If OFFSET is constant, see if we can return the whole thing as a constant bit position. Otherwise, split it up. */ if (host_integerp (offset, 0) && 0 != (tem = size_bino

[Bug middle-end/27002] [4.3 regression] ICE with -fipa-pta when calling a function

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-08-20 08:45 --- Fixed, most likely by: 2007-08-19 Daniel Berlin <[EMAIL PROTECTED]> Fix PR 32772 Fix PR 32716 Fix PR 32328 Fix PR 32303 -- pinskia at gcc dot gnu dot org changed: Wh

[Bug c++/30309] ICE with g++ -fipa-pta and malloc(?)

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-08-20 08:48 --- Fixed on the mainline now. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/31068] ICE at -O1 -fipa-pta

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-08-20 08:49 --- Fixed on the trunk, most likely by: 2007-08-19 Daniel Berlin <[EMAIL PROTECTED]> Fix PR 32772 Fix PR 32716 Fix PR 32328 Fix PR 32303 -- pinskia at gcc dot gnu dot org changed:

[Bug c++/32716] [4.2/4.3 Regression] Wrong code generation. Alias and C++ virtual bases problem.

2007-08-20 Thread ht990332 at gmail dot com
--- Comment #10 from ht990332 at gmail dot com 2007-08-20 08:51 --- Will 4.2.2 get this fix or only trunk? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32716

[Bug c++/32305] ICE in initialize_flags_in_bb with -O -fipa-pta

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-08-20 08:52 --- I get the original ICE now. (gdb) p debug_generic_expr (stmt) return -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32305

[Bug libmudflap/33119] Missing mf-runtime.h after make -j2 install

2007-08-20 Thread Joey dot ye at intel dot com
--- Comment #2 from Joey dot ye at intel dot com 2007-08-20 08:53 --- (In reply to comment #1) > Nobody does "make install" with -j. I guess so, that's why I set it "minor". But does that mean error is expected with -j? My script had -j by accident and it costed me hours to identify the

[Bug tree-optimization/30392] [4.3 Regression] ice for legal kernel code with -Os

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-08-20 09:13 --- Even the non reduced testcase works now, so closing. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-08-20 09:13 --- Any news on this? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Last reconfirme

[Bug tree-optimization/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-08-20 09:18 --- This testcase needs a rereduction, the two reductions here work now. Reducing now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30840

[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-08-20 09:23 --- offset is not host_integerp because it has the overflow flag set because -1 in a.c[-1] has the overflow flag set. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32563

[Bug c++/32716] [4.2 Regression] Wrong code generation. Alias and C++ virtual bases problem.

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2007-08-20 09:27 --- Re-opening, 4.2 is still affected. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/32557] [4.3 Regression] internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:956

2007-08-20 Thread richard at codesourcery dot com
--- Comment #6 from richard at codesourcery dot com 2007-08-20 09:40 --- Subject: Re: [4.3 Regression] internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:956 "bonzini at gnu dot org" <[EMAIL PROTECTED]> writes: > --- Comment #5 from bonzi

[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2007-08-20 09:44 --- Which is because... TREE_OPERAND (pos, 1) = fold_build2 (PLUS_EXPR, itype, fold_convert (itype, TREE_OPERAND (pos, 1)),

RFC: Bogus gimplification type mismatch error ?

2007-08-20 Thread Nick Clifton
Hi Guys, I tried bootstrapping the mainline gcc sources over the weekend, using the current mainline binutils sources in an integrated source tree. The bootstrap failed with a problem in bfd/elflink.c which I have already reported and worked around. The build then failed later on with

Re: RFC: Bogus gimplification type mismatch error ?

2007-08-20 Thread Andrew Pinski
On 8/20/07, Nick Clifton <[EMAIL PROTECTED]> wrote: > But before I check such a patch in I would like to know if the gcc > error message is really correct, or if I have run across a > gimplification bug. As mentioned before this error message is really an internal error, we really should be

[Bug target/33062] ICE in emit_move_insn and expand_call with -fdefault-integer-8

2007-08-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #8 from fxcoudert at gcc dot gnu dot org 2007-08-20 10:20 --- (In reply to comment #7) > 1) The actual cause of the ICE. That point is unfortunately beyond my understanding. > 2) The difference between precision and type bitsize in this situation. > > We have to decide if

[Bug tree-optimization/29551] FAIL: gcc.dg/tree-ssa/pr26421.c scan-tree-dump-times V_MAY_DEF 1

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-08-20 10:26 --- Is this still valid? -- manu at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug tree-optimization/29551] FAIL: gcc.dg/tree-ssa/pr26421.c scan-tree-dump-times V_MAY_DEF 1

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-08-20 10:31 --- Fixed by: 2006-12-11 Aldy Hernandez <[EMAIL PROTECTED]> Diego Novillo <[EMAIL PROTECTED]> * gcc.dg/tree-ssa/pr26421.c: Likewise -- pinskia at gcc dot gnu dot org changed: What

[Bug debug/32914] [4.2/4.3 Regression] ICE in rtl_for_decl_init with -g option

2007-08-20 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug fortran/33120] New: Large module object files when declare arrays on Mac OSX

2007-08-20 Thread akt at cpom dot ucl dot ac dot uk
When gfortran compiles a module on OSX which declares defined size arrays the resulting module object file contains the array's allocated memory making the files potentially enourmous. e.g. module test_module real, dimension(1000) :: a end module test_module gfortran -c test_module.f90 If

[Bug c++/32756] [4.3 Regression] wrong ambiguous overload error?

2007-08-20 Thread mueller at gcc dot gnu dot org
--- Comment #4 from mueller at gcc dot gnu dot org 2007-08-20 11:13 --- ping.. any results? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32756

[Bug fortran/33105] F2003: Support is_iostat_end & is_iostat_eor intrinsics

2007-08-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-08-20 11:47 --- I wasn't even aware of their existence! I'll do it (unless you want to?), thanks for the doc patch. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2007-08-20 11:55 --- Here is a new reduced testcase (compile at -O3 -fno-strict-aliasing): struct rxvt_salloc { char *firstblock; unsigned int firstfree; }; struct line_t { unsigned int *t; unsigned int f; }; struct rxvt_sall

[Bug tree-optimization/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2007-08-20 11:57 --- > Here is a new reduced testcase (compile at -O3 -fno-strict-aliasing): One more note, this testcase ICEs with the C front-end now :). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30840

[Bug tree-optimization/30840] [4.3 Regression] ice for legal code with flags -O3 -fno-strict-aliasing

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2007-08-20 12:00 --- You can also now invoke it just with "-O1 -ftree-store-ccp" :). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30840

[Bug tree-optimization/33113] Failing to represent the stride (with array) of a dataref when it is not a constant

2007-08-20 Thread rakdver at kam dot mff dot cuni dot cz
--- Comment #3 from rakdver at kam dot mff dot cuni dot cz 2007-08-20 12:10 --- Subject: Re: Failing to represent the stride (with array) of a dataref when it is not a constant > --- Comment #2 from dorit at gcc dot gnu dot org 2007-08-20 05:55 --- > > Making us return symbol

[Bug c++/32756] [4.3 Regression] wrong ambiguous overload error?

2007-08-20 Thread nathan at gcc dot gnu dot org
--- Comment #5 from nathan at gcc dot gnu dot org 2007-08-20 12:21 --- I have a patch, which needs fuller testing. (I've been on vacation :)) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32756

[Bug fortran/20441] -finit-local-zero is missing from gfortran

2007-08-20 Thread arnaud02 at users dot sourceforge dot net
--- Comment #9 from arnaud02 at users dot sourceforge dot net 2007-08-20 12:28 --- Adding -finit-real=nan (http://gcc.gnu.org/ml/fortran/2007-08/msg00408.html) is a real bonus for gfortran. Any chance to add "-finit-real=snan" to set "Signalling NaN" ? A SNaN cannot be the result of an

[Bug c++/22451] C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-08-20 12:32 --- Subject: Bug 22451 Author: rguenth Date: Mon Aug 20 12:31:44 2007 New Revision: 127647 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127647 Log: 2007-08-20 Richard Guenther <[EMAIL PROTECTED]> PR

[Bug c++/22369] C++ produces mis-matched types with pointers to member functions

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-08-20 12:32 --- Subject: Bug 22369 Author: rguenth Date: Mon Aug 20 12:31:44 2007 New Revision: 127647 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127647 Log: 2007-08-20 Richard Guenther <[EMAIL PROTECTED]> PR

[Bug c++/32756] [4.3 Regression] wrong ambiguous overload error?

2007-08-20 Thread mueller at gcc dot gnu dot org
--- Comment #6 from mueller at gcc dot gnu dot org 2007-08-20 12:43 --- I`d be happy to help with testing :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32756

[Bug c++/33121] New: Problem when deriving methods from a class with same name but different argments

2007-08-20 Thread pietz at gmx dot de
Hello, I have the classes A and B where B is derived from A. The following methods are given: bool A::method(); virtual bool A::method(int arg); bool B::method(int); Now when I want to call method() on an object of type B I get the compiler error that there is no method() in class B and the onl

[Bug middle-end/32912] [4.3 Regression] ICE with vector code

2007-08-20 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug c++/22369] C++ produces mis-matched types with pointers to member functions

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2007-08-20 13:24 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c++/22451] C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-08-20 13:25 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug bootstrap/33122] New: Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread nickc at redhat dot com
Bootstrapping gcc from the 19 Aug 2008 mainline sources (and possibly earlier and/or later) with an integrated source tree containing the binutils mainline sources fails with: gcc/current/opcodes/i386-dis.c: In function 'dofloat': gcc/current/opcodes/i386-dis.c:4193: error: type mismatch in po

[Bug bootstrap/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread nickc at redhat dot com
--- Comment #1 from nickc at redhat dot com 2007-08-20 13:46 --- Created an attachment (id=14080) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14080&action=view) Compressed, pre-processed source file used to reproduce the problem This source file was compiled with this command li

[Bug c/22371] C front-end produces mis-match types in MODIFY_EXPR

2007-08-20 Thread nickc at redhat dot com
--- Comment #5 from nickc at redhat dot com 2007-08-20 13:48 --- Bug report #33122 may be a duplicate of this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22371

Re: RFC: Bogus gimplification type mismatch error ?

2007-08-20 Thread Nick Clifton
Hi Andrew, As mentioned before this error message is really an internal error, we really should be fixing GCC and not changing binutils. And I already mentioned this is most likely PR 22371 and that you should be filing bug reports about these two errors/ICEs. I have filed PR 33122 to cover th

[Bug c++/33121] Problem when deriving methods from a class with same name but different argments

2007-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-08-20 13:54 --- struct A { virtual int method(int); int method(); }; struct B: A { int method(int); }; That is the example. You need to add: using A::method; to get exposed in B, A::method. -- pinskia at gcc dot gnu do

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #7 from manu at gcc dot gnu dot org 2007-08-20 14:18 --- Even simpler testcase: int foo () { int i = 0; int j; if (1 == i) return j; return 0; } This will only be reliably fixed by building a better SSA representation. Moving the passes around will

[Bug middle-end/33086] warn for read-only uninitialized variables passed as arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2007-08-20 14:47 --- Andrew, what about functions marked with attribute "pure" ? int atoi(const char *) __attribute__ ((pure)); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33086

[Bug fortran/33097] Function decl trees without proper argument list

2007-08-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-08-20 14:47 --- Confirmed. The same thing is true for external procedures, like: program test real x external x print *, x(2) end program test real function x(i) integer i x = i + 1 end function x Two decls are gene

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2007-08-20 14:49 --- I now think that Andrew is right and that PR33086 and this one are INVALID. 'const' does not mean read-only in C++ at all, and much less in C. atoi(const char *) could always initialize buf[]. However, perhaps it can a

[Bug fortran/33117] Improve error message for generic interface with subroutines & functions

2007-08-20 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |minor Status|UNCONFIRMED |NEW Ever

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread bangerth at dealii dot org
--- Comment #11 from bangerth at dealii dot org 2007-08-20 14:56 --- (In reply to comment #10) > I now think that Andrew is right and that PR33086 and this one are INVALID. > 'const' does not mean read-only in C++ at all, and much less in C. atoi(const > char *) could always initialize b

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #12 from manu at gcc dot gnu dot org 2007-08-20 15:03 --- (In reply to comment #11) > (In reply to comment #10) > > I now think that Andrew is right and that PR33086 and this one are INVALID. > > 'const' does not mean read-only in C++ at all, and much less in C. > > atoi(con

[Bug fortran/20441] -finit-local-zero is missing from gfortran

2007-08-20 Thread langton at gcc dot gnu dot org
--- Comment #10 from langton at gcc dot gnu dot org 2007-08-20 15:07 --- (In reply to comment #9) > Adding -finit-real=nan (http://gcc.gnu.org/ml/fortran/2007-08/msg00408.html) > is > a real bonus for gfortran. > Any chance to add "-finit-real=snan" to set "Signalling NaN" ? > A SNaN

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #13 from manu at gcc dot gnu dot org 2007-08-20 15:08 --- (In reply to comment #12) > > This testcase has nothing to do with uninitialized variables. If the variable > is 'const' already, then there will never be a warning. Will it produce > segmentation fault for a local au

[Bug c++/7302] -Wnon-virtual-dtor should't complain of protected dtor

2007-08-20 Thread jason at gcc dot gnu dot org
--- Comment #24 from jason at gcc dot gnu dot org 2007-08-20 15:08 --- Subject: Bug 7302 Author: jason Date: Mon Aug 20 15:08:24 2007 New Revision: 127649 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127649 Log: PR c++/7302 * cp/class.c (finish_struct_1): Warn

[Bug c/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-08-20 15:30 --- Reduced testcase: struct dis386 { const char *x; }; static const struct dis386 float_reg[][2] = { { { "fadd" }, { "fadd" } }, }; void foo(int i, int j) { const struct dis386 *dp; dp = &float_reg[i - 1][j]

[Bug c/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-08-20 15:39 --- Ah no, this is a bug in fold-const introduced by the pplus merge. Fix: @@ -9541,7 +9547,9 @@ fold_binary (enum tree_code code, tree t tree arg01 = fold_convert (sizetype, TREE_OPERAND (arg0, 1));

[Bug c++/29365] Unnecessary anonymous namespace warnings

2007-08-20 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug c/33122] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-08-20 15:45 --- Created an attachment (id=14081) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14081&action=view) patch -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread bangerth at dealii dot org
--- Comment #14 from bangerth at dealii dot org 2007-08-20 15:54 --- (In reply to comment #12) > This testcase has nothing to do with uninitialized variables. No, of course. I only meant to reply to your assertion that there could be cases where a function initializes an object that is

[Bug middle-end/33122] [4.3 Regression] Mistaken type mismatch error prevents bootstrap

2007-08-20 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Component|c |middle-end Summary|Mistaken type mismatch error|[4.3 Regre

[Bug rtl-optimization/32557] [4.3 Regression] internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:956

2007-08-20 Thread rask at gcc dot gnu dot org
--- Comment #7 from rask at gcc dot gnu dot org 2007-08-20 16:06 --- Created an attachment (id=14082) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14082&action=view) Preprocessed testcase; compile with -O2 -g -m2a -fno-builtin It appears to fail the same way as earlier: (gdb) fr

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #15 from manu at gcc dot gnu dot org 2007-08-20 16:15 --- (In reply to comment #14) > This is meant to only counter your point that: > > 'const' does not mean read-only in C++ at all, and much less in C. > > atoi(const > > char *) could always initialize buf[]. > This simply

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread bangerth at dealii dot org
--- Comment #16 from bangerth at dealii dot org 2007-08-20 16:21 --- (In reply to comment #15) > Of course, the output is '5' and not '0'. So yes, atoi() seems perfectly able > to initialize buf. (or perhaps, I am still confused). I think you are. This program here segfaults:

[Bug target/32855] [4.3 Regression] g++.dg/tree-ssa/pr28003.C

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2007-08-20 16:40 --- This has nothing to do with dwarf2 nor unwinding. Things break during reload which decides to reload something into the b0 register (which is live at that point and not very general purpose register anyway). -- ht

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #17 from manu at gcc dot gnu dot org 2007-08-20 16:44 --- (In reply to comment #16) > (In reply to comment #15) > > > Of course, the output is '5' and not '0'. So yes, atoi() seems perfectly > > able > > to initialize buf. (or perhaps, I am still confused). > > Since use(

[Bug fortran/33097] Function decl trees without proper argument list

2007-08-20 Thread asl at math dot spbu dot ru
--- Comment #4 from asl at math dot spbu dot ru 2007-08-20 16:46 --- Ooops, attached patch is not complete. I also need: diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -1027,7 +1027,7 @@ gfc_get_nodes

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #18 from manu at gcc dot gnu dot org 2007-08-20 16:46 --- When I say "constant are not propagated" I mean "the constant value of a variable" such as: int i=0; use(&i); foo(i); Here, GCC does not propagate the value of i to do foo(0). Remove the call to use and then it

[Bug fortran/33097] Function decl trees without proper argument list

2007-08-20 Thread asl at math dot spbu dot ru
--- Comment #5 from asl at math dot spbu dot ru 2007-08-20 16:47 --- (In reply to comment #3) > Two decls are generated for function x, the first one (inside MAIN__) doesn't > have a proper argument list while the second one is OK. When I try to make > gfortran emit only one decl per ext

[Bug fortran/33097] Function decl trees without proper argument list

2007-08-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #6 from fxcoudert at gcc dot gnu dot org 2007-08-20 16:51 --- (In reply to comment #5) > How is it choking? Maybe I already seen this during preparation of quick > patch. Well, it's trying to reuse a decl without arglist for a function call with arguments, and it leads to

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread bangerth at dealii dot org
--- Comment #19 from bangerth at dealii dot org 2007-08-20 16:58 --- (In reply to comment #18) > When I say "constant are not propagated" I mean "the constant value of a > variable" such as: > > int i=0; > use(&i); > foo(i); > > Here, GCC does not propagate the value of i to do f

[Bug fortran/33097] Function decl trees without proper argument list

2007-08-20 Thread asl at math dot spbu dot ru
--- Comment #7 from asl at math dot spbu dot ru 2007-08-20 17:00 --- Well, I haven't seen this. The only segfault I've seen was in trans-types.c (patch mentioned) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33097

[Bug target/30572] [4.3 Regression] target libraries links against /libgcc_s.1.dylib instead of $(prefix)/lib/libgcc_s.1.dylib

2007-08-20 Thread echristo at apple dot com
--- Comment #6 from echristo at apple dot com 2007-08-20 17:11 --- No, I spoke to Daniel about it a while back, but he hasn't had time to look into it. It's definitely caused by the toplevel changes to libgcc. The basic idea is that the toplevel makefile re-installs libgcc into the gcc d

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread manu at gcc dot gnu dot org
--- Comment #20 from manu at gcc dot gnu dot org 2007-08-20 17:12 --- (In reply to comment #19) > > What if you had "const int i=0"? As I said before, use() may do a const-cast > to get rid of the constness of its argument, but the result is only > well-defined > if the object pointed t

[Bug c/33123] New: internal compiler error: in decode_addr_const ( arm-linux-gcc 3.4.6)

2007-08-20 Thread hemant dot jaiswal at gmail dot com
I am trying to cross-compile a filter driver for a printer, by adding it to CUPS/filter directory( file name rastertostar) for arm-linux-gcc ( version 3.4.6). This filter driver is compiling and working fine for i386 machine.But when i am compiling it for arm-linux-gcc it gives an internal compiler

[Bug c++/33124] New: C++ frontend should not warn about new a[0] in template context

2007-08-20 Thread ian at airs dot com
For this simplified code: template char* f1() { if (c == 0) return 0; else return new char[c]; } char* f2() { return f1<0>(); } the C++ frontend issues an unconditional warning. When compiling with no options, I get foo.cc: In function ‘char* f1() [with int c = 0]’: foo.cc:3: instantiated fro

[Bug bootstrap/33070] Bootstrap comparison failure between stage2/3 but no objdump differences

2007-08-20 Thread Axel dot Thimm at ATrpms dot net
--- Comment #4 from Axel dot Thimm at ATrpms dot net 2007-08-20 18:05 --- The same thing happens with 4.2.1, only that there are additional warnings before: Comparing stages 2 and 3 warning: ./libgcc/_fixunssfdi.o differs warning: ./libgcc/_udivmoddi4_s.o differs [...] warning: ./libgc

[Bug target/32855] [4.3 Regression] g++.dg/tree-ssa/pr28003.C

2007-08-20 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2007-08-20 18:25 --- Wow, scheduling plus reload does extremely horrible job here. This is b[0] = {}; b[0].a.j[0] = 0; b[0].a.j[1] = 0; b[0].a.j[2] = 0; b[0].a.j[3] = 0; b[0].a.j[4] = 0; b[0].a.j[5] = 0; b[0].a.j[6] = 0;

[Bug target/32855] [4.3 Regression] g++.dg/tree-ssa/pr28003.C

2007-08-20 Thread vmakarov at redhat dot com
--- Comment #4 from vmakarov at redhat dot com 2007-08-20 18:46 --- Yes, I belive my RA should manage the situation and use not only b0 register. But in general, I think we need also register pressure heuristics in insn scheduler before the register allocation to constrain insn movement

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2007-08-20 Thread gdr at cs dot tamu dot edu
--- Comment #21 from gdr at cs dot tamu dot edu 2007-08-20 18:50 --- Subject: Re: warn for uninitialized arrays passed as const* arguments "manu at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | When I say "constant are not propagated" I mean "the constant value of a | variable" s

Re: [Bug c++/33124] New: C++ frontend should not warn about new a[0] in template context

2007-08-20 Thread Gabriel Dos Reis
"ian at airs dot com" <[EMAIL PROTECTED]> writes: | For this simplified code: | | template | char* f1() { if (c == 0) return 0; else return new char[c]; } | char* f2() { return f1<0>(); } | | the C++ frontend issues an unconditional warning. When compiling with no | options, I get | | foo.cc:

[Bug c++/33124] C++ frontend should not warn about new a[0] in template context

2007-08-20 Thread gdr at cs dot tamu dot edu
--- Comment #1 from gdr at cs dot tamu dot edu 2007-08-20 18:57 --- Subject: Re: New: C++ frontend should not warn about new a[0] in template context "ian at airs dot com" <[EMAIL PROTECTED]> writes: | For this simplified code: | | template | char* f1() { if (c == 0) return 0; else

[Bug c/33125] New: ICE during boot

2007-08-20 Thread michelin60 at gmail dot com
Thread model: posix gcc version 4.3.0 20070820 (experimental) /var/tmp/43/build-131/./gcc/cc1plus -E -quiet -nostdinc++ -v -I/var/tmp/43/gcc-4.3.0/libstdc++-v3/../gcc -I/var/tmp/43/build-131/powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu -I/var/tmp/43/build-131/powerpc

[Bug c/33125] ICE during boot

2007-08-20 Thread michelin60 at gmail dot com
--- Comment #1 from michelin60 at gmail dot com 2007-08-20 19:07 --- Created an attachment (id=14083) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14083&action=view) preprocessed -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33125

[Bug translation/33126] New: gimplification failed during stdc++ translation

2007-08-20 Thread torsten at debian dot org
20070820 (experimental) The host system is Debian unstable as of last week, but I don't think that makes a difference :-) Complete command line: [EMAIL PROTECTED]:~/rtems/gnu/powerpc-rtems/powerpc-rtems/libstdc++-v3/libsupc++$ /home/torsten/rtems/gnu/powerpc-rtems/./gcc/xgcc -shared-libgcc -B

  1   2   >