Re: thread build on solaris

2008-10-21 Thread Jonathan Wakely
2008/10/19 Edward Peschko > Constructs of the form > > extern enum vtype iftovt_tab[]; > > are now failing with forgiving > > error: array type has incomplete element type > > This would be fine if it was code that I controlled - but the matter > of fact is that this code is in /usr/include/sys/mod

Re: Matching delete operator overload as a template function

2008-11-01 Thread Jonathan Wakely
2008/10/28 S. Tang <[EMAIL PROTECTED]>: > Hello there, > > From what I understand, if one uses placement new with a parameter to > initialize a class, and if that class' constructor throws an exception, then > a matching delete operator is called to release the memory. > > This does not seem to w

Re: Matching delete operator overload as a template function

2008-11-01 Thread Jonathan Wakely
2008/11/1 Jonathan Wakely: > 2008/10/28 S. Tang: >> Hello there, >> >> From what I understand, if one uses placement new with a parameter to >> initialize a class, and if that class' constructor throws an exception, then >> a matching delete operator is ca

Re: "__throw_logic_error" abort, but print no error message out

2008-11-14 Thread Jonathan Wakely
2008/11/12 Bernd Roesch: > > But in libstdc++v3/src/functexcept.cc > > void > __throw_logic_error(const char*) > { std::abort(); } > > this call abort and there is no string print out, because abort get no > Parameter as far i see. > > How can this work ? It works by calling abort(), as intended

Re: " throw logic error" abort, but print no error message out

2008-11-16 Thread Jonathan Wakely
2008/11/15 Bernd Roesch: > >>If exceptions are enabled >> __throw_logic_error will throw std::logic_error, otherwise it will >> call abort(). > > On the amigaos compiler is sjlj enabled, i see in asm debugger after > single > stepping long it call std::logic_error.but this func do nothing print. >

Re: variadic templates supported in non-c++0x mode

2009-03-10 Thread Jonathan Wakely
2009/3/10 Sylvain Pion: > Manuel López-Ibáñez wrote: >> 2009/3/10 Sylvain Pion: >>> >>> Yes, but like any extension, it's nice to be able to disable them >>> as errors, so as to be able to use GCC for checking code portability. >> >> So use -pedantic-errors as it says in the manual. You should real

Re: typo in gcc-4.4 changes

2009-04-04 Thread Jonathan Wakely
I spotted some problems in the gcc-4.4/porting_to.html page. There's a missing html entity, the typo "memmber", and multibyte UTF-8 quotes, which are a problem because the web server automatically adds a header specifying Latin1 encoding. I'll commit this patch soon if noone objects. There is cur

Re: typo in gcc-4.4 changes

2009-04-06 Thread Jonathan Wakely
2009/4/6 Gerald Pfeifer: > On Sat, 4 Apr 2009, Jonathan Wakely wrote: >> There is currently no way to get from the front page to the >> gcc-4.4/changes.html page, should there be a "(changes)" link on the >> front page until a release is added to the gcc-4.4/index.ht

Re: messages

2009-04-14 Thread Jonathan Wakely
2009/4/14 Arthur Schwarz: > --- On Mon, 4/13/09, Joe Buck wrote: > >  them all. >> >> Consider >> >> #include >> struct Foo { int bar;}; >> int main() { >>   std::cerr << Foo(); >> } >> >> Try it, the result is ugly, and I often encounter this one > >  (Personal opinion - not to be construed as wi

Re: messaging

2009-04-14 Thread Jonathan Wakely
2009/4/14 Kai Henningsen: > aschwarz1...@verizon.net schrieb: >> >> Thanks Kai. I do have what I hope is a more specific subjective reason for >> saying that I think the existing diagnostics should be changed. >> Fundamentally, what is provided in the messaging is not an indication of >> what is wr

Re: typo in gcc-4.4 changes

2009-04-22 Thread Jonathan Wakely
On 06/04/2009, Gerald Pfeifer wrote: > On Sat, 4 Apr 2009, Jonathan Wakely wrote: >> There is currently no way to get from the front page to the >> gcc-4.4/changes.html page, should there be a "(changes)" link on the >> front page until a release is added to the

Re: typo in gcc-4.4 changes

2009-04-27 Thread Jonathan Wakely
On 26/04/2009, Gerald Pfeifer wrote: > On Wed, 22 Apr 2009, Jonathan Wakely wrote: >> Should I undo this change to the front page, now that the 'changes' >> link is next to the 4.4.0 release on gcc-4.4/index.html ? > > I have to admit I don't feel strongly eit

Re: Empty loops removal (Was Re: Some extra decorations)

2009-05-03 Thread Jonathan Wakely
2009/5/4 Joseph S. Myers: > On Mon, 4 May 2009, Jan Hubicka wrote: > >> On mainline I enabled infinite loop removal at >> -funsafe-loop-optimizations.  I would suggest adding >> -fempty-loops-terminate and make it default for C++? It does not apply >> for C, right? > > You mean for C++0x (I see no

Re: Empty loops removal (Was Re: Some extra decorations)

2009-05-04 Thread Jonathan Wakely
2009/5/4 Peter Dimov: > Jonathan Wakely: >> >> 2009/5/4 Joseph S. Myers: >> > On Mon, 4 May 2009, Jan Hubicka wrote: >> > >> >> On mainline I enabled infinite loop removal at >> >> -funsafe-loop-optimizations. I would suggest adding >

Re: cout Issue

2009-05-12 Thread Jonathan Wakely
2009/5/12 Arthur Schwarz: > > Program and particulars below. > > When line 27 is commented out, line 26 is output. When line 27 is not > commented, line 26 is not output except that if x.file contains a line feed > the null line line 26 & line 27 are output. If x.file does not contain a line > f

Re: [RFC] enabling -fshow-column by default

2009-06-04 Thread Jonathan Wakely
2009/5/20 Aldy Hernandez: >> >> My only worry is that the testsuite may confuse column and line >> numbers and pass/fail tests because of it. > > Janis has a patch for the testsuite to handle all this. I'm seeing exactly this in the libstdc++ testsuite with some new tests I've written - is a fix o

Re: [RFC] enabling -fshow-column by default

2009-06-05 Thread Jonathan Wakely
2009/6/5 Janis Johnson: > > I think the libstdc++ testsuite doesn't use the overrides for dg-error > and friends and so isn't handling the column numbers in the new way. > I'll take a look, but it might be awhile before I get to it. Thanks, Janis. I have added -fno-show-column to libstdc++-v3/scri

Re: [RFC] enabling -fshow-column by default

2009-06-05 Thread Jonathan Wakely
2009/6/5 Aldy Hernandez: > > Which test is this? Can you send it to me? It tests a header that isn't checked in yet, so sending the test alone wouldn't help much :) I'll try to come up with a self-contained example tomorrow. Jonathan

Re: Bootstrap failures on solaris

2009-06-09 Thread Jonathan Wakely
2009/6/9 Ian Lance Taylor: > > I believe that POSIX specifices that munmap takes a void * argument.  Is > there some preprocessor define we can use to direct the Solaris header > files to compile in POSIX mode?  If so, it should work to add it to > CFLAGS (using +=) in TOPLEVEL/config/mh-solaris.

Re: [RFC] enabling -fshow-column by default

2009-06-11 Thread Jonathan Wakely
2009/6/5 Jonathan Wakely: > 2009/6/5 Aldy Hernandez: >> >> Which test is this?  Can you send it to me? > > It tests a header that isn't checked in yet, so sending the test alone > wouldn't help much :) > > I'll try to come up with a self-contained e

Re: [RFC] enabling -fshow-column by default

2009-06-11 Thread Jonathan Wakely
2009/6/11 Aldy Hernandez: > > In the meantime, can you just put the column number in the dg-error > message?  i.e: > >        // { dg-error "XX:no match" } > > This will match the message correctly, and eventually all error messages > should have matching columns. That works great, thanks, Aldy.

Re: [gnu.org #456639] broken link in libstdc++ manual online

2009-06-23 Thread Jonathan Wakely
2009/6/23 Rob Myers via RT: >> >> In the page of the libstdc++ manual about the API documentation: >> http://gcc.gnu.org/onlinedocs/libstdc++/api.html >> the link to "the latest collection" goes to a "404 Not Found" > > Hi. > > I'm forwarding you this email that was assigned to gnu webmasters for >

Re: howto configure so that CFLAGS='-g3 -O0' in gcc/Makefile?

2009-06-30 Thread Jonathan Wakely
2009/6/30 Larry Evans: > > So... I read `man gcc` which claimed passing "CFLAGS=" on the > command line is how to do this. Well, since in my case was > '-g3 -O0' I had to pass it as CFLAGS='-g3 oO0'. http://gcc.gnu.org/install/build.html If you wish to use non-default GCC flags when compiling t

Re: compile problems with gcc 4.5.0

2010-05-03 Thread Jonathan Wakely
On 3 May 2010 10:43, Klaus Rudolph wrote: > Hi all, > > I tried to compile the gcc 4.5.0 version, but got errors with gmp :-( Hi, this question is not appropriate on this mailing list, which is for discussing development of gcc, please take any further questions about building or using gcc to the

Re: static linking of pthread crashes with segfault

2010-05-03 Thread Jonathan Wakely
On 3 May 2010 10:37, Klaus Rudolph wrote: > > g++ -static -O2 main.cpp /usr/lib/libpthread.a -o linux You could try -static -pthread instead of specifying the static lib Please take any follow up questions to the gcc-help list, your question is not appropriate for this list. Thanks, Jonathan

Re: role of "register" C keyword?

2010-05-06 Thread Jonathan Wakely
On 06/05/2010, Basile Starynkevitch wrote: > > IIRC, (from my human rusty memory, I don't have the documents on hand) > the current standard only requires that variable declared with the > register class should not have their adress taken thru the unary & > operator, and might have some imprecise p

Re: GCC seem output error messages in UTF8.Dev-cpp cant show it.Can this change in target declaration ?

2010-05-14 Thread Jonathan Wakely
On 14 May 2010 13:01, Bernd Roesch wrote: > Hi > > I compile the GCC4.5.0 on cygwin and when i use it in cygwin shell, all is ok. > But when i use it on dev-cpp the output contain some crap chars, because GCC > output utf8 error > messages > > Is there a way to avoid that GCC output text in utf8 ?

Re: Using C++ in GCC is OK

2010-06-01 Thread Jonathan Wakely
On 1 June 2010 22:13, Ian Lance Taylor wrote: > DJ Delorie writes: > >> My suggestions: >> >>  * When it is appropriate to use a child class with virtual functions, >>    the virtual functions should all be declared as protected in the >>    parent class. >> >> At first reading, I thought you meant

Re: Using C++ in GCC is OK

2010-06-02 Thread Jonathan Wakely
On 2 June 2010 15:33, Emílio Wuerges wrote: > Now that we are talking about STL & templates: What about boost? The requirement for a C++98 compiler is a much weaker requirement than C++98 compiler + working Boost. Boost is not tested on most of the platforms that GCC targets. Also, Boost APIs are

Re: Using C++ in GCC is OK

2010-06-02 Thread Jonathan Wakely
On 2 June 2010 15:05, Paolo Bonzini wrote: > On 06/02/2010 03:01 PM, Gabriel Dos Reis wrote: >> >> In the guidelines, I would like to include: >>    (2) if you define a class template used mostly with pointer type >> arguments, >>         consider specializing for void* (or const void*) and define

Re: question about GCC

2010-06-02 Thread Jonathan Wakely
On 2 June 2010 22:42, manal habib wrote: > Hi, > > I am new into the field of coding, and I am wandering if I can get > some help on how to use the GCC? I have a mac version 10.5.8.   Should > I just copy one of the image folders to make computer?  how can use > it? This is not the right mailing l

Re: Using C++ in GCC is OK

2010-06-03 Thread Jonathan Wakely
On 3 June 2010 20:35, Steinar Bang wrote: >> Mark Mitchell : > >> I think virtual functions are on the edge; quite useful, but do result >> in the compiler adding a pointer to data objects and in uninlinable >> indirect calls at run-time.  Therefore, I would avoid them in the >> initial subset

Re: Using C++ in GCC is OK

2010-06-04 Thread Jonathan Wakely
On 4 June 2010 21:55, Ian Lance Taylor wrote: > > I think we should change the gcc major release to 5 when we change the > libstdc++.so major version number to 7. I don't speak for the other libstdc++ maintainers, but I think that's a great idea.

Re: Poor internal documentation (was: dragonegg in FSF gcc?)

2010-06-05 Thread Jonathan Wakely
On 5 June 2010 04:53, Philipp Thomas wrote: > On Fri, 23 Apr 2010 16:23:29 +0200, Manuel López-Ibáñez > wrote: > >>Great! Go ahead, please. The wiki is easy to edit. > > Finally I got around to do it. > > Editing is easy ... kind of :) Creating the Links was easy but I > failed do discover how I

Re: libstdc++, generic locale configuration, and c++0x

2010-06-06 Thread Jonathan Wakely
(Shouldn't this be on the libstdc++ list?) On 6 June 2010 19:02, Doug Semler wrote: > > So...would you consider this a bug in the documentation, or a bug in > the library? I would say the docs, and only partly because it's easier to fix ;-) >  And even if it's a bug in the documentation, it will

Re: [doc,patch] Move from GFDL 1.2 to GFDL 1.3

2010-06-06 Thread Jonathan Wakely
On 6 June 2010 22:54, Gerald Pfeifer wrote: > Hi guys in libstd++ land, > > On Sat, 5 Jun 2010, Joseph S. Myers wrote: >>> The FSF has requested that we move our documentation license from >>> GFDL 1.2 to GFDL 1.3. >> The DocBook documentation for libstdc++ will also need its license >> notices and

Re: [doc,patch] Move from GFDL 1.2 to GFDL 1.3

2010-06-06 Thread Jonathan Wakely
On 6 June 2010 23:50, Jonathan Wakely wrote: > On 6 June 2010 22:54, Gerald Pfeifer wrote: >> Hi guys in libstd++ land, >> >> On Sat, 5 Jun 2010, Joseph S. Myers wrote: >>>> The FSF has requested that we move our documentation license from >>>> GFDL 1

Re: [doc,patch] Move from GFDL 1.2 to GFDL 1.3

2010-06-06 Thread Jonathan Wakely
On 7 June 2010 00:36, Gerald Pfeifer wrote: > On Mon, 7 Jun 2010, Jonathan Wakely wrote: >>>        * doc/Makefile.am, doc/Makefile.in (xml_sources_extra): Add >>>        fdl-1.3.xml. >>>        * doc/xml/manual/intro.xml: Update FDL link. >>>        * doc/x

Re: Patch pinging

2010-06-08 Thread Jonathan Wakely
On 8 June 2010 05:42, Basile Starynkevitch wrote: > On Mon, 2010-06-07 at 15:05 -0600, Jeff Law wrote: >> On 06/07/10 14:31, Ian Lance Taylor wrote: >> > The gcc project currently has a problem: when people who are not >> > regular gcc developers send in a patch, those patches often get >> > droppe

Re: Patch pinging

2010-06-08 Thread Jonathan Wakely
On 7 June 2010 22:43, Ian Lance Taylor wrote: > > The patch tracker (http://gcc.gnu.org/wiki/GCC_Patch_Tracking) is not > currently operating. > > Would anybody like to volunteer to get it working again? I'm not volunteering, but I might look into it one day. I already have too little spare time

Re: [doc,patch] Move from GFDL 1.2 to GFDL 1.3

2010-06-13 Thread Jonathan Wakely
On 13 June 2010 23:22, Gerald Pfeifer wrote: > On Mon, 7 Jun 2010, Jonathan Wakely wrote: >> Thanks, see /home/gccadmin/scripts/update_web_docs_libstdcxx_svn > > I ran this script, and verified that it runs daily, 55 minutes after > midnight UTC.  Alas, it seems the script do

Re: [doc,patch] Move from GFDL 1.2 to GFDL 1.3

2010-06-13 Thread Jonathan Wakely
On 14 June 2010 00:23, Jonathan Wakely wrote: > On 13 June 2010 23:22, Gerald Pfeifer wrote: >> On Mon, 7 Jun 2010, Jonathan Wakely wrote: >>> Thanks, see /home/gccadmin/scripts/update_web_docs_libstdcxx_svn >> >> I ran this script, and verified that it runs daily, 55

Re: onlinedocs/libstdc++ appears stale

2010-06-13 Thread Jonathan Wakely
On 13 June 2010 23:56, Gerald Pfeifer wrote: > On Mon, 14 Jun 2010, Gerald Pfeifer wrote: Thanks, see /home/gccadmin/scripts/update_web_docs_libstdcxx_svn >> The script places up-to-date .html.gz files in the web infrastructure, >> alas we do have older .html there -- and our web server is hap

Re: how to comply games for consoles

2010-06-18 Thread Jonathan Wakely
On 18 June 2010 22:50, wrote: > Hello GCC of GNU, > > I've done a bit of research regarding the GCC complier, and even emailed > GNU regarding the usage of GCC to comply self developed games for game > console OS (such as Xbox 360, Playstation3, Nintendo Wii and etc.). > > I did learn that GCC is

Re: gengtype needs for C++?

2010-06-28 Thread Jonathan Wakely
On 29 June 2010 00:19, Basile Starynkevitch wrote: > On Mon, 2010-06-28 at 16:08 -0700, Ian Lance Taylor wrote: >> Basile Starynkevitch writes: >> >> > * I don't know exactly what should be wished with respect to templates. >> > Tom Tromey (in CC) have a wonderful insight in >> > http://gcc.gnu.or

Re: Patch pinging

2010-06-29 Thread Jonathan Wakely
On 29 June 2010 05:40, NightStrike wrote: > > Then you should consider using legitimate account creation policies. > If I just put "John Smith" in the sign up form, I would have gotten an > account. Not necessarily, there are maintainers with approval rights who haven't got shell access, it's very

Re: role of executable_checksum & LTO?

2010-06-29 Thread Jonathan Wakely
On 29 June 2010 18:11, Basile Starynkevitch wrote: > On Tue, 2010-06-29 at 12:50 -0400, Diego Novillo wrote: >> >> Why don't we cross that bridge when we get to it? > > [I am not sure to understand the above sentence. What is the bridge? > What is crossing it? Remember that I am not a native Englis

Re: [4.5 Regression] class partial specialization error

2010-07-01 Thread Jonathan Wakely
On 1 July 2010 22:27, Rodolfo Schulz de Lima wrote: > > I've created ticket #44753 to track this issue. Thanks. There's no need to post it to this mailing list too, bugzilla changes already go to the gcc-bugs mailing list where people can track new bug reports.

Re: Error in GCC documentation page

2010-07-07 Thread Jonathan Wakely
On 7 July 2010 19:12, Paolo Carlini wrote: > On 07/07/2010 08:02 PM, Trevor Smedley wrote: >> On the page http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html the term >> "integral" is used twice in the section " Built-in Function: long >> __builtin_expect (long exp, long c)", where what is inte

Re: Error in GCC documentation page

2010-07-08 Thread Jonathan Wakely
On 8 July 2010 07:12, Nils Schlemminger wrote: >  Am 08.07.2010 00:56, schrieb Jonathan Wakely: >> >> The usage is correct in "standardese" and English. >> My dictionary gives one definition of "integral" as "denoting a number >> that is an i

Re: Error in GCC documentation page

2010-07-08 Thread Jonathan Wakely
On 8 July 2010 13:45, Robert Dewar wrote: > Joern Rennecke wrote: >> >> Quoting Robert Dewar : >> >>> But as noted the C++ standard prefers integral type, so might as well >>> standardize on that when talking about C or C++. >> >> I think it also helps clarity to speak of integral types.  I.e. in t

Re: a few beginner questiosn

2010-07-09 Thread Jonathan Wakely
On 9 July 2010 06:41, BLUE 3TOO wrote: > > Hi, > >    I have following questions and would appreciate any comment. Thanks you > very much. > >    1. How to build a debugable version of GCC? I tried to set CFLGAS & > CXXFLAGS to "-O0 -g -fno-inline" in my configure command line, but it seems > it

Re: libgmpxx and multiple C++ libraries

2010-07-10 Thread Jonathan Wakely
On 10 July 2010 15:52, Alexandre Oliva wrote: > for reasons as yet undetermined, GNU > ld in Fedora 13 fails to link with libgmpxx, unless libstdc++ and libm > are linked in explicitly.  This is inconvenient, but not such a big > deal. Isn't that because of http://docs.fedoraproject.org/en-US/Fedo

Re: onlinedocs/libstdc++ appears stale

2010-07-15 Thread Jonathan Wakely
On 15 July 2010 10:54, Gerald Pfeifer wrote: > > How shall we address this for real?  Is it really worthwhile to manually > generate those .html.gz files for onlinedocs/libstdc++ or could we simply > omit that step?  Not sure it's really worth the hassles? I have no idea why we gzip them, it certa

Re: Edit-and-continue

2010-07-18 Thread Jonathan Wakely
On 18 July 2010 16:25, Rick Hodgin wrote: > Ian, > > The idea is to create a program database of the compiled program on a full > compile. Then when asked to re-compile with the edit-and-continue switch, it > only looks for changed code and compiles those few lines. Everything else it > needs to

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Jonathan Wakely
On 18 July 2010 20:52, Rick C. Hodgin wrote: > > The idea of having function entry points across the board for all > executed code would be required, allowing those links to be updated > dynamically at run-time.  We could even use a memory-based lookup table > that's updated by gdb to the new entry

Re: [Bulk] Re: Edit-and-continue

2010-07-18 Thread Jonathan Wakely
On 18 July 2010 23:15, Rick C. Hodgin wrote: > Jonathan, > > If you run Linux, you can download VMware, and install a version of > Windows XP or later) I don't have a licence to do that. > and download Visual Studio Express from Microsoft > for free.  You can experiment with it and see how usefu

Re: C++ template issue in gcc 4.5.0 (Linux)

2010-07-20 Thread Jonathan Wakely
On 20 July 2010 01:36, Martin Gieseking wrote: > Does anybody know if this is a known issue, or should I file a bug report? Please file a bug report, if it's a known issue someone will mark it as a duplicate.

Re: Thread model: simple and C

2010-08-04 Thread Jonathan Wakely
On 4 August 2010 13:56, Marcos Dione wrote: > >    I'm cross-compiling an application to a platform whose SDK brings a gcc > which reports 'Thread model: single'. even so, the platform implements a > rudimentary thread support (a subset of posix), which leads me to think > that it should be possibl

Re: GFDL/GPL issues

2010-08-04 Thread Jonathan Wakely
On 4 August 2010 19:48, Alfred M. Szmidt wrote: > > I have read the thread in full, and I do not see the problem with > keeping that info in a seperate manual; GCC has so many options for > various architectures and systems that I think it makes technical > sense to have a "Invoking GCC" manual. A

Re: GFDL/GPL issues

2010-08-04 Thread Jonathan Wakely
On 4 August 2010 21:03, Alfred M. Szmidt wrote: >   > I have read the thread in full, and I do not see the problem with >   > keeping that info in a seperate manual; GCC has so many options >   > for various architectures and systems that I think it makes >   > technical sense to have a "Invoking

Re: Thread model: simple and C

2010-08-05 Thread Jonathan Wakely
On 5 August 2010 04:54, wrote: > On Wed, August 4, 2010 8:45 pm, Jonathan Wakely wrote: >> On 4 August 2010 13:56, Marcos Dione wrote: >>>    so, in short: does a simple Thread model have any impact on C-only >>> programs that could use threads? in particular, how it

Re: [Bulk] Re: x86 assembler syntax

2010-08-09 Thread Jonathan Wakely
On 9 August 2010 08:08, Rick C. Hodgin wrote: > Tim, > > Nice.  It reads: "3.2.3. Intel syntax - Good news are that starting from > binutils 2.10 release, GAS supports Intel syntax too. It can be > triggered with .intel_syntax directive. Unfortunately this mode is not > documented (yet?) in the off

Re: g++ Long compile times

2010-08-14 Thread Jonathan Wakely
On 14 August 2010 14:48, Brad Bell wrote: > When I compile the program below with EXTRA_CLASS_OBJECTS equal to 0, the > compile time is about 3 seconds. When EXTRA_CLASS_OBJECTS is 1, the compile > time is about 12 seconds. This isn't really suitable for this mailing list. If you have a question

Re: Broken links on main gcc website.

2010-08-23 Thread Jonathan Wakely
On 23 August 2010 19:23, Gareth Randall wrote: > Hi, > > In:  http://www.gnu.org/software/gcc/ > > Broken links in the “Documentation” panel on the right: > > http://www.gnu.org/software/gcc/install/         (Empty directory) > http://www.gnu.org/software/gcc/install/specific.html > http://www.gnu.

Re: Optimization Switches

2010-08-26 Thread Jonathan Wakely
On 26 August 2010 12:56, wrote: > > a) Is there any way to observe the effect of a particular optimization, > without the obvious option of using a lot of -fno switches. > b) And do the -f* switches serve any purpose, if I can't enable individual > optimizations using them. You need an optimisat

Re: Optimization Switches

2010-08-26 Thread Jonathan Wakely
Would the wiki be clearer if the word "alone" was added? First, individual optimization options alone (-f*) do not enable optimization

Re: gcc-4.5.1 failing test: FAIL: abi_check

2010-08-29 Thread Jonathan Wakely
On 30 August 2010 02:59, Tom Browder wrote: > I posted this earlier on gcc-help but no solutions that worked. > > After a good build of gcc-4.5.1 I did 'make check' (several times > now).  I only get one failure for languages c,c++,fortran. > > Portion of test results showing failure: > > Running t

Re: g++ segfault when using C++0x feature‏

2010-09-09 Thread Jonathan Wakely
On 7 September 2010 22:50, James Dennett wrote: > I suspect we don't want to put a lot of effort into fixing C++0x > experimental support in GCC 4.4.x. In general that's correct, but in this case it's already fixed on the 4.4 branch, 4.4.4 doesn't crash. Nate, It's always worth trying an up-to-da

RFH: PR 44645 - missing debug info for C++ pointer types

2010-09-18 Thread Jonathan Wakely
Could someone more familiar with dwarf2out.c take a look at PR 44645? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44645 It is a fairly problematic regression in C++ debug info, which causes errors in the python pretty printers for libstdc++ associative contaienrs (map, set etc.) and has several du

Re: RFH: PR 44645 - missing debug info for C++ pointer types

2010-09-18 Thread Jonathan Wakely
HJ has just identified the commit that caused the problem - I should have waited a few more minutes before sending my RFH :-) Thanks, HJ On 18 September 2010 14:31, Jonathan Wakely wrote: > Could someone more familiar with dwarf2out.c take a look at PR 44645? > http://gcc.gnu.org/bu

Re: RFH: PR 44645 - missing debug info for C++ pointer types

2010-09-18 Thread Jonathan Wakely
On 18 September 2010 15:50, H.J. Lu wrote: > On Sat, Sep 18, 2010 at 6:35 AM, H.J. Lu wrote: >> On Sat, Sep 18, 2010 at 6:33 AM, Jonathan Wakely >> wrote: >>> HJ has just identified the commit that caused the problem - I should >>> have waited a few m

Re: End of GCC 4.6 Stage 1: October 27, 2010

2010-09-20 Thread Jonathan Wakely
On 20 September 2010 17:33, NightStrike wrote: > > Ok, so it took a while to eventually find out that cygwin still > malfunctions with -j, and I get lots of "fork() blows because it can't > figure out how to find ubiquitous resources" errors.  However, I > eventually got this to finish: > > http://

Re: GCC Bugzilla upgrade to version 3.6.2 ready

2010-09-20 Thread Jonathan Wakely
2010/9/20 Frédéric Buclin: > > Have fun testing the new Bugzilla, Oops, I didn't realise that changes to the test installation get emailed to gcc-bugs and to the users who reported the bug or are CC'd on it, but that raised a couple of possible bugs. I've filed http://gcc.gnu.org/bugzilla-test/sh

Re: GCC Bugzilla upgrade to version 3.6.2 ready

2010-09-21 Thread Jonathan Wakely
2010/9/21 Frédéric Buclin : > Le 21. 09. 10 01:18, Jonathan Wakely a écrit : >> Oops, I didn't realise that changes to the test installation get >> emailed to gcc-bugs and to the users who reported the bug or are CC'd >> on it > > Yeah, it's a produc

Re: Confirming a bug in new bugzilla?

2010-09-25 Thread Jonathan Wakely
On 25 September 2010 15:28, Steve Kargl wrote: > On Sat, Sep 25, 2010 at 10:46:32AM +0200, Jakub Jelinek wrote: >> On Fri, Sep 24, 2010 at 10:44:54PM -0700, Steve Kargl wrote: >> > So, with the new bugzilla, how does one confirm a bug >> > is a bug?  If I click on the button next to the >> > "statu

Re: Bugzilla outage Thursday, September 23, 18:00GMT-21:00GMT

2010-09-25 Thread Jonathan Wakely
Thank you, Frédéric, despite a few bug reports the upgrade went very smoothly and it's great that we have a modern version of Bugzilla now. Was it a conscious decision for the "Add me to CC list" checkbox to be ticked by default? It means that I get added to the CC list whenever I comment on a bu

Re: Bugzilla outage Thursday, September 23, 18:00GMT-21:00GMT

2010-09-25 Thread Jonathan Wakely
2010/9/25 Frédéric Buclin: > Le 25. 09. 10 17:10, Jonathan Wakely a écrit : >> Was it a conscious decision for the "Add me to CC list" checkbox to be >> ticked by default? > > Yes, because most of the time, when you comment on a bug, other users > may reac

Re: Regarding code portability across different gcc/g++ versions

2010-09-29 Thread Jonathan Wakely
On 29 September 2010 08:07, #SINHA SHARAD# wrote: > Hi, > >   I presume this happens because the glibc with gcc 4.2.1 is smarter than the > one with gcc 3.2.2. Hence, what was missed during execution with 3.2.2 was > caught in 4.2.1 N.B. glibc does not come with GCC, you can generally use a new

Re: End of GCC 4.6 Stage 1: October 27, 2010

2010-10-08 Thread Jonathan Wakely
On 8 October 2010 16:56, NightStrike wrote: > > http://gcc.gnu.org/ml/gcc-testresults/2010-10/msg00624.html There are a lot of failures there, including quite a few tests which don't look platform-dependent. Can you send me the libstdc++-v3/testsuite/libstdc++.log so I can see what's failing? A

Re: End of GCC 4.6 Stage 1: October 27, 2010

2010-10-08 Thread Jonathan Wakely
Most of the failing libstdc++ tests which shouldn't be platform-dependent fail with this message: sh: /usr/bin/stty: Bad address libstdc++-v3/config/os/mingw32/error_constants.h is missing several entries, causing failures in the 19_diagnostics tests. There are a few failures in 23_containers/vec

Re: Trouble doing bootstrap

2010-10-14 Thread Jonathan Wakely
On 14 October 2010 02:07, Paul Koning wrote: > > Explicitly setting LD_LIBRARY_PATH seems to cure the problem.  It would be > good to have that called out in the procedures (or, preferably, made not to > be necessary). As Ian pointed out, it's documented under --with-mpc et al, although I only a

Re: some questions to GCC steering commitee (at GCC Summit) related to documentation from code

2010-10-17 Thread Jonathan Wakely
On 17 October 2010 22:16, Basile Starynkevitch wrote: > > So I will ask face to face practical advices on these issues, in > particular I need to understand who is able to give me constructive & > "definitive" advices (apparently I asked on licens...@fsf.org and Karl > Berry replied, but probably h

Re: some questions to GCC steering commitee (at GCC Summit) related to documentation from code

2010-10-17 Thread Jonathan Wakely
On 17 October 2010 22:34, Jonathan Wakely wrote: > On 17 October 2010 22:16, Basile Starynkevitch wrote: >> >> So I will ask face to face practical advices on these issues, in >> particular I need to understand who is able to give me constructive & >> "defini

Re: Constant initializers

2010-10-18 Thread Jonathan Wakely
On 18 October 2010 22:04, Matt Fischer wrote: > I'm attempting to port some code to gcc, and in a couple of places > it's using a construct that it doesn't like.  A simplified example is > the following (this is in global scope): > > static const int A = 1; > static const int B = A; > > This compil

Re: __GXX_EXPERIMENTAL_CXX0X__

2010-10-21 Thread Jonathan Wakely
On 21 October 2010 18:52, Neal Becker wrote: > I need a preprocessor macro to detect c++0x support.  For now, that is >  __GXX_EXPERIMENTAL_CXX0X__ > > but what happens once -std=c++0x is the default?  Will this macro still > be defined? > > Don't we need a > > __GXX_CXX0X__ ? __cplusplus should

Re: simple for loop on g++ 4.4.3

2010-10-28 Thread Jonathan Wakely
On 28 October 2010 23:41, eric lin wrote: >  you can see both programs, their for loop are very similar(or the same) > for (int i=0 > but why first , and second programs can not compile > but > the third one is OK > ? This mailing list is for development of gcc, not help using it, please send thes

Re: [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03

2010-11-01 Thread Jonathan Wakely
On 1 November 2010 08:46, eric wrote: > should I also post this to X.org and gcc 's mailing list? No. This mailing list is not for help using GCC, and your problem is not caused by GCC. Please post somewhere else more appropriate, such as the gcc-help list.

Re: Merging Apple's Objective-C 2.0 compiler changes

2010-11-02 Thread Jonathan Wakely
On 2 November 2010 15:13, Ed Smith-Rowland wrote: > > It would be great if you all could update > http://gcc.gnu.org/gcc-4.6/cxx0x_status.html and related with all the great > work that has gone into Objective-C++ recently. http://gcc.gnu.org/gcc-4.6/changes.html would make more sense!

Re: Changing PR to ASSIGNED doesn't assign to me automatically

2010-11-06 Thread Jonathan Wakely
On 5 November 2010 19:54, Rainer Orth wrote: > I've noticed an annoying change of behaviour in current Bugzilla > compared to the old installation.  If I changed a PR to ASSIGNED, it was > automatically assigned to me.  Now, the state does change to ASSIGNED > alright, but the PR still remains assi

Re: build issue

2010-11-06 Thread Jonathan Wakely
On 6 November 2010 21:47, François Dumont wrote: > Hi > >    My latest build finally succeeded, I have simply removed everything > reported by 'svn status' as unknown and done a re-configuration and build. That would imply you're building in the source directory - don't do that. It is strongly ad

Re: RTTI across .so boundaries

2010-11-12 Thread Jonathan Wakely
2010/11/13 Витя Истомин : > Hi, guys. I've got stuck about using dynamic_cast across .so boundaries and > I've investigated this question. So I'm surprised that when I'm not using > RTLD_GLOBAL, your new ABI realization f*cked out dynamic_cast, typeid, and > (!) throw/catch. > > Are you in mind,

__ghtread_recursive_mutex_destroy missing

2010-11-16 Thread Jonathan Wakely
The gthreads portability layer is missing a function for destroying a __ghtread_recursive_mutex object. For pthreads-based models the recursive mutex type is the same as the normal mutex type so __gthread_mutex_destroy handles both, but they're distinct types for (at least) gthr-win32.h, so we can

Re: Maybe bug in call function to static declaration variable?

2010-11-17 Thread Jonathan Wakely
[This question should have been sent to gcc-help, this list is for discussing development of GCC] On 18 November 2010 03:03, Gilberto Cuba Ricardo wrote: > > Maybe it's possible, though, I searched in the working draft of > standard programming c++ of this year that: "Static initialization shall >

Re: extern "C" applied liberally?

2010-11-27 Thread Jonathan Wakely
On 26 November 2010 22:17, Jay K wrote: > > I somewhat tracked down the odd/dubious reason extern "C" is "good". This behaviour of Apple's gdb is a poor reason to modify GCC sources. It's probably just that gdb didn't use to be very good at matching C++ function names. > ... > (gdb) break F2 Wh

Re: [c++0x] cannot return a constant

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 20:33, Roman Kononov wrote: > This is related to http://gcc.gnu.org/ml/gcc/2010-11/msg00623.html > > I write about it again because the following seems too bad: > > $ cat test1.cc > struct X { >  X()=default; >  X(X&&)=default; >  X(X const&)=delete; >  //some very large or non-

Re: [c++0x] cannot return a constant

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 20:40, Jonathan Wakely wrote: > On 30 November 2010 20:33, Roman Kononov wrote: >> This is related to http://gcc.gnu.org/ml/gcc/2010-11/msg00623.html >> >> I write about it again because the following seems too bad: >> >> $ cat test1.cc >&

Re: [c++0x] cannot return a constant

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 21:18, Roman Kononov wrote: > 2010-11-30 15:13 CST, Gabriel Dos Reis > said: >>On Tue, Nov 30, 2010 at 3:11 PM, Roman Kononov wrote: >>> I exactly want to be unable to change an object during its lifetime >>> except when it is moved-and-destroyed. >> >>isn't that a question f

Re: [c++0x] cannot return a constant

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 21:45, Gabriel Dos Reis wrote: > On Tue, Nov 30, 2010 at 3:34 PM, Roman Kononov wrote: >> 2010-11-30 21:20 CST, Jonathan Wakely said: >>>We do. The point is your question is off-topic on this list, because >>>you are complaining about the C++0x l

Re: [c++0x] inconsistent behaviour with defaulted move constructor

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 22:51, Roman Kononov wrote: > The two programs below differ by the location of =default applied to > the move constructor. In the first program, it is defaulted inside > the class during declaration. In the second program, it is defaulted > outside the class in the definition. >

<    6   7   8   9   10   11   12   13   14   15   >