[Bug fortran/34868] ICE with -ff2c for function returning a complex number

2008-01-20 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-01-21 07:41 --- > Then the resultant C source is >VOID f_(doublecomplex * ret_val, doublereal *a) Indeed this is f2c (and g77 -ff2c) syntax. > So it seems to me that the current functionality of the gfortran is different > from

[Bug ada/34898] Excessive memory consumption during compilation

2008-01-20 Thread oliver dot kellogg at eads dot com
--- Comment #1 from oliver dot kellogg at eads dot com 2008-01-21 07:30 --- Created an attachment (id=14985) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14985&action=view) source code for producing the bug I tried this with gcc-4.1, 4.2, and 4.3. If I remove the aggregate assi

[Bug ada/34898] New: Excessive memory consumption during compilation

2008-01-20 Thread oliver dot kellogg at eads dot com
For reference, here's a compile with gcc-3.3.5: $ gcc -c -v pkg001u.adb Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.5/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-langu

[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one

2008-01-20 Thread manu at gcc dot gnu dot org
--- Comment #24 from manu at gcc dot gnu dot org 2008-01-21 06:55 --- (In reply to comment #23) > It's too bad the bug is closed just as a duplicate of another bug. I am sorry that you feel disappointed. I believed that the rationale behind closing this was fairly clear. I tried to answ

[Bug fortran/34897] New: Invalid array bound in specification block causes ICE

2008-01-20 Thread pault at gcc dot gnu dot org
>From the old version of gfortran.dg/mapping_2.f90 function my_string(x) integer i real, intent(in) :: x(:) character(0) h4(1:minval([(1,i=1,0)],1)) ! If range is 1,0 bombs out. character(0) sv1(size(x,1):size(h4)) character(0) sv2(2*lbound(sv1,1)

[Bug fortran/34896] [4.3 Regression] libgomp.fortran/reduction5.f90

2008-01-20 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2008-01-21 05:40 --- Confirmed This is the reduced version ! { dg-do run } module reduction5 intrinsic min, max end module reduction5 program reduction_5_regression call test2 contains subroutine test2 use reduction5, min =>

[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one

2008-01-20 Thread sergstesh at yahoo dot com
--- Comment #23 from sergstesh at yahoo dot com 2008-01-21 05:07 --- It's too bad the bug is closed just as a duplicate of another bug. The main points of this bug are: 1) the code triggering the bug uses undefined in "C" standards language features - behavior in case of integer overfl

[Bug fortran/34896] [4.3 Regression] libgomp.fortran/reduction5.f90

2008-01-20 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2008-01-21 04:26 --- Revision 131678 seems OK: http://gcc.gnu.org/ml/gcc-testresults/2008-01/msg00926.html It looks like revision 131679 http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00925.html is the cause. -- http://gcc.gnu.org

[Bug fortran/34896] New: [4.3 Regression] libgomp.fortran/reduction5.f90

2008-01-20 Thread hjl dot tools at gmail dot com
On Linux/Intel64 and Linux/ia32, revision 131679 gives FAIL: libgomp.fortran/reduction5.f90 -O0 execution test FAIL: libgomp.fortran/reduction5.f90 -O1 execution test FAIL: libgomp.fortran/reduction5.f90 -O2 execution test FAIL: libgomp.fortran/reduction5.f90 -O3 -fomit-frame-pointer execu

[Bug c++/34895] ICE at dwarf2out.c:13742

2008-01-20 Thread theodore dot papadopoulo at sophia dot inria dot fr
--- Comment #1 from theodore dot papadopoulo at sophia dot inria dot fr 2008-01-21 03:15 --- Created an attachment (id=14984) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14984&action=view) The code that triggers the ICE Just compile with -g -O2 to see the problem. -- http:

[Bug c++/34895] New: ICE at dwarf2out.c:13742

2008-01-20 Thread theodore dot papadopoulo at sophia dot inria dot fr
The (soon to be attached) code ICEs when compiled with options -g -O2. This is still true as of gcc version 4.3.0 20080118 (x86_64-unknown-linux-gnu), it used to pass but I do not know if this was due to the use of a previous version of the compiler (3.4) or the use of a i386 target (this is most p

[Bug middle-end/34852] [4.3 Regression] Revision 131576 miscompiled 178.galgel

2008-01-20 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2008-01-21 03:09 --- Add -ffloat-store seems to fix the problem. I will verify it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34852

[Bug fortran/34868] ICE with -ff2c for function returning a complex number

2008-01-20 Thread yamagen at coral dot t dot u-tokyo dot ac dot jp
--- Comment #4 from yamagen at coral dot t dot u-tokyo dot ac dot jp 2008-01-21 02:57 --- Thank you very much for your comments. First I answer to you why I would like to use -ff2c option. The reason is that I would like to use "-framework vecLib". In the URL http://developer.apple

[Bug c++/34891] [4.1/4.2 regression] Broken diagnostic: 'view_convert_expr' not supported by dump_expr

2008-01-20 Thread pcarlini at suse dot de
--- Comment #2 from pcarlini at suse dot de 2008-01-21 02:31 --- Fixed for 4.3.0. -- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|pcarlini at s

[Bug c++/34891] [4.1/4.2/4.3 regression] Broken diagnostic: 'view_convert_expr' not supported by dump_expr

2008-01-20 Thread paolo at gcc dot gnu dot org
--- Comment #1 from paolo at gcc dot gnu dot org 2008-01-21 02:31 --- Subject: Bug 34891 Author: paolo Date: Mon Jan 21 02:30:31 2008 New Revision: 131687 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131687 Log: /cp 2008-01-20 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug testsuite/34894] Some compile tests require trampolines even when the target sets no_trampolines

2008-01-20 Thread pmarques at grupopie dot com
--- Comment #1 from pmarques at grupopie dot com 2008-01-21 02:23 --- Created an attachment (id=14983) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14983&action=view) patch with possible fix This patch fixes the test cases, by #ifndef'ing the relevant code when NO_TRAMPOLINES is

[Bug testsuite/34894] New: Some compile tests require trampolines even when the target sets no_trampolines

2008-01-20 Thread pmarques at grupopie dot com
When trying to run the testsuite for the avr target I get these failures from gcc.c-torture/compile: gcc.c-torture/compile/20010226-1.c:6: internal compiler error: trampolines not supported gcc.c-torture/compile/20050122-2.c:7: internal compiler error: trampolines not supported gcc.c-torture/compi

[Bug c++/34891] [4.1/4.2/4.3 regression] Broken diagnostic: 'view_convert_expr' not supported by dump_expr

2008-01-20 Thread pcarlini at suse dot de
-- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de |dot org |

[Bug c++/34050] [4.3 regression] ICE derived classes and variadic templates

2008-01-20 Thread mmitchel at gcc dot gnu dot org
--- Comment #7 from mmitchel at gcc dot gnu dot org 2008-01-21 02:03 --- I agree that this should be a P2. I had misunderstood Andrew's earlier comment to mean that we always got a valid error message before the ICE. -- mmitchel at gcc dot gnu dot org changed: What|

[Bug c++/27177] [4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at cp/class.c:474

2008-01-20 Thread mmitchel at gcc dot gnu dot org
--- Comment #19 from mmitchel at gcc dot gnu dot org 2008-01-21 02:00 --- Lawrence, thanks for looking into this. Was there any consensus on whether or not these are static_casts in this context? I'm guessing that the eventual resolution is going to be something like saying that a c

[Bug c++/34776] [4.1/4.2 regression] ICE with invalid member declaration in template class

2008-01-20 Thread pcarlini at suse dot de
--- Comment #4 from pcarlini at suse dot de 2008-01-21 01:52 --- Fixed for 4.3.0. -- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|pcarlini at s

[Bug c++/34486] [4.1/4.2 regression] ICE invalid using declaration

2008-01-20 Thread pcarlini at suse dot de
--- Comment #5 from pcarlini at suse dot de 2008-01-21 01:52 --- Fixed for 4.3.0. -- pcarlini at suse dot de changed: What|Removed |Added AssignedTo|pcarlini at s

[Bug c++/34486] [4.1/4.2/4.3 regression] ICE invalid using declaration

2008-01-20 Thread paolo at gcc dot gnu dot org
--- Comment #4 from paolo at gcc dot gnu dot org 2008-01-21 01:50 --- Subject: Bug 34486 Author: paolo Date: Mon Jan 21 01:49:29 2008 New Revision: 131686 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131686 Log: /cp 2008-01-20 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug c++/34776] [4.1/4.2/4.3 regression] ICE with invalid member declaration in template class

2008-01-20 Thread paolo at gcc dot gnu dot org
--- Comment #3 from paolo at gcc dot gnu dot org 2008-01-21 01:50 --- Subject: Bug 34776 Author: paolo Date: Mon Jan 21 01:49:29 2008 New Revision: 131686 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131686 Log: /cp 2008-01-20 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one

2008-01-20 Thread manu at gcc dot gnu dot org
--- Comment #22 from manu at gcc dot gnu dot org 2008-01-21 01:10 --- "make check" failing is expected since there is undefined behaviour in the program and we warn about it with -Wstrict-overflow=5 (I guess that we warn with lower values as well, probably simply with -Wstrict-overflow).

[Bug c/32102] -Wall stomps on -Wstrict-overflow

2008-01-20 Thread manu at gcc dot gnu dot org
--- Comment #9 from manu at gcc dot gnu dot org 2008-01-21 01:10 --- *** Bug 34841 has been marked as a duplicate of this bug. *** -- manu at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/34150] ICE: output_operand: invalid expression as operand on hppa

2008-01-20 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #8 from dave at hiauly1 dot hia dot nrc dot ca 2008-01-21 00:27 --- Subject: Re: ICE: output_operand: invalid expression as operand on hppa > (gdb) p debug_rtx (insn) > (code_label/s 1897 4221 1898 13722 ("*.LJpc=819954") [0 uses]) We are losing usage counts in re

[Bug rtl-optimization/34808] [4.3 Regression] ICE in prescan_insns_for_dce

2008-01-20 Thread kkojima at gcc dot gnu dot org
--- Comment #10 from kkojima at gcc dot gnu dot org 2008-01-21 00:12 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug rtl-optimization/34808] [4.3 Regression] ICE in prescan_insns_for_dce

2008-01-20 Thread kkojima at gcc dot gnu dot org
--- Comment #9 from kkojima at gcc dot gnu dot org 2008-01-21 00:05 --- Subject: Bug 34808 Author: kkojima Date: Mon Jan 21 00:04:23 2008 New Revision: 131680 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131680 Log: PR rtl-optimization/34808 * emit-rtl.c (try_s

[Bug target/33034] FAIL: gcc.c-torture/unsorted/DFcmp.c & SFset.c: internal compiler error: in extract_insn, at recog.c:2077

2008-01-20 Thread debian-gcc at lists dot debian dot org
--- Comment #4 from debian-gcc at lists dot debian dot org 2008-01-20 23:57 --- seen as well with a sparc-linux-gnu compiler with -m64 (patched for a biarch build ) with trunk 20080116 Matthias -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33034

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #17 from zadeck at naturalbridge dot com 2008-01-20 23:27 --- Subject: Re: [4.3 Regression] gfortran.dg/array_constructor_9.f90 steven at gcc dot gnu dot org wrote: > --- Comment #16 from steven at gcc dot gnu dot org 2008-01-20 23:22 > --- > I favor blowing away

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread steven at gcc dot gnu dot org
--- Comment #16 from steven at gcc dot gnu dot org 2008-01-20 23:22 --- I favor blowing away the RD patch. Having the LR problem (and probably the LIVE problem too?) always propagate the REG_EQ* notes as if they were real uses sounds like a terrible idea to me. They are not real uses a

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #15 from zadeck at naturalbridge dot com 2008-01-20 23:15 --- There appears to be an design inconsistency in the way that we have specified the various dataflow problems with respect to the eq notes. I hate eq notes. In the rd patch that just went in where we trim the so

[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one

2008-01-20 Thread sergstesh at yahoo dot com
--- Comment #21 from sergstesh at yahoo dot com 2008-01-20 22:30 --- Now that the flags are in this order: -Wall -Wstrict-overflow=5 : a) the warnings during compilation: " [EMAIL PROTECTED]:/mnt/sda8/sergei/gcc4.2.x-O2_bug/gcc-4.2.2-O2/libsndfile-1.0.17> grep warn make.log lpc.c:220:

[Bug c++/34893] Strangeness of name lookup in template function

2008-01-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-20 22:30 --- *** This bug has been marked as a duplicate of 34886 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/34886] Strangeness of name lookup in template function

2008-01-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-01-20 22:30 --- *** Bug 34893 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34886

[Bug preprocessor/34695] Preprocessor warning->error conversion from -Werror is silent

2008-01-20 Thread ed at catmur dot co dot uk
--- Comment #5 from ed at catmur dot co dot uk 2008-01-20 22:28 --- Created an attachment (id=14981) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14981&action=view) gcc-cpp-Werror-message.patch -- ed at catmur dot co dot uk changed: What|Removed

[Bug preprocessor/34695] Preprocessor warning->error conversion from -Werror is silent

2008-01-20 Thread ed at catmur dot co dot uk
--- Comment #4 from ed at catmur dot co dot uk 2008-01-20 22:20 --- Created an attachment (id=14980) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14980&action=view) gcc-cpp-Werror-message.patch Also when preprocessing-only. -- ed at catmur dot co dot uk changed: W

[Bug libfortran/34887] reverse tabbing before slash descriptor (regression vs. g77)

2008-01-20 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2008-01-20 22:19 --- > - next_record (dtp, 0); > + next_record (dtp, 1); This causes a regression in x_slash_1.f . I'll dig around some more. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34887

[Bug c++/34893] New: Strangeness of name lookup in template function

2008-01-20 Thread rvovsd at mail dot ru
On compiling that code: --- begin code --- class Y {}; void f(Y*) { } // line 3. If comment - all ok template < typename T> void sel(T* a) { f(a); } //line 6 void f(void*) {} int main(int argc, char **argv) { sel((void*)0); //line 12 } --- end code --- Àppears error: ../main.cpp: In f

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Component|fortran |middle-end Target Milestone|--- |4.3.0 ht

[Bug c++/34886] Strangeness of name lookup in template function

2008-01-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-20 21:55 --- GCC is correct here. Well partly. It should reject it no matter what. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34886

[Bug libfortran/34887] reverse tabbing before slash descriptor (regression vs. g77)

2008-01-20 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2008-01-20 21:40 --- (currently regtesting) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34887

[Bug c++/34892] [4.3 regression] ICE with ellipsis in default template argument

2008-01-20 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34892

[Bug c++/34892] New: [4.3 regression] ICE with ellipsis in default template argument

2008-01-20 Thread reichelt at gcc dot gnu dot org
The following invalid testcase triggers an ICE on mainline: == template struct A {}; A<0> a; == bug.cc:1: error: expected primary-expression before '...' token bug.cc:3: internal compiler erro

[Bug libfortran/34887] reverse tabbing before slash descriptor (regression vs. g77)

2008-01-20 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-01-20 21:39 --- What about this one-character patch? Index: transfer.c === --- transfer.c (revision 131679) +++ transfer.c (working copy) @@ -1308,7 +1308,7 @@ forma

[Bug c++/34891] [4.1/4.2/4.3 regression] Broken diagnostic: 'view_convert_expr' not supported by dump_expr

2008-01-20 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34891

[Bug c++/34891] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'view_convert_expr' not supported by dump_expr

2008-01-20 Thread reichelt at gcc dot gnu dot org
A broken diagnostic ('view_convert_expr' not supported by dump_expr) is issued for the following testcase since GCC 4.0.2: == typedef float v4f __attribute__((vector_size(8))); typedef int v4i __attribute__((vector_size(8))); void foo() { v4

[Bug c/34890] Error compiling global.c in 01/18/08 snapshot under Debian Linux 4.0 for mips

2008-01-20 Thread tbm at gcc dot gnu dot org
--- Comment #2 from tbm at gcc dot gnu dot org 2008-01-20 21:21 --- Fixed in SVN by Richard. -- tbm at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug c/34890] Error compiling global.c in 01/18/08 snapshot under Debian Linux 4.0 for mips

2008-01-20 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2008-01-20 21:20 --- This was fixed in SVN today, see http://gcc.gnu.org/ml/gcc/2008-01/msg00308.html -- tbm at cyrius dot com changed: What|Removed |Added --

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #38 from dominiq at lps dot ens dot fr 2008-01-20 20:47 --- With patch form comments #11 and #31, the executable for gcc.dg/struct/wo_prof_mult_field_peeling.c segfault with -m64. I have used the 32 bit mode for -fprofile-generate, run the executable, and use -m64 for -fprofi

[Bug c/34890] New: Error compiling global.c in 01/18/08 snapshot under Debian Linux 4.0 for mips

2008-01-20 Thread michael dot a dot richmond at nasa dot gov
When I attempt to compile the 01/18/08 snapshot under Debian Linux 4.0 for mips I get the following message: /home/mrichmon/gcc-4.3-20080118/g95/./prev-gcc/xgcc -B/home/mrichmon/gcc-4.3-20080118/g95/./prev-gcc/ -B/home/mrichmon/irun/mips-unknown-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwri

[Bug c++/33984] [4.2/4.3 Regression] bit-fields, references and overloads

2008-01-20 Thread mark at codesourcery dot com
--- Comment #6 from mark at codesourcery dot com 2008-01-20 20:28 --- Subject: Re: [4.2/4.3 Regression] bit-fields, references and overloads aoliva at gcc dot gnu dot org wrote: > --- Comment #5 from aoliva at gcc dot gnu dot org 2008-01-17 18:01 > --- > Created an attachmen

[Bug libfortran/34887] reverse tabbing before slash descriptor (regression vs. g77)

2008-01-20 Thread tkoenig at gcc dot gnu dot org
--- Comment #1 from tkoenig at gcc dot gnu dot org 2008-01-20 20:18 --- Reduced test case: $ cat bug-4.f program main write (*,'(3X A, T1, A,/)') 'aa', 'bb' end $ gfortran bug-4.f && ./a.out bb $ g77 bug-4.f && ./a.out bb aa -- tkoenig at gcc dot gnu dot org chang

[Bug c++/23257] Incorrect exception-handling behavior with references

2008-01-20 Thread mmitchel at gcc dot gnu dot org
--- Comment #5 from mmitchel at gcc dot gnu dot org 2008-01-20 20:13 --- This is a known bug in the Itanium C++ ABI. ARM noticed this; there variant of the C++ ABI has the additional is_reference parameter precisely to correctly handle this case. I looked at this in some detail at one

[Bug testsuite/34889] gcc.c-torture/execute/builtins/pr23484-chk.c fails on 16 bit integer platforms

2008-01-20 Thread pmarques at grupopie dot com
--- Comment #1 from pmarques at grupopie dot com 2008-01-20 19:39 --- Created an attachment (id=14979) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14979&action=view) the attached patch implements the proposed change -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34889

[Bug testsuite/34889] New: gcc.c-torture/execute/builtins/pr23484-chk.c fails on 16 bit integer platforms

2008-01-20 Thread pmarques at grupopie dot com
gcc.c-torture/execute/builtins/pr23484-chk.c has on line 44: if (snprintf (buf, l1 ? sizeof (buf) : 4, "%d", l1 + 65536) != 5 || memcmp (buf, "655\0", 8)) but on a 16 bit platform like the avr, the "l1 + 65536" overflows and gives the wrong result. Changing that to: if (snprintf (b

[Bug target/27192] call through function pointer goes to wrong address

2008-01-20 Thread wvangulik at xs4all dot nl
--- Comment #6 from wvangulik at xs4all dot nl 2008-01-20 19:30 --- Bug is still present in 4.2.2. Some more info: I rewrote the example to (atleast for me) little more clear example. struct fseqp_void { void (*p) (void); char *e; }; struct fseqp_void c; void bar (void){} i

[Bug middle-end/34725] [4.3 regression] gcc 4.3-rev 131213 miscompiles libgcrypt 1.4.0 at -O2 -mtune=i686 -fomit-frame-pointer

2008-01-20 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2008-01-20 19:26 --- It fails even with gcc 4.1.2 and the same CFLAGS, and the problem is just buggy inline assembly. Following patch cures this for me: --- hwfeatures.c.xx 2007-12-05 12:03:33.0 +0100 +++ hwfeatures.c20

[Bug target/34888] New: Stack patterns for AVR not optimal

2008-01-20 Thread hutchinsonandy at aim dot com
There are several instruction patterns related to stack pointer operations. These are not quite right: 1) popqi and poph1 patterns use post_inc codes - when in fact there are pre_inc - this could fail if gcc ever used them outside prolog/epilog 2) Stack moves such as push/pop should be placed be

[Bug fortran/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #14 from zadeck at naturalbridge dot com 2008-01-20 18:30 --- confirmed on my machine, i will have my best people work on it. kenny -- zadeck at naturalbridge dot com changed: What|Removed |Added --

[Bug fortran/34876] can't read zero length array sections

2008-01-20 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-01-20 18:10 --- In the failing case, we have no stride: Breakpoint 1, gfc_walk_subexpr (ss=0xfc2de0, expr=0x106f6b0) at ../../gcc43/gcc/fortran/trans-array.c:5609 (gdb) p *expr->ref snip > stride = {0x0, 0x0, 0x0,

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #37 from dominiq at lps dot ens dot fr 2008-01-20 18:09 --- (In reply to comment #36) > ... And, if I understand correctly the comment #32, with 64 bits mode it does > fails with wo_prof_mult_fields_peeling.c. Please fix me if I am wrong. Yes, you are right. I did not look c

[Bug libfortran/34887] New: NIST FM903.f anomaly

2008-01-20 Thread jvdelisle at gcc dot gnu dot org
We are computing the correct result for test 8 of FM903.f, but one of the "Correct" answers is truncated. Both are truncated in 4.2 and my last patch gives this. With FM903.f gfortran: COMPUTED= 12.34506.78 120.34 506.78 123.40 567.80

[Bug fortran/34854] Valid USE statement is rejected

2008-01-20 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2008-01-20 17:07 --- Fixed on trunk - thanks for the report. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/34861] ICE in function with entry (and result?)

2008-01-20 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2008-01-20 17:07 --- Fixed on trunk - thanks for the report. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-20 Thread olga at gcc dot gnu dot org
--- Comment #36 from olga at gcc dot gnu dot org 2008-01-20 17:03 --- (In reply to comment #35) > Note that the test gcc.dg/struct/wo_prof_mult_field_peeling.c pass for 32 and > 64 bit modes on i686-apple-darwin9, so I am not sure that what follows will > help. Sorry, I meant compiling

[Bug fortran/34872] [4.3 Regression] Spurious error in snapshot of 01/18/08: Statement at (1) is not a valid branch target statement for the branch statement at (2)

2008-01-20 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34872

[Bug fortran/34858] [4.3 Regression] ICE on invalid depending of the length of the source name

2008-01-20 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34858

[Bug fortran/34848] [4.3 Regression] internal compiler error with optional argument of character type and array return type

2008-01-20 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34848

[Bug fortran/34784] [4.2/4.3 Regression] implicit character(s) hides type of selected_int_kind intrinsic

2008-01-20 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2008-01-20 16:59 --- Subject: Bug 34784 Author: pault Date: Sun Jan 20 16:58:15 2008 New Revision: 131679 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131679 Log: 2008-01-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug fortran/34854] Valid USE statement is rejected

2008-01-20 Thread pault at gcc dot gnu dot org
--- Comment #1 from pault at gcc dot gnu dot org 2008-01-20 16:59 --- Subject: Bug 34854 Author: pault Date: Sun Jan 20 16:58:15 2008 New Revision: 131679 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131679 Log: 2008-01-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug fortran/34861] ICE in function with entry (and result?)

2008-01-20 Thread pault at gcc dot gnu dot org
--- Comment #5 from pault at gcc dot gnu dot org 2008-01-20 16:59 --- Subject: Bug 34861 Author: pault Date: Sun Jan 20 16:58:15 2008 New Revision: 131679 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131679 Log: 2008-01-20 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug middle-end/34852] [4.3 Regression] Revision 131576 miscompiled 178.galgel

2008-01-20 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2008-01-20 16:43 --- Oops. This one --- regmove.c.freq 2008-01-17 07:31:56.0 -0800 +++ regmove.c 2008-01-20 08:42:42.0 -0800 @@ -1695,7 +1695,7 @@ fixup_match_1 (rtx insn, rtx set, rtx sr rtx p; rtx post_inc

[Bug middle-end/34852] [4.3 Regression] Revision 131576 miscompiled 178.galgel

2008-01-20 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2008-01-20 16:42 --- Does this patch make any senses? --- regmove.c.freq 2008-01-17 07:31:56.0 -0800 +++ regmove.c 2008-01-20 08:40:34.0 -0800 @@ -1695,7 +1695,7 @@ fixup_match_1 (rtx insn, rtx set, rtx sr rtx

[Bug middle-end/34852] [4.3 Regression] Revision 131576 miscompiled 178.galgel

2008-01-20 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2008-01-20 16:34 --- Should we also update REG_FREQ_CALLS_CROSSED whenever REG_N_CALLS_CROSSED is updated? In regmove.c, there are delete_insn (q); INC_REG_N_SETS (REGNO (src), -1); REG_N_CALLS_

[Bug tree-optimization/34472] [4.3 Regression] gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #11 from zadeck at naturalbridge dot com 2008-01-20 16:34 --- Subject: Re: [4.3 Regression] gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work olga at gcc dot gnu dot org wrote: > --- Comment #10 from olga at gcc dot gnu dot org 2008-01-20 16:28 --- > (In reply

[Bug c++/34886] New: Strangeness of name lookup in template function

2008-01-20 Thread rvovsd at mail dot ru
On compiling that code: --- begin code --- class Y {}; void f(Y*) { } // line 3. If comment - all ok template < typename T> void sel(T* a) { f(a); } //line 6 void f(void*) {} int main(int argc, char **argv) { sel((void*)0); //line 12 } --- end code --- Àppears error: ../main.cpp: In f

[Bug tree-optimization/34472] [4.3 Regression] gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work

2008-01-20 Thread olga at gcc dot gnu dot org
--- Comment #10 from olga at gcc dot gnu dot org 2008-01-20 16:28 --- (In reply to comment #9) > olga, > even if the test case does not normally ice on your system, you be able to see > the bug if you run the test with valgrind. Kenny, Thank you a lot for information. I was not aware

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-20 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2008-01-20 16:06 --- (In reply to comment #7) > (In reply to comment #6) > > > Sorry, I don't have any of those trees left. But if I ever come to > > revisit those two bugs I'll make sure it fixes this bogus warning. > > If you can give

[Bug fortran/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread hjl dot tools at gmail dot com
--- Comment #13 from hjl dot tools at gmail dot com 2008-01-20 15:57 --- It happens for me on Linux/Intel64 with -m32: http://gcc.gnu.org/ml/gcc-testresults/2008-01/msg00907.html My configuration is configure flags: --enable-clocale=gnu --with-system-zlib --enable-decimal-float=bid -

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #12 from zadeck at naturalbridge dot com 2008-01-20 15:52 --- Subject: Re: [4.3 Regression] gfortran.dg/array_constructor_9.f90 dominiq at lps dot ens dot fr wrote: > --- Comment #11 from dominiq at lps dot ens dot fr 2008-01-20 15:47 > --- > I have put the resul

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #11 from dominiq at lps dot ens dot fr 2008-01-20 15:47 --- I have put the results of the compilation with -da with the patch at http://www.lps.ens.fr/~dominiq/gcc/tmp_fresh.tar.bz2 All the files will be in a directory tmp_fresh. Do you still need the same without the patc

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #10 from zadeck at naturalbridge dot com 2008-01-20 15:39 --- Subject: Re: [4.3 Regression] gfortran.dg/array_constructor_9.f90 dominiq at lps dot ens dot fr wrote: > --- Comment #9 from dominiq at lps dot ens dot fr 2008-01-20 15:30 > --- > >> you are buildin

[Bug fortran/34848] [4.3 Regression] internal compiler error with optional argument of character type and array return type

2008-01-20 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2008-01-20 15:36 --- Created an attachment (id=14978) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14978&action=view) First draft of the patch The patch works for the test case, but it fails for auto_char_dummy_array_1.f90 (ICE) a

[Bug middle-end/34852] [4.3 Regression] Revision 131576 miscompiled 178.galgel

2008-01-20 Thread ubizjak at gmail dot com
--- Comment #4 from ubizjak at gmail dot com 2008-01-20 15:34 --- (In reply to comment #3) > Double checking patch, I don't see obvious mistakes. Since the patch should > only affect register allocation decisions, either we see a latent bug, or > another example of x86 extra precision c

[Bug testsuite/34878] fast-math-pr33299.f90 failure with illegal instruction due to -ffast-math.

2008-01-20 Thread ubizjak at gmail dot com
--- Comment #4 from ubizjak at gmail dot com 2008-01-20 15:34 --- (In reply to comment #3) > There is the issue, the testcase should be not run on your computer as it is > using SSE2. So this is a testsuite issue. Please look at gcc.dg/vect/ how this should be done. There is a check_ve

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #9 from dominiq at lps dot ens dot fr 2008-01-20 15:30 --- > you are building on a mac "darwin" box Yes indeed, but the bug is also present for i686-pc-linux-gnu, see for instance: http://gcc.gnu.org/ml/gcc-testresults/2008-01/msg00914.html -- http://gcc.gnu.org/bugzil

[Bug tree-optimization/34472] [4.3 Regression] gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #9 from zadeck at naturalbridge dot com 2008-01-20 15:29 --- olga, even if the test case does not normally ice on your system, you be able to see the bug if you run the test with valgrind. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34472

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #8 from zadeck at naturalbridge dot com 2008-01-20 15:24 --- Subject: Re: [4.3 Regression] gfortran.dg/array_constructor_9.f90 dominiq at lps dot ens dot fr wrote: > --- Comment #7 from dominiq at lps dot ens dot fr 2008-01-20 14:39 > --- > >> I need a more in

[Bug tree-optimization/34472] [4.3 Regression] gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work

2008-01-20 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2008-01-20 15:21 --- (In reply to comment #6) > Confirmed on x86_64-unknown-linux-gnu. It fails only with --enable-checkgin=assert, as is the case in http://gcc.gnu.org/ml/gcc-testresults/2008-01/msg00695.html -- http://gcc.gnu.org/bugzi

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-20 Thread j at uriah dot heep dot sax dot de
--- Comment #7 from j at uriah dot heep dot sax dot de 2008-01-20 15:21 --- (In reply to comment #6) > Sorry, I don't have any of those trees left. But if I ever come to > revisit those two bugs I'll make sure it fixes this bogus warning. If you can give me some hints about where to

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #35 from dominiq at lps dot ens dot fr 2008-01-20 15:16 --- Note that the test gcc.dg/struct/wo_prof_mult_field_peeling.c pass for 32 and 64 bit modes on i686-apple-darwin9, so I am not sure that what follows will help. For the code in comment #34 the assembly code is: [ibo

[Bug fortran/34858] [4.3 Regression] ICE on invalid depending of the length of the source name

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #5 from dominiq at lps dot ens dot fr 2008-01-20 14:56 --- I am trying to proceed backward. I have reached the following point: Breakpoint 8, gfc_parse_file () at ../../gcc-4.3-work/gcc/fortran/parse.c:3460 3460{ (gdb) s gfc_parse_file () at ../../gcc-4.3-work/gcc/fortr

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread dominiq at lps dot ens dot fr
--- Comment #7 from dominiq at lps dot ens dot fr 2008-01-20 14:39 --- > I need a more info to reproduce this bug. I have tried to give all the info I have been able to gather on my own. My config is: Configured with: ../gcc-4.3-work/configure --prefix=/opt/gcc/gcc4.3w --mandir=/opt/gc

[Bug fortran/34848] [4.3 Regression] internal compiler error with optional argument of character type and array return type

2008-01-20 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-01-20 14:34 --- I have a patch. Actually, I do not understand why it worked before. -- burnus at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/34884] [4.3 Regression] gfortran.dg/array_constructor_9.f90

2008-01-20 Thread zadeck at naturalbridge dot com
--- Comment #6 from zadeck at naturalbridge dot com 2008-01-20 13:53 --- I need a more info to reproduce this bug. I bootstrapped and regression tested on x86_64-unknown-linux-gnu with suse 10.3 and using --enable-languages=c,c++,fortran --disable-multilib before committing the patch

[Bug fortran/34848] [4.3 Regression] internal compiler error with optional argument of character type and array return type

2008-01-20 Thread krefson at googlemail dot com
--- Comment #4 from krefson at googlemail dot com 2008-01-20 13:53 --- (In reply to comment #3) > (In reply to comment #2) > > It's a regression - and I might be guilty of it with my Bind(C) patches... > > Well, if it's a regression, there's a bigger chance for it to > be fixed before 4

[Bug c/32102] -Wall stomps on -Wstrict-overflow

2008-01-20 Thread manu at gcc dot gnu dot org
--- Comment #8 from manu at gcc dot gnu dot org 2008-01-20 13:38 --- (In reply to comment #2) > I think that having -Wall clobber -Wstrict-overflow in this way is confusing. > This isn't reversing the setting of the option, it's changing its level. > Ian, should the above testcase act

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-20 Thread olga at gcc dot gnu dot org
--- Comment #34 from olga at gcc dot gnu dot org 2008-01-20 13:28 --- Dave, Dominique, As I have no such execution failures on any one of machines, would you please help me debugging the execution failures? I am actually need the place where it fails and assembly files. The most conven

  1   2   >