Re: [C++11] Reclaiming fixed-point suffixes for user-defined literals.

2011-11-06 Thread Jonathan Wakely
On 6 November 2011 16:10, David Brown wrote: > Perhaps I have been getting too worked up about small things here, and > missing out on the major points, such as the efforts made to keep things > consistent through the use of header files.  I still find it odd that > features are added in different

Re: Need to correct the function declaration.

2011-11-06 Thread Jonathan Wakely
On 7 November 2011 03:02, James Dennett wrote: > On Sun, Nov 6, 2011 at 6:55 PM, niXman wrote: >> When I try to build gcc-trunk on OpenBSD-5.0(gcc-4.2.1), I get the >> following error: >>> gcc-4.6.2/i686-pc-openbsd5.0/libstdc++-v3/include/mutex:818:64: error: >>>   invalid conversion from 'void (*)

Re: bootstrap of 4.6.2 on Solaris i386, gone in 60 seconds

2011-11-06 Thread Jonathan Wakely
This should probably be on the gcc-help list. On 7 November 2011 01:08, Dennis Clarke wrote: > > Well, dear GCC users I am now seeing behavior that falls in the arean of > the bizarre. No sense in talking much about it but here is the error > message : > > /opt/bw/src/GCC/gcc_4.6.2/gcc-4.6.2/intl/

Re: Need to correct the function declaration.

2011-11-06 Thread Jonathan Wakely
On 7 November 2011 07:09, Jonathan Wakely wrote: > On 7 November 2011 03:02, James Dennett wrote: >> On Sun, Nov 6, 2011 at 6:55 PM, niXman wrote: >>> When I try to build gcc-trunk on OpenBSD-5.0(gcc-4.2.1), I get the >>> following error: >>>> gcc-4.6.2/

Re: Need to correct the function declaration.

2011-11-06 Thread Jonathan Wakely
Fixed on trunk by revision 181072. Please use bugzilla or the libstdc++ mailing list next time.

Re: cc1: warning: unrecognized command line option "-Wno-narrowing"

2011-11-08 Thread Jonathan Wakely
On 8 November 2011 19:29, Michael Meissner wrote: > On Sun, Nov 06, 2011 at 07:18:52AM +0100, Ralf Corsepius wrote: >> Hi, >> >> Since recently, I am facing several of the warnings above when >> building GCC-trunk cross for RTEMS targets. >> >> So far, not much clues about what is going on, except

Re: transactional-memory branch has been merged into trunk

2011-11-08 Thread Jonathan Wakely
On 8 November 2011 22:01, Andrew Pinski wrote: > > And this breaks x86 builds with semi-older binutils.  Binutils without > AVX support gives the following error message while build libtm: > /usr/bin/as: unrecognized option `-msse2avx' Is that related to this bootstrap failure I'm seeing on netbsd

Re: wish: generation of type annotation for C++11 code.

2011-11-10 Thread Jonathan Wakely
On 10 November 2011 10:58, Basile Starynkevitch wrote: > With the type inference abilities given by > the auto keyword, it is sometimes hard for a beginner to understand what type > is some > particular expression in his code (or what exactly function is called in an > overloaded > context). If

Re: wish: generation of type annotation for C++11 code.

2011-11-10 Thread Jonathan Wakely
On 10 November 2011 16:08, Basile Starynkevitch wrote: > On Thu, 10 Nov 2011 12:54:52 + > Jonathan Wakely wrote: > >> Doesn't DWARF debug info already contain all that info anyway? > > It is not a textual file, and it is not easily parsable. Nobody would write a

Re: wish: generation of type annotation for C++11 code.

2011-11-10 Thread Jonathan Wakely
On 10 November 2011 16:12, Jonathan Wakely wrote: > On 10 November 2011 16:08, Basile Starynkevitch wrote: >> It is not a textual file, and it is not easily parsable. Nobody would write >> a DWARF >> parser in a few hundreds lines of Emacs Lisp. > > But it contains a

Re: wish: generation of type annotation for C++11 code.

2011-11-10 Thread Jonathan Wakely
On 10 November 2011 16:17, Jonathan Wakely wrote: > On 10 November 2011 16:12, Jonathan Wakely wrote: >> On 10 November 2011 16:08, Basile Starynkevitch wrote: >>> It is not a textual file, and it is not easily parsable. Nobody would write >>> a DWARF >>> par

Re: wish: generation of type annotation for C++11 code.

2011-11-10 Thread Jonathan Wakely
On 10 November 2011 17:36, Basile Starynkevitch wrote: > On Thu, 10 Nov 2011 12:54:52 + > Jonathan Wakely wrote: >> > That type annotation produced by g++ would be usable by external editors, >> > etc. >> >> That's a pretty big assumption, and th

Re: wish: generation of type annotation for C++11 code.

2011-11-12 Thread Jonathan Wakely
On 12 November 2011 08:56, Theodore Papadopoulo wrote: >> >> Yes, the reason I'm delighted with auto is that there are cases >> where I do not want to know the type (or I want to write generic >> code that will work with different kinds of containers).  For >> >> std::multimap amap; >> >> when I wr

Re: Odd things when change gcc from 3.3 to 3.4

2011-11-15 Thread Jonathan Wakely
On 15 November 2011 08:38, Mingjie Xing wrote: > Hi, > > Recently, I run into a very odd things when change my gcc toolchain > from 3.3.* to 3.4.*.  The compiled application such as a simple hello > printing, is unable to redirect into a file. > > $ ./hello > hello > $ ./hello > log > $ cat log > $

Bugzilla shouldn't mangle patches

2011-11-15 Thread Jonathan Wakely
I wanted to download my patch in comment 15 of http://gcc.gnu.org/PR2972#c15 So I clicked on the attachment link, and I get the patch viewer, showing me a coloured, side-by-side diff. Very pretty, but no use if I want to download it to apply it to the GCC source. So I clicked on the "Raw Unified

Re: Bugzilla shouldn't mangle patches

2011-11-15 Thread Jonathan Wakely
2011/11/15 Frédéric Buclin : > Le 15. 11. 11 10:50, Jonathan Wakely a écrit : >> So I clicked on the attachment link, and I get the patch viewer, >> showing me a coloured, side-by-side diff.  Very pretty, but no use if >> I want to download it to apply it to the GCC source.

Re: installing cross compiler

2011-11-18 Thread Jonathan Wakely
On 18 November 2011 09:57, esmaeil mirzaee wrote: > Hi > apologize for interrupt and weak English. This email is not appropriate for this mailing list, for help using or installing gcc please use the gcc-h...@gcc.gnu.org mailing list. Please follow up on that list instead, thanks. > I need to ins

Re: Profiling gcc itself

2011-11-20 Thread Jonathan Wakely
On 21 November 2011 00:50, Jeff Evarts wrote: > Seriously, I meant no offense, and didn't want to cause a stir. I didn't interpret the replies as offended or stirred, I think they were just saying "it's not clear from your question whether you are already familiar with the most rudimentary* tools

Re: Linking libgcc with xgcc fails in build of trunk

2011-11-22 Thread Jonathan Wakely
Generally questions about building or using gcc should go to the gcc-help mailing list, not here. On 22 November 2011 19:01, Aran Clauson wrote: > I tried removing this line, but the file is regenerated by the make system. > Since others have built and are building trunk, I assume that I have a >

Re: success building gcc-4.6.2 on x86_64-apple-darwin11.2.0

2011-11-23 Thread Jonathan Wakely
On 23 November 2011 03:06, Alex J. Avriette wrote: > > Oh, one last thing, the environment had to be set correctly. I had > mpc, mpfr, and gmp in /usr/local, and the following environment > variables needed to be set for the compile to work: > ABI=64 > CONFIG_SHELL=sh (NOT! bash) > ARCH=x86-64 > CF

Re: Broken link

2011-12-05 Thread Jonathan Wakely
2011/12/5 Marco Antonio Gómez Martín: >        Hello, > >        Just to let you know that I have found some broken links at > > http://gcc.gnu.org/projects/cxx0x.html > >        The table entries: > > Defining move special member functions  N3053   GCC 4.6 > Allowing move constructors to throw [no

Re: Broken link

2011-12-05 Thread Jonathan Wakely
2011/12/5 Jonathan Wakely: > 2011/12/5 Marco Antonio Gómez Martín: >>        Hello, >> >>        Just to let you know that I have found some broken links at >> >> http://gcc.gnu.org/projects/cxx0x.html >> >>        The table entries: >> >>

Re: Perfect forwarding seems not to be so perfect

2011-12-06 Thread Jonathan Wakely
On 6 December 2011 15:11, Piotr Wyderski wrote: > Hello, > > on gcc-4.6.2/x64/linux: > >    template inline string format(const string& fmt, > TA&&... args) { > >        string_formatter f; >        f.format(fmt, std::forward(args)...); >        return f.get_result(); >    } > > results in: > > er

Re: Suspicion of regression in uninitialized value detection

2011-12-06 Thread Jonathan Wakely
On 6 December 2011 15:18, David Brown wrote: > > But clearly the uninitialised warnings are useful, and users would like to > see them improved - if it is possible to do so without adversely affecting > code generation, of course. Yes, we all like good things, and we all want more good things, as

Re: Perfect forwarding seems not to be so perfect

2011-12-06 Thread Jonathan Wakely
On 6 December 2011 16:41, Jonathan Wakely wrote: > I'm guessing you've called format with an explicit template > argument list, and it's not compatible with the actual types you > called the function with.  Due to > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50828 t

Re: Failure to bootstrap current gcc trunk on cygwin (20111207 snapshot): conflicting declarations in cygwin's /usr/include/sys/wait.h

2011-12-07 Thread Jonathan Wakely
On Wednesday, 7 December 2011, Dave Korn wrote: > On 07/12/2011 19:14, Christian Joensson wrote: >> I am trying to build gcc trunk on cygwin (with the snapshot of >> 20111207) and get this: > >> /usr/local/src/trunk/gcc/gcc/ada/adaint.c -o ada/adaint.o >> In file included from /usr/local/src/trun

Re: Failure to bootstrap current gcc trunk on cygwin (20111207 snapshot): conflicting declarations in cygwin's /usr/include/sys/wait.h

2011-12-07 Thread Jonathan Wakely
On 8 December 2011 01:09, Ian Lance Taylor wrote: > Jonathan Wakely writes: > >>> Should the Cygwin header use >>> extern "C++" on those declarations even though they're inside #ifdef >>> __cplusplus, or should adaint.c not #include things ins

Re: warn about deprecated access declarations

2011-12-11 Thread Jonathan Wakely
On 11 December 2011 22:22, Fabien Chêne wrote: > > Consequently, I propose to deprecate them with a warning, as clang already > does. > So that you get a warning for the following code: > > struct A { int i; }; > struct B : A > { >  A::i; // <- warning here > }; > > warning: access declarations ar

Re: warn about deprecated access declarations

2011-12-12 Thread Jonathan Wakely
On 12 December 2011 09:18, Andreas Schwab wrote: > Jonathan Wakely writes: > >> On 11 December 2011 22:22, Fabien Chêne wrote: >>> >>> Consequently, I propose to deprecate them with a warning, as clang already >>> does. >>> So that you get a warnin

Re: warn about deprecated access declarations

2011-12-12 Thread Jonathan Wakely
On 12 December 2011 10:08, Andreas Schwab wrote: > Jonathan Wakely writes: > >> On 12 December 2011 09:18, Andreas Schwab wrote: >>> Jonathan Wakely writes: >>> >>>> On 11 December 2011 22:22, Fabien Chêne wrote: >>>>> >>>>

Re: RFC - GCC Architectural Goals

2011-12-12 Thread Jonathan Wakely
On 12 December 2011 21:13, Quentin Neill wrote: > > I think an improvement could be made in automated downloading of GCC > and dependencies (I looked in the wiki and the document and didn't see > this, but it is worth mentioning). > > Any script (and new users as well) must understand which depende

Re: RFC - GCC Architectural Goals

2011-12-12 Thread Jonathan Wakely
On 12 December 2011 21:54, Quentin Neill wrote: > On Mon, Dec 12, 2011 at 3:20 PM, Jonathan Wakely > wrote: >> On 12 December 2011 21:13, Quentin Neill wrote: >>> >>> I think an improvement could be made in automated downloading of GCC >>> and dependencies

Re: Possible wrong-way example in gcc4-4-2 documentation of __builtin_expect

2011-12-20 Thread Jonathan Wakely
On 20 December 2011 12:49, Segher Boessenkool wrote: > > The point of the example is that you cannot write > >          if (__builtin_expect (ptr, 1)) >            error (); > > so the "!= NULL" is important here.  But you are right that > "error ()" is a bit unexpected; care to send a patch that c

Re: Misleading error if the type in catch() is ambiguous

2011-12-20 Thread Jonathan Wakely
On 20 December 2011 13:31, Peter A. Felvegi wrote: > > I suspect there is a regression from g++ 4.4 in later versions. If the name > of the class is ambiguous in a catch(), this fact is not reported. Bugs should be reported to bugzilla: http://gcc.gnu.org/bugs/#report Please also provide a reduce

Re: Possible wrong-way example in gcc4-4-2 documentation of __builtin_expect

2011-12-21 Thread Jonathan Wakely
ror (); + ptr->foo (); @end smallexample @noindent I've CC'd the gcc-patches list, which is where patches should be sent for review, and included a ChangeLog entry: 2011-12-21 Jonathan Wakely Jim Avera * doc/extend.texi (__builtin_expect): Improve

Re: Possible wrong-way example in gcc4-4-2 documentation of __builtin_expect

2011-12-21 Thread Jonathan Wakely
On 21 December 2011 18:03, Jonathan Wakely wrote: > On 21 December 2011 02:00, Jim Avera wrote: >> Ok, here is a patch which improves the example: >> >> --- gcc/doc/extend.texi.ORIG    2011-12-20 17:35:32.236578828 -0800 >> +++ gcc/doc/extend.texi    2011-12-

Re: NSDMI bug?

2011-12-23 Thread Jonathan Wakely
On 23 December 2011 09:06, Miles Bader wrote: > Is the following code valid? > >   #include > >   struct X >   { >     std::tuple tt{1, 2};   // works >   }; > >   struct Y >   { >     std::tuple tt = std::tuple{1, 2};   // *error* >   }; > > 'cause it results in an error with gcc 20111210: > >  

Re: non-virtual-destructor warnings redux

2011-12-24 Thread Jonathan Wakely
On 24 December 2011 10:50, Paolo Carlini wrote: > On 12/24/2011 03:04 AM, Miles Bader wrote: >> >> What do people think... is this a better non-virtual-dtor warning? > > In general this type of diagnostic issue isn't very difficult to work on. > First, I would recommend checking if we have a Bugzil

Re: a nifty feature for c preprocessor

2011-12-28 Thread Jonathan Wakely
On 28 December 2011 20:57, R A wrote: > > templates, i have no problem with, i wish there could be a C dialect that can > integrate it, so i wouldn't have to be forced to use C++ and all the bloat > that usually come from a lot of it's implementation (by that i mean a > performance close to C i

Re: a nifty feature for c preprocessor

2011-12-28 Thread Jonathan Wakely
On 28 December 2011 21:06, Jonathan Wakely wrote: > On 28 December 2011 20:57, R A wrote: >> >> templates, i have no problem with, i wish there could be a C dialect that >> can integrate it, so i wouldn't have to be forced to use C++ and all the >> bloat that

Re: private member in union { union }

2011-12-30 Thread Jonathan Wakely
On 30 December 2011 15:25, Jakub Staszak wrote: > Hello, > > I've found that: > > class Prv { > private: >  union >  { >    union >    { >      unsigned int Bits; >    }; >  }; > }; > > unsigned int getBits(Prv *P) { >  return P->Bits; > } > > doesn't generate any error. Is it a bug? Yes, I think

Re: ::gets has not been declared

2012-01-05 Thread Jonathan Wakely
On 5 January 2012 16:33, Marc Glisse wrote: > On Thu, 5 Jan 2012, Joseph S. Myers wrote: > >> If the final C++11 still requires gets in , despite it being >> removed in C11, that's probably also a bug in C++11.  (At least the most >> recent draft I have to hand still has gets in .) > > > It still h

Re: ::gets has not been declared

2012-01-05 Thread Jonathan Wakely
On 5 January 2012 18:24, Tom de Vries wrote: > On 05/01/12 18:40, Jonathan Wakely wrote: >> On 5 January 2012 16:33, Marc Glisse wrote: >>> On Thu, 5 Jan 2012, Joseph S. Myers wrote: >>> >>>> If the final C++11 still requires gets in , despite it being >

Re: Trouble installing gfortran

2012-01-10 Thread Jonathan Wakely
This mailing list is for development of gcc, not help using it. Please direct questions about using or building gcc to the gcc-help list, thanks. On 10 January 2012 00:54, John Harper wrote: > My little test program then compiled but wouldn't run even though the > library said to be missing does

Re: struggling with make inside GCC MELT

2012-01-11 Thread Jonathan Wakely
On 11 January 2012 09:08, Mingjie Xing wrote: > 2012/1/10 Ian Lance Taylor : >> Stamp files in make work like this: >> >> FILE: STAMP-FILE; @true >> STAMP-FILE: DEPENDENCIES >>        commands to create FILE.tmp >>        move-if-change FILE.tmp FILE >>        touch $@ >> >> What this says is: if a

Re: struggling with make inside GCC MELT

2012-01-11 Thread Jonathan Wakely
On 11 January 2012 14:49, Ian Lance Taylor wrote: > Jonathan Wakely writes: > >> I'm not sure why "@true" is needed, as I think GNU make allows simply >> ";" for an empty recipe, maybe Ian can explain that part. > > The rules I described work

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Jonathan Wakely
On 12 January 2012 19:16, Benjamin Kosnik wrote: > > I think a compelling case could be made to ship 4.7 with a > configure-time flag that sets the default C++ dialect to C++11. > > So, I would propose > > --with-std = dialect > > or > > --with-std-version=c dialect default, c++ dialect default > >

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Jonathan Wakely
On 12 January 2012 21:03, Jason Merrill wrote: > On 01/12/2012 03:17 PM, Jonathan Wakely wrote: >> >> And if we are going to do that, shouldn't it be ASAP? Otherwise we'll >> not be able to change anything significant in .so.7 once it's >> available in 4.7

Re: Go in gcc 4.7

2012-01-13 Thread Jonathan Wakely
On 13 January 2012 11:51, Dennis Clarke wrote: > >> Dennis Clarke writes: >> >>>      for (argno = 0; argno < argc; argno++) { >>>              if (argno < 6) >>>                      *tsp++ = reg[REG_O0 + argno] = va_arg(ap, long); >>>              else >>>                      *tsp++ = va_arg(ap

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Jonathan Wakely
On 13 January 2012 17:45, Benjamin Kosnik wrote: > > Note that one of the objectives of this email is to try and get > maintainers from thinking there is going to be "a perfect time" to > switch. Development history tells us there will always be more changes. > We've been sitting on ABI-breaking ch

Re: GCC 4.7 compiles with llvm-gcc-4.2 but not with GCC 4.6.2

2012-01-16 Thread Jonathan Wakely
On 16 January 2012 13:55, Hans Aberg wrote: > [I am not on this list, so please cc me.] > > On OS X 10.7.2, gcc (GCC) 4.7.0 20120115 from SVN compiles using the > /usr/bin/gcc -> llvm-gcc-4.2 that is installed by Xcode 4.2.1. > > But if one first compiles GCC 4.6.2 using the same LLVM-GCC, then th

Re: GCC 4.7 compiles with llvm-gcc-4.2 but not with GCC 4.6.2

2012-01-16 Thread Jonathan Wakely
On 16 January 2012 14:49, Hans Aberg wrote: > On 16 Jan 2012, at 15:31, Jonathan Wakely wrote: > >>> The config.log of this directory just indicates a program doing the check >>> that will fail (now overwritten by new ./configure && make). >> >> Do not

Re: GCC 4.7 compiles with llvm-gcc-4.2 but not with GCC 4.6.2

2012-01-16 Thread Jonathan Wakely
On 16 January 2012 17:31, Hans Aberg wrote: > Bison puts up snapshots at ftp://alpha.gnu.org/gnu/bison/, an alternative to > those that do not need the latest bleeding-edge version. So does GCC, the front page says "Our sources are readily and freely available via SVN and weekly snapshots" and li

Re: GCC 4.7 compiles with llvm-gcc-4.2 but not with GCC 4.6.2

2012-01-17 Thread Jonathan Wakely
On 17 January 2012 09:12, Hans Aberg wrote: > On 17 Jan 2012, at 08:30, Ian Lance Taylor wrote: > >> > When looking at http://gcc.gnu.org/, there are some large links to the >> > versions, but none for 4.7. >> >> GCC 4.7 has not been released yet. > > There is a development version. You might comp

Re: Fortran Compil;er

2012-01-19 Thread Jonathan Wakely
On 19 January 2012 10:21, tintu david joy wrote: > Hello, > >  I have a system with Suse 10.3 and gcc version 4.2.1. Will there be > inbuilt fortran compiler or do I have to install it separately. Thanks This question is unsuitable for this mailing list, please use the gcc-h...@gcc.gnu.org list fo

Re: Dealing with compilers that pretend to be GCC

2012-01-20 Thread Jonathan Wakely
2012/1/20 Ludovic Courtès: > > Yeah, but it’s a shame that those compilers define __GNUC__ without > supporting 100% of the GNU C extensions.  With this approach, you would > also need to add !defined for Clang, PGI, and probably others. May I politely suggest that this is the wrong place to compl

Re: Dealing with compilers that pretend to be GCC

2012-01-20 Thread Jonathan Wakely
On 21 January 2012 00:32, Vincent Lefevre wrote: > On 2012-01-20 23:28:07 +0000, Jonathan Wakely wrote: >> May I politely suggest that this is the wrong place to complain about >> other compilers pretending to be GCC :) > > I think that's the fault of GCC, which should

Re: Dealing with compilers that pretend to be GCC

2012-01-21 Thread Jonathan Wakely
On 21 January 2012 13:42, Vincent Lefevre wrote: > On 2012-01-21 01:24:19 +0000, Jonathan Wakely wrote: >> And what about the fact other compilers haven't defined such a macro >> for each extension they implement, whether it comes from GCC or not, >> is that GC

Re: Dealing with compilers that pretend to be GCC

2012-01-21 Thread Jonathan Wakely
On 21 January 2012 13:55, Chris Lattner wrote: > On Jan 20, 2012, at 5:24 PM, Jonathan Wakely wrote: > >> On 21 January 2012 00:32, Vincent Lefevre wrote: >>> On 2012-01-20 23:28:07 +, Jonathan Wakely wrote: >>>> May I politely suggest that this is the wrong p

Re: Dealing with compilers that pretend to be GCC

2012-01-22 Thread Jonathan Wakely
On 22 January 2012 11:34, Vincent Lefevre wrote: > On 2012-01-21 13:58:53 +0000, Jonathan Wakely wrote: >> On 21 January 2012 13:42, Vincent Lefevre wrote: >> > On 2012-01-21 01:24:19 +0000, Jonathan Wakely wrote: >> >> And what about the fact other compilers haven&#x

Re: Misleading error message with templated c++ code

2012-02-03 Thread Jonathan Wakely
On 3 February 2012 21:28, Peter A. Felvegi wrote: > on all tested gcc versions (4.4, 4.5, 4.6,4.7). There is definitely a type > called 'Type' in struct 'Derived'. I'm not sure, the above code might be > ill-formed, but then I'd like to see a specific error message. I think the problem is that Der

Re: Size of enum‏

2012-02-05 Thread Jonathan Wakely
2012/2/5 David Brown : > > Enum types in C++ can be any integer type big enough to cover the required > range.  I think most C++ compilers use the smallest integer type that covers > the range. With the three C++ compilers I tried enums are int-sized for compatiblity reasons, so that enums declare

Re: Problem with inline member functions

2012-02-07 Thread Jonathan Wakely
This mailing list is for discussing development *of* gcc, not help using it. Your question would be appropriate on the gcc-h...@gcc.gnu.org list, please take any follow-up there, thanks. On 7 February 2012 13:57, Alexandre Almeida wrote: > > It seems to be impossible to define an inline member fun

Re: The future of concepts

2009-07-28 Thread Jonathan Wakely
2009/7/28 Basile STARYNKEVITCH: > > It could perhaps be not a branch, but a plugin, but I know not much about > C++ concepts, and absolutely nothing about the existing C++ concepts > branch[es]. I don't think that would work - the standard library changes that go along with the language feature co

Re: Doubt regarding gcc

2009-08-07 Thread Jonathan Wakely
2009/8/7 Mr. Vivek Varghese Jacob: > > i would like to know the latest stable version of gcc... > i have went through the website.. Did you miss the front page? And the releases page? If you still can't find the information* please send your question to gcc-h...@gcc.gnu.org instead. Jonathan *

Re: Asymmetry of user-difined swap and distance

2009-08-07 Thread Jonathan Wakely
2009/8/7 Maxim Dementiev: > > It means that swap for user types could be defined either in std namespace > or in the user type namespace (argument-dependent name lookup). Yes, this is intentional. swap() is a point of customisation point, see http://www.ddj.com/cpp/184401876 and the definition in

Re: What's the 'Mail' program mentioned on http://gcc.gnu.org/install/test.html

2009-08-18 Thread Jonathan Wakely
2009/8/18 Larry Evans: > I don't have any program called Mail on my system: It might be called /usr/bin/mailx or just /usr/bin/mail (small 'm') on some systems. Jonathan

Re: Why does template constuctor only work at global scope? Bug?

2009-10-14 Thread Jonathan Wakely
2009/10/14 Ben Bridgwater: > Can anyone tell me why this template constructor only works at global scope? http://gcc.gnu.org/bugs/ or the gcc-help mailing list. This mailing list is for discussing development of GCC, not help using it. > I realize I could use a std::initializer_list constructor

Re: multi threading & load average

2009-11-16 Thread Jonathan Wakely
2009/11/16 Mohsen Pahlevanzadeh: > Dear all, > I wrote a program & when i monitor it with "top" command, i see an > incremental load average.When i see with a profiler program same oprof,i > saw function of my thread has 66%  activity. > I read many body of that function,but i have got 1 result: i

Re: I want to use C and C + +

2009-11-17 Thread Jonathan Wakely
2009/11/17 abdelali ghoulam: > > I downloaded "gcc-4.4.2.tar.gz" and it's first time I use GCC, I do not know > how to install it on windows vista. > I want to use C and C + + This mailing list is for discussing development of gcc, not how to install or use it, you should ask on the gcc-h...@gcc.

Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?

2009-11-17 Thread Jonathan Wakely
2009/11/17 Ian Lance Taylor: > > I don't really understand how this interacts with std::tr1:array, > though. For it to be a more convenient drop-in replacement for builtin arrays you want to initialise tr1::array like so: std::tr1::array a = { 0, 1, 2 }; rather than std::tr1::array a = { { 0, 1

Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?

2009-11-17 Thread Jonathan Wakely
2009/11/18 Mark Mitchell: > Joe Buck wrote: > >> I think that the cleanest way is to suppress the warning for structs >> with one member > > And recursively? > > So that: > >  struct A { int i; }; >  struct B { struct A a }; >  struct C { struct B b }; >  struct C c = { 1 }; > > does not trigger th

Re: [C++0x]: non-public defaulted copy c-tor

2009-11-25 Thread Jonathan Wakely
2009/11/25 Piotr Wyderski: > After upgrade to trunk-20091124: > >    class C { > >    protected: > >        C(const C&) = default; >    }; > > main.cpp:1506:23: error: 'C::C(const C&)' declared with non-public access > cannot >  be defaulted in the class body > > But I can't find anything about it

Re: [C++0x]: non-public defaulted copy c-tor

2009-11-26 Thread Jonathan Wakely
2009/11/26 Piotr Wyderski: > > Clean, simple and GCC used to happily accept that. Only with the experimental C++0x mode, which is a moving target and you shouldn't really complain if it changes. > But now it is illegal because of 3 draft violations: > > Base() shall be public, but is not > ~Base(

Re: [C++0x]: non-public defaulted copy c-tor

2009-11-26 Thread Jonathan Wakely
2009/11/26 Jonathan Wakely: > > This still lets you use defaulted functions, but the base is not > trivially copyable. Oops, I meant the base is not a trivial class ... but then it can't be anyway as you have a virtual function.

Re: Bug in GCC 4.5 c++0x version of std::list

2009-12-08 Thread Jonathan Wakely
2009/12/8 Benjamin Redelings I: > Hi, Hi, I've CC'd the libstdc++ list, please reply there instead of the gcc list. > It seems that many current uses of list::merge( ) fail to compile with > -std=c++0x, but I don't see a bug in bugzilla for this.  Itseems to result > from: > > list<_Tp, _Alloc>::

Re: GCC 4.3.3 Configure and Build for DDRescue

2009-12-08 Thread Jonathan Wakely
2009/12/8 Tim Murdoch: > > I'll begin by stating my knowledge of Unix is almost non-existent. > Using the basic skills that I learned many years ago, I'm currently > trying to rescue a near dead hard drive with DDRescue.  First, I need > to install a C++ compiler, which I have downloaded (v4.3.3) a

Re: Is the GCC optimazer too smart?

2009-12-10 Thread Jonathan Wakely
2009/12/10 sergio borghese: > > Now my question is: is it correct that the compiler enforces the > constantness of the variable, even tought it states in the warning > that the const qualifier has been discarded? the calls to printf can be optimised to printf("i: %dn", 0) so it doesn't use the val

Re: Problem while configuring gcc3.2

2009-12-30 Thread Jonathan Wakely
2009/12/28 Pardis Beikzadeh: > Hi, This question should be asked on the gcc-help mailing list, not this one. > I'm having a problem while installing gcc3.2. I'm trying to install > gcc3.2 for my installation of cygwin because anything higher than that > won't work if I try to compile mex files fo

Re: help on debugging gcc using gdb

2010-01-10 Thread Jonathan Wakely
2010/1/10 swati raina: > > I am tried to debug gcc using the following commands > > 1)[sw...@localhost ~]$ gdb --args /usr/bin/gcc See http://gcc.gnu.org/wiki/DebuggingGCC

Re: Exception object access

2010-01-11 Thread Jonathan Wakely
2010/1/11 Piotr Wyderski: > Hello, > > Is the a way to get access to the currently thrown > C++ exception object? cxxabi.h gives me only access > to its std::type_info via __cxa_current_exception_type(). > On the other hand, the ABI documentation describes > the struct __cxa_exception, but it is no

Re: gcc 4.4.1/linux 64bit: code crashes with -O3, works with -O2

2010-01-14 Thread Jonathan Wakely
2010/1/14 Christoph Rupp: > > To reproduce, these steps are necessary: > > wget http://crupp.de/dl/hamsterdb-1.1.1.tar.gz > tar -zxvf hamsterdb-1.1.1.tar.gz > cd hamsterdb-1.1.1 > ./configure --enable-internal > make There are lots of these warnings, which you ignore at your peril: freelist.c:332

Re: Possible bug: Template name lookup & overloaded functions.

2010-01-19 Thread Jonathan Wakely
2010/1/19 Simon Hill: > Axel Quote: > "Anyways there is an already filed GCC bug about this defect report > against the standard, > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29131 ." > > That bug report is suspended. Is this due to the C++ standards issue > you referred to?: > http://www.open-std

Re: strict aliasing violation

2010-01-25 Thread Jonathan Wakely
On 25 January 2010 15:51, Piotr Wyderski: > Andrew Haley wrote: >   union { float f; uint32 i; } u = {.f = v};   return u.i; >>> >>> Nope, that is not allowed either. >> >> Of course it is allowed.  It's a legitimate gcc extension, and it's >> supported by many other compilers too. > > It

Re: Bugzilla and setting priorities

2010-02-01 Thread Jonathan Wakely
On 29 January 2010 11:09, Piotr Wyderski wrote: > Paolo Carlini wrote: > >> Thus, what's the point of submitter fiddling with those Bugzilla >> fields? Putting some sort of psychological pressure on people actually >> working on fixing the bugs? > > Well, that's true when it comes to high prioritie

Re: C++: How does pthread_cancel() work?

2010-02-02 Thread Jonathan Wakely
On 2 February 2010 08:26, Christian Fröbel wrote: > Hi all, > > I'm having a hard time figuring out how exactly pthread_cancel() works > in a C++ program. It seems that a thread cancellation is somewhat > similar to throwing an exception. But I couldn't find any proof or > details about it. I'm not

Re: Error saying cannot compute suffix while building compiler gcc-4.3.2

2010-03-29 Thread Jonathan Wakely
On 26 March 2010 07:54, Vaibhav Shrimali wrote: > Hello, > I made some changes in the compiler gcc-4.3.2 and am currently trying > to build the compiler. > There are no compilation error in the source code. I followed the > steps specified at : http://gcc.gnu.org/install/index.html > while configu

Re: default_weaktoshared timeouts

2010-04-02 Thread Jonathan Wakely
On 2 April 2010 14:12, Jack Howarth wrote: > > Paolo, >   I don't believe this occurs with the x86_64-apple-darwin10 > target but only with i686-apple-darwin10 so it may well be > a bug in the 32-bit linker on darwin. I'll try benchmarking the > actual linkage command at both 32-bit and 64-bit to s

Re: GCC 4.5.0 release candidate available

2010-04-06 Thread Jonathan Wakely
On 6 April 2010 21:10, Jerome Quinn wrote: > > What is the minimum gmp for cloog-ppl?  Is it the same as for gcc?  My > system gmp is too old for gcc so I've got gmp 4.3.2 placed in the gcc > source tree per the instructions.  It would be nice to have cloog use > the gmp that will be built as part

Re: GCC 4.5.0 release candidate available

2010-04-06 Thread Jonathan Wakely
On 6 April 2010 22:02, Jerome Quinn wrote: > On Tue, Apr 6, 2010 at 4:27 PM, Jonathan Wakely wrote: >>> source tree per the instructions.  It would be nice to have cloog use >>> the gmp that will be built as part of the gcc bootstrap. >>> >>> Is

Re: GCC-TM dependency build

2010-04-09 Thread Jonathan Wakely
On 9 April 2010 17:00, Richard Henderson wrote: > > I have no idea how to fix this.  Ideas? Maybe a dumb question, I don't know the context of this problem... Is the only C++ header that causes a problem? is exactly equivalent to because it only declares macros, which are not in namespace std

Re: dragonegg in FSF gcc?

2010-04-11 Thread Jonathan Wakely
On 11 April 2010 17:17, Jack Howarth wrote: > >  I would also add that some of this seems like deja vu from the > egcs days. Granted it is extremely unlikely, but who is to say that > at some future date, if the license conflicts subside, that FSF gcc > might decide that llvm wasn't so bad for the

Re: svn repository for gcc

2010-04-15 Thread Jonathan Wakely
On 15 April 2010 10:04, Singh, Neeraj K wrote: > > But, I don't have the value for http-proxy-host and http-proxy-port-any clue > what this should be? The web proxy at your site. If you don't have a web proxy, don't use them. If you do have a web proxy, you can probably find the details in your b

Re: GCC 4.5.0 Released

2010-04-19 Thread Jonathan Wakely
On 19 April 2010 18:34, Basile Starynkevitch wrote: > > Note [*]: are we sure that other announced features, like Link Time > Optimization, are *easily* usable by *ordinary* GCC users? I don't know, and > I am not sure... Perhaps most ordinary users only know about -O1 or -O3... Well, yes, because

Re: gcc- 4.6.0 20100416 rtmutex.c:1138:1: internal compiler error

2010-04-19 Thread Jonathan Wakely
On 19 April 2010 08:20, Justin P. Mattock wrote: > On 04/18/2010 11:57 PM, Jie Zhang wrote: >> >> On 04/19/2010 02:43 PM, Justin P. Mattock wrote: >>> >>> I couldn't resist..(had to play), >>> anyways I looked through the reports >>> but didn't see anything that was >>> familiar. so I went and crea

Re: default_weaktoshared timeouts

2010-04-21 Thread Jonathan Wakely
On 3 April 2010 00:16, Jack Howarth wrote: > > Jonathan, >    The test program when compiled as i386 randomly hangs under both the > 32-bit and 64-bit > kernels on Darwin 10.3.0. I've emailed Mike Stump an Instruments trace file > sampling the > hung binary. Unfortunately, I don't know how to con

Re: default_weaktoshared timeouts

2010-04-21 Thread Jonathan Wakely
On 21 April 2010 21:54, Jack Howarth wrote: > On Wed, Apr 21, 2010 at 08:07:48PM +0100, Jonathan Wakely wrote: >> On 3 April 2010 00:16, Jack Howarth wrote: >> > >> > Jonathan, >> >    The test program when compiled as i386 randomly hangs under both the &g

Re: Why not contribute? (to GCC)

2010-04-24 Thread Jonathan Wakely
On 23 April 2010 22:49, Michael Witten wrote: >> >> Anyway, this is off-topic, and stop trying to incite people to fight, >> in this and other threads, please. It is not the first time you do it. >> If you just hate gcc so much, just leave. Thanks, > > I don't know what you're talking about. Prob

Re: thread build on solaris

2008-10-19 Thread Jonathan Wakely
2008/10/19 Edward Peschko: > > That worked (thanks) but exactly why did it work? Shouldn't gcc be > smart enough to realize that it is working either with a c++ file or > linking to a c++ library? http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Invoking-G_002b_002b.html "g++ ... automatically specifi

Re: need to find functions definitions

2008-10-21 Thread Jonathan Wakely
2008/10/21 `VL: > 3) Any good alternatives for cscope/ctags? It seemed to me that > eclipse has some good framework, but it looks to be too much integrated with > it... You could look at these, which all provide more than ctags: http://en.wikipedia.org/wiki/OpenGrok http://synopsis.fresco.org/ ht

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