[Bug rtl-optimization/40679] New: Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread bastian dot schick at sciopta dot com
If the following code is compiled with -Os for ARM or ColdFire, the exit condition for the loop is removed. Replacing *tbl++ with tbl[i] or using unsigned long instead of volatile unsigned long does not show the problem. I suspect the post-increment optimization to be the problem, because the Power

[Bug fortran/40678] Using a function as variable: ICE with 4.3, accepts invalid with 4.4/4.5

2009-07-08 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-07-08 07:36 --- I can reproduce the ICE with 4.1, 4.2 and 4.3 - but it no longer gives an ICE with 4.4 or 4.5. * * * However, there is also a bug in 4.4: It simply compiles. Expected: Either an error of the form (NAG f95) Error

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2009-07-08 08:00 --- I think one can consider supporting non-signed zeros as extension, similar to ifort which has: -assume nominus0The compiler uses Fortran 90/77 standard semantics in the

Re: [Bug rtl-optimization/40679] New: Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread Andrew Pinski
Sent from my iPhone On Jul 8, 2009, at 12:32 AM, "bastian dot schick at sciopta dot com" > wrote: If the following code is compiled with -Os for ARM or ColdFire, the exit condition for the loop is removed. Replacing *tbl++ with tbl[i] or using unsigned long instead of volatile unsigned

[Bug rtl-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread pinskia at gmail dot com
--- Comment #1 from pinskia at gmail dot com 2009-07-08 08:13 --- Subject: Re: New: Optimizer handles loops with volatiles and post-incr. wrong Sent from my iPhone On Jul 8, 2009, at 12:32 AM, "bastian dot schick at sciopta dot com" wrote: > If the following code is compiled with

[Bug target/40677] flag -mmultiple is ignored

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-07-08 08:21 --- patches should be sent to gcc-patc...@gcc.gnu.org with a changelog entry and a note how it was tested. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40677

[Bug rtl-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread bastian dot schick at sciopta dot com
--- Comment #2 from bastian dot schick at sciopta dot com 2009-07-08 08:24 --- (In reply to comment #1) > > Sent from my iPhone Oh, dude (which one :-) > On Jul 8, 2009, at 12:32 AM, "bastian dot schick at sciopta dot com" > > wrote: > > > If the following code is compiled with -O

[Bug tree-optimization/40676] [4.5 Regression] internal compiler error: verify_ssa error: definition in block 5 does not dominate use in block 7

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-08 08:25 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug rtl-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread ramana at gcc dot gnu dot org
--- Comment #3 from ramana at gcc dot gnu dot org 2009-07-08 08:49 --- On trunk with -fno-tree-vrp I see the correct code being generated. bs: @ Function supports interworking. @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0

[Bug rtl-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread bastian dot schick at sciopta dot com
--- Comment #4 from bastian dot schick at sciopta dot com 2009-07-08 09:06 --- (In reply to comment #3) > On trunk with -fno-tree-vrp I see the correct code being generated. It seems to be related to Bug #30785 (test for null pointer). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug lto/39003] internal compiler error: in output_parm_decl, at lto-function-out.c:2652

2009-07-08 Thread rubidium at openttd dot org
--- Comment #3 from rubidium at openttd dot org 2009-07-08 09:12 --- I cannot reproduce this error anymore in gcc-lto (lto merged with rev 149291) 4.5.0 20090706 (experimental) revision 149340. However... I don't have the setup I've ran the previous test on, as such I have build it with

[Bug tree-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread ramana at gcc dot gnu dot org
--- Comment #5 from ramana at gcc dot gnu dot org 2009-07-08 09:12 --- Richi, Can you comment on this one ? Ramana -- ramana at gcc dot gnu dot org changed: What|Removed |Added -

[Bug target/40680] New: extra register move

2009-07-08 Thread carrot at google dot com
Compile the attached source code with options -Os -mthumb -march=armv5te, gcc generates: push{r3, r4, r5, lr} .LCFI0: mov r4, r0 ldr r0, [r0] bl _Z3foof ldr r1, [r4, #4] @ sp needed for prologue add r5, r0, #0

[Bug target/40680] extra register move

2009-07-08 Thread carrot at google dot com
--- Comment #1 from carrot at google dot com 2009-07-08 09:36 --- Created an attachment (id=18155) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18155&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40680

[Bug fortran/40591] Procedure(interface): Rejected if interface is indirectly hostassociated

2009-07-08 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2009-07-08 09:48 --- Well. I suppose that I should accept the bug :-) I will commit the fix to 4.4 over the weekend, so please try to test it to destruction on 4.5. Paul -- pault at gcc dot gnu dot org changed: What

[Bug tree-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread mikpe at it dot uu dot se
--- Comment #6 from mikpe at it dot uu dot se 2009-07-08 09:59 --- (In reply to comment #2) > Replacing *tbl++ by tbl[i] gives this ARM code: > .L2: > mov r3, #10 > str r3, [r2], #4 > cmp r2, #0 > bne .L2 > bx lr > > See, gcc

[Bug target/40680] extra register move

2009-07-08 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-07-08 10:00 --- However Confirmed with trunk for Thumb1. The extra move doesn't appear for ARM or Thumb2 . The code below is what is generated for Thumb2 or ARM . .type _ZN3CCC5funcAEv, %function _ZN3CCC5funcAEv:

[Bug bootstrap/40651] bootstrap error on arm-linux-gnueabi: segfault in next_const_call_expr_arg

2009-07-08 Thread ramana at gcc dot gnu dot org
--- Comment #1 from ramana at gcc dot gnu dot org 2009-07-08 10:01 --- Can you attach a pre-processed file for someone to look at this ? This bug report seems incomplete. -- ramana at gcc dot gnu dot org changed: What|Removed |Added --

[Bug tree-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-07-08 10:10 --- Indeed the overflow invokes undefined behavior. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')

2009-07-08 Thread Thomas dot Lange at sun dot com
--- Comment #3 from Thomas dot Lange at sun dot com 2009-07-08 10:23 --- (In reply to comment #2) > why don't you add a 'virtual' > to your destructor and int f(int) functions, because they are implicitly > virtual anyway'. That is exactly the point this is about! I want a way so the c

[Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')

2009-07-08 Thread Thomas dot Lange at sun dot com
--- Comment #4 from Thomas dot Lange at sun dot com 2009-07-08 10:30 --- Side note: Of course having such an option is much more useful where the declaration of class A and B are in different header files and probably even in different modules. (For example: such cases are often found

[Bug lto/40681] New: [ICE] expand_expr_real_1, at expr.c:7382

2009-07-08 Thread rubidium at openttd dot org
Bug in lto revision 149340 (gcc 4.5 revision 149291 works fine) The used command line: /usr/local/lto/bin/g++-lto -v -save-temps -O2 -fomit-frame-pointer -flto -DUNIX -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -Wno-uninitialized -W -Wno-unused-parameter -Wformat=2

[Bug lto/40681] [ICE] expand_expr_real_1, at expr.c:7382

2009-07-08 Thread rubidium at openttd dot org
--- Comment #1 from rubidium at openttd dot org 2009-07-08 10:42 --- Created an attachment (id=18156) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18156&action=view) The .ii file of save-temps -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40681

[Bug other/40458] gcc flavours

2009-07-08 Thread hp at gcc dot gnu dot org
--- Comment #6 from hp at gcc dot gnu dot org 2009-07-08 10:47 --- (In reply to comment #0) If it's just about the version, perhaps you can make -V working again. Requires a working --enable-version-specific-runtime-libs of course. :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4

[Bug other/40458] gcc flavours

2009-07-08 Thread hp at gcc dot gnu dot org
--- Comment #7 from hp at gcc dot gnu dot org 2009-07-08 10:49 --- (In reply to comment #6) > If it's just about the version, perhaps you can make -V working again. Oh same version. Change the above to "make -b working again". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40458

[Bug target/40603] unnecessary conversion from unsigned byte load to signed byte load

2009-07-08 Thread ramana at gcc dot gnu dot org
-- ramana at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfir

[Bug c++/40682] New: Require direct binding of short-lived references to rvalues

2009-07-08 Thread dragan at plusplus dot co dot yu
In a recent discussion on comp.std.c++ "rvalue references returned from a function", as pointed by Niels Dekker and Micael Dark, a defect report: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#391 was accepted into C++0x WP. This has a significant impact on GCC. The current behav

[Bug lto/39003] internal compiler error: in output_parm_decl, at lto-function-out.c:2652

2009-07-08 Thread bje at gcc dot gnu dot org
--- Comment #4 from bje at gcc dot gnu dot org 2009-07-08 11:15 --- Reported as fixed by the original submitter. -- bje at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/30807] postreload bug (might be generic in trunk)

2009-07-08 Thread sezeroz at gmail dot com
--- Comment #9 from sezeroz at gmail dot com 2009-07-08 11:37 --- Will there be a backport of this to the branches 4.3 and 4.4? -- sezeroz at gmail dot com changed: What|Removed |Added ---

[Bug c++/40682] [C++0x] Require direct binding of short-lived references to rvalues

2009-07-08 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-07-08 11:41 --- Note, in general work on C++0x features doesn't really belong to Bugzilla, unless existing code crashes on new testcases, things like that. You understand that in general the situation would otherwise quickly e

[Bug fortran/40591] Procedure(interface): Rejected if interface is indirectly hostassociated

2009-07-08 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2009-07-08 11:47 --- It seems that gfortran.dg/proc_ptr_21.f90 is failing on i686-pc-linux-gnu and Intel64(?), see http://gcc.gnu.org/ml/gcc-testresults/2009-07/msg00755.html http://gcc.gnu.org/ml/gcc-regression/2009-07/msg00078.html -

[Bug lto/39042] [LTO] LTO tests don't cleanup temporary files

2009-07-08 Thread bje at gcc dot gnu dot org
--- Comment #3 from bje at gcc dot gnu dot org 2009-07-08 11:49 --- This is fixed in lto revision 149354. I ran make check-gcc and watched /tmp. Temporary files were removed as the testsuite ran. -- bje at gcc dot gnu dot org changed: What|Removed

[Bug rtl-optimization/30807] postreload bug (might be generic in trunk)

2009-07-08 Thread kkojima at gcc dot gnu dot org
--- Comment #10 from kkojima at gcc dot gnu dot org 2009-07-08 11:54 --- I don't think this is a regression, unfortunately. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30807

[Bug fortran/40591] Procedure(interface): Rejected if interface is indirectly hostassociated

2009-07-08 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-07-08 12:37 --- (In reply to comment #4) > It seems that gfortran.dg/proc_ptr_21.f90 is failing on i686-pc-linux-gnu and > Intel64(?), see I can - somewhat - reproduce it. It does not fail but valgrind shows (x86-64-linux and i686-l

[Bug c++/40682] [C++0x] Require direct binding of short-lived references to rvalues

2009-07-08 Thread dragan at plusplus dot co dot yu
--- Comment #2 from dragan at plusplus dot co dot yu 2009-07-08 12:38 --- Although this is a feature request in the context that the old behavior was correctly implemented and it will be different in C++0x, it still presents a bug in the current C++0x implementation. It creates copies o

[Bug c++/40682] [C++0x] Require direct binding of short-lived references to rvalues

2009-07-08 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-07-08 12:47 --- To be clear, I'm not telling you anything specific about the development process. Actually, that's exactly the point, this is ongoing development of experimental features, no guarantees, no guarantees of perfec

[Bug tree-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread bastian dot schick at sciopta dot com
--- Comment #8 from bastian dot schick at sciopta dot com 2009-07-08 13:06 --- (In reply to comment #6) > (In reply to comment #2) > > Replacing *tbl++ by tbl[i] gives this ARM code: > > .L2: > > mov r3, #10 > > str r3, [r2], #4 > > cmp r2, #0 > >

[Bug tree-optimization/40679] Optimizer handles loops with volatiles and post-incr. wrong

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-07-08 13:11 --- induction variable optimization is different w/o volatile. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40679

[Bug fortran/40683] New: gfortran.dg/proc_ptr_21.f90 doesn't work for 32bit

2009-07-08 Thread hjl dot tools at gmail dot com
On Linux/ia32, revision 149362 gave FAIL: gfortran.dg/proc_ptr_21.f90 -O1 execution test FAIL: gfortran.dg/proc_ptr_21.f90 -O2 execution test FAIL: gfortran.dg/proc_ptr_21.f90 -O3 -fomit-frame-pointer execution test FAIL: gfortran.dg/proc_ptr_21.f90 -O3 -fomit-frame-pointer -funroll-all-loo

[Bug fortran/40629] Host association problem

2009-07-08 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2009-07-08 13:22 --- Created an attachment (id=18157) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18157&action=view) Fix for bug - not regtested yet This handles host_assoc_function_*.f90 correctly but is not yet regtested. The t

[Bug middle-end/39891] Bogus location given for warning, no warning at real location: dereferencing pointer �� does break strict-aliasing rules

2009-07-08 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2009-07-08 13:25 --- (In reply to comment #3) > > Note that getInt is completely inlined and there is no location involving > that function available anymore :/ The difficulties of C++ and late > diagnostics ... Don't we keep abstract_or

[Bug fortran/40683] gfortran.dg/proc_ptr_21.f90 doesn't work for 32bit

2009-07-08 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2009-07-08 13:28 --- See pr40591 comments #4 and #5. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40683

[Bug middle-end/40156] [4.4 Regression] Possible bogus warning in libstdc++ headers

2009-07-08 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2009-07-08 13:28 --- I am going to close this as FIXED, since it cannot be reproduced anymore. If anyone manages to reproduce it in GCC 4.5, please reopen. -- manu at gcc dot gnu dot org changed: What|Removed

[Bug fortran/40591] Procedure(interface): Rejected if interface is indirectly hostassociated

2009-07-08 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2009-07-08 13:28 --- (In reply to comment #5) > That is solved by adding: >i = 0 > to subroutine test (while any other number causes the abortion). > Indeed - that was in the test originally; I do not know what happened to it. I'll

[Bug fortran/40683] gfortran.dg/proc_ptr_21.f90 doesn't work for 32bit

2009-07-08 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2009-07-08 13:29 --- (In reply to comment #1) > See pr40591 comments #4 and #5. > Indeed! I'll fix it tonight. Thanks, HJ Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/40591] Procedure(interface): Rejected if interface is indirectly hostassociated

2009-07-08 Thread dominiq at lps dot ens dot fr
--- Comment #7 from dominiq at lps dot ens dot fr 2009-07-08 13:31 --- pr40683 is a duplicate. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40591

[Bug c++/40557] [4.5 Regression] ICE with template union

2009-07-08 Thread hjl at gcc dot gnu dot org
--- Comment #4 from hjl at gcc dot gnu dot org 2009-07-08 14:30 --- Subject: Bug 40557 Author: hjl Date: Wed Jul 8 14:30:12 2009 New Revision: 149371 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149371 Log: 2009-07-08 H.J. Lu Backport from mainline: 2009-0

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread burnus at gcc dot gnu dot org
--- Comment #11 from burnus at gcc dot gnu dot org 2009-07-08 14:55 --- Created an attachment (id=18158) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18158&action=view) Patch - lightly tested Attached patch fixes the problem [independent of "-f(no-)signed-zeros"/-ffast-math]. Th

[Bug target/40677] flag -mmultiple is ignored

2009-07-08 Thread edmar at freescale dot com
--- Comment #4 from edmar at freescale dot com 2009-07-08 15:06 --- I did not run any test suite, nor prepared any test case suitable for inclusion in dejagnu suite. I opened a bug hopping the information I gave would help resolve the issue faster. -- http://gcc.gnu.org/bugzilla/sho

[Bug c++/40684] New: ICE in tsubst

2009-07-08 Thread jakub at gcc dot gnu dot org
// { dg-options "-std=c++0x" } struct A { }; template typename S::A foo (S c, T t, U u) { } struct B { struct C { template C (U t) { A a; A b = foo (this, a, t); } } c; B () : c (A ()) { } }; int main () { B f; } ICEs in tsubst (seeing ADDR_EXPR ther

[Bug c++/40685] New: explicit constructor is used where only implicit ctors are allowed

2009-07-08 Thread kretz at kde dot org
The following testcase fails on g++ 4.4.0 and 4.3.2: #include enum Enum { Foo }; class A { public: A(int y) : x(y) {} explicit A(Enum) : x(1) {} int x; }; static void fun(A a = Foo) { if (a.x != static_cast(Foo)) { abort(); } } int main() {

[Bug target/38900] ICE: unable to find a register to spill

2009-07-08 Thread rth at gcc dot gnu dot org
--- Comment #16 from rth at gcc dot gnu dot org 2009-07-08 16:41 --- Subject: Bug 38900 Author: rth Date: Wed Jul 8 16:41:23 2009 New Revision: 149373 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149373 Log: PR target/38900 * config/i386/i386.h (CONDITIONAL_RE

[Bug target/40668] 64-bit sparc miscompiles memcpy of argument inside switch

2009-07-08 Thread mikpe at it dot uu dot se
--- Comment #7 from mikpe at it dot uu dot se 2009-07-08 16:43 --- 4.4-20090630 plus this fix bootstrapped fine, fixed the test case, built a working 2.6.31-rc2 Linux kernel, and built a working Erlang VM. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40668

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread kargl at gcc dot gnu dot org
--- Comment #12 from kargl at gcc dot gnu dot org 2009-07-08 16:49 --- Created an attachment (id=18160) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18160&action=view) dejagnu testr case Test that sign(x, +-0) conforms to F95. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread kargl at gcc dot gnu dot org
--- Comment #13 from kargl at gcc dot gnu dot org 2009-07-08 16:50 --- Created an attachment (id=18161) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18161&action=view) dejagnu test case Test case for sign(x,+-0) when the new -fno-sign-zero option is used. -- http://gcc.gnu.o

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread kargl at gcc dot gnu dot org
--- Comment #14 from kargl at gcc dot gnu dot org 2009-07-08 16:56 --- (In reply to comment #11) > Created an attachment (id=18158) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18158&action=view) [edit] > Patch - lightly tested > > Attached patch fixes the problem [independent of

[Bug target/38900] ICE: unable to find a register to spill

2009-07-08 Thread rth at gcc dot gnu dot org
--- Comment #17 from rth at gcc dot gnu dot org 2009-07-08 16:59 --- Subject: Bug 38900 Author: rth Date: Wed Jul 8 16:59:15 2009 New Revision: 149374 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149374 Log: PR target/38900 * config/i386/i386.h (CONDITIONAL_RE

[Bug target/38900] ICE: unable to find a register to spill

2009-07-08 Thread rth at gcc dot gnu dot org
--- Comment #18 from rth at gcc dot gnu dot org 2009-07-08 17:03 --- Fixed. -- rth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug testsuite/40625] [4.5 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2009-07-08 17:08 --- I can reproduce the error with plugin.exp not struct-layout-1.exp. This fixes it for me, does it for you guys? Index: gcc/testsuite/lib/gcc.exp === ---

[Bug target/40668] 64-bit sparc miscompiles memcpy of argument inside switch

2009-07-08 Thread blp at cs dot stanford dot edu
--- Comment #8 from blp at cs dot stanford dot edu 2009-07-08 17:30 --- Wow, that's amazingly fast turnaround. Thanks so much guys! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40668

[Bug testsuite/40625] [4.5 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp"

2009-07-08 Thread tjruwase at google dot com
--- Comment #4 from tjruwase at google dot com 2009-07-08 17:59 --- Subject: Re: [4.5 Regression] Errors in "make -k check-gcc RUNTESTFLAGS=plugin.exp" Your fix works for me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40625

[Bug debug/40659] A simple struct member offset doesn't need a full dwarf location expression

2009-07-08 Thread mark at gcc dot gnu dot org
--- Comment #1 from mark at gcc dot gnu dot org 2009-07-08 18:08 --- Subject: Bug 40659 Author: mark Date: Wed Jul 8 18:07:47 2009 New Revision: 149377 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149377 Log: 2009-07-08 Mark Wielaard PR debug/40659 * dwarf

[Bug c/40686] New: Optimization Problem With Data Conversion

2009-07-08 Thread songyulu at hdfgroup dot org
Our HDF5 software has been having some data conversion problem with GCC's optimization for a few years. One example is to convert data from short to int. You can find the program at ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/slu/tmp/ctest.c When I use "gcc -O2" or "gcc -O3" to compile it, I get

[Bug debug/40659] A simple struct member offset doesn't need a full dwarf location expression

2009-07-08 Thread mark at gcc dot gnu dot org
--- Comment #2 from mark at gcc dot gnu dot org 2009-07-08 18:21 --- Patch pushed. -- mark at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIR

[Bug c/40686] Optimization Problem With Data Conversion

2009-07-08 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-07-08 18:22 --- You are violating C/C++ aliasing rules: d = (uint8_t*)&aligned; /* This line causes the trouble. */ *((int*)d) = (int)(*((short*)s)); You are writing into a long long via an int which

[Bug c/21920] aliasing violations

2009-07-08 Thread pinskia at gcc dot gnu dot org
--- Comment #142 from pinskia at gcc dot gnu dot org 2009-07-08 18:22 --- *** Bug 40686 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40683] gfortran.dg/proc_ptr_21.f90 doesn't work for 32bit

2009-07-08 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2009-07-08 19:00 --- Subject: Bug 40683 Author: pault Date: Wed Jul 8 19:00:17 2009 New Revision: 149383 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149383 Log: 2008-07-08 Paul Thomas PR fortran/40683 * gfo

[Bug fortran/40629] Host association problem

2009-07-08 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2009-07-08 19:05 --- (In reply to comment #3) > Created an attachment (id=18157) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18157&action=view) [edit] > Fix for bug - not regtested yet > > This handles host_assoc_function_*.f90 co

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread burnus at gcc dot gnu dot org
--- Comment #15 from burnus at gcc dot gnu dot org 2009-07-08 19:35 --- Subject: Bug 40675 Author: burnus Date: Wed Jul 8 19:34:49 2009 New Revision: 149390 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149390 Log: 2009-07-08 Tobias Burnus PR fortran/40675

[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration

2009-07-08 Thread aapo dot rantalainen at gmail dot com
--- Comment #3 from aapo dot rantalainen at gmail dot com 2009-07-08 19:36 --- Above code doesn't compile: int main(int argc, char *argv[]) { int a=1; switch (a) { case 1: int b=2; break; } return 0; } Error "a label can only be part of a statement and a declara

[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration

2009-07-08 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-07-08 19:42 --- (In reply to comment #3) > Above code doesn't compile: Yes it should not be compile. The error message has been improved to tell you what the problem is (that is what Manu was saying in his comment #2). -- htt

[Bug tree-optimization/34437] several test failures for gcc.dg/vect/no-scevccp-*

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #8 from janis at gcc dot gnu dot org 2009-07-08 19:48 --- Fixed awhile ago by changing -mabi=altivec to the default for powerpc*-linux. -- janis at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/40687] New: [C++0x]: error with auto and 7.1.6.4/7 in N2914

2009-07-08 Thread bernhard dot merkle at googlemail dot com
Hi, I think there is a bug in g++ 4.4 concerning the implementation of auto. 7.1.6.4/7 in N2914 The following program compiles, but it should be rejected by g++. int main() { auto i = 10, d = 5.0; // error! shall not compile in C++0x return 0; } $ /opt/gcc-4.4/bin/g++ -v Using built-

[Bug c++/40687] [C++0x]: error with auto and 7.1.6.4/7 in N2914

2009-07-08 Thread bernhard dot merkle at googlemail dot com
--- Comment #1 from bernhard dot merkle at googlemail dot com 2009-07-08 20:07 --- Created an attachment (id=18162) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18162&action=view) program which should not compile -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40687

[Bug c++/40684] ICE in tsubst

2009-07-08 Thread dodji at gcc dot gnu dot org
--- Comment #1 from dodji at gcc dot gnu dot org 2009-07-08 20:11 --- I could reproduce on trunk. I am testing the patchlet below: diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index b4bd465..d042f98 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -12949,8 +12949,9 @@ type_unification_real (tre

[Bug c++/40688] New: [C++0x]: error with auto direct and copy initalization

2009-07-08 Thread bernhard dot merkle at googlemail dot com
Hi, I think there is another bug in g++ 4.4 concerning the implementation of auto with direct and copy initialization 7.1.6.4/3 in N2914 The following program should compile, but is rejected by g++. int main() { auto v1 = 1; // copy initialization syntax auto v2(2); // direct initializ

[Bug c++/40688] [C++0x]: error with auto direct and copy initalization

2009-07-08 Thread bernhard dot merkle at googlemail dot com
--- Comment #1 from bernhard dot merkle at googlemail dot com 2009-07-08 20:16 --- Created an attachment (id=18163) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18163&action=view) program which should compile -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40688

[Bug c++/40689] New: [C++0x]: error with initializer list in N2672

2009-07-08 Thread bernhard dot merkle at googlemail dot com
Hi, I think there is a bug in g++ 4.4 concerning the implementation of initializer list. N2672 The following program does not compiles, but it should be accepted by g++. // /opt/gcc-4.4/bin/g++ --std=c++0x -Wall int main() { class X { public: X(): data {1,2,3,4,5} {} private: const sho

[Bug c++/40689] [C++0x]: error with initializer list in N2672

2009-07-08 Thread bernhard dot merkle at googlemail dot com
--- Comment #1 from bernhard dot merkle at googlemail dot com 2009-07-08 20:29 --- Created an attachment (id=18164) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18164&action=view) program which should compile -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40689

[Bug c++/40689] [C++0x]: error with initializer list in N2672

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-08 20:38 --- Before filing more bugs please verify the bugs exist on a recent version of the development trunk for GCC 4.5. C++0x is considered incomplete technology preview only. -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug tree-optimization/40690] New: invalid conversion in gimple call for vect tests

2009-07-08 Thread janis at gcc dot gnu dot org
On powerpc*-unknown-linux-gnu several vectorization tests ICE in verify_stmts after the error message "invalid conversion in gimple call": gcc.dg/vect/no-scevccp-outer-7.c gcc.dg/vect/no-scevccp-outer-13.c gcc.dg/vect/slp-perm-1.c gcc.dg/vect/slp-perm-2.c gcc.dg/vect/slp-perm-3

[Bug c/39959] [4.5 Regression] IMA is broken

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #4 from janis at gcc dot gnu dot org 2009-07-08 20:46 --- On powerpc*-linux this test begins failing in the same way with this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=146831 r146831 | rguenth | 2009-04-27 11:18:38 + (Mon, 27 Apr 2009) -- http://gcc.g

[Bug tree-optimization/39960] [4.5 Regression] struct-reorg is broken

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #2 from janis at gcc dot gnu dot org 2009-07-08 20:46 --- On powerpc*-linux the test begins to fail in the same way with this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=146831 r146831 | rguenth | 2009-04-27 11:18:38 + (Mon, 27 Apr 2009) -- http://gcc.gn

[Bug tree-optimization/40690] invalid conversion in gimple call for vect tests

2009-07-08 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-07-08 20:49 --- I think this is really PR 30210. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40690

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread burnus at gcc dot gnu dot org
--- Comment #16 from burnus at gcc dot gnu dot org 2009-07-08 20:55 --- Close as FIXED (on the trunk [= 4.5]). Greg, thanks for the report. Using a 4.5/trunk build (e.g. one of the nightly builds) gfortran will offer the option -fno-sign-zero which allows your program to work. However

[Bug c++/40689] [C++0x]: error with initializer list in N2672

2009-07-08 Thread bernhard dot merkle at googlemail dot com
--- Comment #3 from bernhard dot merkle at googlemail dot com 2009-07-08 20:56 --- makes sense, thanks for the hint. is there doc to which N papers the 4.5 trunk relates ? e.g. like http://gcc.gnu.org/projects/cxx0x.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40689

[Bug libstdc++/40691] New: bug in logical not operator for valarray used with slice

2009-07-08 Thread janis at gcc dot gnu dot org
Use of operator! (logical not) from valarray with slice fails. For example, -- #include void test01() { const std::valarray vi(12); std::valarray vb1(12); std::valarray vb2(3); std::slice s(0,3,4); vb1 = !vi;

[Bug tree-optimization/40690] invalid conversion in gimple call for vect tests

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-08 21:03 --- It is. *** This bug has been marked as a duplicate of 30210 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/30210] [4.5 Regression] Altivec builtins have inaccurate return types

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2009-07-08 21:03 --- *** Bug 40690 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/40675] Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility

2009-07-08 Thread gdsjaar at sandia dot gov
--- Comment #17 from gdsjaar at sandia dot gov 2009-07-08 21:03 --- Subject: Re: Support -fnosign-zero for SIGN intrinsic for Fortran 77 compatibility Thanks for the quick response. I agree that the ultimate fix is to remove that idiom from the code; however, when dealing with decad

[Bug target/30210] [4.5 Regression] Altivec builtins have inaccurate return types

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2009-07-08 21:04 --- Mike - you said you have patches for this? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40689] [C++0x]: error with initializer list in N2672

2009-07-08 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-07-08 21:05 --- I don't think so. Likely nobody bothered to update that document recently. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40689

[Bug c/39959] [4.5 Regression] IMA is broken

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #5 from janis at gcc dot gnu dot org 2009-07-08 21:28 --- The test started failing with the patch reported in comment #8 because it enabled type checking; sorry for the noise. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39959

[Bug tree-optimization/39960] [4.5 Regression] struct-reorg is broken

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2009-07-08 21:29 --- The test started failing with the patch reported in comment #2 because it enabled type checking; sorry for the noise. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39960

[Bug c/37231] GCC does not compile code with label statements that are followed by a declaration

2009-07-08 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2009-07-08 21:34 --- (In reply to comment #4) > (In reply to comment #3) > > Above code doesn't compile: > > Yes it should not be compile. The error message has been improved to tell you > what the problem is (that is what Manu was saying

[Bug middle-end/39976] [4.5 Regression] Big sixtrack degradation on powerpc 32/64 after revision r146817

2009-07-08 Thread pthaugen at gcc dot gnu dot org
--- Comment #20 from pthaugen at gcc dot gnu dot org 2009-07-08 21:53 --- Created an attachment (id=18165) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18165&action=view) Reduced testcase The attatched testcase exhibits the problem with the load-hit-store. It's resulting from ch

[Bug c++/8045] Missing "unused variable" warning

2009-07-08 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2009-07-08 22:08 --- Are there some cases where a declaration such T x = y can be considered an use of 'x' by itself? The following patch warns for this, but it also produces warnings for some testcases in the testsuite. Index: gcc/cp/ini

[Bug middle-end/40692] New: [4.5 Regression] Endless recursion between fold_ternary and fold_cond_expr_with_comparison

2009-07-08 Thread jakub at gcc dot gnu dot org
Linux kernel, in particularly xen-blkfront.c, doesn't compile with GCC trunk. 4.5.0 20090625 was still fine, 4.5.0 20090630 is already wrong. Simplified testcase: #define M1(x) (((x) & 0x0002) ? 0x2 : ((x) & 0x1)) #define M2(x) (((x) & 0x000c) ? M1 ((x) >> 2) << 2 : M1 (x)) struct A { cha

[Bug libstdc++/40691] bug in logical not operator for valarray used with slice

2009-07-08 Thread janis at gcc dot gnu dot org
--- Comment #1 from janis at gcc dot gnu dot org 2009-07-08 22:27 --- Subject: Bug 40691 Author: janis Date: Wed Jul 8 22:26:50 2009 New Revision: 149393 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149393 Log: PR libstdc++/40691 * include/bugs/valarray-after.

[Bug middle-end/40692] [4.5 Regression] Endless recursion between fold_ternary and fold_cond_expr_with_comparison

2009-07-08 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-07-08 23:09 --- Caused by r149060. Will debug tomorrow. Alternative testcase that doesn't warn about VLA at file scope: #define M1(x) (((x) & 0x0002) ? 0x2 : ((x) & 0x1)) #define M2(x) (((x) & 0x000c) ? M1 ((x) >> 2) << 2 : M

  1   2   >