[Bug c++/38560] New: [4.2/4.3/4.4 Regression] -Wall option no longer warns about `class XXX' has virtual functions but non-virtual destructor

2008-12-17 Thread arthur dot loiret at gmail dot com
from Debian bug : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502283

$ cat test.c
class XXX {
virtual void foo() = 0;
};

int main ()
{
}
$ g++-4.1 -Wall test.c
test.c:1: warning: ‘class XXX’ has virtual functions but non-virtual destructor

starting at g++-4.2, there is no warning anymore


-- 
   Summary: [4.2/4.3/4.4 Regression] -Wall option no longer warns
about `class XXX' has virtual functions but non-virtual
destructor
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: arthur dot loiret at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38560



[Bug target/38706] New: [4.4 regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-02 Thread arthur dot loiret at gmail dot com
Hi!

configured with: --host=alpha-linux-gnu --build=alpha-linux-gnu
--target=alpha-linux-gnu --enable-languages=c,c++ --with-system-zlib

Build fails with this error:

/bin/sh ../libtool --tag CXX --mode=compile /home/arthur/build/./gcc/xgcc
-shared-libgcc -B/home/arthur/build/./gcc -nostdinc++
-L/home/arthur/build/alpha-linux-gnu/libstdc++-v3/src
-L/home/arthur/build/alpha-linux-gnu/libstdc++-v3/src/.libs
-B/usr/local/alpha-linux-gnu/bin/ -B/usr/local/alpha-linux-gnu/lib/ -isystem
/usr/local/alpha-linux-gnu/include -isystem
/usr/local/alpha-linux-gnu/sys-include 
-I/home/arthur/build/alpha-linux-gnu/libstdc++-v3/include/alpha-linux-gnu
-I/home/arthur/build/alpha-linux-gnu/libstdc++-v3/include
-I/home/arthur/src/libstdc++-v3/libsupc++  -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual  -fdiagnostics-show-location=once 
-ffunction-sections -fdata-sections  -g -O2   -D_GNU_SOURCE -mieee   
-I/home/arthur/build/alpha-linux-gnu/libstdc++-v3/include/backward
-Wno-deprecated -c ../../../../src/libstdc++-v3/src/strstream.cc
libtool: compile:  /home/arthur/build/./gcc/xgcc -shared-libgcc
-B/home/arthur/build/./gcc -nostdinc++
-L/home/arthur/build/alpha-linux-gnu/libstdc++-v3/src
-L/home/arthur/build/alpha-linux-gnu/libstdc++-v3/src/.libs
-B/usr/local/alpha-linux-gnu/bin/ -B/usr/local/alpha-linux-gnu/lib/ -isystem
/usr/local/alpha-linux-gnu/include -isystem
/usr/local/alpha-linux-gnu/sys-include
-I/home/arthur/build/alpha-linux-gnu/libstdc++-v3/include/alpha-linux-gnu
-I/home/arthur/build/alpha-linux-gnu/libstdc++-v3/include
-I/home/arthur/src/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -mieee
-I/home/arthur/build/alpha-linux-gnu/libstdc++-v3/include/backward
-Wno-deprecated -c ../../../../src/libstdc++-v3/src/strstream.cc  -fPIC -DPIC
-o .libs/strstream.o
../../../../src/libstdc++-v3/src/strstream.cc: In member function 'void
std::ostrstream::_ZTv0_n24_NSt10ostrstreamD0Ev()':
../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [strstream.lo] Error 1

Thanks.


-- 
   Summary: [4.4 regression] ../../../../src/libstdc++-
v3/src/strstream.cc:419: internal compiler error:
Segmentation fault
   Product: gcc
   Version: 4.4.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: arthur dot loiret at gmail dot com
 GCC build triplet: alpha-linux-gnu
  GCC host triplet: alpha-linux-gnu
GCC target triplet: alpha-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38706] [4.4 regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-03 Thread arthur dot loiret at gmail dot com


--- Comment #3 from arthur dot loiret at gmail dot com  2009-01-03 19:24 
---
I tried again with trunk 143029, still on a clean build directory, and I get
the same failure, even with --disable-bootstrap. Hardware is an 21264C
(ev68cb), I'll try to make a reduced testcase and to build on an other machine.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38706] [4.4 regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-03 Thread arthur dot loiret at gmail dot com


--- Comment #4 from arthur dot loiret at gmail dot com  2009-01-04 03:49 
---
Created an attachment (id=17027)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17027&action=view)
reduced testcase

Here is a first reduced testcase, with it I get:

$ ./gcc/cc1plus -quiet /tmp/bug.cc
/tmp/bug.cc: In member function 'void std::basic_istream >::_ZTv0_n24_NSiD1Ev()':
/tmp/bug.cc:97: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) run -quiet /tmp/bug.cc
Starting program: /home/arthur/build/gcc/cc1plus -quiet /tmp/bug.cc

Program received signal SIGSEGV, Segmentation fault.
alpha_end_function (file=0x120b962c0, fnname=0x2c74e80 "_ZTv0_n24_NSiD1Ev",
decl=) at ../../src/gcc/config/alpha/alpha.c:8270
8270  if (!INSN_P (insn))
(gdb) bt
#0  alpha_end_function (file=0x120b962c0, fnname=0x2c74e80
"_ZTv0_n24_NSiD1Ev", decl=) at
../../src/gcc/config/alpha/alpha.c:8270
#1  0x0001207ba400 in assemble_end_function (decl=0x2c67a00,
fnname=0x2c74e80 "_ZTv0_n24_NSiD1Ev") at ../../src/gcc/varasm.c:1775
#2  0x000120155584 in use_thunk (thunk_fndecl=0x2c67a00, emit_p=) at ../../src/gcc/cp/method.c:445
#3  0x000120162990 in emit_associated_thunks (fn=) at
../../src/gcc/cp/semantics.c:3144
#4  0x0001207e4fdc in cgraph_expand_function (node=0x2c8c800) at
../../src/gcc/cgraphunit.c:1046
#5  0x0001207e5338 in cgraph_output_in_order () at
../../src/gcc/cgraphunit.c:1195
#6  0x0001207e7d60 in cgraph_optimize () at ../../src/gcc/cgraphunit.c:1306
#7  0x0001200d57e4 in cp_write_global_declarations () at
../../src/gcc/cp/decl2.c:3630
#8  0x00012059d61c in toplev_main (argc=, argv=) at ../../src/gcc/toplev.c:981
#9  0x00012022b8e8 in main (argc=549020352, argv=0x2c74e80) at
../../src/gcc/main.c:35


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38706] [4.4 regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-03 Thread arthur dot loiret at gmail dot com


--- Comment #5 from arthur dot loiret at gmail dot com  2009-01-04 04:16 
---
Created an attachment (id=17028)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17028&action=view)
more reduced testcase


-- 

arthur dot loiret at gmail dot com changed:

   What|Removed |Added

  Attachment #17027|0   |1
is obsolete||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38706] [4.4 Regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-06 Thread arthur dot loiret at gmail dot com


--- Comment #6 from arthur dot loiret at gmail dot com  2009-01-07 06:55 
---
Current trunk bootstraps fine on an other machine, but the testcase fails too
on it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38706] [4.4 Regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-07 Thread arthur dot loiret at gmail dot com


--- Comment #9 from arthur dot loiret at gmail dot com  2009-01-07 13:05 
---
(In reply to comment #8)
> Created an attachment (id=17045)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17045&action=view) [edit]
> Patch to fix the failure
> 
> We should not free cfun since it is needed in alpha_end_function.
> 
> Arthur, can you perhaps bootstrap/regression test the patch?
> 

Sure, build started. Thanks for the patch!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38706] [4.4 Regression] ../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault

2009-01-07 Thread arthur dot loiret at gmail dot com


--- Comment #10 from arthur dot loiret at gmail dot com  2009-01-07 21:04 
---
Your patch fixes the build and brings no regression in testsuite.


-- 

arthur dot loiret at gmail dot com changed:

   What|Removed |Added

 CC||debian-gcc at lists dot
   ||debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38706



[Bug target/38326] [4.3/4.4 regression] libjava build failure on ia64-linux-gnu

2009-01-09 Thread arthur dot loiret at gmail dot com


--- Comment #8 from arthur dot loiret at gmail dot com  2009-01-09 09:15 
---
I can reproduce it on Debian unstable. The problem is in Debian's fastjar on
ia64:

(cd classes; \
/usr/bin/fastjar cf ../tools.zip `find . -name .svn -prune -o -type f
-print`; \
cd ..)
/bin/sh: line 2:  7749 Segmentation fault  /usr/bin/fastjar cf ../tools.zip
`find . -name .svn -prune -o -type f -print`
(cd asm; \
/usr/bin/fastjar uf ../tools.zip `find . -name .svn -prune -o -type f
-print`; \
cd ..)
/usr/bin/fastjar: ../tools.zip: can't seek file


This results an empty tools.zip and causes the ICE. fastjar is currently
compiled with -O2, with it compiled with -O0 the build successes. Matthias,
does a simple "fastjar cf a.zip" segfaults for you ?


-- 

arthur dot loiret at gmail dot com changed:

   What|Removed |Added

 CC|            |arthur dot loiret at gmail
   |        |dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38326



[Bug middle-end/40157] New: [4.4 Regression] ICE with -floop-block

2009-05-15 Thread arthur dot loiret at gmail dot com
Hi,

With this simple testcase:

int buffer[256*256];
int main(void)
{
int *dest = buffer;
int x, y;
for(x = 0; x < 256; x++)
for(y = 0; y < 256; y++)
*dest++ = 0;
return 0;
}

We get an ICE:

% gcc-4.4 -O1 -floop-block foo.c -o foo
foo.c: In function ‘main’:
foo.c:2: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:4295
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.


Thanks.


-- 
   Summary: [4.4 Regression]  ICE with -floop-block
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: arthur dot loiret at gmail dot com
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40157



[Bug debug/39814] New: GCC does not emit debug info for a called function

2009-04-19 Thread arthur dot loiret at gmail dot com
The following program:

#include 
#include 

int main() {
  printf("asin(1.0) = %f\n", asin(1.0));
  return 0;
}

prints correctly 1.570796, but "p asin(1.0)" from within gdb prints 0. However,
this work fine:

(gdb) p ((double (*)(double))asin) (1.0)
$4 = 1.5707963267948966

Or, with libc debug symbols installed:

(gdb) p __asin (1.0)
$5 = 1.5707963267948966


The explanation from Daniel Jacobowitz is:
The C library does not contain debug info for a function named 'asin',
because the implementation is __asin, so GDB does not know it returns
a double.  Also, GCC does not emit debug info for the called function
- I don't know why it doesn't, but probably to save space.


-- 
   Summary: GCC does not emit debug info for a called function
   Product: gcc
   Version: 4.3.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: arthur dot loiret at gmail dot com
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39814



[Bug driver/42485] New: [4.4 regression] -V switch broken

2009-12-23 Thread arthur dot loiret at gmail dot com
Starting at GCC 4.4.0, the -V switch doesn't work:

$ gcc-4.1 -V4.3 -dumpversion
4.3.4
$ gcc-4.4 -V4.3 -dumpversion
$


-- 
   Summary: [4.4 regression] -V switch broken
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: arthur dot loiret at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42485