Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread James Courtier-Dutton
On 3 February 2012 21:48, Vincent Lefevre vincent+...@vinc17.org wrote: On 2012-02-03 17:44:21 +0100, Michael Matz wrote: Hi, On Fri, 3 Feb 2012, Vincent Lefevre wrote: For the glibc, I've finally reported a bug here:   http://sourceware.org/bugzilla/show_bug.cgi?id=13658

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Richard Guenther
On Thu, Feb 9, 2012 at 7:33 AM, Ian Lance Taylor i...@google.com wrote: Nenad Vukicevic ne...@intrepid.com writes: Has anybody tried to build 4.7 on Ubuntu 11.10 system. I am getting the following linking problem (no special configure switches): /usr/bin/ld: cannot find crt1.o: No such file

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 10:20 AM, James Courtier-Dutton wrote: From what I can see, on x86_64, the hardware fsin(x) is more accurate than the hardware fsincos(x). As you gradually increase the size of X from 0 to 10e22, fsincos(x) diverges from the correct accurate value quicker than fsin(x) does.

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Richard Guenther
On Thu, Feb 9, 2012 at 11:35 AM, Andrew Haley a...@redhat.com wrote: On 02/09/2012 10:20 AM, James Courtier-Dutton wrote: From what I can see, on x86_64, the hardware fsin(x) is more accurate than the hardware fsincos(x). As you gradually increase the size of X from 0 to 10e22, fsincos(x)

Graphite news

2012-02-09 Thread Tobias Grosser
Hi, it has been quiet around Graphite for a while and I think it is more than time to give an update on Graphite. == The Status of Graphite == Graphite has been around for a while in GCC. During this time a lot of people tested Graphite and Sebastian fixed many bugs. As of today the

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Tim Prince
On 2/9/2012 5:55 AM, Richard Guenther wrote: On Thu, Feb 9, 2012 at 11:35 AM, Andrew Haleya...@redhat.com wrote: On 02/09/2012 10:20 AM, James Courtier-Dutton wrote: From what I can see, on x86_64, the hardware fsin(x) is more accurate than the hardware fsincos(x). As you gradually increase

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 01:38 PM, Tim Prince wrote: x87 built-ins should be a fair compromise between speed, code size, and accuracy, for long double, on most CPUs. As Richard says, it's certainly possible to do better in the context of SSE, but gcc doesn't know anything about the quality of math

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread James Courtier-Dutton
2012/2/9 Andrew Haley a...@redhat.com: On 02/09/2012 01:38 PM, Tim Prince wrote: x87 built-ins should be a fair compromise between speed, code size, and accuracy, for long double, on most CPUs.  As Richard says, it's certainly possible to do better in the context of SSE, but gcc doesn't know

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 02:51 PM, James Courtier-Dutton wrote: 2012/2/9 Andrew Haley a...@redhat.com: On 02/09/2012 01:38 PM, Tim Prince wrote: x87 built-ins should be a fair compromise between speed, code size, and accuracy, for long double, on most CPUs. As Richard says, it's certainly possible to

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Geert Bosch
On Feb 9, 2012, at 08:46, Andrew Haley wrote: n 02/09/2012 01:38 PM, Tim Prince wrote: x87 built-ins should be a fair compromise between speed, code size, and accuracy, for long double, on most CPUs. As Richard says, it's certainly possible to do better in the context of SSE, but gcc

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Richard Guenther
On Thu, Feb 9, 2012 at 4:20 PM, Geert Bosch bo...@adacore.com wrote: On Feb 9, 2012, at 08:46, Andrew Haley wrote: n 02/09/2012 01:38 PM, Tim Prince wrote: x87 built-ins should be a fair compromise between speed, code size, and accuracy, for long double, on most CPUs.  As Richard says, it's

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 03:28 PM, Richard Guenther wrote: So - do you have an idea what routines we can start off with to get a full C99 set of routines for float, double and long double? The last time I was exploring the idea again I was looking at the BSD libm. I'd start with INRIA's crlibm. Andrew.

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread James Courtier-Dutton
On 9 February 2012 14:51, James Courtier-Dutton james.dut...@gmail.com wrote: 2012/2/9 Andrew Haley a...@redhat.com: On 02/09/2012 01:38 PM, Tim Prince wrote: x87 built-ins should be a fair compromise between speed, code size, and accuracy, for long double, on most CPUs.  As Richard says, it's

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Michael Matz
Hi, On Thu, 9 Feb 2012, Andrew Haley wrote: On 02/09/2012 03:28 PM, Richard Guenther wrote: So - do you have an idea what routines we can start off with to get a full C99 set of routines for float, double and long double? The last time I was exploring the idea again I was looking at the

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 03:56 PM, Michael Matz wrote: Hi, On Thu, 9 Feb 2012, Andrew Haley wrote: On 02/09/2012 03:28 PM, Richard Guenther wrote: So - do you have an idea what routines we can start off with to get a full C99 set of routines for float, double and long double? The last time I was

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 03:55 PM, James Courtier-Dutton wrote: Results for x86_64 gcc -g -O0 -c -o sincos1.o sincos1.c gcc -static -g -o sincos1 sincos1.o -lm ./sincos1 sin = -8.52200849767188795e-01(uses xmm register intructions) sinl = 0.46261304076460176 (uses fprem and fsin)

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Richard Guenther
On Thu, Feb 9, 2012 at 4:57 PM, Andrew Haley a...@redhat.com wrote: On 02/09/2012 03:56 PM, Michael Matz wrote: Hi, On Thu, 9 Feb 2012, Andrew Haley wrote: On 02/09/2012 03:28 PM, Richard Guenther wrote: So - do you have an idea what routines we can start off with to get a full C99 set of

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 03:59 PM, Richard Guenther wrote: On Thu, Feb 9, 2012 at 4:57 PM, Andrew Haley a...@redhat.com wrote: On 02/09/2012 03:56 PM, Michael Matz wrote: Hi, On Thu, 9 Feb 2012, Andrew Haley wrote: On 02/09/2012 03:28 PM, Richard Guenther wrote: So - do you have an idea what routines

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Michael Matz
Hi, On Thu, 9 Feb 2012, James Courtier-Dutton wrote: Results when compiled for 32bit x86. gcc -m32 -g -O0 -c -o sincos1.o sincos1.c gcc -m32 -static -g -o sincos1 sincos1.o -lm ./sincos1 sin = 4.62613040764601746e-01 sinl = 0.46261304076460176 sincos = 4.62613040764601746e-01 sincosl =

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Michael Matz
Hi, On Thu, 9 Feb 2012, Andrew Haley wrote: So - do you have an idea what routines we can start off with to get a full C99 set of routines for float, double and long double? The last time I was exploring the idea again I was looking at the BSD libm. I'd start with INRIA's crlibm.

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Joseph S. Myers
On Thu, 9 Feb 2012, Richard Guenther wrote: Given the fact that GCC already needs to know pretty much everything about these functions for optimizations and constant folding, and is in the best situation to choose specific implementations (-ffast-math or not, -frounding-math or not,

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Joseph S. Myers
On Thu, 9 Feb 2012, Andrew Haley wrote: Okay, but the crlibm algorithms could be extended to long doubles and, presumably, floats. Where's Vincent Lefevre when you need him? :-) The crlibm approach, involving exhaustive searches for worst cases for directed rounding, could as I understand

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Geert Bosch
On Feb 9, 2012, at 10:28, Richard Guenther wrote: Yes, definitely! OTOH last time I added the toplevel libgcc-math directory and populated it with sources from glibc RMS objected violently and I had to remove it again. So we at least need to find a different source of math routines to start

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 04:53 PM, Joseph S. Myers wrote: My view is that we should have a GNU libm project whose purpose is not to install a library directly but to provide functions for use in other projects (much like gnulib, but the functions could presume that they were being built with recent

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Joseph S. Myers
On Thu, 9 Feb 2012, Geert Bosch wrote: While I think it would be great if there were a suitable GNU libm project that we could directly use, this seems to only make sense if this could be based on the current glibc math library. As far as I understand, it is unlikely that we No, that's not

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Joseph S. Myers
On Thu, 9 Feb 2012, Andrew Haley wrote: On 02/09/2012 04:53 PM, Joseph S. Myers wrote: My view is that we should have a GNU libm project whose purpose is not to install a library directly but to provide functions for use in other projects (much like gnulib, but the functions could

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Andrew Haley
On 02/09/2012 06:00 PM, Joseph S. Myers wrote: On Thu, 9 Feb 2012, Andrew Haley wrote: On 02/09/2012 04:53 PM, Joseph S. Myers wrote: My view is that we should have a GNU libm project whose purpose is not to install a library directly but to provide functions for use in other projects

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Matthias Klose
On 09.02.2012 07:33, Ian Lance Taylor wrote: Nenad Vukicevicne...@intrepid.com writes: Has anybody tried to build 4.7 on Ubuntu 11.10 system. I am getting the following linking problem (no special configure switches): /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld:

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Arnaud Charlet
Has anybody tried to build 4.7 on Ubuntu 11.10 system. I am getting the following linking problem (no special configure switches): /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lgcc

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Geert Bosch
On Feb 9, 2012, at 12:55, Joseph S. Myers wrote: No, that's not the case. Rather, the point would be that both GCC's library and glibc's end up being based on the new GNU project (which might take some code from glibc and some from elsewhere - and quite possibly write some from scratch,

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Toon Moene
On 02/09/2012 07:16 PM, Arnaud Charlet wrote: Yes. Debian moved everything for some reason. It's a problem that must be addressed somehow before gcc 4.7 is released. It's extremely unfortunate that this will make it impossible to build older releases of gcc on newer Debian installations.

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Joseph S. Myers
On Thu, 9 Feb 2012, Andrew Haley wrote: No, the point of the separate project would be to be used by both glibc and GCC (and possibly other GNU projects such as GSL) - because cooperation among the various projects wanting such functions is the right way to do things. Well, yes, but

Re: weird optimization in sin+cos, x86 backend

2012-02-09 Thread Joseph S. Myers
On Thu, 9 Feb 2012, Geert Bosch wrote: I don't agree having such a libm is the ultimate goal. It could be a first step along the way, addressing correctness issues. This Indeed, I think having it as a first step makes sense - with subsequent development done in that context. would be great

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Russ Allbery
Ian Lance Taylor i...@google.com writes: Nenad Vukicevic ne...@intrepid.com writes: Has anybody tried to build 4.7 on Ubuntu 11.10 system. I am getting the following linking problem (no special configure switches): /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld:

Re: Graphite news

2012-02-09 Thread Vladimir Makarov
On 02/09/2012 07:42 AM, Tobias Grosser wrote: == Who will do all the work? == After reading all the open projects you may wander who will do all the work? Unfortunately Sebastian switched jobs at the end of 2011, such that we lost one full time contributor. Furthermore, I am myself also not

register used as both FP and GP register when -Os switch used

2012-02-09 Thread Paul S
I'm porting gcc 4.6.2 to a 16 bit CPU that has four GP registers. I've chosen to allocate R3 as the frame pointer when one is needed. In line with GCC Internals info on FIXED_REGISTERS (except on machines where that can be used as a general register when no frame pointer is needed) I have not

Re: Graphite news

2012-02-09 Thread Tobias Grosser
On 02/09/2012 11:05 PM, Vladimir Makarov wrote: On 02/09/2012 07:42 AM, Tobias Grosser wrote: == Who will do all the work? == After reading all the open projects you may wander who will do all the work? Unfortunately Sebastian switched jobs at the end of 2011, such that we lost one full time

gcc-4.5-20120209 is now available

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

Re: Graphite news

2012-02-09 Thread Tobias Grosser
On 02/09/2012 11:37 PM, Tobias Grosser wrote: On 02/09/2012 11:05 PM, Vladimir Makarov wrote: On 02/09/2012 07:42 AM, Tobias Grosser wrote: == Who will do all the work? == After reading all the open projects you may wander who will do all the work? Unfortunately Sebastian switched jobs at

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Ian Lance Taylor
Russ Allbery r...@stanford.edu writes: Ian Lance Taylor i...@google.com writes: Nenad Vukicevic ne...@intrepid.com writes: Has anybody tried to build 4.7 on Ubuntu 11.10 system. I am getting the following linking problem (no special configure switches): /usr/bin/ld: cannot find crt1.o: No

Re: Building gcc on Ubuntu 11.10

2012-02-09 Thread Russ Allbery
Ian Lance Taylor i...@google.com writes: Russ Allbery r...@stanford.edu writes: The reason, for the record, is because Debian wants to be able to support multiarch with more than two architectures. The /lib32 vs. /lib64 distinction doesn't allow one to use the same underlying machinery to

GCC GCOV

2012-02-09 Thread Satya Prakash Prasad
Hi All, I am a new joinee to this group and a C/C++ developer for around 2 yrs. What interest me most is gcc / gcov combination output. It list the code execution details. Is there a possibility that gcc build binaries can print file name:line number code of the code it is executing at run time.

Re: Graphite news

2012-02-09 Thread Vladimir Makarov
On 12-02-09 5:54 PM, Tobias Grosser wrote: On 02/09/2012 11:37 PM, Tobias Grosser wrote: On 02/09/2012 11:05 PM, Vladimir Makarov wrote: On 02/09/2012 07:42 AM, Tobias Grosser wrote: == Who will do all the work? == After reading all the open projects you may wander who will do all the work?

Announcing new docstring relicensing maintainers

2012-02-09 Thread Marc Lehmann
I am pleased to announce that GCC finally has three docstring relicensing maintainers: Joseph S. Myers Diego Novillo Gerald Pfeifer This makes it possible to relicense docstrings between the GPL and GFDL. For legal reasons this has to be approved for every change, and these three

Re: Graphite news

2012-02-09 Thread Tobias Grosser
On 02/10/2012 01:58 AM, Vladimir Makarov wrote: On 12-02-09 5:54 PM, Tobias Grosser wrote: On 02/09/2012 11:37 PM, Tobias Grosser wrote: On 02/09/2012 11:05 PM, Vladimir Makarov wrote: On 02/09/2012 07:42 AM, Tobias Grosser wrote: == Who will do all the work? == After reading all the open

Re: Announcing new docstring relicensing maintainers

2012-02-09 Thread Joseph S. Myers
I'd like to explain the rules that apply to this relicensing: * If any text is to be licensed under both the GPL and the GFDL, there must be copies under both licenses checked in. There may be a tool that helps propagate changes from one copy to the other. This is the scheme we already have

[Bug c/52181] New: [4.7 Regression] merge_decls doesn't handle DECL_USER_ALIGN properly

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52181 Bug #: 52181 Summary: [4.7 Regression] merge_decls doesn't handle DECL_USER_ALIGN properly Classification: Unclassified Product: gcc Version: 4.7.0 Status:

[Bug c/52181] [4.7 Regression] merge_decls doesn't handle DECL_USER_ALIGN properly

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52181 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last

[Bug libstdc++/51798] [4.7 regression] libstdc++ atomicity performance regression due to __sync_fetch_and_add

2012-02-09 Thread bkoz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51798 --- Comment #26 from Benjamin Kosnik bkoz at gcc dot gnu.org 2012-02-09 08:45:10 UTC --- Created attachment 26620 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26620 complete transition to __atomic, modulo config ... and for config, plan

[Bug c/52181] [4.7 Regression] merge_decls doesn't handle DECL_USER_ALIGN properly

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52181 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 09:07:20 UTC --- Created attachment 26621 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26621 gcc47-pr52181.patch Untested fix. The testcase shows that the C++ FE has a

[Bug libstdc++/51798] [4.7 regression] libstdc++ atomicity performance regression due to __sync_fetch_and_add

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51798 --- Comment #27 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 09:16:11 UTC --- Nice. Now that we have an atomic load we can also do: --- a/libstdc++-v3/include/bits/shared_ptr_base.h +++ b/libstdc++-v3/include/bits/shared_ptr_base.h

[Bug c/52182] New: unnamed structs/unions are supported by ISO C99

2012-02-09 Thread jan.kratochvil at redhat dot com
-std=c99 -pedantic stdin:1:34: warning: ISO C99 doesn’t support unnamed structs/unions [-pedantic] FAIL: gcc (GCC) 4.6.3 20120209 (prerelease) FAIL: gcc (GCC) 4.7.0 20120209 (experimental) plus FAIL: gcc (GCC) 4.4.7 20120209 (prerelease) FAIL: gcc (GCC) 4.5.4 20120209 (prerelease) print stdin:1:34

[Bug other/52168] fixinclude test failure for complex.h on netbsd

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52168 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug middle-end/51867] GCC generates inconsistent code for same sources calling builtin calls, like sqrtf

2012-02-09 Thread amker at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51867 --- Comment #4 from amker at gcc dot gnu.org 2012-02-09 09:37:43 UTC --- Author: amker Date: Thu Feb 9 09:37:37 2012 New Revision: 184037 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184037 Log: PR target/51867 * builtins.c

[Bug c++/52183] New: Redeclaration of __this in lambda inside template member function when calling static class function

2012-02-09 Thread stefan.bolus at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52183 Bug #: 52183 Summary: Redeclaration of __this in lambda inside template member function when calling static class function Classification: Unclassified Product: gcc Version:

[Bug target/51106] [4.5/4.6 Regression] ICE in move_insn, at haifa-sched.c:2314

2012-02-09 Thread abel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106 --- Comment #9 from Andrey Belevantsev abel at gcc dot gnu.org 2012-02-09 10:10:41 UTC --- Author: abel Date: Thu Feb 9 10:10:36 2012 New Revision: 184038 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184038 Log: 2012-02-09 Andrey

[Bug target/51106] [4.5/4.6 Regression] ICE in move_insn, at haifa-sched.c:2314

2012-02-09 Thread abel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106 --- Comment #10 from Andrey Belevantsev abel at gcc dot gnu.org 2012-02-09 10:17:59 UTC --- Author: abel Date: Thu Feb 9 10:17:55 2012 New Revision: 184040 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184040 Log: 2012-02-09 Andrey

[Bug target/51106] [4.5/4.6 Regression] ICE in move_insn, at haifa-sched.c:2314

2012-02-09 Thread abel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106 Andrey Belevantsev abel at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/52183] Redeclaration of __this in lambda inside template member function when calling static class function

2012-02-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52183 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug c++/48483] Construct from yourself w/o warning

2012-02-09 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48483 --- Comment #17 from Manuel López-Ibáñez manu at gcc dot gnu.org 2012-02-09 11:35:27 UTC --- Clang++ 3.0 warns with -Wuninitialized /tmp/webcompile/_15338_0.cc:7:5: warning: variable 'a' is uninitialized when used within its own initialization

[Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52165 --- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 11:41:29 UTC --- Author: jakub Date: Thu Feb 9 11:41:25 2012 New Revision: 184042 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184042 Log: PR debug/52165 *

[Bug fortran/32380] misaligned stores don't get vectorized

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32380 --- Comment #9 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 12:13:25 UTC --- Author: jakub Date: Thu Feb 9 12:13:18 2012 New Revision: 184043 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184043 Log: PR fortran/32380 *

[Bug other/52168] fixinclude test failure for complex.h on netbsd

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52168 --- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 12:19:38 UTC --- NetBSD PR http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45955 My analysis of the problem was incorrect and it looks as though a fix would be to

[Bug other/52168] fixinclude test failure for complex.h on netbsd

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52168 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 12:24:14 UTC --- (In reply to comment #4) netbsd does too (but I can't test that until later today) or rather, it doesn't ignore the newline, but it does produce the

[Bug rtl-optimization/52175] [4.7 regression] ICE in maybe_record_trace_start after invalid dbr_schedule transformation

2012-02-09 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52175 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.7.0

[Bug middle-end/52177] ICE: verify_gimple failed: non-trivial conversion at assignment with __atomic_is_lock_free()

2012-02-09 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52177 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52165 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug middle-end/48814] [4.4/4.5/4.6/4.7 Regression] Incorrect scalar increment result

2012-02-09 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48814 --- Comment #10 from Richard Guenther rguenth at gcc dot gnu.org 2012-02-09 13:03:25 UTC --- For extern void abort (void); struct S { int i; }; struct S arr[32]; volatile int count = 0; struct S __attribute__((noinline)) incr (void) {

[Bug middle-end/52140] Libdfp testcase encounters ICE when compiled with soft-dfp (no -mcpu).

2012-02-09 Thread bergner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52140 --- Comment #6 from Peter Bergner bergner at gcc dot gnu.org 2012-02-09 14:46:07 UTC --- Author: bergner Date: Thu Feb 9 14:46:02 2012 New Revision: 184045 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184045 Log: gcc/ PR

[Bug middle-end/52140] Libdfp testcase encounters ICE when compiled with soft-dfp (no -mcpu).

2012-02-09 Thread bergner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52140 --- Comment #7 from Peter Bergner bergner at gcc dot gnu.org 2012-02-09 14:56:03 UTC --- Author: bergner Date: Thu Feb 9 14:55:57 2012 New Revision: 184046 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184046 Log: Backport from

[Bug middle-end/52140] Libdfp testcase encounters ICE when compiled with soft-dfp (no -mcpu).

2012-02-09 Thread bergner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52140 --- Comment #8 from Peter Bergner bergner at gcc dot gnu.org 2012-02-09 14:59:51 UTC --- Author: bergner Date: Thu Feb 9 14:59:46 2012 New Revision: 184047 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184047 Log: Backport from

[Bug middle-end/52140] Libdfp testcase encounters ICE when compiled with soft-dfp (no -mcpu).

2012-02-09 Thread bergner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52140 Peter Bergner bergner at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug boehm-gc/52179] boehm-gc incompatible with aslr on darwin11

2012-02-09 Thread howarth at nitro dot med.uc.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52179 --- Comment #6 from Jack Howarth howarth at nitro dot med.uc.edu 2012-02-09 15:05:50 UTC --- All of these crashes appear in the section in the GC_mark_from subroutine of mark.c commented as... /* Try to prefetch the next pointer to be

[Bug middle-end/52140] Libdfp testcase encounters ICE when compiled with soft-dfp (no -mcpu).

2012-02-09 Thread bergner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52140 Peter Bergner bergner at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.7.0

[Bug middle-end/52140] Libdfp testcase encounters ICE when compiled with soft-dfp (no -mcpu).

2012-02-09 Thread bergner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52140 Peter Bergner bergner at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|CLOSED ---

[Bug middle-end/51752] trans-mem: publication safety violated

2012-02-09 Thread aldyh at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51752 --- Comment #3 from Aldy Hernandez aldyh at gcc dot gnu.org 2012-02-09 16:23:57 UTC --- Created attachment 26622 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26622 proposed (untested) patch This is a first stab at the problem. It is

[Bug c++/52184] New: Wrong object initialization in

2012-02-09 Thread kamil.holubicki at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52184 Bug #: 52184 Summary: Wrong object initialization in Classification: Unclassified Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: major Priority: P3

[Bug c++/52185] New: Const member function may change the object for which the function is called.

2012-02-09 Thread lsoltysiak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 Bug #: 52185 Summary: Const member function may change the object for which the function is called. Classification: Unclassified Product: gcc Version: 4.7.0 Status:

[Bug c++/52184] Wrong object initialization in

2012-02-09 Thread kamil.holubicki at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52184 --- Comment #1 from Kamil kamil.holubicki at gmail dot com 2012-02-09 16:44:01 UTC --- Created attachment 26623 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26623 Short example demonstrating problem

[Bug middle-end/51752] trans-mem: publication safety violated

2012-02-09 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51752 --- Comment #4 from Richard Guenther rguenth at gcc dot gnu.org 2012-02-09 16:43:40 UTC --- But isn't with __transaction_atomic { for (i = 0; i 10; i++) if (x[i]) x[i] += data; } and __transaction_atomic {

[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-09 16:44:20 UTC --- Comeau C++ does not error out either.

[Bug c++/52184] Wrong object initialization in

2012-02-09 Thread kamil.holubicki at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52184 --- Comment #2 from Kamil kamil.holubicki at gmail dot com 2012-02-09 16:46:55 UTC --- Base virtual class object is corrupted when explicitly called auto generated constructor from derived class inititalization list. Attached file demonstrates

[Bug middle-end/51929] [4.7 Regression] ICE: verify_cgraph_node failed with -O2 -fno-guess-branch-probability -fipa-cp-clone

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51929 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug c++/52184] Wrong object initialization in

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52184 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 16:55:12 UTC --- 4.7 prints 8, agreeing with other compilers

[Bug middle-end/51929] [4.7 Regression] ICE: verify_cgraph_node failed with -O2 -fno-guess-branch-probability -fipa-cp-clone

2012-02-09 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51929 --- Comment #4 from Zdenek Sojka zsojka at seznam dot cz 2012-02-09 16:55:28 UTC --- Yes, I marked this PR as a regression after adding the second testcase, along with modifying the summary. The way it behaves in 4.6 is described in the Tested

[Bug c++/48483] Construct from yourself w/o warning

2012-02-09 Thread lisp2d at lisp2d dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48483 --- Comment #18 from Lisp2D lisp2d at lisp2d dot net 2012-02-09 16:59:19 UTC --- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48483#c2 shows that function calling of object before constructor is bad idea and must be strongly forbidden.

[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug fortran/52176] Valgrind complains about some realloc on assignment to unallocated LHS

2012-02-09 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52176 --- Comment #1 from Tobias Burnus burnus at gcc dot gnu.org 2012-02-09 17:02:36 UTC --- gfortran generates the following code (original dump). I think, it's if ((real(kind=4)[0:] * restrict) __result-data == 0B) goto L.17;

[Bug c++/48483] Construct from yourself w/o warning

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48483 --- Comment #19 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 17:04:06 UTC --- Everyone knows it's a bad idea, and everyone agrees there should be a warning. Stop going on about it.

[Bug rtl-optimization/52186] New: array out of bounds error when accessing last byte of a struct via char ptr

2012-02-09 Thread alex at aivor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52186 Bug #: 52186 Summary: array out of bounds error when accessing last byte of a struct via char ptr Classification: Unclassified Product: gcc Version: 4.5.2 Status:

[Bug rtl-optimization/52186] array out of bounds error when accessing last byte of a struct via char ptr

2012-02-09 Thread alex at aivor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52186 --- Comment #1 from Alex Tomlinson alex at aivor dot com 2012-02-09 17:10:31 UTC --- Created attachment 26625 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26625 output of -save-temps

[Bug rtl-optimization/52186] array out of bounds error when accessing last byte of a struct via char ptr

2012-02-09 Thread alex at aivor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52186 --- Comment #2 from Alex Tomlinson alex at aivor dot com 2012-02-09 17:11:03 UTC --- Created attachment 26626 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26626 output of -save-temps

[Bug c++/52185] Const member function may change the object for which the function is called.

2012-02-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52185 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org 2012-02-09 17:11:40 UTC --- [class.this] says, In a const member function, the object for which the function is called is accessed through a const access path; That doesn't mean the

[Bug rtl-optimization/52186] array out of bounds error when accessing last byte of a struct via char ptr

2012-02-09 Thread alex at aivor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52186 --- Comment #3 from Alex Tomlinson alex at aivor dot com 2012-02-09 17:12:39 UTC --- Created attachment 26627 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26627 stdout/stderr of gcc with -v -save-temps

[Bug c/51360] [4.6 Regression] spurious unused-but-set-variable warning for var used in OpenMP pragma

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51360 --- Comment #5 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 17:15:39 UTC --- Author: jakub Date: Thu Feb 9 17:15:29 2012 New Revision: 184049 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184049 Log: Backported from mainline

[Bug driver/48306] [4.4/4.5/4.6 Regression] presence of gcc subdir with . in PATH causes breakdown

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48306 --- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 17:16:27 UTC --- Author: jakub Date: Thu Feb 9 17:16:19 2012 New Revision: 184050 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184050 Log: Backported from

[Bug c++/51669] [4.7 Regression] ICE verify-gimple with openmp

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51669 --- Comment #8 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 17:17:48 UTC --- Author: jakub Date: Thu Feb 9 17:17:36 2012 New Revision: 184051 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184051 Log: Backported from mainline

[Bug debug/51695] NOTE_INSN_VAR_LOCATION notes are sometimes too large

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51695 --- Comment #9 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 17:18:51 UTC --- Author: jakub Date: Thu Feb 9 17:18:42 2012 New Revision: 184052 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184052 Log: Backported from mainline

[Bug fortran/52162] Bogus -fcheck=bounds with realloc on assignment to unallocated LHS

2012-02-09 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52162 --- Comment #1 from Tobias Burnus burnus at gcc dot gnu.org 2012-02-09 17:17:03 UTC --- a = b The problem is that the LHS is REAL(4) while the RHS is REAL(8). Thus, the expression is not variable A = variable B but variable A =

[Bug middle-end/44777] [4.4/4.5/4.6 Regression] ICE: SIGSEGV with -fprofile-use in gcc.c-torture/execute/comp-goto-2.c

2012-02-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44777 --- Comment #12 from Jakub Jelinek jakub at gcc dot gnu.org 2012-02-09 17:20:31 UTC --- Author: jakub Date: Thu Feb 9 17:20:09 2012 New Revision: 184053 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=184053 Log: Backported from

  1   2   3   >