Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Gabriel Dos Reis
On Mon, Nov 29, 2010 at 11:51 PM, Miles Bader mi...@gnu.org wrote: Ian Lance Taylor i...@google.com writes: We could decide not to do anything about this, but I don't think it's a non-issue.  With -std=gnu++98 g++ accepts this invalid code.  That is, it is a g++ extension, and the code is

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Miles Bader
On Tue, Nov 30, 2010 at 5:13 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing) the data member outside the class? 'cause I want the compiler to be able to use (inline) the underlying values.

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 2:17 AM, Miles Bader mi...@gnu.org wrote: On Tue, Nov 30, 2010 at 5:13 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing) the data member outside the class? 'cause I

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Miles Bader
Gabriel Dos Reis g...@integrable-solutions.net writes: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing) the data member outside the class? 'cause I want the compiler to be able to use (inline) the underlying values. then write even simple code:

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 2:33 AM, Miles Bader mi...@gnu.org wrote: Gabriel Dos Reis g...@integrable-solutions.net writes: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing) the data member outside the class? 'cause I want the compiler to be able to

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Miles Bader
Gabriel Dos Reis g...@integrable-solutions.net writes: I.e., I can choose between various types of ugliness -- wrong namespace, funny syntax, or (currently) gcc-dependence.  I used to choose gcc- dependence, but then switched to funny syntax.  In the future when c++0x support is more

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Richard Guenther
On Tue, Nov 30, 2010 at 9:17 AM, Miles Bader mi...@gnu.org wrote: On Tue, Nov 30, 2010 at 5:13 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing) the data member outside the class? 'cause I

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Marc Glisse
On Tue, 30 Nov 2010, Richard Guenther wrote: On Tue, Nov 30, 2010 at 9:17 AM, Miles Bader mi...@gnu.org wrote: On Tue, Nov 30, 2010 at 5:13 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing)

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Miles Bader
Richard Guenther richard.guent...@gmail.com writes: If you are doing that, why don't you write a simpler code by just defining (e.g. initializing) the data member outside the class? 'cause I want the compiler to be able to use (inline) the underlying values. I think it'll do that with

Revisit of pr38212 regarding restrict definition

2010-11-30 Thread Bingfeng Mei
Hi, I am working on how to improve restrict. I noticed that my changes lead to failure of pr38212. After looking at its code, I think the test may not be valid according to c99 standard. C99 standard 6.7.3.1: EXAMPLE 4 The rule limiting assignments between restricted pointers does not

Re: Revisit of pr38212 regarding restrict definition

2010-11-30 Thread Richard Guenther
On Tue, Nov 30, 2010 at 2:07 PM, Bingfeng Mei b...@broadcom.com wrote: Hi, I am working on how to improve restrict. I noticed that my changes lead to failure of pr38212. After looking at its code, I think the test may not be valid according to c99 standard. C99 standard 6.7.3.1: EXAMPLE 4

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Roman Kononov
On 2010-11-29, 22:26:31 -0800, Andrew Pinski pins...@gmail.com wrote: Except it is documented as a Deprecated feature already so it is different from a documented extension. I would say we should just drop it as it is documented already as deprecated. Are you going to drop the feature from

RE: Revisit of pr38212 regarding restrict definition

2010-11-30 Thread Bingfeng Mei
-Original Message- From: Richard Guenther [mailto:richard.guent...@gmail.com] Sent: 30 November 2010 13:53 To: Bingfeng Mei Cc: gcc@gcc.gnu.org Subject: Re: Revisit of pr38212 regarding restrict definition On Tue, Nov 30, 2010 at 2:07 PM, Bingfeng Mei b...@broadcom.com wrote:

Re: Revisit of pr38212 regarding restrict definition

2010-11-30 Thread Richard Guenther
On Tue, Nov 30, 2010 at 3:29 PM, Bingfeng Mei b...@broadcom.com wrote: -Original Message- From: Richard Guenther [mailto:richard.guent...@gmail.com] Sent: 30 November 2010 13:53 To: Bingfeng Mei Cc: gcc@gcc.gnu.org Subject: Re: Revisit of pr38212 regarding restrict definition On

const char wd[6] = Wednes, is that legal?

2010-11-30 Thread Joakim Tjernlund
gcc 4.4.5, powerpc32 does not fail const char wd[6] = Wednes; even though wd only has room for 6 chars. Is this intended? Jocke

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 5:39 AM, Richard Guenther richard.guent...@gmail.com wrote: On Tue, Nov 30, 2010 at 9:17 AM, Miles Bader mi...@gnu.org wrote: On Tue, Nov 30, 2010 at 5:13 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: If you are doing that, why don't you write a simpler code

EPIC9 Call for Papers (Chamonix, France, April 2nd or 3rd, 2011)

2010-11-30 Thread Andrey Bokhanko
CALL FOR PAPERS === Ninth Workshop on Explicitly Parallel Instruction Computing Architectures and Compiler Technology (EPIC-9) April 2 or 3 (TBD), 2011 Chamonix, France In conjunction with the IEEE/ACM International Symposium on Code Generation and Optimization (CGO) Researchers

Re: const char wd[6] = Wednes, is that legal?

2010-11-30 Thread Axel Freyn
Hi Joakim, On Tue, Nov 30, 2010 at 03:40:12PM +0100, Joakim Tjernlund wrote: gcc 4.4.5, powerpc32 does not fail const char wd[6] = Wednes; even though wd only has room for 6 chars. Is this intended? Which language are you using? ;-) In C++, it's forbidden (there has to be enough space for the

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Miles Bader
On Tue, Nov 30, 2010 at 11:40 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: I agree.  I think we have a case here where people will say anything to justify a (mis)feature that leads to brittle codes Why does it lead to brittle codes? If people are worried about multiple

Re: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 9:07 AM, Miles Bader mi...@gnu.org wrote: If people are worried about multiple translation units, they will still have to provide a definition outside the class -- most likely Why? Because its address may be silently taken (through binding to references), therefore a

Re: Fw: new requirement of constexpr for static const float data members is too restrictive

2010-11-30 Thread Ian Lance Taylor
Andrew Pinski pins...@gmail.com writes: On Mon, Nov 29, 2010 at 4:20 PM, Ian Lance Taylor i...@google.com wrote: We could decide not to do anything about this, but I don't think it's a non-issue.  With -std=gnu++98 g++ accepts this invalid code.  That is, it is a g++ extension, and the code

Build problems on AIX

2010-11-30 Thread Piotr Wyderski
Hello, I'm not able to build GCC (4.4.5 and 4.5.1 from the official releases) on AIX (config.guess: powerpc-ibm-aix6.1.0.0). They both fail exactly the same way: build/genattrtab ../../gcc/config/rs6000/rs6000.md \ insn-conditions.md tmp-attrtab.c out of memory allocating 16 bytes after a

Re: Build problems on AIX

2010-11-30 Thread Piotr Wyderski
The problem was caused by ulimits, so please ignore my report. I feel sorry for generating spurious input -- the platform is totally insane. Best regards Piotr Wyderski

ppc: const data not in RO section

2010-11-30 Thread Joakim Tjernlund
Why is not const char cstr[] = mystr; const int myint = 3; added to a read only section? Especially since const int myarr[]={1,2,3}; is placed in .rodata. hmm, -G 0 does place these in .rodata but why do I have to specify that?

[Patch,quadmath] PR 46543: Add first documentation

2010-11-30 Thread Tobias Burnus
This is a follow up / rediff to my previous patch at http://gcc.gnu.org/ml/fortran/2010-11/msg00339.html, incorporating the comments by Ralf and Matthias. Changes: - Parts of the patch have been committed separately - Removed licence text from .texi file following the suggestion of Matthias -

[c++0x] cannot return a constant

2010-11-30 Thread Roman Kononov
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-copyable content }; X test() { X const x={}; { //a lot

Re: [Patch,quadmath] PR 46543: Add first documentation

2010-11-30 Thread Andreas Schwab
Tobias Burnus bur...@net-b.de writes: @@ -186,5 +194,20 @@ multilib_arg= fi + +# We would like our source tree to be readonly. However when releases or +# pre-releases are generated, the flex/bison generated files as well as the +# various formats of manuals need to be included

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-copyable

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 struct X {  X()=default;  X(X)=default;  X(X

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

2010-11-30 Thread Roman Kononov
2010-11-30 20:40 CST, Jonathan Wakely jwakely@gmail.com said: On 30 November 2010 20:33, Roman Kononov wrote: $ cat test1.cc struct X {  X()=default;  X(X)=default;  X(X const)=delete;  //some very large or non-copyable content }; X test() {  X const x={};  {    //a lot of code

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

2010-11-30 Thread Roman Kononov
2010-11-30 20:46 CST, Jonathan Wakely jwakely@gmail.com said: On 30 November 2010 20:40, Jonathan Wakely wrote: $ cat test1.cc struct X {  X()=default;  X(X)=default;  X(X const)=delete;  //some very large or non-copyable content }; X test() {  X const x={};  {    //a lot of code

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

2010-11-30 Thread James Dennett
On Tue, Nov 30, 2010 at 12:53 PM, Roman Kononov ro...@binarylife.net wrote: 2010-11-30 20:40 CST, Jonathan Wakely jwakely@gmail.com said: However, that doesn't change the fact you're trying to move from a const object, which is obviously wrong. Not really, because the 2 const objects are

Re: [Patch,quadmath] PR 46543: Add first documentation

2010-11-30 Thread Joseph S. Myers
On Tue, 30 Nov 2010, Tobias Burnus wrote: This is a follow up / rediff to my previous patch at http://gcc.gnu.org/ml/fortran/2010-11/msg00339.html, incorporating the comments by Ralf and Matthias. Changes: - Parts of the patch have been committed separately - Removed licence text from

Re: [Patch,quadmath] PR 46543: Add first documentation

2010-11-30 Thread Joseph S. Myers
On Tue, 30 Nov 2010, Tobias Burnus wrote: +Bugs in the GCC Quad-Precision Math Library implementation should be +reported via @uref{http://gcc.gnu.org/bugzilla/, bugzilla}. Do not hardcode bug reporting URLs like this. You should allow them to vary with --with-bugurl (see what the main GCC

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

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 2:53 PM, Roman Kononov ro...@binarylife.net wrote: 2010-11-30 20:40 CST, Jonathan Wakely jwakely@gmail.com said: On 30 November 2010 20:33, Roman Kononov wrote: $ cat test1.cc struct X {  X()=default;  X(X)=default;  X(X const)=delete;  //some very large or

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

2010-11-30 Thread Roman Kononov
2010-11-30 13:03 CST, James Dennett james.denn...@gmail.com said: If you want to be able to change an object during its lifetime, don't make it const. I exactly want to be unable to change an object during its lifetime except when it is moved-and-destroyed. Thanks

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

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 3:02 PM, Roman Kononov ro...@binarylife.net wrote: 2) define a copy constructor, explicitly-defaulted if you wish. What if the copy constructor is too expensive and I have to use move constructor? the discussion would be less confused if you identify clearly the

operator new[] overflow (PR 19351)

2010-11-30 Thread Florian Weimer
Mozilla seems to receive a report of an exploitable operator new[] overflow every couple of months now. Obviously, this is not good. What is necessary so that GCC can fix this code generation issue? I've created a patch, together with a test case, but it has not been approved, nor have I been

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

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 3:11 PM, Roman Kononov ro...@binarylife.net wrote: 2010-11-30 13:03 CST, James Dennett james.denn...@gmail.com said: If you want to be able to change an object during its lifetime, don't make it const. I exactly want to be unable to change an object during its lifetime

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

2010-11-30 Thread Roman Kononov
2010-11-30 15:13 CST, Gabriel Dos Reis g...@integrable-solutions.net said: On Tue, Nov 30, 2010 at 3:11 PM, Roman Kononov ro...@binarylife.net 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 for C++ forums?

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

2010-11-30 Thread Jonathan Wakely
On 30 November 2010 21:18, Roman Kononov ro...@binarylife.net wrote: 2010-11-30 15:13 CST, Gabriel Dos Reis g...@integrable-solutions.net said: On Tue, Nov 30, 2010 at 3:11 PM, Roman Kononov ro...@binarylife.net wrote: I exactly want to be unable to change an object during its lifetime except

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

2010-11-30 Thread Roman Kononov
2010-11-30 21:20 CST, Jonathan Wakely jwakely@gmail.com said: We do. The point is your question is off-topic on this list, because you are complaining about the C++0x language, which as far as we know GCC implements correctly. If you don't like the language, complain somewhere else. Then

Re: operator new[] overflow (PR 19351)

2010-11-30 Thread Joseph S. Myers
On Tue, 30 Nov 2010, Florian Weimer wrote: Mozilla seems to receive a report of an exploitable operator new[] overflow every couple of months now. Obviously, this is not good. What is necessary so that GCC can fix this code generation issue? I've created a patch, together with a test case,

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

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 3:34 PM, Roman Kononov ro...@binarylife.net wrote: 2010-11-30 21:20 CST, Jonathan Wakely jwakely@gmail.com said: We do. The point is your question is off-topic on this list, because you are complaining about the C++0x language, which as far as we know GCC implements

Re: operator new[] overflow (PR 19351)

2010-11-30 Thread Gabriel Dos Reis
On Tue, Nov 30, 2010 at 3:38 PM, Joseph S. Myers jos...@codesourcery.com wrote: On Tue, 30 Nov 2010, Florian Weimer wrote: Mozilla seems to receive a report of an exploitable operator new[] overflow every couple of months now.  Obviously, this is not good. What is necessary so that GCC can

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 ro...@binarylife.net wrote: 2010-11-30 21:20 CST, Jonathan Wakely jwakely@gmail.com said: We do. The point is your question is off-topic on this list, because you are complaining about the C++0x

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

2010-11-30 Thread Ian Lance Taylor
Roman Kononov ro...@binarylife.net writes: 2010-11-30 15:13 CST, Gabriel Dos Reis g...@integrable-solutions.net said: On Tue, Nov 30, 2010 at 3:11 PM, Roman Kononov ro...@binarylife.net wrote: I exactly want to be unable to change an object during its lifetime except when it is

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

2010-11-30 Thread Roman Kononov
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. The first program does not compile. The second does

gcc-4.4-20101130 is now available

2010-11-30 Thread gccadmin
Snapshot gcc-4.4-20101130 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20101130/ 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

Re: operator new[] overflow (PR 19351)

2010-11-30 Thread Joe Buck
On Tue, Nov 30, 2010 at 01:49:23PM -0800, Gabriel Dos Reis wrote: The existing GCC behaviour is a bit more perverse than the C malloc() case as in new T[n] there is no multiplication that could be credited to careless programmer. The multiplication is introduced by GCC. ... which

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.

gcc-4.5-20101125: minor bug test results

2010-11-30 Thread Russell Whitaker
Hi Minor build bug: The cpp sanity check fails because it is looking for cpp in /lib instead of /usr/bin Summary of test results: === gcc Summary === # of expected passes72577 # of unexpected failures22 # of unexpected successes 32 # of expected

Partial hookization / PR46738 (Was: Re: RFA: partially hookize *_TYPE_SIZE)

2010-11-30 Thread Joern Rennecke
Quoting Richard Guenther richard.guent...@gmail.com: Btw, I think these partial conversions are not appropriate for stage3 and if accepted for stage1 you should commit yourself to do a transition that at least allows converting targets (thus, I don't like your incremental patches at all). I

[Bug middle-end/46488] [4.5 regression] server/core_filters.c from apache httpd 2.2.17 miscompiled at -O3

2010-11-30 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Attachment #22403|0 |1 is

[Bug c++/46717] Compiler segfault in profile-use mode

2010-11-30 Thread maeyanie at deathwyrm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 --- Comment #6 from Maeyanie maeyanie at deathwyrm dot com 2010-11-30 08:15:41 UTC --- Created attachment 22576 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22576 Profiling data Since this crash appears only with -fprofile-use, the related

[Bug target/46716] [4.3/4.4/4.5/4.6 Regression] bad code generated with -mno-sse2 -m64

2010-11-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46716 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away

2010-11-30 Thread jiez at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46674 --- Comment #4 from Jie Zhang jiez at gcc dot gnu.org 2010-11-30 10:00:05 UTC --- Hah, I now know the root cause. It's *__GI_memchr that is added into the visible point set since it's a user provided name. But GCC looks for __GI_memchr later,

[Bug lto/45949] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949 --- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 10:00:13 UTC --- Author: rguenth Date: Tue Nov 30 10:00:06 2010 New Revision: 167291 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=167291 Log: 2010-11-30 Richard

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 Uros Bizjak ubizjak at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug driver/44986] -fuse-linker-plugin -save-temps gives resolution file base name of last argument

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44986 --- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 10:00:58 UTC --- Author: rguenth Date: Tue Nov 30 10:00:51 2010 New Revision: 167292 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=167292 Log: 2010-11-30 Richard

[Bug lto/43659] -flto doesn't remember -fPIC

2010-11-30 Thread devurandom at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43659 devurandom at gmx dot net changed: What|Removed |Added CC||devurandom at gmx dot net ---

[Bug libstdc++/46718] [c++0x] nullptr_t must be scalar

2010-11-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46718 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug middle-end/46488] [4.5 regression] server/core_filters.c from apache httpd 2.2.17 miscompiled at -O3

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488 --- Comment #30 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 10:15:02 UTC --- From a quick look I can see that with -fstrict-aliasing we will never consider ptr-link.next to alias ptr-list.next (so if they are made to alias via

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2010-11-30 10:36:42 UTC --- Reduced to get rid of library dependencies: template typename Return, typename... ArgTypes struct function { templatetypename Functor

[Bug libstdc++/46718] [c++0x] nullptr_t must be scalar

2010-11-30 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46718 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC||jason at

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 --- Comment #8 from Uros Bizjak ubizjak at gmail dot com 2010-11-30 10:57:31 UTC --- The compilation chokes with: buf$_M_ptr_138 = PHI D.353926_28(30), buf$_M_ptr_132(40), (54) Is this correct gimple?

[Bug target/46721] New: Unnecessary stack instructions are generated for SPU when returning a struct

2010-11-30 Thread jadamcze at utas dot edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46721 Summary: Unnecessary stack instructions are generated for SPU when returning a struct Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority:

[Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away

2010-11-30 Thread jiez at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46674 --- Comment #5 from Jie Zhang jiez at gcc dot gnu.org 2010-11-30 11:17:47 UTC --- Created attachment 22577 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22577 The patch I'm testing this patch.

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread steven at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 Steven Bosscher steven at gcc dot gnu.org changed: What|Removed |Added CC||steven at gcc

[Bug lto/45949] ICE: SIGSEGV in gimple_default_def (tree-dfa.c:538) with -flto/-fwhopr on invalid code

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45949 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug driver/44986] -fuse-linker-plugin -save-temps gives resolution file base name of last argument

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44986 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug lto/45475] target use in libcpp breaks LTO bootstrap

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475 --- Comment #9 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 12:17:31 UTC --- Confirmed. Also doesn't work with -flto-partition=none: ./xgcc -B. -o t t.c -flto -m32 -march=i386 -flto-partition=none In file included from t.c:16:0,

[Bug target/46716] [4.3/4.4/4.5/4.6 Regression] bad code generated with -mno-sse2 -m64

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46716 --- Comment #2 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 12:22:26 UTC --- I think there is a dup somewhere. Note that IMHO disabling sse2 makes the code suspicious as it cannot fulfill the ABI (I think the kernel uses -mno-sse2

[Bug target/46655] invalid '.line 0' directive emitted with -g

2010-11-30 Thread michael.haubenwallner at salomon dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46655 --- Comment #10 from Michael Haubenwallner michael.haubenwallner at salomon dot at 2010-11-30 12:22:43 UTC --- (In reply to comment #9) I believe the line number field in XCOFF is defined in /usr/include/linenum.h. According to that file, in

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug target/46716] [4.3/4.4/4.5/4.6 Regression] bad code generated with -mno-sse2 -m64

2010-11-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46716 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|NEW

[Bug libstdc++/46718] [c++0x] nullptr_t must be scalar

2010-11-30 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46718 --- Comment #4 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org 2010-11-30 12:52:46 UTC --- Author: paolo Date: Tue Nov 30 12:52:38 2010 New Revision: 167294 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=167294 Log: 2010-11-30 Paolo

[Bug middle-end/46488] [4.5 regression] server/core_filters.c from apache httpd 2.2.17 miscompiled at -O3

2010-11-30 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488 --- Comment #31 from Eric Botcazou ebotcazou at gcc dot gnu.org 2010-11-30 12:57:29 UTC --- From a quick look I can see that with -fstrict-aliasing we will never consider ptr-link.next to alias ptr-list.next (so if they are made to alias via

[Bug fortran/46594] [4.6 Regression] libquadmath intrudes generic (file system) namespace

2010-11-30 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46594 --- Comment #5 from Tobias Burnus burnus at gcc dot gnu.org 2010-11-30 12:58:47 UTC --- Author: burnus Date: Tue Nov 30 12:58:42 2010 New Revision: 167295 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=167295 Log: 2010-11-30 Tobias Burnus

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 --- Comment #11 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 13:12:59 UTC --- Before transform: ;; succ: 50 (eh,exec) 40 [100.0%] count:63 (fallthru,exec) bb 39: D.479965_99 = MEM[(struct _List_node_base

[Bug target/46721] Unnecessary stack instructions are generated for SPU when returning a struct

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46721 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Severity|normal |enhancement

[Bug target/46716] [4.3/4.4/4.5/4.6 Regression] bad code generated with -mno-sse2 -m64

2010-11-30 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46716 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added CC|hjl at gcc dot gnu.org |hjl.tools at gmail

[Bug tree-optimization/46722] New: [4.6 Regression] Missed fma for x*x + y

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46722 Summary: [4.6 Regression] Missed fma for x*x + y Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3

[Bug tree-optimization/46722] [4.6 Regression] Missed fma for x*x + y

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46722 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.6.0

[Bug tree-optimization/46723] New: internal compiler error: in get_initial_def_for_induction, at tree-vect-loop.c:2431

2010-11-30 Thread kretz at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46723 Summary: internal compiler error: in get_initial_def_for_induction, at tree-vect-loop.c:2431 Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity:

[Bug tree-optimization/46723] internal compiler error: in get_initial_def_for_induction, at tree-vect-loop.c:2431

2010-11-30 Thread kretz at kde dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46723 --- Comment #1 from Matthias Kretz kretz at kde dot org 2010-11-30 13:50:55 UTC --- Created attachment 22578 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22578 preprocessed source which makes G++ 4.5.1 ICE

[Bug tree-optimization/46723] internal compiler error: in get_initial_def_for_induction, at tree-vect-loop.c:2431

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46723 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug debug/46724] New: Wrong debug info: Invalid variable location

2010-11-30 Thread krebbel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46724 Summary: Wrong debug info: Invalid variable location Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: debug AssignedTo:

[Bug debug/46724] Wrong debug info: Invalid variable location

2010-11-30 Thread krebbel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46724 Andreas Krebbel krebbel at gcc dot gnu.org changed: What|Removed |Added Target|

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 --- Comment #12 from Richard Guenther rguenth at gcc dot gnu.org 2010-11-30 14:33:03 UTC --- Author: rguenth Date: Tue Nov 30 14:33:00 2010 New Revision: 167298 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=167298 Log: 2010-11-30 Richard

[Bug middle-end/46717] Compiler segfault in profile-use mode

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46717 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug debug/46724] Wrong debug info: Invalid variable location

2010-11-30 Thread krebbel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46724 --- Comment #1 from Andreas Krebbel krebbel at gcc dot gnu.org 2010-11-30 14:37:39 UTC --- Compiling with GCC 4.5.2 (gcc version 4.5.2 20101108 (prerelease) [gcc-4_5-branch revision 166433] (GCC)) GDB returns value optimized out for 'a2'

[Bug tree-optimization/46722] [4.6 Regression] Missed fma for x*x + y

2010-11-30 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46722 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug fortran/46594] [4.6 Regression] libquadmath intrudes generic (file system) namespace

2010-11-30 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46594 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug tree-optimization/46722] [4.6 Regression] Missed fma for x*x + y

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46722 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[Bug middle-end/46488] [4.5 regression] server/core_filters.c from apache httpd 2.2.17 miscompiled at -O3

2010-11-30 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46488 --- Comment #32 from Eric Botcazou ebotcazou at gcc dot gnu.org 2010-11-30 15:10:58 UTC --- The problem appears to be deeply rooted in the Ring construct, more precisely in the HEAD trick. IIUC the idea is to attach a doubly-linked list to

[Bug c++/46725] New: [4.6 Regression] ICE when compiling libstdc++-v3/include/precompiled/stdc++.h

2010-11-30 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46725 Summary: [4.6 Regression] ICE when compiling libstdc++-v3/include/precompiled/stdc++.h Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: blocker Priority:

[Bug target/45263] registers used in __do_global_ctors can get clobbered

2010-11-30 Thread mschulze at ivs dot cs.ovgu.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45263 --- Comment #7 from Michael Schulze mschulze at ivs dot cs.ovgu.de 2010-11-30 15:16:20 UTC --- Created attachment 22579 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22579 alternative patch using register r15 instead of r20 avoids

[Bug tree-optimization/46726] New: x*x has different cost than pow(x,2) with -ffast-math

2010-11-30 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46726 Summary: x*x has different cost than pow(x,2) with -ffast-math Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3

  1   2   >