Re: GFDL/GPL issues

2010-08-15 Thread Florian Weimer
* Robert Dewar: Duplication is how other GNU projects handle this. For instance, many Emacs Lisp functions are documented twice: once as a docstring in the source code (which is roughly equivalent to the comment-in-spec approach), and once in the Elisp reference (which is GFDLed). Well

Re: GFDL/GPL issues

2010-08-15 Thread Richard Kenner
I think there is a difference between a novel you can hold and read, and computer documentation. My question was not whether anyone reads books any more, it was whether people read computer manuals in this form any more. To me, it depends on the type of manual and whether it's for something

Re: GFDL/GPL issues

2010-08-15 Thread Robert Dewar
Florian Weimer wrote: I was still referring to computer documentation, but admittedly not reference manuals, rather works like introductory texts which have got some sort of narrative strucuture which guides the reader. For reference manuals, it takes a huge amount of effort to make the

Re: GFDL/GPL issues

2010-08-15 Thread Robert Dewar
Florian Weimer wrote: * Robert Dewar: In the case of interfaces to library routines, what we do is to have fully commented Ada package specs that act as both the documentation of the implementation interface and as the user documentation (for an example, look at g-spipat.ads). I can't see any

Re: GFDL/GPL issues

2010-08-15 Thread Florian Weimer
* Robert Dewar: Does *anyone* print documentation out as a book, this seems to me to be a completely obsolete concept. People still buy books which are available freely in electronic form. This means that some printing still goes on. It might also be necessary to consider what it means when a

Re: GFDL/GPL issues

2010-08-15 Thread Florian Weimer
* Robert Dewar: People still buy books which are available freely in electronic form. This means that some printing still goes on. I think there is a difference between a novel you can hold and read, and computer documentation. My question was not whether anyone reads books any more, it was

Re: GFDL/GPL issues

2010-08-15 Thread Richard Kenner
This approach is far less useful for languages which haven't got separate spec files But there aren't many of those! In C, a .h file can easily be viewed as a separate spec file and interface documentation can and should be placed there, though I understand that few coding conventions call for

Re: GFDL/GPL issues

2010-08-15 Thread Robert Dewar
Florian Weimer wrote: * Robert Dewar: Does *anyone* print documentation out as a book, this seems to me to be a completely obsolete concept. People still buy books which are available freely in electronic form. This means that some printing still goes on. I think there is a difference

Re: GFDL/GPL issues

2010-08-15 Thread Florian Weimer
* Robert Dewar: In the case of interfaces to library routines, what we do is to have fully commented Ada package specs that act as both the documentation of the implementation interface and as the user documentation (for an example, look at g-spipat.ads). I can't see any value in duplicating

Re: GFDL/GPL issues

2010-08-15 Thread Joel Sherrill
On 08/15/2010 04:09 AM, Florian Weimer wrote: * Robert Dewar: Duplication is how other GNU projects handle this. For instance, many Emacs Lisp functions are documented twice: once as a docstring in the source code (which is roughly equivalent to the comment-in-spec approach), and once in

Re: GFDL/GPL issues

2010-08-15 Thread Florian Weimer
* Joel Sherrill: This approach is far less useful for languages which haven't got separate spec files because it encourages programmers of client code to look at the implementation, potentially picking up implementation details. It encourages the documentation writer to accidentally refer

gcc-4.3-20100815 is now available

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

Re: gcc-4.3-20100815 is now available

2010-08-15 Thread Gerald Pfeifer
On Sun, 15 Aug 2010, gccad...@gcc.gnu.org wrote: gcc-4.3-20100815.tar.bz2 Complete GCC (includes all of below) SHA1=4fa7230c4535f91521bda26cc225508fe0b4e626 In case anyone wonders, given the weakness of md5 I added sha1 as an additional hash¹. md5 is just missing due

Re: x86 assembler syntax

2010-08-15 Thread Gerald Pfeifer
Hi Rick (and others), On Thu, 12 Aug 2010, Rick C. Hodgin wrote: This question would have been more appropriate on the gcc-help mailing list. -Ian Lance Taylor My apologies to everyone. I did not know such a list existed. all of our web pages have a footer which refers to gcc-help, but

Re: x86 assembler syntax

2010-08-15 Thread James Dennett
On Sun, Aug 15, 2010 at 2:44 PM, Gerald Pfeifer ger...@pfeifer.com wrote: Hi Rick (and others), On Thu, 12 Aug 2010, Rick C. Hodgin wrote: This question would have been more appropriate on the gcc-help mailing list. -Ian Lance Taylor My apologies to everyone.  I did not know such a list

Re: GFDL/GPL issues

2010-08-15 Thread Miles Bader
Florian Weimer f...@deneb.enyo.de writes: Duplication is how other GNU projects handle this. For instance, many Emacs Lisp functions are documented twice: once as a docstring in the source code (which is roughly equivalent to the comment-in-spec approach), and once in the Elisp reference

[Bug middle-end/45287] New: auto-host #defines intmax_t breaks dfp.c (4.5.1)#8207;

2010-08-15 Thread jay dot krell at cornell dot edu
Building gcc 4.5.1: gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common

[Bug fortran/45197] [F2008] Allow IMPURE elemental procedures

2010-08-15 Thread domob at gcc dot gnu dot org
--- Comment #2 from domob at gcc dot gnu dot org 2010-08-15 15:28 --- Subject: Bug 45197 Author: domob Date: Sun Aug 15 15:28:10 2010 New Revision: 163261 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163261 Log: 2010-08-15 Daniel Kraft d...@domob.eu PR fortran/45197

[Bug fortran/45211] C interoperable error when compiling BIND(C) function in a module.

2010-08-15 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-08-15 16:21 --- Subject: Bug 45211 Author: burnus Date: Sun Aug 15 16:20:56 2010 New Revision: 163264 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163264 Log: 2010-08-15 Tobias Burnus bur...@net-b.de PR

[Bug fortran/45211] C interoperable error when compiling BIND(C) function in a module.

2010-08-15 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-08-15 16:23 --- FIXED on the trunk (4.6). Thanks for the bug report! (I do not intent to backport the patch to the 4.4/4.5 branch; tell me if you think it should be applied there as well.) -- burnus at gcc dot gnu dot org

[Bug fortran/45197] [F2008] Allow IMPURE elemental procedures

2010-08-15 Thread domob at gcc dot gnu dot org
--- Comment #3 from domob at gcc dot gnu dot org 2010-08-15 16:26 --- Fixed. -- domob at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/44666] [F2008] Passing NULL pointer or unallocated allocatable to OPTIONAL dummy

2010-08-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-08-15 16:26 --- FIXED on the 4.6 trunk. I have missed to include the PR when writing, submitting, and committing the patch. It can be found at: Patch: http://gcc.gnu.org/ml/fortran/2010-08/msg00174.html Committal:

[Bug fortran/45128] Segmentation fault with -fwhole-file for subref_array_pointer

2010-08-15 Thread paul dot richard dot thomas at gmail dot com
--- Comment #4 from paul dot richard dot thomas at gmail dot com 2010-08-15 16:32 --- Subject: Re: Segmentation fault with -fwhole-file for subref_array_pointer Dear Jerry, --- Comment #3 from jvdelisle at gcc dot gnu dot org  2010-08-09 17:18 --- Paul, can you send me

[Bug fortran/45288] New: Double initialization: Warn if the value is different

2010-08-15 Thread burnus at gcc dot gnu dot org
The following program (pasted in the #fortran IRC channel) is accepted by gfortran -- unless -std=f2008 is used. Expected: By default a warning (or error) is printed - if two different values are used. Maybe one should reject the program altogether - or allow it only with -std=legacy. -- The

[Bug target/45196] ld: warning: can't add line info to anonymous symbol

2010-08-15 Thread howarth at nitro dot med dot uc dot edu
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2010-08-15 17:36 --- These still appear to be present on i386-apple-darwin10 but not x86_64-apple-darwin10. Odd. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45196

[Bug fortran/45170] [F2003] allocatable character lengths

2010-08-15 Thread kargl at gcc dot gnu dot org
--- Comment #4 from kargl at gcc dot gnu dot org 2010-08-15 18:46 --- A patch to do the parsing and some error checking has been posted at http://gcc.gnu.org/ml/fortran/2010-08/msg00181.html It is not a complete implementation of the feature and requires much additional work. --

[Bug target/45196] ld: warning: can't add line info to anonymous symbol

2010-08-15 Thread howarth at nitro dot med dot uc dot edu
--- Comment #4 from howarth at nitro dot med dot uc dot edu 2010-08-15 18:47 --- Created an attachment (id=21480) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21480action=view) compressed preprocessed source for 20_util/auto_ptr/6.cc on -i386-apple-darwin10 --

[Bug target/45196] ld: warning: can't add line info to anonymous symbol

2010-08-15 Thread howarth at nitro dot med dot uc dot edu
--- Comment #5 from howarth at nitro dot med dot uc dot edu 2010-08-15 18:48 --- Created an attachment (id=21481) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21481action=view) compressed assembly file for 20_util/auto_ptr/6.cc on -i386-apple-darwin10 --

[Bug target/45196] ld: warning: can't add line info to anonymous symbol

2010-08-15 Thread howarth at nitro dot med dot uc dot edu
--- Comment #6 from howarth at nitro dot med dot uc dot edu 2010-08-15 18:48 --- Created an attachment (id=21482) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21482action=view) compressed object file for 20_util/auto_ptr/6.cc on -i386-apple-darwin10 --

[Bug target/45196] ld: warning: can't add line info to anonymous symbol

2010-08-15 Thread howarth at nitro dot med dot uc dot edu
--- Comment #7 from howarth at nitro dot med dot uc dot edu 2010-08-15 18:52 --- Files created with... /sw_i386/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./gcc/g++ -shared-libgcc -B/sw_i386/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./gcc -nostdinc++

[Bug middle-end/37734] Missing optimization: gcc fails to reuse flags from already calculated expression for condition check with zero

2010-08-15 Thread steven at gcc dot gnu dot org
-- steven at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|target |middle-end

[Bug middle-end/44569] Debug statements passed to rtx

2010-08-15 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2010-08-15 19:05 --- Is this still a problem for you? I can try to help you here, but I need to know what patch I should apply and to what revision, to reproduce the problem. -- steven at gcc dot gnu dot org changed: What

[Bug c/45289] New: gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread reddwarf at opensuse dot org
As originally reported at http://lists.opensuse.org/opensuse-packaging/2010-08/msg00038.html POSIX 2008 says (http://www.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_12_03): 2.12.3 Pointer Types All function pointer types shall have the same representation as the type

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-08-15 19:31 --- *(void **)(comp_compress) = dlsym(handle, comp_compress); That is not alias safe. Try instead: comp_compress = (__typeof__(comp_compress)) dlsym(handle, comp_compress); Which is alias safe. In fact reading what

[Bug middle-end/44569] Debug statements passed to rtx

2010-08-15 Thread artyom dot shinkaroff at gmail dot com
--- Comment #2 from artyom dot shinkaroff at gmail dot com 2010-08-15 19:35 --- Created an attachment (id=21483) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21483action=view) Recent version of the patch for the revision 163240 Recent version of the patch for the revision 163240

[Bug middle-end/44569] Debug statements passed to rtx

2010-08-15 Thread artyom dot shinkaroff at gmail dot com
--- Comment #3 from artyom dot shinkaroff at gmail dot com 2010-08-15 19:38 --- Yes, I still would like to solve the problem. I just uploaded the patch for the revision 163240 (2010-08-14). The bug is still there. The problem happens when you compile the following code with -On -g.

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-15 19:38 --- I don't think adding -std=posix is the right solution, since dlsym needs to be usable if users choose other options such as -std=c++0x or -std=gnu99 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45289

[Bug fortran/45290] New: [F08] pointer initialization

2010-08-15 Thread janus at gcc dot gnu dot org
John Reid, The new features of Fortran 2008, chapter 5.5: A pointer may be initially associated with a target: type (entry), target :: bottom type (entry), pointer :: top = bottom * Currently gfortran responds with: type (entry), pointer :: top = bottom 1

[Bug fortran/38936] F2003: ASSOCIATE construct / improved SELECT TYPE (a=expr)

2010-08-15 Thread domob at gcc dot gnu dot org
--- Comment #6 from domob at gcc dot gnu dot org 2010-08-15 19:46 --- Subject: Bug 38936 Author: domob Date: Sun Aug 15 19:46:21 2010 New Revision: 163268 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163268 Log: 2010-08-15 Daniel Kraft d...@domob.eu PR fortran/38936

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-08-15 19:47 --- Yes, POSIX adds additional requirements about pointer representation and conversion, but AFAIK all targets GCC support and have POSIXish runtime satisfy that. The conversion between pointer types is not the problem

[Bug fortran/45271] [OOP] Polymorphic code breaks when changing order of USE statements

2010-08-15 Thread janus at gcc dot gnu dot org
--- Comment #9 from janus at gcc dot gnu dot org 2010-08-15 20:01 --- (In reply to comment #4) Possible solutions: 1) Make sure we use the right symbol from the right module. 2) Do the vtab initialization inside the module that defines the class, i.e. add a module procedure like

[Bug target/45291] New: avr miscompilations related to frame pointer registers

2010-08-15 Thread otaylor at redhat dot com
Opening caveats: This comes from a day of digging into why the Arduino environment wasn't working correctly on my Fedora 13 system with avr-gcc-4.5. I'm not a GCC hacker and not intending to become one, so forgive sloppy terminology and if the right fix is one of the larger things I mention below,

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread reddwarf at opensuse dot org
--- Comment #4 from reddwarf at opensuse dot org 2010-08-15 20:21 --- Yes, POSIX adds additional requirements about pointer representation and conversion, but AFAIK all targets GCC support and have POSIXish runtime satisfy that. The conversion between pointer types is not the

[Bug fortran/38936] F2003: ASSOCIATE construct / improved SELECT TYPE (a=expr)

2010-08-15 Thread domob at gcc dot gnu dot org
--- Comment #7 from domob at gcc dot gnu dot org 2010-08-15 20:25 --- This extended the support to array-expressions -- the original example works now. Next will be a rework to do the association in the trans phase, which is probably necessary to get full array support and association

[Bug target/45291] avr miscompilations related to frame pointer registers

2010-08-15 Thread otaylor at redhat dot com
--- Comment #1 from otaylor at redhat dot com 2010-08-15 20:27 --- Created an attachment (id=21484) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21484action=view) Patch removing the frame pointer from general regs Here's the patch described; I don't have any sort of extensive

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2010-08-15 20:36 --- It works for me: (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /export/home/hjl/bugs/gcc/pr45286/foo Breakpoint 1, sigvtalarm (foo=0) at

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread vapier at gentoo dot org
--- Comment #8 from vapier at gentoo dot org 2010-08-15 20:40 --- yes, we did. take the .i files we already posted and compile them with the quoted pic/pie flags and look at the disassembled code. the hardened gentoo variant builds all of glibc with pic/pie support (including static

[Bug fortran/24524] Fortran dependency checking should reverse loops

2010-08-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2010-08-15 20:41 --- Hello Paul, I think the patch you committed to 4.5 causes a regression for normal loops, which are now handled as overlapping. I think I fixed that in http://gcc.gnu.org/viewcvs?view=revisionrevision=162829 on

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2010-08-15 20:45 --- You have to show me exact CFLAGS used to compile sigaction.c. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45286

[Bug middle-end/44569] Debug statements passed to rtx

2010-08-15 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2010-08-15 20:48 --- Investigating... -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread vapier at gentoo dot org
--- Comment #10 from vapier at gentoo dot org 2010-08-15 21:01 --- from the glibc-2.11.2/signal/ subdir: $ gcc -Wall -Winline -Wwrite-strings -Wstrict-prototypes -std=gnu99 -O2 -fgnu89-inline -fmerge-all-constants -fno-strict-aliasing -fno-unwind-tables -g -pipe

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread matz at gcc dot gnu dot org
--- Comment #5 from matz at gcc dot gnu dot org 2010-08-15 21:07 --- First, yes, the work-around from the official POSIX man-pages is alias-unsafe. They added this example because ISO C doesn't allow conversion of void* pointers to function pointer, but dlsym returns a void* pointer.

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2010-08-15 21:15 --- It works for me with -fPIC -fPIE using gcc 4.4.4 on Fedora 13. I got movq__restore...@gotpcrel(%rip), %rax movq%rax, 56(%rsp) in assembly output. It is correct. Please make sure that you

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread zorry at ume dot nu
--- Comment #12 from zorry at ume dot nu 2010-08-15 21:31 --- (In reply to comment #11) It works for me with -fPIC -fPIE using gcc 4.4.4 on Fedora 13. I got movq__restore...@gotpcrel(%rip), %rax movq%rax, 56(%rsp) in assembly output. It is correct.

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2010-08-15 21:33 --- There are more possibilities, like: 3) void (*fnptr) (void); void *p = dlsym (...); memcpy (fnptr, p, sizeof (p)); fnptr (); The POSIX standard wording doesn't talk about void * and function pointers being compatible

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #13 from hjl dot tools at gmail dot com 2010-08-15 21:36 --- (In reply to comment #12) (In reply to comment #11) It works for me with -fPIC -fPIE using gcc 4.4.4 on Fedora 13. I got movq__restore...@gotpcrel(%rip), %rax movq%rax, 56(%rsp)

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-08-15 21:38 --- Note that this is a common mistake anyways and for example with LTO we unify all pointer alias-sets to that of void *. In fact I proposed that for all languages anyway (look at the hack the C++ FE has for

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread vapier at gentoo dot org
--- Comment #14 from vapier at gentoo dot org 2010-08-15 21:59 --- we are using current GNU binutils (2.20.1). we dont use Linux binutils anymore in Gentoo by default due to the instability and random patches that never get mainlined into the GNU binutils. however, even with

[Bug c/45286] kact.sa_restorer = restore_rt; in sigaction.c glibc get miss compile with -fPIE on x86_64

2010-08-15 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2010-08-15 22:11 --- (In reply to comment #14) we are using current GNU binutils (2.20.1). we dont use Linux binutils anymore in Gentoo by default due to the instability and random patches that never get mainlined into the GNU

[Bug middle-end/45292] New: [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
When configured for i586-linux, there are extra libgomp test failures: FAIL: libgomp.c/nqueens-1.c execution test FAIL: libgomp.c/pr39591-1.c execution test FAIL: libgomp.c/pr39591-2.c execution test FAIL: libgomp.c/sort-1.c execution test FAIL: libgomp.c/task-2.c execution test FAIL:

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Known to fail||4.5.3 4.6.0 Known to work||4.4.4

[Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity

2010-08-15 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-08-15 23:09 --- Created an attachment (id=21485) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21485action=view) reduced testcase Testcase crashes at x86_64-linux as well. Valgrind output (r163261): $ valgrind --trace-children=yes

[Bug middle-end/45230] gcc.c-torture/execute/strncmp-1.c ICEs with -fgraphite-identity

2010-08-15 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-08-15 23:23 --- Created an attachment (id=21486) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21486action=view) reduced testcase Crashes at x86_64-linu as well. Valgrind output (r163261): $ valgrind --trace-children=yes -q

[Bug c/45289] gcc lacks a posix option for -std since POSIX 2008 defines special behavior

2010-08-15 Thread matz at gcc dot gnu dot org
--- Comment #8 from matz at gcc dot gnu dot org 2010-08-16 00:55 --- Well, okay, (3) indeed is valid ISO C (no warning) and works on POSIX 2008. I'd find it very awkward to write such work-around for (1) just so the warning in strict ISO C mode is silenced. I find this case different

[Bug c++/45293] New: ICE in iterative_hash_template_arg, at cp/pt.c:1589

2010-08-15 Thread fang at csl dot cornell dot edu
with g++-4.5.1 (powerpc-apple-darwin8): internal compiler error: in iterative_hash_template_arg, at cp/pt.c:1589 with the attached unreduced test case, which I'm delta-reducing at the moment... never tested against 4.5.0. This code compiled with 4.4.x and earlier, which leads me to believe that

[Bug c++/45293] ICE in iterative_hash_template_arg, at cp/pt.c:1589

2010-08-15 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2010-08-16 01:07 --- Created an attachment (id=21487) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21487action=view) unreduced test case triggering ICE -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45293

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-08-16 01:13 --- It is caused by revision 145825: http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg00448.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2010-08-16 01:18 --- libgomp is miscompiled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2010-08-16 02:29 --- task.o is miscompiled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2010-08-16 02:52 --- gomp_barrier_handle_tasks is miscompiled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292

[Bug target/45294] New: pextrw, redundant zero (or otherwise) extension

2010-08-15 Thread tbptbp at gmail dot com
This is a friendly reminder there's still no way to enjoy pextrw without undue zero/sign extension unless inline asm is used; there's even a gradient of ignominy from intrinsic to builtins, as exemplified by: $ cat pextrw.cc #include smmintrin.h long unsigned int foo1(__m128i x) { return

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2010-08-16 05:04 --- Disable +(define_expand cmpcc + [(set (reg:CC FLAGS_REG) +(compare:CC (match_operand 0 flags_reg_operand ) +(match_operand 1 general_operand )))] + +{ + ix86_compare_op0 =

[Bug middle-end/45292] [4.5/4.6 regression] libgomp test failures for i586-linux

2010-08-15 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-08-16 05:18 --- -mtune=i586 miscompiled gomp_barrier_handle_tasks which has a loop and calls: static inline void gomp_mutex_lock (gomp_mutex_t *mutex) { if (!__sync_bool_compare_and_swap (mutex, 0, 1)) gomp_mutex_lock_slow