[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #12 from jvdelisle at gcc dot gnu dot org 2008-10-18 05:36 --- Ignore comment #11. I got wrong PR number in Changelog. Should have been 37863. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug fortran/37863] [4.3/4.4 Regression] Display of a value close but less to 1 shows 2 with '(F3.0)'

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-10-18 05:32 --- Fixed on trunk. I accidentally committed the patch with the wrong PR number in the Changelog (37707) This I will backport to 4.3 in a day. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37863

[Bug fortran/37863] [4.3/4.4 Regression] Display of a value close but less to 1 shows 2 with '(F3.0)'

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-10-18 05:28 --- Subject: Bug 37863 Author: jvdelisle Date: Sat Oct 18 05:27:23 2008 New Revision: 141208 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141208 Log: Fix ChangeLog 2008-10-17 Jerry DeLisle <[EMAIL

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #11 from jvdelisle at gcc dot gnu dot org 2008-10-18 05:25 --- Subject: Bug 37707 Author: jvdelisle Date: Sat Oct 18 05:23:47 2008 New Revision: 141207 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141207 Log: 2008-10-17 Jerry DeLisle <[EMAIL PROTECTED]

[Bug c/37866] "passing argument from incompatible pointer type" warning cannot be passed to -Werror=

2008-10-17 Thread flameeyes at gentoo dot org
--- Comment #2 from flameeyes at gentoo dot org 2008-10-17 22:36 --- Which gives it even more usefulness to be optionally treated as an error, since it really helps to avoid shooting oneself in the foot... I guess it would be bad to have a way to -Wno- it, but it would be nice to at lea

[Bug c/37866] "passing argument from incompatible pointer type" warning cannot be passed to -Werror=

2008-10-17 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-10-17 22:34 --- That is because this is a pedantic warning which is enabled by default. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37866

[Bug c/37866] New: "passing argument from incompatible pointer type" warning cannot be passed to -Werror=

2008-10-17 Thread flameeyes at gentoo dot org
The new -Werror= option for GCC 4.3 is very useful to make GCC error out for specific warnings, but it currently lacks a way to make that warning an error (which is very useful to avoid skipping parameters in fprintf()-like functions. Even -fdiagnostics-show-option suggested by the manual doesn't

[Bug middle-end/37809] [4.2/4.3/4.4 Regression] Incorrect code with MMX right shift __builtin_ia32_psradi

2008-10-17 Thread suckfish at ihug dot co dot nz
--- Comment #6 from suckfish at ihug dot co dot nz 2008-10-17 22:18 --- Pleasantly, my fears that this was just the tip of the iceburg seems to be wrong. Writing some test cases, found another bug involving a shift, and also the ICE below [fixed by some combination of change above and 3

[Bug fortran/37865] New: gfortran build fails in stage 3 bootstrap with --enable-intermodule

2008-10-17 Thread bernard at brenda-arkle dot me dot uk
make[3]: Entering directory `/mnt/devel/lfs/lfs-build/gcc-4.3.2/build-gcc-4.3.2/i686-pc-linux-gnu/libgfortran' if /bin/sh ./libtool --tag=CC --mode=compile /mnt/devel/lfs/lfs-build/gcc-4.3.2/build-gcc-4.3.2/./gcc/xgcc -B/mnt/devel/lfs/lfs-build/gcc-4.3.2/build-gcc-4.3.2/./gcc/ -B/mnt/devel/lfs/lfs-

[Bug target/34422] Bootstrap error with --enable-fixed-point

2008-10-17 Thread bernard at brenda-arkle dot me dot uk
--- Comment #3 from bernard at brenda-arkle dot me dot uk 2008-10-17 21:08 --- I've seen this with 4.3.1 and 4.3.2 official releases with (as it happens) athlon-64 again (but 32-bit Linux). But then I also saw it with 4.3.1 on a pure Pentium4 system, so I don't think it's really 64-bit

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread andreast at gcc dot gnu dot org
--- Comment #11 from andreast at gcc dot gnu dot org 2008-10-17 20:59 --- Entered in testing part on sparc-solaris2.10 Bootstrap ok. with patch in comment #10 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37815

[Bug pch/13675] #including a precompiled header more than once in the same unit fails

2008-10-17 Thread jakub at gcc dot gnu dot org
--- Comment #18 from jakub at gcc dot gnu dot org 2008-10-17 20:19 --- Fixed in 4.4. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug middle-end/37864] New: incorrect warning from fold

2008-10-17 Thread mrs at apple dot com
We found an interesting bootstrap failure in gcc after changing a machine definition some, the important bits are below. Something is wrong, but it is hard to say exactly what. The warning would be fine, if there were no preprocessor involved. But, it is. The warning doesn't make any sense for

[Bug fortran/37863] [4.3/4.4 Regression] Display of a value close but less to 1 shows 2 with '(F3.0)'

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-10-17 19:32 --- I will try to look at this tonight. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37863

[Bug other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically

2008-10-17 Thread fago at earthlink dot net
--- Comment #5 from fago at earthlink dot net 2008-10-17 18:06 --- Just to document: I came across this bug with OpenMP using gcc 4.3.2 on RHEL4, with static libraries, and found the threads mentioned in #1 and #2. Linking dynamically fixed the segfaults on RHEL4. It does seem to be a b

[Bug tree-optimization/37102] [4.3 Regression] out-of-SSA is broken

2008-10-17 Thread amacleod at gcc dot gnu dot org
--- Comment #23 from amacleod at redhat dot com 2008-10-17 17:37 --- Subject: Bug 37102 Author: amacleod Date: Fri Oct 17 17:35:58 2008 New Revision: 141195 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141195 Log: fix PR tree-optimization/37102 2008-10-17 Andrew MacLeod <[E

[Bug c/25509] can't disable __attribute__((warn_unused_result))

2008-10-17 Thread joseph at codesourcery dot com
--- Comment #19 from joseph at codesourcery dot com 2008-10-17 16:55 --- Subject: Re: can't disable __attribute__((warn_unused_result)) On Fri, 17 Oct 2008, bonzini at gnu dot org wrote: > > In the case of fwrite, for example, the only obvious case where checking > > would be useles

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread rth at gcc dot gnu dot org
--- Comment #10 from rth at gcc dot gnu dot org 2008-10-17 16:40 --- Created an attachment (id=16513) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16513&action=view) proposed patch I'm pretty sure this patch is sufficient to return this function to working order. I'll have a look

[Bug c/37850] FAIL: gfortran.dg/c_by_val_1.f & gfortran.dg/value_4.f90 execution test

2008-10-17 Thread mikael dot morin at tele2 dot fr
--- Comment #5 from mikael dot morin at tele2 dot fr 2008-10-17 16:38 --- I'v just tried r140349 and r141192. It's not better. -- mikael dot morin at tele2 dot fr changed: What|Removed |Added --

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread rth at gcc dot gnu dot org
-- rth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org |dot org

[Bug fortran/37863] [4.3/4.4 Regression] Display of a value close but less to 1 shows 2 with '(F3.0)'

2008-10-17 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-10-17 15:50 --- Jerry, do you have an idea? -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/25509] can't disable __attribute__((warn_unused_result))

2008-10-17 Thread bonzini at gnu dot org
--- Comment #18 from bonzini at gnu dot org 2008-10-17 15:48 --- > In the case of fwrite, for example, the only obvious case where checking > would be useless is if you already are writing an error message before > exiting with error status and so an error writing the error message cou

[Bug ada/37840] ICE compiling Ada [regression]

2008-10-17 Thread joel at gcc dot gnu dot org
--- Comment #2 from joel at gcc dot gnu dot org 2008-10-17 15:45 --- *** This bug has been marked as a duplicate of 37815 *** -- joel at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread joel at gcc dot gnu dot org
--- Comment #9 from joel at gcc dot gnu dot org 2008-10-17 15:45 --- *** Bug 37840 has been marked as a duplicate of this bug. *** -- joel at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread joel at gcc dot gnu dot org
--- Comment #8 from joel at gcc dot gnu dot org 2008-10-17 15:44 --- Also happens on powerpc-rtems4.10 +===GNAT BUG DETECTED==+ | 4.4.0 20081014 (experimental) [trunk revision 141108] (powerpc-unknown-rtems4.10) GCC error:| | in vt_add

[Bug fortran/37863] Display of a value close to 1 shows 2

2008-10-17 Thread domob at gcc dot gnu dot org
--- Comment #1 from domob at gcc dot gnu dot org 2008-10-17 15:42 --- Confirmed on trunk, with this test: program pb write(*,'(F3.0)') 1.0d0 - 1.110223024625157D-16 end Changing decimals display to a value larger than 0 outputs 1 correctly. -- domob at gcc dot gnu dot org changed

[Bug c/25509] can't disable __attribute__((warn_unused_result))

2008-10-17 Thread joseph at codesourcery dot com
--- Comment #17 from joseph at codesourcery dot com 2008-10-17 15:31 --- Subject: Re: can't disable __attribute__((warn_unused_result)) On Fri, 17 Oct 2008, bonzini at gnu dot org wrote: > It does not matter if it is a "security" issue; if void-ifying is not an > acceptable workaroun

[Bug debug/37801] DWARF output for inlined functions doesn't always use DW_TAG_inlined_subroutine

2008-10-17 Thread jason at redhat dot com
--- Comment #4 from jason at redhat dot com 2008-10-17 15:18 --- Subject: Re: DWARF output for inlined functions doesn't always use DW_TAG_inlined_subroutine These bits should not be generated: <2><8c>: Abbrev Number: 8 (DW_TAG_lexical_block) <3><8d>: Abbrev Number: 8 (DW_TAG_lex

[Bug fortran/37863] New: Display of a value close to 1 shows 2

2008-10-17 Thread sylvestre dot ledru at inria dot fr
With the code here: program pb character*10 form character*4093 str str=' ' write(form,120) 3,0 write(str(1:3),form) 1.0d0 - 1.110223024625157D-16 print *,str(1:10) 120 format('(f',i2,'.',i2,')') end Compiled with gfortran 4.3.2: the outp

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread krebbel at gcc dot gnu dot org
--- Comment #7 from krebbel at gcc dot gnu dot org 2008-10-17 13:16 --- Same on s390x: http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00740.html Please note that the patch attached to the email most likely isn't a correct solution. -- krebbel at gcc dot gnu dot org changed:

[Bug target/37396] bootstrap broken on hppa-linux-gnu trunk with ada (20080906)

2008-10-17 Thread ludovic at ludovic-brenta dot org
--- Comment #3 from ludovic at ludovic-brenta dot org 2008-10-17 13:06 --- This is a duplicate of PR ada/37034. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37396

[Bug fortran/37850] FAIL: gfortran.dg/c_by_val_1.f & gfortran.dg/value_4.f90 execution test

2008-10-17 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2008-10-17 12:54 --- Looks like pr37808, supposed to be fixed at r 14178. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37850

[Bug fortran/37850] FAIL: gfortran.dg/c_by_val_1.f & gfortran.dg/value_4.f90 execution test

2008-10-17 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2008-10-17 12:39 --- I'm at r141174. But I don't think it is one particular revision. I have seen this for a couple of weeks now. I thought it would be reverted soon. Now, I'm not sure it is a gcc bug. I have the feeling that my

[Bug middle-end/37815] [4.4 Regression] ICE in vt_add_function_parameters (bootstrap error)

2008-10-17 Thread ktietz at gcc dot gnu dot org
--- Comment #6 from ktietz at gcc dot gnu dot org 2008-10-17 12:25 --- For target x86_64-pc-mingw32 it is the same In file included from /vol/d/sources/gcc_new/gcc_1017/build3/x86_64-pc-mingw32/libstdc++-v3/include/ostream:572, from ../../../../libstdc++-v3/src/ostream-

[Bug c/25509] can't disable __attribute__((warn_unused_result))

2008-10-17 Thread bonzini at gnu dot org
--- Comment #16 from bonzini at gnu dot org 2008-10-17 11:40 --- It does not matter if it is a "security" issue; if void-ifying is not an acceptable workaround, there must be at the very least a Wno-* option to disable it. -- bonzini at gnu dot org changed: What|Remov

[Bug c/35579] false negatives in warn_unused_result

2008-10-17 Thread bonzini at gnu dot org
--- Comment #9 from bonzini at gnu dot org 2008-10-17 11:37 --- So I should reopen bug 25509 and leave this one for the false negatives. -- bonzini at gnu dot org changed: What|Removed |Added

Worth a bug report?

2008-10-17 Thread Pranith Kumar
Hello, I ran into the following using gcc 4.2.3 on ubuntu 8.04. I ran it with -Werror so it died on receiving this warning: cc1: warnings being treated as errors tux3fuse.c: In function 'tux3_lookup': tux3fuse.c:78: warning: initialized field overwritten tux3fuse.c:78: warning: (near initializati

[Bug c/35579] [4.1/4.2/4.3/4.4 Regression] casts to void do not silence -Wunused warnings for the case of __attribute__(( warn_unused_result ))

2008-10-17 Thread joseph at codesourcery dot com
--- Comment #8 from joseph at codesourcery dot com 2008-10-17 11:22 --- Subject: Re: [4.1/4.2/4.3/4.4 Regression] casts to void do not silence -Wunused warnings for the case of __attribute__(( warn_unused_result )) On Fri, 17 Oct 2008, bonzini at gnu dot org wrote: > It seems bad th

[Bug c/35579] [4.1/4.2/4.3/4.4 Regression] casts to void do not silence -Wunused warnings for the case of __attribute__(( warn_unused_result ))

2008-10-17 Thread bonzini at gnu dot org
--- Comment #7 from bonzini at gnu dot org 2008-10-17 11:12 --- Totally untested patch. Index: c-common.c === --- c-common.c (revisione 134435) +++ c-common.c (copia locale) @@ -6762,7 +6762,8 @@ c_warn_unused_result (tre

[Bug c/35579] [4.1/4.2/4.3/4.4 Regression] casts to void do not silence -Wunused warnings for the case of __attribute__(( warn_unused_result ))

2008-10-17 Thread bonzini at gnu dot org
--- Comment #6 from bonzini at gnu dot org 2008-10-17 09:14 --- It seems bad that *explicit* casts to void cannot silence the warning. This is a problem for projects using -Werror and using (void) with due diligence (including GNU coreutils). -- bonzini at gnu dot org changed:

[Bug c++/37862] New: Parenthesised indirection alters class member access

2008-10-17 Thread nickc at redhat dot com
Hi Guys, Compiling and then executing this program: #include class A { public: virtual void get() { printf ("A\n"); } }; class B:public A { public: virtual void get() { printf ("B\n"); } }; class C:public B { }; int main (void) { C c; C* p = &c; p->A::get(); (p->A::get)(); return 0; }

[Bug tree-optimization/37853] [4.4 Regression] gcc.dg/vect/vect-67.c failing since PRE rewrite

2008-10-17 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||dberlin at gcc dot gnu dot |

[Bug middle-end/37861] New: Bogus array bounds warning

2008-10-17 Thread rguenth at gcc dot gnu dot org
extern int printf (__const char *__restrict __format, ...); static int f2(char formatstr[10][100]) { int anz; for( anz = 0; anz < 10; ++anz ) { printf( "%d %s\n", anz, formatstr[anz] ); } return anz; } static char formatstr[10][100]; int main( void ) { int an

[Bug c++/37860] default and delete used w/ member functions vs. initialization

2008-10-17 Thread bkoz at gcc dot gnu dot org
--- Comment #1 from bkoz at gcc dot gnu dot org 2008-10-17 08:19 --- Sorry, that should have a single argument ctor. Like: struct b { bool t; b() = default; ~b() = default; b& operator=(const b&) = delete; b(const b&) = delete; b(bool) { } }; Gives: %g++ -std=c++0x -c

[Bug c++/37860] New: default and delete used w/ member functions vs. initialization

2008-10-17 Thread bkoz at gcc dot gnu dot org
Valid C++0x code is failing to compile. Support for default and delete appears to be incomplete, as certain valid initialization fails. An example: struct b { bool t; b() = default; ~b() = default; b& operator=(const b&) = delete; b(const b&) = delete; }; int main() { // copy initial

[Bug middle-end/37805] [4.3/4.4 Regression] gcc --help=separate

2008-10-17 Thread cnstar9988 at gmail dot com
--- Comment #5 from cnstar9988 at gmail dot com 2008-10-17 07:30 --- 4.3 branch has the same bug... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37805