[Bug c/40251] New: Using the -V option makes the compiler to exit with 0 exit code on error

2009-05-26 Thread zoltan at bendor dot com dot au
If a file has errors and gcc gets the -V X.X.X command line option, then the exit code is 0. The following illustrates it: [zoltan manocska]~arm-elf-gcc --version arm-elf-gcc (GCC) 4.4.0 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying

[Bug middle-end/40252] New: Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread bradh at frogmouth dot net
[br...@conferta source4]$ /opt/gccsvn/bin/gcc -v -save-temps -g -DDEBUG_PASSWORD -DDEVELOPER -Wall -Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-format-attribute -Wformat=2 -Wdeclaration-after-statement

[Bug middle-end/40252] Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread bradh at frogmouth dot net
--- Comment #1 from bradh at frogmouth dot net 2009-05-26 06:48 --- Created an attachment (id=17916) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17916action=view) .i for bug40252 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40252

[Bug c/40253] New: label emitted for debug has no reference?

2009-05-26 Thread marcus at jet dot franken dot de
extracted from Wine /home/marcus/projects/gcc.trunk/BIN/bin/gcc -c -O2 -g typelib.i -m32 /tmp/cc23hzJL.s: Assembler messages: /tmp/cc23hzJL.s:299: Error: can't resolve `.LFE8' {*UND* section} - `.Ltext0' {.text section} The -m32 (build for x86) is necessary. -- Summary: label

[Bug c/40253] label emitted for debug has no reference?

2009-05-26 Thread marcus at jet dot franken dot de
--- Comment #1 from marcus at jet dot franken dot de 2009-05-26 07:11 --- Created an attachment (id=17917) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17917action=view) typelib.i gcc -m32 -g -O3 typelib.i reduced testcase ... further reduction seems to remove the problem :/

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-26 08:32 --- The following patch to gfc_match_nullify fixes it; however, I think one should additionally add gfc_free_expr (new_st.expr1); new_st.expr1 = NULL; gfc_free_expr (new_st.expr2); new_st.expr2 = NULL; to

[Bug testsuite/40247] [4.5 Regression] Revision 147848 failed gcc.dg/struct/wo_prof_escape_substr_pointer.c

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-26 08:41 --- It's just optimized to nothing. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40244] [4.5 Regression] Revision147829 caused extra failures

2009-05-26 Thread irar at il dot ibm dot com
--- Comment #1 from irar at il dot ibm dot com 2009-05-26 08:58 --- (In reply to comment #0) On Linux/ia64, revision 147829: http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00806.html caused: FAIL: Matrix4f -O3 compilation from source Could you please provide some information, it doesn't

[Bug fortran/27613] compile fails with Unclassifiable statement error message

2009-05-26 Thread theresa dot adelt at greselius dot net
--- Comment #13 from theresa dot adelt at greselius dot net 2009-05-26 09:00 --- Subject: Re: compile fails with Unclassifiable statement error mess Hello! Thank you so much for answering. But I think this is not the problem. I added the '', but thereupon appeared a syntax error.

[Bug target/40249] [4.5 Regression]: build breakage with inline heuristics change

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-26 09:06 --- -fno-inline-functions should probably be -fno-inline. -f[no-]inline-functions is semantically a no-op (it just tunes some params). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40249

[Bug middle-end/40252] Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-26 09:09 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/40253] [4.5 Regression] label emitted for debug has no reference?

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-26 09:11 --- Sounds similar to PR40249. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40252] Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-26 09:12 --- Reduced testcase: typedef unsigned int uint32_t; static void IP(uint32_t v[2]) { v[0] = ((v[0] 1) | ((v[0] 31) 1L)) 0xL; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40252

[Bug fortran/27613] compile fails with Unclassifiable statement error message

2009-05-26 Thread tobi at gcc dot gnu dot org
--- Comment #14 from tobi at gcc dot gnu dot org 2009-05-26 09:38 --- - you're lacking a comma before the place I asked you to add an ampersand, sorry I missed that - g95 is not gfortran - please direct beginner's questions somewhere more appropriate --

[Bug testsuite/40247] [4.5 Regression] Revision 147848 failed gcc.dg/struct/wo_prof_escape_substr_pointer.c

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-26 09:41 --- Subject: Bug 40247 Author: rguenth Date: Tue May 26 09:41:29 2009 New Revision: 147864 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147864 Log: 2009-05-26 Richard Guenther rguent...@suse.de PR

[Bug testsuite/40247] [4.5 Regression] Revision 147848 failed gcc.dg/struct/wo_prof_escape_substr_pointer.c

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-26 09:41 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/40254] New: [4.5 Regression] SPEC2006 403.gcc miscompares

2009-05-26 Thread rguenth at gcc dot gnu dot org
rev. 147829 (SLP vectorization) causes 403.gcc to miscompare when built with -O3 -funroll-loops -fpeel-loops -ffast-math -march=native on x86_64 AMD K8 and K10. -- Summary: [4.5 Regression] SPEC2006 403.gcc miscompares Product: gcc Version: 4.5.0

[Bug tree-optimization/40254] [4.5 Regression] SPEC2006 403.gcc miscompares

2009-05-26 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40254

[Bug tree-optimization/32044] [4.3 Regression] final value replacement too aggressive for e.g. targets with no native div/mod insns

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #70 from rguenth at gcc dot gnu dot org 2009-05-26 10:17 --- Subject: Bug 32044 Author: rguenth Date: Tue May 26 10:17:19 2009 New Revision: 147865 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147865 Log: 2009-05-26 Richard Guenther rguent...@suse.de

[Bug tree-optimization/32044] [4.3 Regression] final value replacement too aggressive for e.g. targets with no native div/mod insns

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #71 from rguenth at gcc dot gnu dot org 2009-05-26 10:17 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-26 Thread dodji at gcc dot gnu dot org
--- Comment #7 from dodji at gcc dot gnu dot org 2009-05-26 10:35 --- Subject: Bug 40007 Author: dodji Date: Tue May 26 10:35:16 2009 New Revision: 147866 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147866 Log: Fix PR c++/40007 gcc/cp/ChangeLog: PR c++/40007

[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-26 Thread dodji at gcc dot gnu dot org
--- Comment #8 from dodji at gcc dot gnu dot org 2009-05-26 10:36 --- Fixed in trunk. -- dodji at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/40249] [4.5 Regression]: build breakage with inline heuristics change

2009-05-26 Thread hp at gcc dot gnu dot org
--- Comment #5 from hp at gcc dot gnu dot org 2009-05-26 10:56 --- (In reply to comment #4) -fno-inline-functions should probably be -fno-inline. -f[no-]inline-functions is semantically a no-op (it just tunes some params). Thanks! Superficial testing (adding that option, diffing

[Bug c/40255] New: internal compiler error: in root_var_init, at tree-ssa-live.c:1034

2009-05-26 Thread sliwa at cft dot edu dot pl
When compiling the Cuba library from http://www.feynarts.de/cuba/ version 1.6 with gcc 4.2.4 I get: ./src/divonne/Explore.c: In function 'Explore': ./src/divonne/Explore.c:17: internal compiler error: in root_var_init, at tree-ssa-live.c:1034 The problem is specific to gcc 4.2.4 (it does not

[Bug c/40255] internal compiler error: in root_var_init, at tree-ssa-live.c:1034

2009-05-26 Thread sliwa at cft dot edu dot pl
--- Comment #1 from sliwa at cft dot edu dot pl 2009-05-26 11:08 --- Created an attachment (id=17918) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17918action=view) Divonne_preprocessed.c Compiler input that causes the internal error. --

[Bug middle-end/40248] FAIL: gcc.c-torture/compile/20090518-1.c at -O1 and above

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-26 11:34 --- Interesting. On x86_64 we generate (insn 6 5 7 3 20090518-1.c:3 (set (reg:CCZ 17 flags) (compare:CCZ (reg/v:SI 61 [ i ]) (const_int 42 [0x2a]))) -1 (nil)) (insn 7 6 8 3 20090518-1.c:3 (set

[Bug c++/40256] New: Explicit function template call doesn't trigger Koenig lookup when it should

2009-05-26 Thread rodolfo at rodsoft dot org
14.8.1/6 says: But when a function template with explicit template arguments is used, the call does not have the correct syntactic form unless there is a function template with that name visible at the point of the call. If no such name is visible, the call is not syntactically well-formed and

[Bug middle-end/40252] Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-26 11:38 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/40252] Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-05-26 11:38 --- Subject: Bug 40252 Author: rguenth Date: Tue May 26 11:38:03 2009 New Revision: 147867 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147867 Log: 2009-05-26 Richard Guenther rguent...@suse.de PR

[Bug middle-end/40252] Internal compiler error on samba4 (verify_gimple failed)

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-05-26 11:41 --- Subject: Bug 40252 Author: rguenth Date: Tue May 26 11:41:34 2009 New Revision: 147868 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147868 Log: 2009-05-26 Richard Guenther rguent...@suse.de PR

[Bug middle-end/40248] FAIL: gcc.c-torture/compile/20090518-1.c at -O1 and above

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-26 11:55 --- I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/40101] [4.5 Regression] 200.sixtrack ICEs in get_seqno_by_preds, at sel-sched-ir.c:3752

2009-05-26 Thread abel at gcc dot gnu dot org
--- Comment #3 from abel at gcc dot gnu dot org 2009-05-26 12:19 --- I have further looked at seqno handling, and it seems that we can't rip it off without changing the region walking logic pretty much. Seqnos are computed in such a way that they mark the stage (the number of iteration

[Bug c++/40256] Explicit function template call doesn't trigger Koenig lookup when it should

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-26 12:21 --- This is fixed in 4.4.0. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/40255] internal compiler error: in root_var_init, at tree-ssa-live.c:1034

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-26 12:22 --- The GCC 4.2 series is no longer maintained. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40245] [4.5 Regression] Revision 147829 breaks SPEC CPU 2K/2006 at -O3

2009-05-26 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-05-26 13:12 --- As of revision 147844, the only remaining failure on Linux/x86-64 is 403.gcc in SPE CPU 2006: Running 403.gcc ref base o3 default 403.gcc: copy #0 non-zero return code (rc=1, signal=0)

[Bug tree-optimization/40254] [4.5 Regression] SPEC2006 403.gcc miscompares

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-26 13:36 --- *** Bug 40245 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40245] [4.5 Regression] Revision 147829 breaks SPEC CPU 2K/2006 at -O3

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-26 13:36 --- *** This bug has been marked as a duplicate of 40254 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug testsuite/40050] plugin tests don't work with multilib

2009-05-26 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2009-05-26 13:58 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug middle-end/40248] FAIL: gcc.c-torture/compile/20090518-1.c at -O1 and above

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-26 14:18 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/40248] FAIL: gcc.c-torture/compile/20090518-1.c at -O1 and above

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-26 14:18 --- Subject: Bug 40248 Author: rguenth Date: Tue May 26 14:17:38 2009 New Revision: 147874 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147874 Log: 2009-05-26 Richard Guenther rguent...@suse.de PR

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2009-05-26 14:18 --- (In reply to comment #1) The following patch to gfc_match_nullify fixes it; however, I think one should additionally add gfc_free_expr (new_st.expr1); new_st.expr1 = NULL; gfc_free_expr (new_st.expr2);

[Bug middle-end/40257] New: [4.5 Regression] Revision 147852 miscompiled 252.eon in SPEC CPU 2K

2009-05-26 Thread hjl dot tools at gmail dot com
On Linux/ia32, revision 147852 http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00829.html miscompiled 252.eon in SPEC CPU 2K at -O2: Running Benchmarks Running 252.eon ref base o2x87 default *** Miscompare of pixels_out.kajiya, see

[Bug tree-optimization/40254] [4.5 Regression] SPEC2006 403.gcc miscompares

2009-05-26 Thread rguenther at suse dot de
--- Comment #3 from rguenther at suse dot de 2009-05-26 14:36 --- Subject: Re: [4.5 Regression] SPEC2006 403.gcc miscompares On Tue, 26 May 2009, pinskia at gcc dot gnu dot org wrote: --- Comment #2 from pinskia at gcc dot gnu dot org 2009-05-26 14:34 --- Does

[Bug middle-end/40259] New: Unintended code in find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c)?

2009-05-26 Thread sergei_lus at yahoo dot com
The code for find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c) used to be (in 4.3.2) this: lhs = GIMPLE_STMT_OPERAND (stmt, 0); if (TREE_CODE (lhs) != SSA_NAME) return false; if (!simple_iv (loop, stmt, GIMPLE_STMT_OPERAND (stmt, 1), iv, true)) return false; ...which has

[Bug libstdc++/40258] void has no trivial destructor

2009-05-26 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-05-26 15:46 --- According to n2857, the predicate is true for trivial types, reference types, class types with a trivial destructor or an array of such class types: void doesn't belong to any of those. -- paolo dot

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-05-26 14:45 --- The following patch to gfc_match_nullify fixes it; however, I think one should additionally add gfc_free_expr (new_st.expr1); gfc_free_expr (new_st.expr2); to prevent a memory leak. AFAICT, there is

[Bug libstdc++/40258] New: void has no trivial destructor

2009-05-26 Thread piotr dot wyderski at gmail dot com
There is a discrepancy between boost:: and std:: type traits. #include boost/type_traits.hpp #include type_traits #include cstdio int main(int argc, char *argv[]) { fprintf(stderr, std::has_trivial_destructorvoid = %i\n, std::has_trivial_destructorvoid::value);

[Bug middle-end/40259] Unintended code in find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c)?

2009-05-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-05-26 15:50 --- It looks more like the code in GCC 4.3 is wrong and should use lhs here. Zdenek? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread kargl at gcc dot gnu dot org
--- Comment #4 from kargl at gcc dot gnu dot org 2009-05-26 15:11 --- (In reply to comment #3) The following patch to gfc_match_nullify fixes it; however, I think one should additionally add gfc_free_expr (new_st.expr1); gfc_free_expr (new_st.expr2); to prevent a

[Bug tree-optimization/40254] [4.5 Regression] SPEC2006 403.gcc miscompares

2009-05-26 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-05-26 14:34 --- Does -fno-strict-aliasing help? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40254

[Bug c++/40260] New: g++ segfaults compiling template code

2009-05-26 Thread tux008 at googlemail dot com
Hello everybody, today, I noticed a bug in gcc 4.4.0. The compiler segfaulted during the compilation process. I also tested the same code with gcc 4.3.3, which works perfectly fine. I narrowed it down to the following test program: template

[Bug c++/40260] g++ segfaults compiling template code

2009-05-26 Thread tux008 at googlemail dot com
--- Comment #1 from tux008 at googlemail dot com 2009-05-26 16:31 --- Created an attachment (id=17919) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17919action=view) precompiled file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40260

[Bug c++/40260] g++ segfaults compiling template code

2009-05-26 Thread tux008 at googlemail dot com
--- Comment #2 from tux008 at googlemail dot com 2009-05-26 16:33 --- Created an attachment (id=17920) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17920action=view) test program which causes gcc 4.4.0 to segfault compiling this test program provokes a segfault of gcc 4.4.0. gcc

[Bug c++/40260] g++ segfaults compiling template code

2009-05-26 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-26 16:37 --- Fixed in 4.4.1 already. *** This bug has been marked as a duplicate of 40013 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40013] [4.4/4.5 Regression] ICE when creating a local array with size from the return value of a member function of an object in a nested class in a template class

2009-05-26 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-05-26 16:37 --- *** Bug 40260 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/39254] [4.4/4.5 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2009-05-26 Thread janis at gcc dot gnu dot org
--- Comment #13 from janis at gcc dot gnu dot org 2009-05-26 16:52 --- I submitted Joern's patch in http://gcc.gnu.org/ml/gcc-patches/2009-04/msg00198.html but it wasn't reviewed. The test still ICEs on trunk and 4.4 branch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39254

[Bug c++/39754] [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248

2009-05-26 Thread dodji at gcc dot gnu dot org
--- Comment #8 from dodji at gcc dot gnu dot org 2009-05-26 16:58 --- A patch was submitted at http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01655.html. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39754

[Bug c++/40261] New: confusing diagnostic on ill-formed template definition

2009-05-26 Thread msebor at gmail dot com
The diagnostic issued for the ill-formed definition of BT::foo() below is quite confusing. EDG eccp issues a better message: template argument list must match the parameter list. $ cat z.cpp gcc -c z.cpp template class struct A { }; template class T, class U = AT struct B: U { void foo (); };

[Bug middle-end/40259] Unintended code in find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c)?

2009-05-26 Thread rakdver at gcc dot gnu dot org
--- Comment #2 from rakdver at gcc dot gnu dot org 2009-05-26 17:50 --- (In reply to comment #1) It looks more like the code in GCC 4.3 is wrong and should use lhs here. Zdenek? simple_iv should return the same result in both cases, so it should not really matter. Is there some

[Bug middle-end/40262] New: Unintended code in find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c)?

2009-05-26 Thread sergei_lus at yahoo dot com
The code for find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c) used to be (in 4.3.2) this: lhs = GIMPLE_STMT_OPERAND (stmt, 0); if (TREE_CODE (lhs) != SSA_NAME) return false; if (!simple_iv (loop, stmt, GIMPLE_STMT_OPERAND (stmt, 1), iv, true)) return false; ...which has

[Bug middle-end/40259] Unintended code in find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c)?

2009-05-26 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-26 18:47 --- *** Bug 40262 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40259

[Bug middle-end/40262] Unintended code in find_givs_in_stmt_scev (gcc/tree-ssa-loop-ivopts.c)?

2009-05-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-26 18:47 --- *** This bug has been marked as a duplicate of 40259 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-26 19:23 --- Subject: Bug 40246 Author: burnus Date: Tue May 26 19:23:45 2009 New Revision: 147879 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147879 Log: 2009-05-26 Tobias Burnus bur...@net-b.de PR

[Bug fortran/34053] -frecursive: No need to use the stack for local variables of the main program

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-26 19:29 --- s/main_program/is_main_program/ CLOSE as WONTFIX. As Andrew pointed out, there are a couple of issues using static memory: 1. The middle end does not optimize static variables that well as it does not know about

[Bug target/40249] [4.5 Regression]: build breakage with inline heuristics change

2009-05-26 Thread hp at gcc dot gnu dot org
--- Comment #6 from hp at gcc dot gnu dot org 2009-05-26 19:30 --- (In reply to comment #4) -fno-inline-functions should probably be -fno-inline. -f[no-]inline-functions is semantically a no-op (it just tunes some params). I've verified that is a fix, but it is counter to the

[Bug fortran/40246] ICE on invalid SOURCE= using NULLIFY

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2009-05-26 19:30 --- Fixed on the trunk (4.5). Thanks Xavier for reporting it! -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39178] Generate main() rather than using a main in libgfortran/fmain.c

2009-05-26 Thread burnus at gcc dot gnu dot org
-- burnus at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot |dot org

[Bug middle-end/40249] [4.5 Regression]: build breakage with inline heuristics change

2009-05-26 Thread hp at gcc dot gnu dot org
--- Comment #7 from hp at gcc dot gnu dot org 2009-05-26 19:44 --- Changing to middle-end. Nothing near target-specific. -- hp at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/40249] [4.5 Regression]: build breakage with inline heuristics change

2009-05-26 Thread hp at gcc dot gnu dot org
-- hp at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |hp at gcc dot gnu dot org |dot org

[Bug c++/33979] support for char16_t, char32_t

2009-05-26 Thread loufoque at gmail dot com
--- Comment #16 from loufoque at gmail dot com 2009-05-26 20:10 --- It seems the current patch makes char16_t and char32_t keywords. According to the linked specifications, however, those should only be typedefs to the actual keywords, which are _Char16_t and _Char32_t. Those typedefs

[Bug c++/33979] support for char16_t, char32_t

2009-05-26 Thread loufoque at gmail dot com
--- Comment #17 from loufoque at gmail dot com 2009-05-26 20:16 --- Ignore my previous comment; it seems that was changed since in the current C++0x draft those are indeed keywords. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33979

[Bug libstdc++/40263] New: random unform real distro: tr1 vs c++0x

2009-05-26 Thread bkoz at gcc dot gnu dot org
Having some problems porting some code between C++0x and TR1. The C++0x version works as expected, but the TR1 uniform_real distribution seems to be returning elements outside the given range. And example: #include string #include iostream #ifdef __GXX_EXPERIMENTAL_CXX0X__ # include functional

[Bug fortran/40264] New: Recursive constraint for specific calling same-named generic procedure

2009-05-26 Thread burnus at gcc dot gnu dot org
Interpretation request tracking bug * * * Found at http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/c05874d85748d9e6 The problem is function f() result(res) res = f(something) where f is both a specific and a generic function and f(something) matches a the different

[Bug fortran/39178] Generate main() rather than using a main in libgfortran/fmain.c

2009-05-26 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-26 21:20 --- Subject: Bug 39178 Author: burnus Date: Tue May 26 21:19:57 2009 New Revision: 147883 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147883 Log: fortran/ 2009-05-26 Tobias Burnus bur...@net-b.de PR

[Bug libstdc++/40263] random unform real distro: tr1 vs c++0x

2009-05-26 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-05-26 21:47 --- I suspect that your usage of the tr1 version doesn't conform to 5.1.1/9, because the tr1 version of uniform_real is really trivial, there isn't much to fix (see also the comment just before the implementation

[Bug target/40265] New: sh2a compiler ICEs in simplify_subreg, at simplify-rtx.c:4960

2009-05-26 Thread kkojima at gcc dot gnu dot org
Newlib build fails during compiling libc/stdlib/ldtoa.c for m2a with internal compiler error: in simplify_subreg, at simplify-rtx.c:4960 A reduced testcase is void foo (unsigned short *x, unsigned short *y) { unsigned short *p = x; *y = 0; if (*p++) *y = 0x8000; } For m2a, movrt

[Bug target/40265] sh2a compiler ICEs in simplify_subreg, at simplify-rtx.c:4960

2009-05-26 Thread kkojima at gcc dot gnu dot org
-- kkojima at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40265

[Bug libfortran/22423] Warnings when building libgfortran

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #20 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 22423 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/38668] advance=no: no buffering, truncate and seek

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 38668 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug fortran/39782] [4.3/4.4 Regression] IO depends on uninitialised value

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #13 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 39782 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/25561] Eventually get rid of the Alloc Stream Facility

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #15 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 25561 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug fortran/39667] I/O possibly unneccesary truncations

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 39667 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/38654] Fortran I/O speedup

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #9 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 38654 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/37754] [4.4 Regression] READ I/O Performance regression from 4.3 to 4.4/4.5

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #17 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 37754 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/39664] [4.5 Regression] Revision 145571 breaks stdio

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #16 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 39664 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/39665] [4.5 Regression] Fortran IO using unaligned accesses to read/write doubles.

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #13 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:22 --- Subject: Bug 39665 Author: jvdelisle Date: Wed May 27 01:21:22 2009 New Revision: 147887 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147887 Log: 2009-05-23 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug libfortran/37754] [4.4 Regression] READ I/O Performance regression from 4.3 to 4.4/4.5

2009-05-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #18 from jvdelisle at gcc dot gnu dot org 2009-05-27 01:47 --- Fixed on 4.4, closing -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/40187] c_f_pointer with stride in SHAPE

2009-05-26 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2009-05-27 05:27 --- Subject: Bug 40187 Author: tkoenig Date: Wed May 27 05:27:31 2009 New Revision: 147894 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=147894 Log: 2009-05-27 Thomas Koenig tkoe...@gcc.gnu.org PR

[Bug c/40266] New: march-native gives -mno-sse4, but cpuinfo sse4_1

2009-05-26 Thread seandarcy2 at gmail dot com
If I run gcc -fverbose-asm -mtune=native -march=native -S x.c I get cat x.s: .file x.c # GNU C (GCC) version 4.4.0 20090506 (Red Hat 4.4.0-4) (x86_64-redhat-linux) # compiled by GNU C version 4.4.0 20090506 (Red Hat 4.4.0-4), GMP version 4.2.4, MPFR version 2.4.1. # GGC heuristics: