Re: not-a-number's

2013-01-16 Thread Andreas Schwab
Mischa Baars mjbaars1...@gmail.com writes: Furthermore, since 'fxam' will return a 'non-comparable' during the first compare, I suppose the function should then enter the first 'else' and return a '4'. Non-comparable means that NaN != NaN is always true. Andreas. -- Andreas Schwab, SUSE

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 09:14 AM, Andreas Schwab wrote: Mischa Baars mjbaars1...@gmail.com writes: Furthermore, since 'fxam' will return a 'non-comparable' during the first compare, I suppose the function should then enter the first 'else' and return a '4'. Non-comparable means that NaN != NaN is

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 08:57 AM, Eric Botcazou wrote: Well, I have an Intel manual here that states that any operation on a QNaN should return a QNaN, which means that also the compare should return a QNaN when one or both of the arguments is a QNaN. No, that isn't how comparisons work. The correct

Re: not-a-number's

2013-01-16 Thread Andreas Schwab
Mischa Baars mjbaars1...@gmail.com writes: This means that the first 'if' statement should have been terminated when There is no such thing as a terminated statement. The first condition evaluates to true. Furthermore, the manual states that any operation on a QNaN should return a QNaN.

Re: not-a-number's

2013-01-16 Thread Jonathan Wakely
On 16 January 2013 08:59, Mischa Baars wrote: On 01/16/2013 08:57 AM, Eric Botcazou wrote: Well, I have an Intel manual here that states that any operation on a QNaN should return a QNaN, which means that also the compare should return a QNaN when one or both of the arguments is a QNaN. No,

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 10:06 AM, Andreas Schwab wrote: Mischa Baars mjbaars1...@gmail.com writes: This means that the first 'if' statement should have been terminated when There is no such thing as a terminated statement. The first condition evaluates to true. Whatever you want, although personally I

Identical basic blocks live long in RTL flow.

2013-01-16 Thread Bin.Cheng
Hi, For below simple function from newlib: static int is_option (char *argv_element, int only) { return ((argv_element == 0) || (argv_element[0] == '-') || (only argv_element[0] == '+')); } The expanded rtl is like: 9: NOTE_INSN_BASIC_BLOCK 2 2: r113:SI=r0:SI 3:

Re: not-a-number's

2013-01-16 Thread Andrew Haley
On 01/16/2013 09:27 AM, Mischa Baars wrote: On 01/16/2013 10:06 AM, Andreas Schwab wrote: Mischa Baars mjbaars1...@gmail.com writes: This means that the first 'if' statement should have been terminated when There is no such thing as a terminated statement. The first condition evaluates to

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 12:07 PM, Andrew Haley wrote: On 01/16/2013 09:27 AM, Mischa Baars wrote: On 01/16/2013 10:06 AM, Andreas Schwab wrote: Mischa Baars mjbaars1...@gmail.com writes: This means that the first 'if' statement should have been terminated when There is no such thing as a terminated

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 12:07 PM, Andrew Haley wrote: On 01/16/2013 09:27 AM, Mischa Baars wrote: On 01/16/2013 10:06 AM, Andreas Schwab wrote: Mischa Baars mjbaars1...@gmail.com writes: This means that the first 'if' statement should have been terminated when There is no such thing as a terminated

Re: not-a-number's

2013-01-16 Thread Robert Dewar
On 1/16/2013 6:54 AM, Mischa Baars wrote: ] And indeed apparently the answer then is '2'. However, I don't think this is correct. If that means that there is an error in the C specification, then there probably is an error in the specification. The C specification seems perfectly reasonable to

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 01:04 PM, Robert Dewar wrote: On 1/16/2013 6:54 AM, Mischa Baars wrote: ] And indeed apparently the answer then is '2'. However, I don't think this is correct. If that means that there is an error in the C specification, then there probably is an error in the specification. The

Re: not-a-number's

2013-01-16 Thread Robert Dewar
On 1/16/2013 7:10 AM, Mischa Baars wrote: And as I have said before: if you are satisfied with the answer '2', then so be it and you keep the compiler the way it is, personally I'm am not able to accept changes to the sources anyway. I don't think it is the right answer though. The fact that

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 01:28 PM, Robert Dewar wrote: On 1/16/2013 7:10 AM, Mischa Baars wrote: And as I have said before: if you are satisfied with the answer '2', then so be it and you keep the compiler the way it is, personally I'm am not able to accept changes to the sources anyway. I don't think it

Re: not-a-number's

2013-01-16 Thread Andrew Haley
On 01/16/2013 11:54 AM, Mischa Baars wrote: Here's what Standard C, F.8.3 Relational operators, says: x != x → false The statement x != x is true if x is a NaN. x == x → true The statement x == x is false if x is a NaN. And indeed apparently the answer

Re: not-a-number's

2013-01-16 Thread Richard Biener
On Wed, Jan 16, 2013 at 1:52 PM, Mischa Baars mjbaars1...@gmail.com wrote: On 01/16/2013 01:28 PM, Robert Dewar wrote: On 1/16/2013 7:10 AM, Mischa Baars wrote: And as I have said before: if you are satisfied with the answer '2', then so be it and you keep the compiler the way it is,

Re: not-a-number's

2013-01-16 Thread Tim Prince
On 1/16/2013 5:00 AM, Andrew Haley wrote: On 01/16/2013 11:54 AM, Mischa Baars wrote: Here's what Standard C, F.8.3 Relational operators, says: x != x → false The statement x != x is true if x is a NaN. x == x → true The statement x == x is false if x is a

Re: not-a-number's

2013-01-16 Thread Andreas Schwab
Richard Biener richard.guent...@gmail.com writes: You can enable FP exceptions via fpsetexceptflag and friends (it's disabled in the FPU by default) and if you then make sure to compile with -fsignalling-nans (that's not the default) you will get the desired behavior (program termination via

Re: not-a-number's

2013-01-16 Thread Vincent Lefevre
On 2013-01-16 12:47:46 +0100, Mischa Baars wrote: On 01/16/2013 12:07 PM, Andrew Haley wrote: Comparisons with NaN don't terminate a statement, and they don't return a NaN. They return a boolean. They shouldn't return anything, the comparison should be terminated. This depends on the

Re: not-a-number's

2013-01-16 Thread Ian Lance Taylor
On Wed, Jan 16, 2013 at 4:52 AM, Mischa Baars mjbaars1...@gmail.com wrote: Let me explain again for you. Every 'if' statement in C is translated into a 'fucom' or similar instruction, which sets a number of conditions flags in the co-processor. Some instructions need you to load these into the

Re: not-a-number's

2013-01-16 Thread Vincent Lefevre
On 2013-01-16 14:53:42 +0100, Richard Biener wrote: You can enable FP exceptions via fpsetexceptflag and friends (it's disabled in the FPU by default) and if you then make sure to compile with -fsignalling-nans (that's not the default) you will get the desired behavior (program termination via

Re: Identical basic blocks live long in RTL flow.

2013-01-16 Thread Jeff Law
On 01/16/2013 02:28 AM, Bin.Cheng wrote: Hi, For below simple function from newlib: static int is_option (char *argv_element, int only) { return ((argv_element == 0) || (argv_element[0] == '-') || (only argv_element[0] == '+')); } The expanded rtl is like: 9:

Re: Identical basic blocks live long in RTL flow.

2013-01-16 Thread Jan Hubicka
Basic blocks 8/9/10 are identical and live until pass jump2, which is after register allocation. I think these duplicated BBs do not contain additional information and should be better to be removed ASAP, because they might interfere with other passes like ifcvt. So should this issue be

Re: not-a-number's

2013-01-16 Thread David Paterson
-Original Message- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Mischa Baars Sent: 16 January 2013 12:53 To: Robert Dewar; gcc@gcc.gnu.org Subject: Re: not-a-number's On 01/16/2013 01:28 PM, Robert Dewar wrote: On 1/16/2013 7:10 AM, Mischa Baars wrote:

isl-0.10 and cloog-0.17.0 removed from ftp server

2013-01-16 Thread Mike Stump
Someone removed isl-0.10.tar.bz2 and cloog-0.17.0.tar.gz from ftp://gcc.gnu.org/pub/gcc/infrastructure. I'd hoping this was in error and the files can be restored. If there is some compelling reason, I am interested.

Re: isl-0.10 and cloog-0.17.0 removed from ftp server

2013-01-16 Thread Richard Biener
Mike Stump mikest...@comcast.net wrote: Someone removed isl-0.10.tar.bz2 and cloog-0.17.0.tar.gz from ftp://gcc.gnu.org/pub/gcc/infrastructure. I'd hoping this was in error and the files can be restored. If there is some compelling reason, I am interested. I removed them in favor of the now

Caller save mode on MIPS

2013-01-16 Thread Fu, Chao-Ying
Hi All, From testing, I found out that the whole width of a MIPS integer/floating-point register is saved and restored around a call. This may hurt the performance. Ex: fu@debian6:/disk/fu/dev/test$ cat add2.c void test2(float); float test(float a, float b) { test2(a*b); return a; }

missing optimization a (b 63) to a b

2013-01-16 Thread Wei Mi
Hi, For x86, shift insn will automatically mask the count to 5 bits in 32 bit mode and to 6 bits in 64 bit mode, so for the testcase below, the buf_ (-end 63) could be optimized to buf_ -end. But for trunk compiler, some place in the testcase is not optimized. typedef unsigned long long

Re: missing optimization a (b 63) to a b

2013-01-16 Thread Xinliang David Li
[cc list trimmed] On Wed, Jan 16, 2013 at 5:44 PM, Wei Mi w...@google.com wrote: Hi, For x86, shift insn will automatically mask the count to 5 bits in 32 bit mode and to 6 bits in 64 bit mode, so for the testcase below, the buf_ (-end 63) could be optimized to buf_ -end. But for trunk

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 02:53 PM, Richard Biener wrote: On Wed, Jan 16, 2013 at 1:52 PM, Mischa Baars mjbaars1...@gmail.com wrote: On 01/16/2013 01:28 PM, Robert Dewar wrote: On 1/16/2013 7:10 AM, Mischa Baars wrote: And as I have said before: if you are satisfied with the answer '2', then so be it

Re: not-a-number's

2013-01-16 Thread Mischa Baars
On 01/16/2013 07:23 PM, David Paterson wrote: -Original Message- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Mischa Baars Sent: 16 January 2013 12:53 To: Robert Dewar; gcc@gcc.gnu.org Subject: Re: not-a-number's On 01/16/2013 01:28 PM, Robert Dewar wrote: On

[Bug bootstrap/50229] [4.7/4.8 Regression] Can't cross compile for i686-apple-darwin10 from x86_64-redhat_linux

2013-01-16 Thread mingw.android at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50229 --- Comment #16 from Ray Donnelly mingw.android at gmail dot com 2013-01-16 07:59:48 UTC --- Of course, when I wrote '--enable-plugins' I really mean't *not* passing --disable-plugin (without the 's').

[Bug target/55940] [4.7 Regression] Incorrect code for accessing parameters with 32-bit Intel hosts

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/55998] [4.8 Regression] [C++11] 'integral expression .. is not constant' when instantiating template alias in a template using a parameter of an encapsulating template

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55998 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at

[Bug middle-end/56000] [4.8 Regression] FAIL: libffi.call/cls_uchar_va.c -O0 -W -Wall output pattern test

2013-01-16 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56000 --- Comment #2 from Andreas Schwab sch...@linux-m68k.org 2013-01-16 08:08:33 UTC --- Does this help? http://sourceware.org/ml/libffi-discuss/2012/msg00279.html

[Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause prototype does not match errors.

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742 --- Comment #23 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 08:11:42 UTC --- Merging of target attribute is what gcc/g++ did though, the function would get then both target attributes (seems later decl's target wins), and the

[Bug target/55301] [SH] broken sp_switch function attribute

2013-01-16 Thread chrbr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55301 chrbr at gcc dot gnu.org changed: What|Removed |Added CC||chrbr at gcc dot

[Bug fortran/55984] [4.8 Regression] ICE: gfc_trans_code(): Bad statement code

2013-01-16 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55984 --- Comment #5 from janus at gcc dot gnu.org 2013-01-16 08:31:21 UTC --- The patch in comment 4 fails on: FAIL: gfortran.dg/select_type_24.f90 -O (test for errors, line 48)

[Bug target/55301] [SH] broken sp_switch function attribute

2013-01-16 Thread chrbr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55301 --- Comment #2 from chrbr at gcc dot gnu.org 2013-01-16 08:30:05 UTC --- Author: chrbr Date: Wed Jan 16 08:29:54 2013 New Revision: 195230 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195230 Log: PR target/55301 *

[Bug target/55301] [SH] broken sp_switch function attribute

2013-01-16 Thread chrbr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55301 chrbr at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/55940] [4.7 Regression] Incorrect code for accessing parameters with 32-bit Intel hosts

2013-01-16 Thread fm3 at os dot inf.tu-dresden.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940 --- Comment #15 from Frank Mehnert fm3 at os dot inf.tu-dresden.de 2013-01-16 09:01:02 UTC --- Great, thank you Jakub! As it will take some time until the Linux distributions will update their gcc binaries to include this fix, do you

[Bug c++/52688] static local variable can accessed from local class of function template

2013-01-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52688 Daniel Krügler daniel.kruegler at googlemail dot com changed: What|Removed |Added CC|

[Bug target/52122] [4.6/4.7/4.8 Regression] incorrect ln -s replacement for mingw like targets in configure files

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52122 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at

[Bug target/55940] [4.7 Regression] Incorrect code for accessing parameters with 32-bit Intel hosts

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940 --- Comment #16 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 09:16:15 UTC --- As a workaround, you can use something like #if __GNUC__ == 4 __GNUC_MINOR__ == 7 __attribute__((__optimize__ (no-shrink-wrap))) #endif on the

[Bug libstdc++/55043] [4.7/4.8 Regression] issue with nesting unordered_map containing unique_ptr into vector

2013-01-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043 --- Comment #22 from Jonathan Wakely redi at gcc dot gnu.org 2013-01-16 09:20:43 UTC --- Author: redi Date: Wed Jan 16 09:20:34 2013 New Revision: 195231 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195231 Log: PR

[Bug middle-end/55882] [4.7 Regression] unaligned load/store : incorrect struct offset

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55882 --- Comment #16 from Richard Biener rguenth at gcc dot gnu.org 2013-01-16 09:26:11 UTC --- Author: rguenth Date: Wed Jan 16 09:26:05 2013 New Revision: 195232 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195232 Log: 2013-01-16

[Bug libstdc++/55043] [4.7 Regression] issue with nesting unordered_map containing unique_ptr into vector

2013-01-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Summary|[4.7/4.8 Regression] issue |[4.7

[Bug libstdc++/55043] [4.7 Regression] issue with nesting unordered_map containing unique_ptr into vector

2013-01-16 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043 Marc Glisse glisse at gcc dot gnu.org changed: What|Removed |Added CC||glisse at

[Bug libstdc++/55043] [4.7 Regression] issue with nesting unordered_map containing unique_ptr into vector

2013-01-16 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043 --- Comment #25 from Daniel Krügler daniel.kruegler at googlemail dot com 2013-01-16 09:43:07 UTC --- (In reply to comment #24) That really feels like a hack. It is also broken, I think. The P/R has the effect that is_copy_constructible is now

[Bug target/52122] [4.6/4.7/4.8 Regression] incorrect ln -s replacement for mingw like targets in configure files

2013-01-16 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52122 --- Comment #12 from Kai Tietz ktietz at gcc dot gnu.org 2013-01-16 09:51:45 UTC --- Created attachment 29176 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29176 Patch for using recursive copy for directories. AFAIU we are talking

[Bug tree-optimization/55999] gcc 4.7.2 -O2 -floop-parallelize-all generates incorrect code

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55999 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug tree-optimization/55999] gcc 4.7.2 -O2 -floop-parallelize-all generates incorrect code

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55999 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW

[Bug sanitizer/55975] FAIL: c-c++-common/asan/global-overflow-1.c -O0 output pattern test

2013-01-16 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975 Kostya Serebryany kcc at gcc dot gnu.org changed: What|Removed |Added CC||bergner

[Bug fortran/52865] GCC can't vectorize fortran loop but able to vectorize similar c-loop

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52865 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug middle-end/56000] [4.8 Regression] FAIL: libffi.call/cls_uchar_va.c -O0 -W -Wall output pattern test

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56000 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug libstdc++/55997] build of libstd3++ segfaults armv5tel.

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55997 --- Comment #1 from Richard Biener rguenth at gcc dot gnu.org 2013-01-16 10:07:07 UTC --- While generating a PCH ... ugh.

[Bug tree-optimization/55995] vect increase_alignment notes missing from dump file

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55995 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED

[Bug sanitizer/55975] FAIL: c-c++-common/asan/global-overflow-1.c -O0 output pattern test

2013-01-16 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975 --- Comment #4 from Kostya Serebryany kcc at gcc dot gnu.org 2013-01-16 10:14:03 UTC --- Btw, the mapping I see on my PPC linux box ends with 0x1000 (with ASLR off) ffd-1000 rw-p 00:00 0

[Bug middle-end/55882] [4.7 Regression] unaligned load/store : incorrect struct offset

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55882 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW

[Bug fortran/52865] GCC can't vectorize fortran loop but able to vectorize similar c-loop

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52865 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at

[Bug libstdc++/55043] [4.7 Regression] issue with nesting unordered_map containing unique_ptr into vector

2013-01-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043 --- Comment #26 from Jonathan Wakely redi at gcc dot gnu.org 2013-01-16 10:25:57 UTC --- (In reply to comment #24) That really feels like a hack. It is a hack, to work around a throwing move ctor that I don't have time to fix.

[Bug bootstrap/56001] New: [4.7.3 regression] relocation truncated to fit: R_PPC_REL24 breaks bootstrap on powerpc64-linux

2013-01-16 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56001 Bug #: 56001 Summary: [4.7.3 regression] relocation truncated to fit: R_PPC_REL24 breaks bootstrap on powerpc64-linux Classification: Unclassified Product: gcc Version:

[Bug sanitizer/55975] FAIL: c-c++-common/asan/global-overflow-1.c -O0 output pattern test

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975 --- Comment #5 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 10:38:01 UTC --- Sounds like a recent change: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=048ee0993ec8360abb0b51bdf8f8721e9ed62ec4

[Bug fortran/52865] GCC can't vectorize fortran loop but able to vectorize similar c-loop

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52865 --- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 10:47:18 UTC --- BTW, does Fortran have well defined number of iterations if say a do loop goes from (unknown to compiler): integer :: i, m, n m = huge(0) - 7 n

[Bug libstdc++/55043] [4.7 Regression] issue with nesting unordered_map containing unique_ptr into vector

2013-01-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043 --- Comment #27 from Jonathan Wakely redi at gcc dot gnu.org 2013-01-16 10:52:57 UTC --- Actually, now that the unordered containers do not inherit from Hashtable it should be much easier to implement something like comment 17. When Daniel first

[Bug rtl-optimization/50176] [4.7/4.8 Regression] 4.7 generates spill-fill dealing with char-int conversion

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50176 --- Comment #21 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 11:22:23 UTC --- Created attachment 29177 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29177 gcc48-pr50176.patch Are you sure about it? For me on the

[Bug rtl-optimization/55153] [4.8 Regression] ICE: in begin_move_insn, at sched-ebb.c:205 with -fsched2-use-superblocks and __builtin_prefetch

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55153 --- Comment #5 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 11:31:51 UTC --- Author: vmakarov Date: Tue Jan 15 16:47:36 2013 New Revision: 195211 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195211 Log: 2013-01-15

[Bug fortran/52865] GCC can't vectorize fortran loop but able to vectorize similar c-loop

2013-01-16 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52865 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added CC||burnus

[Bug sanitizer/55975] asan does not work with 46 bit address space on PowerPC64

2013-01-16 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975 Kostya Serebryany kcc at gcc dot gnu.org changed: What|Removed |Added Summary|FAIL: |asan

[Bug sanitizer/55975] asan does not work with 46 bit address space on PowerPC64

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975 --- Comment #7 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 11:50:47 UTC --- I think for 44-46 bits we can still make it constant. But generally, the constructors of libasan are usually run from the stack of the initial thread,

[Bug sanitizer/55975] asan does not work with 46 bit address space on PowerPC64

2013-01-16 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55975 --- Comment #8 from Kostya Serebryany kcc at gcc dot gnu.org 2013-01-16 11:54:36 UTC --- Sounds good for both. Andreas, could you please try replacing kHighMemEnd = 0x0fffUL with kHighMemEnd = 0x3fffUL and

[Bug fortran/52865] GCC can't vectorize fortran loop but able to vectorize similar c-loop

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52865 --- Comment #12 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 11:59:29 UTC --- Created attachment 29178 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29178 gcc48-pr52865.patch This untested patch makes the loop

[Bug libstdc++/56002] New: [mutex] allow generic classes to be used without requiring plattform support for threads

2013-01-16 Thread npl at chello dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56002 Bug #: 56002 Summary: [mutex] allow generic classes to be used without requiring plattform support for threads Classification: Unclassified Product: gcc Version: 4.7.2

[Bug libstdc++/56002] [mutex] allow generic classes to be used without requiring plattform support for threads

2013-01-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56002 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug tree-optimization/42108] [4.6/4.7/4.8 Regression] 50% performance regression

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42108 --- Comment #54 from Richard Biener rguenth at gcc dot gnu.org 2013-01-16 12:36:52 UTC --- Re-confirmed on trunk. The initial GFortran IL is still ... awkward. Apart from the issue of using a canonicalized IV at all we have

[Bug tree-optimization/3713] Pointers to functions or member functions are not folded or inlined

2013-01-16 Thread mvanderkolff at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3713 --- Comment #29 from Michael van der Kolff mvanderkolff at gmail dot com 2013-01-16 12:38:41 UTC --- Created attachment 29180 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29180 testcase for member function pointer that isn't inlined

[Bug tree-optimization/3713] Pointers to functions or member functions are not folded or inlined

2013-01-16 Thread mvanderkolff at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3713 Michael van der Kolff mvanderkolff at gmail dot com changed: What|Removed |Added CC|

[Bug rtl-optimization/55273] [4.8 Regression] ICE in iv_number_of_iterations, at loop-iv.c:2819

2013-01-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55273 --- Comment #8 from Jan Hubicka hubicka at gcc dot gnu.org 2013-01-16 13:17:30 UTC --- OK, the problem is that the induction variable here is not normal induction variable but handed by xor. PPC target seems to be only that translates

[Bug lto/54095] Unnecessary static variable renaming

2013-01-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54095 --- Comment #15 from Jan Hubicka hubicka at gcc dot gnu.org 2013-01-16 13:18:51 UTC --- Well, we slipped the 4.8 window :( But I will make the patch soon so it goes into early 4.9 at least.

[Bug fortran/55983] [4.7/4.8 Regression] ICE in find_typebound_proc_uop, at fortran/class.c:2711

2013-01-16 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55983 --- Comment #7 from janus at gcc dot gnu.org 2013-01-16 13:30:42 UTC --- Further reduced test case: type :: mpdata_t class(bcd_t), pointer :: bcx, bcy end type type(mpdata_t) :: this call this%bcx%fill_halos() end

[Bug tree-optimization/56003] New: SCEV should thread flags ^= 0x80000000 as an addition to discover an IV var.

2013-01-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56003 Bug #: 56003 Summary: SCEV should thread flags ^= 0x8000 as an addition to discover an IV var. Classification: Unclassified Product: gcc Version: 4.8.0

[Bug tree-optimization/54767] [4.7/4.8 Regression] Incorrect code generated with -O2 -fcheck=bounds

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54767 --- Comment #11 from Richard Biener rguenth at gcc dot gnu.org 2013-01-16 13:57:53 UTC --- Author: rguenth Date: Wed Jan 16 13:57:48 2013 New Revision: 195238 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195238 Log: 2013-01-16

[Bug tree-optimization/53465] [4.7/4.8 Regression] wrong code with -O1 -ftree-vrp

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53465 --- Comment #10 from Richard Biener rguenth at gcc dot gnu.org 2013-01-16 13:57:54 UTC --- Author: rguenth Date: Wed Jan 16 13:57:48 2013 New Revision: 195238 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195238 Log: 2013-01-16

[Bug tree-optimization/55964] [4.7/4.8 Regression] Segmentation fault with -O -ftree-loop-distribution -funswitch-loops

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55964 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org 2013-01-16 14:07:03 UTC --- Author: rguenth Date: Wed Jan 16 14:06:58 2013 New Revision: 195239 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195239 Log: 2013-01-16

[Bug tree-optimization/3713] Pointers to functions or member functions are not folded or inlined

2013-01-16 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3713 --- Comment #31 from Jan Hubicka hubicka at gcc dot gnu.org 2013-01-16 14:20:46 UTC --- Well, after early optimizations we get: int main() () { struct Foo x; void Foo::T392 (const struct Foo *) * iftmp.0; long int _3; long int

[Bug tree-optimization/55964] [4.7 Regression] Segmentation fault with -O -ftree-loop-distribution -funswitch-loops

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55964 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Summary|[4.7/4.8 Regression]|[4.7

[Bug tree-optimization/3713] Pointers to functions or member functions are not folded or inlined

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3713 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added AssignedTo|jamborm at gcc dot gnu.org |rguenth

[Bug c++/56004] New: Possible bug with decltype and access modifer order

2013-01-16 Thread david.irvine at maidsafe dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56004 Bug #: 56004 Summary: Possible bug with decltype and access modifer order Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity:

[Bug rtl-optimization/55547] [4.8 Regression] Alias analysis does not handle AND addresses correctly

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55547 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at

[Bug tree-optimization/54767] [4.7 Regression] Incorrect code generated with -O2 -fcheck=bounds

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54767 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Known to work||4.8.0

[Bug bootstrap/56001] [4.7 Regression] relocation truncated to fit: R_PPC_REL24 breaks bootstrap on powerpc64-linux

2013-01-16 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56001 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P1

[Bug target/56005] New: [4.8 Regression] FAIL: gcc.target/i386/pr45352.c (internal compiler error)

2013-01-16 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56005 Bug #: 56005 Summary: [4.8 Regression] FAIL: gcc.target/i386/pr45352.c (internal compiler error) Classification: Unclassified Product: gcc Version: 4.8.0

[Bug target/56005] [4.8 Regression] FAIL: gcc.target/i386/pr45352.c (internal compiler error)

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56005 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P1

[Bug rtl-optimization/55153] [4.8 Regression] ICE: in begin_move_insn, at sched-ebb.c:205 with -fsched2-use-superblocks and __builtin_prefetch

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55153 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug rtl-optimization/56005] [4.8 Regression] FAIL: gcc.target/i386/pr45352.c (internal compiler error)

2013-01-16 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56005 Andreas Schwab sch...@linux-m68k.org changed: What|Removed |Added Target|x86_64-*-* i686-*-* |x86_64-*-*

[Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause prototype does not match errors.

2013-01-16 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742 --- Comment #24 from Jason Merrill jason at gcc dot gnu.org 2013-01-16 15:53:28 UTC --- (In reply to comment #23) Merging of target attribute is what gcc/g++ did though, the function would get then both target attributes (seems later

[Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause prototype does not match errors.

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742 --- Comment #25 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 16:02:35 UTC --- The actual merging of target attribute isn't that important, what would be more important is that other attributes are merged together in that case and

[Bug c++/55742] [4.8 regression] __attribute__ in class function declaration cause prototype does not match errors.

2013-01-16 Thread richard.guenther at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55742 --- Comment #26 from richard.guenther at gmail dot com richard.guenther at gmail dot com 2013-01-16 16:05:01 UTC --- On Wed, Jan 16, 2013 at 5:02 PM, jakub at gcc dot gnu.org gcc-bugzi...@gcc.gnu.org wrote:

[Bug fortran/52865] GCC can't vectorize fortran loop but able to vectorize similar c-loop

2013-01-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52865 --- Comment #13 from Jakub Jelinek jakub at gcc dot gnu.org 2013-01-16 16:05:42 UTC --- Author: jakub Date: Wed Jan 16 16:05:27 2013 New Revision: 195241 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195241 Log: PR

[Bug c++/56004] Possible bug with decltype and access modifer order

2013-01-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56004 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2013-01-16 16:19:33 UTC --- As was explained on stackoverflow, this has nothing t odo with access modifiers, as you can easily demonstrate by making everything public. _t has

  1   2   3   >