Re: GCC 4.9.0 Status Report (2014-03-13)

2014-03-22 Thread Klaus Rudolph
I want to ask how I can find the bugs in bugzilla which are listed in the "Quality Data" Table. It feels that there are more bugs which are not listed. For example: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57694 Actually the compiler returns "not implemented" while compiling the given example co

Re: access to static data member fails with indirect ptr

2011-01-04 Thread Klaus Rudolph
> > Is my code wrong > > Yes. You need to define A::x. Grrr... so stupid! :-) Yes, you are right. I stumbled that only a few lines generates an error. Yes, the compiler optimize them out if the access is direct. With -O3 it compiles and links without errors also without having const int A::x

access to static data member fails with indirect ptr

2011-01-04 Thread Klaus Rudolph
Hi all, the following code fails with gcc 4.4.3,4.5.0 and 4.6 snapshot (some weeks old) : #include using namespace std; class A { public: static const int x=10; }; class Zgr_A { public: A* operator->() { return (A*)0; } }; template class Zgr { public:

-flto, remove unsued code from output

2010-12-07 Thread Klaus Rudolph
Hi all, I play a bit with lto optimisation. As I see, some functions will be inlined during link stage which is the expected result. But the function code which is always inlined is not removed from the output file which will result in larger output files. Any additional option to use with gcc

compile problems with gcc 4.5.0

2010-05-03 Thread Klaus Rudolph
Hi all, I tried to compile the gcc 4.5.0 version, but got errors with gmp :-( I did: k...@mauersegler:~/work/gcc-4.5.0$ cp -pr ../gmp-5.0.1/ ./gmp k...@mauersegler:~/work/gcc-4.5.0$ cp -pr ../mpfr-2.4.2/ ./mpfr k...@mauersegler:~/work/gcc-4.5.0$ cp -pr ../mpc-0.8.1/ ./mpc k...@mauersegler:~/wo

static linking of pthread crashes with segfault

2010-05-03 Thread Klaus Rudolph
Hi all, I tried to link a pthread application with -static and run into a segfault on x86, same on powerpc. I tried gcc 4.4.2 (linux/x86) and 4.0.2 for powerpc-unknown-linux-gnu For the x86 linux example I got in gdb: (gdb) bt #0 0x in ?? () #1 0x08094d49 in __cxa_guard_release () #