Re: Truncate optimisation question

2013-12-07 Thread Eric Botcazou
But that's the problem with trying to do the optimisation in this way. We first simplify a truncation of an SImode addition X. Then we simplify a zero extension of that truncation. Then we have the opportunity to realise that the zero extension wasn't necessary after all, so we actually

Re: Truncate optimisation question

2013-12-07 Thread Richard Sandiford
Eric Botcazou ebotca...@adacore.com writes: But that's the problem with trying to do the optimisation in this way. We first simplify a truncation of an SImode addition X. Then we simplify a zero extension of that truncation. Then we have the opportunity to realise that the zero extension

3 libstdc++ tests fail at random

2013-12-07 Thread H.J. Lu
Hi, I have been seeing 3 libstdc++ tests: FAIL: 17_intro/headers/c++200x/stdc+ +.cc (test for excess errors) FAIL: 17_intro/headers/c++200x/stdc++_multiple_inclusion.cc (test for excess errors) FAIL: 30_threads/async/async.cc execution test fail/pass at random on a fast machine. Is this

Re: 3 libstdc++ tests fail at random

2013-12-07 Thread Paolo Carlini
On 12/07/2013 04:48 PM, H.J. Lu wrote: Hi, I have been seeing 3 libstdc++ tests: FAIL: 17_intro/headers/c++200x/stdc+ +.cc (test for excess errors) FAIL: 17_intro/headers/c++200x/stdc++_multiple_inclusion.cc (test for excess errors) FAIL: 30_threads/async/async.cc execution test fail/pass at

Re: 3 libstdc++ tests fail at random

2013-12-07 Thread Jakub Jelinek
On Sat, Dec 07, 2013 at 05:43:12PM +0100, Paolo Carlini wrote: On 12/07/2013 04:48 PM, H.J. Lu wrote: I have been seeing 3 libstdc++ tests: FAIL: 17_intro/headers/c++200x/stdc+ +.cc (test for excess errors) FAIL: 17_intro/headers/c++200x/stdc++_multiple_inclusion.cc (test for excess

Re: 3 libstdc++ tests fail at random

2013-12-07 Thread H.J. Lu
On Sat, Dec 7, 2013 at 9:09 AM, Jakub Jelinek ja...@redhat.com wrote: On Sat, Dec 07, 2013 at 05:43:12PM +0100, Paolo Carlini wrote: On 12/07/2013 04:48 PM, H.J. Lu wrote: I have been seeing 3 libstdc++ tests: FAIL: 17_intro/headers/c++200x/stdc+ +.cc (test for excess errors) FAIL:

Re: 3 libstdc++ tests fail at random

2013-12-07 Thread H.J. Lu
On Sat, Dec 7, 2013 at 9:26 AM, H.J. Lu hjl.to...@gmail.com wrote: On Sat, Dec 7, 2013 at 9:09 AM, Jakub Jelinek ja...@redhat.com wrote: On Sat, Dec 07, 2013 at 05:43:12PM +0100, Paolo Carlini wrote: On 12/07/2013 04:48 PM, H.J. Lu wrote: I have been seeing 3 libstdc++ tests: FAIL:

bisonc++ ??

2013-12-07 Thread Bruce Korb
Googling: gcc undefined reference to `lexer_line' yields: http://stackoverflow.com/questions/4262531/trouble-building-gcc-4-6 Please check for it in configure and mention it in the dependency message. :) Thank you!

Re: bisonc++ ??

2013-12-07 Thread Bruce Korb
On 12/07/13 12:59, Bruce Korb wrote: Googling: gcc undefined reference to `lexer_line' yields: http://stackoverflow.com/questions/4262531/trouble-building-gcc-4-6 Please check for it in configure and mention it in the dependency message. :) Thank you! Oops -- I was too optimistic:

gcc-4.7-20131207 is now available

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

Re: Remove spam in GCC mailing list

2013-12-07 Thread Tae Wong
The Got It button has been removed on Warning: Enabling the Script panel causes a Firefox slow-down due to a platform bug. This will be fixed with the next major Firefox and Firebug versions. It appears when Firebug has a warning. The Launchpad account seotaewong40 has been suspended with request

[Bug sanitizer/59410] tsan tests fail with address randomization disabled

2013-12-07 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #25 from Kostya Serebryany kcc at gcc dot gnu.org --- https://bugzilla.kernel.org/show_bug.cgi?id=66721 Good! Looking forward for a fix and hoping to have it in the next Ubuntu LTS. Any chance? Is there anything else we could do

[Bug target/52898] SH Target: Inefficient DImode comparisons

2013-12-07 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52898 --- Comment #7 from Oleg Endo olegendo at gcc dot gnu.org --- Kaz, I'd like to deprecate the mcbranchdi and mcmpeqdi options in 4.9 and make the current default values fixed as follows: mcbranchdi is usually enabled (it gets disabled in some SH5

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #7 from rguenther at suse dot de rguenther at suse dot de --- hjl.tools at gmail dot com gcc-bugzi...@gcc.gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #3 from H.J. Lu hjl.tools at gmail dot com ---

[Bug target/52898] SH Target: Inefficient DImode comparisons

2013-12-07 Thread kkojima at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52898 --- Comment #8 from Kazumoto Kojima kkojima at gcc dot gnu.org --- I'm OK with it.

[Bug target/18649] terminate called after throwing - IOT/Abort trap (core dumped)

2013-12-07 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18649 --- Comment #10 from Kai Tietz ktietz at gcc dot gnu.org --- For mingw-code this bug is fixed. It was caused by a bug in SjLj catch-reason. Issue is fixed for 32-bit and 64-bit mingw targets for all open branches. As report was for different

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 janus at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #8 from H.J. Lu hjl.tools at gmail dot com --- (In reply to rguent...@suse.de from comment #7) hjl.tools at gmail dot com gcc-bugzi...@gcc.gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #3 from H.J.

[Bug target/19970] Java Disabled for MinGW

2013-12-07 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19970 Kai Tietz ktietz at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING

[Bug sanitizer/59410] tsan tests fail with address randomization disabled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #26 from H.J. Lu hjl.tools at gmail dot com --- (In reply to Kostya Serebryany from comment #25) https://bugzilla.kernel.org/show_bug.cgi?id=66721 Good! Looking forward for a fix and hoping to have it in the next Ubuntu LTS. Any

[Bug preprocessor/56686] gcc cannot find include header file

2013-12-07 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56686 Kai Tietz ktietz at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #2 from janus at gcc dot gnu.org --- This draft patch fixes the error (but has not been regtested yet): Index: gcc/fortran/resolve.c === --- gcc/fortran/resolve.c

[Bug c++/59416] New: A nested template reusing the template arguments of the enclosing type in a template template argument not working

2013-12-07 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59416 Bug ID: 59416 Summary: A nested template reusing the template arguments of the enclosing type in a template template argument not working Product: gcc Version:

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #3 from janus at gcc dot gnu.org --- (In reply to janus from comment #2) With the patch the reduced test case in comment 1 compiles cleanly, but the full code in comment 0 then gives an ICE on a different location:

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #4 from janus at gcc dot gnu.org --- Btw, when using the second (commented-out) version of 'AddArray' (which apparently crashes with ifort), the full code in comment 0 compiles cleanly with gfortran trunk plus the patch in comment 2.

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread antony at cosmologist dot info
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #5 from Antony Lewis antony at cosmologist dot info --- Thanks for the quick fix! The sourced allocate errors crop up in various places in the full code, and already seem to be known in several bug reports, e.g.

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #6 from janus at gcc dot gnu.org --- (In reply to Antony Lewis from comment #5) The sourced allocate errors crop up in various places in the full code, and already seem to be known in several bug reports, e.g.

[Bug tree-optimization/59417] New: ICE in determine_value_range, at tree-ssa-loop-niter.c:176

2013-12-07 Thread antoine.balestrat at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: antoine.balestrat at gmail dot com Hi ! I'm using GCC 4.9 20131207. $ cat deter.c int a, b, d; short c; void f(void) { if(b) { int *e; if(d

[Bug tree-optimization/59417] ICE in determine_value_range, at tree-ssa-loop-niter.c:176

2013-12-07 Thread octoploid at yandex dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59417 Markus Trippelsdorf octoploid at yandex dot com changed: What|Removed |Added CC||jakub at

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #7 from Dominique d'Humieres dominiq at lps dot ens.fr --- The issue of comment 3 appeared between revisions 187190 (2012-05-05) and 187198 (actually 187193 and I'ld bet for 187192).

[Bug fortran/44672] [F08] ALLOCATE with SOURCE and no array-spec

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44672 janus at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #8 from janus at gcc dot gnu.org --- The patch in comment 2 regtests cleanly.

[Bug middle-end/59011] [4.7 Regression] ICE in make_decl_rtl, at varasm.c:1147

2013-12-07 Thread mikpelinux at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59011 --- Comment #7 from Mikael Pettersson mikpelinux at gmail dot com --- It appears the test case wasn't added to 4.8 branch.

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 janus at gcc dot gnu.org changed: What|Removed |Added CC||pault at gcc dot gnu.org ---

[Bug middle-end/59011] [4.7 Regression] ICE in make_decl_rtl, at varasm.c:1147

2013-12-07 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59011 --- Comment #8 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Sat Dec 7 15:43:05 2013 New Revision: 205783 URL: http://gcc.gnu.org/viewcvs?rev=205783root=gccview=rev Log: PR middle-end/59011 * gimplify.c

[Bug target/58864] [4.8/4.9 regression] ICE in connect_traces, at dwarf2cfi.c:NNNN

2013-12-07 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58864 --- Comment #10 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Sat Dec 7 15:43:48 2013 New Revision: 205784 URL: http://gcc.gnu.org/viewcvs?rev=205784root=gccview=rev Log: PR target/58864 * optabs.c

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread rguenther at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #9 from rguenther at suse dot de rguenther at suse dot de --- hjl.tools at gmail dot com gcc-bugzi...@gcc.gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #8 from H.J. Lu hjl.tools at gmail dot com --- (In

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #10 from H.J. Lu hjl.tools at gmail dot com --- (In reply to rguent...@suse.de from comment #9) Is that ever possible to have latch execution count 0 and FIRST_NITERS == 0? It happens in x32 253.perlbmk. That should be

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #11 from H.J. Lu hjl.tools at gmail dot com --- latch execution count can be an expression like if (b) in gcc.dg/torture/pr59058.c. Will such an expression be possible negative at run-time?

[Bug debug/59418] New: ICE in maybe_record_trace_start, at dwarf2cfi.c:2221

2013-12-07 Thread rmansfield at qnx dot com
-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace target_alias=arm-unknown-linux-gnueabi --enable-languages=c++ --disable-shared --disable-libmudflap --disable-libssp --enable-checking Thread model: posix gcc version 4.9.0 20131207 (experimental) [trunk

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #12 from H.J. Lu hjl.tools at gmail dot com --- This function: SV * sv_mortalcopy(SV *oldstr) { dTHR; register SV *sv; new_SV(sv); SvANY(sv) = 0; SvREFCNT(sv) = 1; SvFLAGS(sv) = 0; sv_setsv(sv,oldstr);

[Bug fortran/59411] Problem with TYPE(C_PTR) constant initialization

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59411 janus at gcc dot gnu.org changed: What|Removed |Added CC||janus at gcc dot gnu.org ---

[Bug fortran/59411] Problem with TYPE(C_PTR) constant initialization

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59411 --- Comment #2 from janus at gcc dot gnu.org --- (In reply to janus from comment #1) One should check the Fortran standard for restrictions in the case of C_PTRs (which, strictly speaking, are no actual pointers in the Fortran sense). Since

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 kargl at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Severity|blocker

[Bug fortran/59411] Problem with TYPE(C_PTR) constant initialization

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59411 --- Comment #3 from janus at gcc dot gnu.org --- In F03, I think the relevant quotes are: R506 initialization is = initialization-expr or = null-init 7.1.7 Initialization expression An initialization expression is an

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #13 from H.J. Lu hjl.tools at gmail dot com --- loop in Perl_pp_aassign is miscompiled: 44098a: e8 91 38 05 00 callq 494220 Perl_sv_mortalcopy 44098f: 67 89 03mov%eax,(%ebx) 440992:

[Bug middle-end/59409] [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-07 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 --- Comment #14 from H.J. Lu hjl.tools at gmail dot com --- (In reply to H.J. Lu from comment #13) loop in Perl_pp_aassign is miscompiled: 44098a: e8 91 38 05 00 callq 494220 Perl_sv_mortalcopy 44098f: 67 89 03

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #10 from janus at gcc dot gnu.org --- Author: janus Date: Sat Dec 7 19:27:19 2013 New Revision: 205785 URL: http://gcc.gnu.org/viewcvs?rev=205785root=gccview=rev Log: 2013-12-07 Janus Weil ja...@gcc.gnu.org PR fortran/59414

[Bug fortran/59414] [OOP] Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #11 from janus at gcc dot gnu.org --- r205785 fixes the original error (i.e. comment 1). ToDo: The ICE regression of comment 3.

[Bug libfortran/59419] New: [4.9 Regression] Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx' after revision 196783

2013-12-07 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59419 Bug ID: 59419 Summary: [4.9 Regression] Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx' after revision 196783 Product: gcc Version: 4.9.0 Status:

[Bug libfortran/59419] [4.9 Regression] Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx' after revision 196783

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

[Bug libfortran/59419] [4.9 Regression] Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx' after revision 196783

2013-12-07 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59419 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code

[Bug c/59420] New: arm: broken code generated (memset from newlib 2.0)

2013-12-07 Thread holler at ahsoftware dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59420 Bug ID: 59420 Summary: arm: broken code generated (memset from newlib 2.0) Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/59420] arm: broken code generated (memset from newlib 2.0)

2013-12-07 Thread holler at ahsoftware dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59420 --- Comment #1 from Alexander Holler holler at ahsoftware dot de --- Created attachment 31397 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31397action=edit memset.s

[Bug libstdc++/59421] New: stof(), stod() wrong result

2013-12-07 Thread stefan.helm...@t-online.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59421 Bug ID: 59421 Summary: stof(), stod() wrong result Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

[Bug c/59420] arm: broken code generated (memset from newlib 2.0)

2013-12-07 Thread rearnsha at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59420 --- Comment #2 from Richard Earnshaw rearnsha at gcc dot gnu.org --- You'll get more attention paid to this if you can describe why you think the code generated is incorrect.

[Bug middle-end/59420] arm: broken code generated (memset from newlib 2.0)

2013-12-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59420 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug libstdc++/59421] stof(), stod() wrong result

2013-12-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59421 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last

[Bug libstdc++/59421] stof(), stod() wrong result

2013-12-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59421 --- Comment #2 from Andrew Pinski pinskia at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #1) Do you have a full testcase that is able to compile and work? s/work/run/

[Bug c++/59300] visibility computation misses some attributes in namespaces

2013-12-07 Thread rafael.espindola at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59300 --- Comment #1 from Rafael Avila de Espindola rafael.espindola at gmail dot com --- clang had an even stranger behavior (http://llvm.org/bugs/show_bug.cgi?id=18174). I fixed that in a way that it now agrees with gcc on the testcase in this bug.

[Bug libfortran/59419] [4.9 Regression] Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx' after revision 196783

2013-12-07 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59419 --- Comment #3 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- I will take this one if you like.

[Bug middle-end/59420] arm: broken code generated (memset from newlib 2.0)

2013-12-07 Thread holler at ahsoftware dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59420 --- Comment #4 from Alexander Holler holler at ahsoftware dot de --- Thanks a lot for the very fast solution. I wasn't aware that gcc does such optimizations and maybe posted the bug too fast without really having examined the assembler. Using

[committed] Avoid -Wformat-security warning in libssp

2013-12-07 Thread Jakub Jelinek
Hi! libssp apparently doesn't build with -Werror=format-security which is planned to be default for Fedora. While this is a false positive, msg3 is always one of two string literals, I think it doesn't hurt to use %s there. Committed to trunk as obvious. --- libssp/ChangeLog(revision

Re: Cleanup Linux libc selection and Android support

2013-12-07 Thread Maxim Kuvyrkov
On 6/11/2013, at 1:44 pm, Maxim Kuvyrkov ma...@kugelworks.com wrote: On 19/09/2013, at 8:26 am, Maxim Kuvyrkov ma...@kugelworks.com wrote: Following recent breakage caused by adding nominal Android support to all *linux* targets [*] this patch series cleans up libc selection for Linux

Re: wide-int, rtl

2013-12-07 Thread Richard Sandiford
Kenneth Zadeck zad...@naturalbridge.com writes: +/* One could argue that GET_MODE_PRECISION (TYPE_MODE (type)) + should always be the same as TYPE_PRECISION (type). + However, it is not. Since we are converting from tree to + rtl, we have to expose this ugly truth here.

Re: [PATCH] Add -mtune=ia support

2013-12-07 Thread Gerald Pfeifer
On Fri, 6 Dec 2013, H.J. Lu wrote: http://en.wikipedia.org/wiki/IA IA-32, Intel Architecture, 32-bit IA-64, Intel Architecture, 64-bit And Intel 64 is an implementation of and extension to the 64-bit extension of IA-32 created by AMD, totally unrelated to IA-64. Marketing. :-) Gerald

Re: [REPOST] Invalid Code when reading from unaligned zero-sized array

2013-12-07 Thread Eric Botcazou
It's not fully fixing the issue as _all_ aggregates that may be accessed beyond their declarations size are broken. Sure, but we don't need to support such nonsense in the general case. And not every language allows it, for example in Ada you cannot do that of course. I'd say we should

Re: [wide-int] small cleanup in wide-int.*

2013-12-07 Thread Richard Sandiford
Kenneth Zadeck zad...@naturalbridge.com writes: #define WIDE_INT_MAX_ELTS \ - ((4 * MAX_BITSIZE_MODE_ANY_INT + HOST_BITS_PER_WIDE_INT - 1) \ - / HOST_BITS_PER_WIDE_INT) + (((MAX_BITSIZE_MODE_ANY_INT + HOST_BITS_PER_WIDE_INT - 1) \ +/ HOST_BITS_PER_WIDE_INT) + 1) I think this

Re: [REPOST] Invalid Code when reading from unaligned zero-sized array

2013-12-07 Thread Eric Botcazou
I'd certainly be concerned. Ports have (for better or worse) keyed on BLKmode rather than looking at the underlying types. So if something which was previously SImode or DImode is now BLKmode, there's a nonzero chance we're going to change how it gets passed. Well, we have been saying that

Re: [REPOST] Invalid Code when reading from unaligned zero-sized array

2013-12-07 Thread Eric Botcazou
That being said, the concern is certainly valid so we may want to go for a kludge instead of the fix. The point is that the kludge should do exactly what the fix would have done in the RTL expander and nothing more; it's out of question to pessimize all the other languages and all the other

Re: [patch] microblaze-rtems Add TARGET_BIG_ENDIAN_DEFAULT

2013-12-07 Thread Michael Eager
On 12/06/13 19:13, Ralf Corsepius wrote: Hi, I intend to the patch below to gcc-trunk and 4.8-branch: It's a partial sync of the microblaze-rtems* section in gcc/config.gcc with microblaze*-*-elf's: Add TARGET_BIG_ENDIAN_DEFAULT-switch for microblaze*-*-rtems*. Ralf OK. -- Michael Eager

[PATCH] -fuse-caller-save - Implement TARGET_FN_OTHER_HARD_REG_USAGE hook for MIPS

2013-12-07 Thread Tom de Vries
Richard, This patch implements the target hook TARGET_FN_OTHER_HARD_REG_USAGE (posted here: http://gcc.gnu.org/ml/gcc-patches/2013-03/msg01318.html) for MIPS, to address the issue that $6 is sometimes used in split calls. Build and reg-tested on MIPS. OK for stage1? Thanks, - Tom

[Patch, Fortran, OOP] PR 59414: Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread Janus Weil
Hi all, here is a small patch to fix a problem with class-array-valued functions, where the rank was not determined properly. Regtestes on x86_64-unknown-linux-gnu. Ok for trunk? [Note: This patch only fixes the rejects-valid problem of comment 0/1, but not the ICE of comment 2/3, which is a

Re: [Patch, Fortran, OOP] PR 59414: Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread Tobias Burnus
Janus Weil wrote: here is a small patch to fix a problem with class-array-valued functions, where the rank was not determined properly. Regtestes on x86_64-unknown-linux-gnu. Ok for trunk? [Note: This patch only fixes the rejects-valid problem of comment 0/1, but not the ICE of comment 2/3,

Re: [Patch, Fortran, OOP] PR 59414: Class array pointers: compile error on valid code (Different ranks in pointer assignment)

2013-12-07 Thread Janus Weil
2013/12/7 Tobias Burnus bur...@net-b.de: Janus Weil wrote: here is a small patch to fix a problem with class-array-valued functions, where the rank was not determined properly. Regtestes on x86_64-unknown-linux-gnu. Ok for trunk? [Note: This patch only fixes the rejects-valid problem of

[C++ Patch] Fix __is_base_of vs incomplete types

2013-12-07 Thread Paolo Carlini
Hi, noticed this while preparing some testcases for the library (but probably Daniel pointed it out together with related issues some time ago): if we don't handle separately identical types modulo cv-qualifiers, we incorrectly return false for incomplete types. Tested x86_64-linux.

fixinclude patch for fenv.h on Ubuntu

2013-12-07 Thread Bruce Korb
This patch fixes Ian's issue, and several similar patterns: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg00681.html $ make check autogen -T ../.././fixincludes/check.tpl ../.././fixincludes/inclhack.def /bin/sh ./check.sh ../.././fixincludes/tests/base Fixed: testing.h [[...]] Fixed: unistd.h