Re: two ideas to improve C++

2009-10-20 Thread Ian Lance Taylor
Ireneusz Szpilewski writes: > I have 2 ideas about C++ language, maybe they could be implemented as > GCC C++ extensions (Microsoft has many his own and no one > complains). :-) We generally do not want to implement language extensions. It takes a strong argument to convince us. Also, as a pra

gcc-4.4-20091020 is now available

2009-10-20 Thread gccadmin
Snapshot gcc-4.4-20091020 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20091020/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.4 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

two ideas to improve C++

2009-10-20 Thread Ireneusz Szpilewski
Hi, I have 2 ideas about C++ language, maybe they could be implemented as GCC C++ extensions (Microsoft has many his own and no one complains). :-) If it doesn't have them already (I don't know, but I have never heard about this ideas). 1. void as first class type Current status of void is s

Re: [MIPS] cannot split restore_gp

2009-10-20 Thread Richard Sandiford
"Fu, Chao-Ying" writes: > Hi, > > G++ could not split restore_gp. > Please check this test (from #line 15017 "configure" of > gcc/libstdc++-v3/). > > # cat foo.cpp > struct S { ~S(); }; > void bar(); > void foo() > { > S s; > bar(); > } > > # ~/dev/gcc45/build/gcc/cc1plus -quiet foo.cpp -o f

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-20 Thread Michael Meissner
On Tue, Oct 20, 2009 at 11:13:48AM -0700, H.J. Lu wrote: > On Tue, Oct 20, 2009 at 2:19 AM, Richard Guenther > wrote: > > On Tue, Oct 20, 2009 at 1:54 AM, tbp wrote: > >> On Mon, Oct 19, 2009 at 7:34 PM, Ian Lance Taylor wrote: > >>> Please file a bug report. > >>> __attribute__((optimize())) is

Re: Alias analysis or DSE problem?

2009-10-20 Thread Justin Seyster
You're right: that was exactly the difference. It turns out I was setting the third and fourth operands in the ARRAY_REF to what I thought were sensible values. Setting them to NULL instead made the ADDR_EXPR satisfy is_gimple_min_invariant() and fixed the whole mess. Thanks again for looking at

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-20 Thread H.J. Lu
On Tue, Oct 20, 2009 at 2:19 AM, Richard Guenther wrote: > On Tue, Oct 20, 2009 at 1:54 AM, tbp wrote: >> On Mon, Oct 19, 2009 at 7:34 PM, Ian Lance Taylor wrote: >>> Please file a bug report. >>> __attribute__((optimize())) is definitely only half-baked. >> Apparently the code i've posted is ju

Re: [RFC] Enabling -flto in libstdc++?

2009-10-20 Thread Joseph S. Myers
On Tue, 20 Oct 2009, Diego Novillo wrote: > On my nightly tester I force libstdc++ to be built with -flto enabled using > > $ make check RUNTESTFLAGS=--target_board=unix/"\{-flto/-O2,-fwhopr/-O2\}" > > Recently, this started showing 17 regressions that we don't see in > other testsuites. It wou

[RFC] Enabling -flto in libstdc++?

2009-10-20 Thread Diego Novillo
On my nightly tester I force libstdc++ to be built with -flto enabled using $ make check RUNTESTFLAGS=--target_board=unix/"\{-flto/-O2,-fwhopr/-O2\}" Recently, this started showing 17 regressions that we don't see in other testsuites. It would be useful if we would run libstdc++ with -flto as we

Re: Need help in understanding code generated for C++ exception handling

2009-10-20 Thread Ian Lance Taylor
Shankar Iyer writes: > I have compiled and generated a C++ shared library with the "-fPIC" option. > But this shared library requires text relocation during runtime and is not > usable on seLinux which disables writeable text segments. The text relocation > is due to use of exceptions inside

Re: i370 port - constructing compile script

2009-10-20 Thread Ulrich Weigand
Paul Edwards wrote: > > Maybe a more generic way to work around the missing assembler and linker > > would be to provide dummy scripts i370-mvspdp-as > > I created one of them, but as far as I can tell it didn't pick it up. Ah, you'll probably have to re-run configure and rebuild the cross compi

Re: i370 port - constructing compile script

2009-10-20 Thread Paul Edwards
../configure --target=i370-mvspdp --prefix=/devel/mvscross --with-sysroot=/devel/mvshead --enable-languages=c plus make and make install then I went to mvscross/bin and renamed i370-mvspdp-gcc to i370-mvspdp-xxx and replaced it with a script that does: i370-mvspdp-xxx -S $* Maybe a more g

Re: __attribute__((optimize)) and fast-math related oddities

2009-10-20 Thread Richard Guenther
On Tue, Oct 20, 2009 at 1:54 AM, tbp wrote: > On Mon, Oct 19, 2009 at 7:34 PM, Ian Lance Taylor wrote: >> Please file a bug report. >> __attribute__((optimize())) is definitely only half-baked. > Apparently the code i've posted is just a variation around that 1 year > old PR 37565 and if that doe

Re: Alias analysis or DSE problem?

2009-10-20 Thread Richard Guenther
On Tue, Oct 20, 2009 at 1:34 AM, Justin Seyster wrote: > Thanks a lot for the help!  It looks like creating a temporary > took care of it. > > On Sat, Oct 17, 2009 at 7:41 AM, Richard Guenther > wrote: >> I think the call you insert is not of valid gimple form - an address >> argument has to fulf