[Bug tree-optimization/31264] internal compiler error: in build_int_cst_wide, at tree.c:886

2007-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-03-20 22:46 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/31253] ICE in gfc_conv_constant, at fortran/trans-const.c:348

2007-03-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #6 from fxcoudert at gcc dot gnu dot org 2007-03-20 23:51 --- I think test.f is not valid Fortran, because size(p,1) is not a valid specification expression. See 7.1.6 of the F2003 standard: it is a array inquiry function (size) with an argument that is a variable (p) whose

[Bug fortran/31258] segfault with transpose(reshape(char))

2007-03-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-03-21 00:01 --- (In reply to comment #0) > CHARACTER(LEN=3), DIMENSION(10) :: Z > CHARACTER(LEN=10) :: res > Z(:)="123" > write(*,'(10A1)') TRANSPOSE(RESHAPE(Z(:)(2:2),(/5,2/))) > END Same thing happens with write(*,'(10A1)')

[Bug fortran/30877] overloading "operator(*)" for intrinsic type (complex) fails

2007-03-20 Thread fxcoudert at gcc dot gnu dot org
--- Comment #5 from fxcoudert at gcc dot gnu dot org 2007-03-21 00:10 --- (In reply to comment #2) > interface.c:567 is where it all starts. Thanks for the pointer. > If complex is excluded from product, we run into a > problem with the test for the shape of the two operands. I think

[Bug c++/31289] New: gcc412 elides code in operator delete() override method

2007-03-20 Thread gcc-bugzilla at gcc dot gnu dot org
// BUG DEMO for gcc 4.1.2 (and 4.1.1) for 32-bit x86 // // If operator delete() is over-ridden in a base class, then // if the implementation of delete() stores into the storage used // by the object, the store seems to be removed by the compiler // (maybe because the compiler thinks stores to a d

[Bug testsuite/31290] New: gcc.c-torture/execute/920612-1.c depends on overflow being defined

2007-03-20 Thread pinskia at gcc dot gnu dot org
While looking into a testsuite failure when I folded while expanding, I found gcc.c-torture/execute/920612-1.c failed because it depends on overflow of signed integer being undefined. -- Summary: gcc.c-torture/execute/920612-1.c depends on overflow being defined

[Bug testsuite/31290] gcc.c-torture/execute/920612-1.c depends on overflow being defined

2007-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-21 00:49 --- The testcase contains: f(j)int j;{return j++>0;} Which is equialvant to: f(j)int j;{return(j+1)>0;} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31290

[Bug c++/31289] gcc412 elides code in operator delete() override method

2007-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-21 01:13 --- This is definitely a C/C++ aliasing violation as you are first accessing it as a MyHeap::Node and then as derived. Here is how I would fix it for the first one I would change it to: void * newnode = malloc(bytes_

[Bug c++/31289] gcc412 elides code in operator delete() override method

2007-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-21 01:14 --- Note memcpy is the only way to be aliasing safe in this case, oh and make sure you don't cast the incomming pointer from malloc or from your free. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31289

[Bug c++/31289] gcc412 elides code in operator delete() override method

2007-03-20 Thread jima at cadence dot com
--- Comment #3 from jima at cadence dot com 2007-03-21 01:32 --- Can you point me to a description of the C++ aliasing rules? Is the memcpy() workaround specific to GCC, or is memcpy part of the standard with special rules regarding aliasing? (I ask because our code base has to work on

[Bug c++/31289] gcc412 elides code in operator delete() override method

2007-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-03-21 01:40 --- (In reply to comment #3) > Can you point me to a description of the C++ aliasing rules? You can find some of it on http://gcc.gnu.org/bugs.html under the non bug section. There are a lot more pages on then I can

[Bug c++/31289] gcc412 elides code in operator delete() override method

2007-03-20 Thread jima at cadence dot com
--- Comment #5 from jima at cadence dot com 2007-03-21 02:31 --- (In reply to comment #4) > (In reply to comment #3) >... Why do you think 1 or 2 more > instructions will be a hit, most of the problems you are going to hit into now > is cache issues anyways unless you do a better malloc

[Bug c/31236] incorrect output on external symbol address cast as integer used in conditional statement

2007-03-20 Thread bangerth at dealii dot org
--- Comment #6 from bangerth at dealii dot org 2007-03-21 03:59 --- (In reply to comment #4) > so in other words you're saying the solution to this is > "if you want it to work with GCC, make your code non-portable" > > afaik "__attribute__ (( weak ))" is not part of the standard, its

[Bug c/31291] New: Different (wrong?) behaviour using ffps when enabling optimizing

2007-03-20 Thread mail at sebastianbauer dot info
The purpose of the attached code is to print out the internal representation of some floating points. However, when compiling with optimizations turned on the behaviour of the compiled program is not the expected one (i.e. the proper hex representation is not printed out, but something else, here 0

[Bug c/31291] Different (wrong?) behaviour using ffps when enabling optimizing

2007-03-20 Thread mail at sebastianbauer dot info
--- Comment #1 from mail at sebastianbauer dot info 2007-03-21 07:14 --- Created an attachment (id=13240) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13240&action=view) The simple test source. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31291

[Bug c/31291] Different (wrong?) behaviour using ffps when enabling optimizing

2007-03-20 Thread mail at sebastianbauer dot info
--- Comment #2 from mail at sebastianbauer dot info 2007-03-21 07:15 --- Created an attachment (id=13241) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13241&action=view) The output of the compiler invocation and the executable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=

<    1   2