[Bug c++/43953] ICE: dependent_type_p, at cp/pt.c:17404

2010-04-30 Thread deligonul at gmail dot com
--- Comment #1 from deligonul at gmail dot com 2010-05-01 06:52 --- Created an attachment (id=20524) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20524&action=view) Temp output from gcc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43953

[Bug c++/43953] New: ICE: dependent_type_p, at cp/pt.c:17404

2010-04-30 Thread deligonul at gmail dot com
The code below causes an ICE in GCC 4.5.0. It compiles fine in GCC 4.4.3. $ g++ -save-temps -o crash crash.cpp crash.cpp: In function ‘int main()’: crash.cpp:23:22: internal compiler error: in dependent_type_p, at cp/pt.c:17404 Please submit a full bug report, ... Output of g++ -v: Using b

[Bug c++/43951] [4.6 Regression] Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|middle-end |c++ Ever Con

[Bug middle-end/43951] [4.6 Regression] Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2010-05-01 03:13 --- A run-time testcase: [...@gnu-34 483.xalancbmk]$ cat x.cc extern "C" void abort (void); class Foo { public: Foo (void) : xxx (1) {}; const int xxx; }; Foo * bar () { return new Foo; } int main () { Foo *p

[Bug middle-end/43951] [4.6 Regression] Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2010-05-01 03:10 --- Here is a testcase: [...@gnu-34 483.xalancbmk]$ cat x.cc class Foo { public: Foo (void); const int xxx; }; Foo * bar () { return new Foo; } [...@gnu-34 483.xalancbmk]$ /export/gnu/import/rrs/158918/usr/bin/g+

[Bug bootstrap/43952] NetBSD _ANSI_H_ vs. _I386_ANSI_H_ and _X86_64_ANSI_H_

2010-04-30 Thread corsepiu at gcc dot gnu dot org
--- Comment #1 from corsepiu at gcc dot gnu dot org 2010-05-01 01:55 --- Created an attachment (id=20523) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20523&action=view) Define _MACHINE_ANSI_H if target defines _I386_ANSI_H_ || defined(_X86_64_ANSI_H_ This patch tries to to over

[Bug bootstrap/43952] New: NetBSD _ANSI_H_ vs. _I386_ANSI_H_ and _X86_64_ANSI_H_

2010-04-30 Thread corsepiu at gcc dot gnu dot org
Building GCC-4.5.0 for targets i?86-netbsdelf5* and amd64-netbsdelf5* chokes on issues related to ptrdiff_t and further types from stddef.h. >From what I gather, the cause is these targets not providing _ANSI_H nor _MACHINE_ANSI_H in their header but them using _I386_ANSI_H_ rsp. _X86_64_ANSI_H

[Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-05-01 01:15 --- (In reply to comment #5) > (In reply to comment #3) > > is the cause. > > What happens if you revert the build_new_1 part? That is not part of the > changelog. > It works since my patch in comment #4 is the minim

[Bug c++/43787] [4.5/4.6 Regression] memory copy of empty class (sizeof is one)

2010-04-30 Thread jason at gcc dot gnu dot org
--- Comment #14 from jason at gcc dot gnu dot org 2010-05-01 00:58 --- Looks like my patch for 43075 didn't fix things completely. -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug objc++/32052] [4.3/4.4/4.5/4.6 Regression] encode-2.mm, encode-3.mm fail on at least powerpc-darwin

2010-04-30 Thread mrs at gcc dot gnu dot org
--- Comment #14 from mrs at gcc dot gnu dot org 2010-05-01 00:33 --- Thanks. -- mrs at gcc dot gnu dot org changed: What|Removed |Added CC|mikestump at co

[Bug objc++/32052] [4.3/4.4/4.5/4.6 Regression] encode-2.mm, encode-3.mm fail on at least powerpc-darwin

2010-04-30 Thread mrs at gcc dot gnu dot org
--- Comment #13 from mrs at gcc dot gnu dot org 2010-05-01 00:32 --- Subject: Bug 32052 Author: mrs Date: Sat May 1 00:32:13 2010 New Revision: 158958 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158958 Log: 2010-04-30 Iain Sandoe PR objc++/32052 * objc-ac

[Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-05-01 00:24 --- (In reply to comment #3) > is the cause. What happens if you revert the build_new_1 part? That is not part of the changelog. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951

[Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2010-05-01 00:23 --- This patch: --- Index: cp/init.c === --- cp/init.c (revision 158918) +++ cp/init.c (working copy) @@ -1911,7 +1911,7 @@ build_new_1 (VEC(tree,gc) *

[Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2010-05-01 00:15 --- Revision 158918: http://gcc.gnu.org/ml/gcc-cvs/2010-04/msg01025.html is the cause. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951

[Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2010-05-01 00:13 --- StylesheetExecutionContextDefault.cpp is miscompiled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951

[Bug target/43941] Impossible to build any version beyond 4.2.4

2010-04-30 Thread sje at cup dot hp dot com
--- Comment #3 from sje at cup dot hp dot com 2010-04-30 22:55 --- I've built GCC on IA64 HP-UX 11.31, but never in 64 bit mode. I build in 32 bit mode (the default for GCC and HP C) and I haven't seen this problem. I'll try building in 64 bit mode to see if I can reproduce the problem

[Bug fortran/42848] compiler crashes and asks for this bug report

2010-04-30 Thread dfranke at gcc dot gnu dot org
--- Comment #6 from dfranke at gcc dot gnu dot org 2010-04-30 22:13 --- (In reply to comment #5) > The compiler shouldn't crash anyway. But with a new version this problem > should > be solved too, isn't it? It should be. 4.5.0 was released by now. Could you check again? -- dfranke

[Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006

2010-04-30 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-04-30 22:00 --- Revision 158918: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951 -- hjl dot tools at gmail dot com changed: What|Removed |Added -

[Bug fortran/41827] [Cleanup] Remove SET_EXPR_LOCATION in gfc_trans_code

2010-04-30 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2010-04-30 21:54 --- See PR41359 for another use of SET_EXPR_LOCATION. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41827

[Bug fortran/30249] Pointers not given target type in GFORTRAN

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2010-04-30 21:34 --- It IMHO shouldn't be DW_TAG_pointer_type, it is not a C style pointer. DW_TAG_array_type is what is emitted and what is listed in DWARF3/4 examples for Fortran code with POINTER variables. And current GCC certainly em

[Bug c++/43868] [4.5/4.6 Regression] ICE with -g

2010-04-30 Thread jason at gcc dot gnu dot org
--- Comment #5 from jason at gcc dot gnu dot org 2010-04-30 21:25 --- Subject: Bug 43868 Author: jason Date: Fri Apr 30 21:24:27 2010 New Revision: 158952 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158952 Log: PR c++/43868 * cxx-pretty-print.c (pp_cxx_type_sp

[Bug fortran/30249] Pointers not given target type in GFORTRAN

2010-04-30 Thread dfranke at gcc dot gnu dot org
--- Comment #5 from dfranke at gcc dot gnu dot org 2010-04-30 21:11 --- Has this been WAITING for 18 months now? Any news? :) -- dfranke at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/43787] [4.5/4.6 Regression] memory copy of empty class (sizeof is one)

2010-04-30 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug fortran/24978] ICE in gfc_assign_data_value_range

2010-04-30 Thread dfranke at gcc dot gnu dot org
--- Comment #22 from dfranke at gcc dot gnu dot org 2010-04-30 21:02 --- Proposed patch: http://gcc.gnu.org/ml/fortran/2010-04/msg00328.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24978

[Bug c++/43868] [4.5/4.6 Regression] ICE with -g

2010-04-30 Thread jason at gcc dot gnu dot org
--- Comment #4 from jason at gcc dot gnu dot org 2010-04-30 20:48 --- Subject: Bug 43868 Author: jason Date: Fri Apr 30 20:48:12 2010 New Revision: 158947 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158947 Log: PR c++/43868 * cxx-pretty-print.c (pp_cxx_decl_sp

[Bug middle-end/43883] missed optimization of constant __int128_t modulus

2010-04-30 Thread svfuerst at gmail dot com
--- Comment #6 from svfuerst at gmail dot com 2010-04-30 20:30 --- For posterity, I might as well note that with the sbb added on the end we don't need the initial mov instruction if we do some register renaming. This leaves the, hopefully optimal this time, five-instruction fragment as

[Bug middle-end/43951] [4.6 Regression] 483.xalancbmk in SPEC CPU 2006 is miscompiled

2010-04-30 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951

[Bug middle-end/43951] New: [4.6 Regression] 483.xalancbmk in SPEC CPU 2006 is miscompiled

2010-04-30 Thread hjl dot tools at gmail dot com
On Linux/x86-64, revision 158930 miscompiled 483.xalancbmk in SPEC CPU 2006 with -O2 -ffast-math: Running 483.xalancbmk ref base o2 default 483.xalancbmk: copy #0 non-zero return code (rc=0, signal=11) Error with '/export/gnu/import/svn/gcc-test/spec/2006/x86_64/spec/bin/specinvoke -E -d /expo

[Bug debug/43950] fortran: Use DW_AT_identifier_case

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-04-30 19:20 --- Making the FE preserve the case would be very hard. So, just posted a patch to use DW_ID_down_case for Fortran. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)

2010-04-30 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2010-04-30 19:04 --- http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01922.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43592

[Bug middle-end/43883] missed optimization of constant __int128_t modulus

2010-04-30 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2010-04-30 19:00 --- (In reply to comment #4) > Argh, the sar trick doesn't work when the number is negative and even. Sorry > about the extra noise. > > This leaves as the best code: > mov%rsi,%rdx > shr$0x3f,%rdx > lea(%rdi,%rd

[Bug c++/43868] [4.5/4.6 Regression] ICE with -g

2010-04-30 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug c/43893] Error: Invalid controlling predicate with -fopenmp

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2010-04-30 18:56 --- Fixed for 4.4+. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSI

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #20 from rguenth at gcc dot gnu dot org 2010-04-30 18:53 --- Subject: Bug 43879 Author: rguenth Date: Fri Apr 30 18:52:44 2010 New Revision: 158945 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158945 Log: 2010-04-30 Richard Guenther PR tree-optimizatio

[Bug c/43893] Error: Invalid controlling predicate with -fopenmp

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2010-04-30 18:42 --- Subject: Bug 43893 Author: jakub Date: Fri Apr 30 18:41:42 2010 New Revision: 158942 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158942 Log: PR c/43893 * c-omp.c (c_finish_omp_for): Handle a

[Bug fortran/43931] coarrays: Wrong code (segfault) with allocatable coarrays

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-04-30 18:36 --- Close as FIXED. With the other issues (passing as actual arguments) I will deal - but not as part of this PR. See PR 18918 for the general coarray tracking. -- burnus at gcc dot gnu dot org changed: W

[Bug fortran/18918] Eventually support Fortran 2008's coarrays [co-arrays]

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #25 from burnus at gcc dot gnu dot org 2010-04-30 18:31 --- Subject: Bug 18918 Author: burnus Date: Fri Apr 30 18:30:53 2010 New Revision: 158941 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158941 Log: 2010-04-30 Tobias Burnus mbur...@net-b.de> PR fortr

[Bug fortran/43931] coarrays: Wrong code (segfault) with allocatable coarrays

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-04-30 18:31 --- Subject: Bug 43931 Author: burnus Date: Fri Apr 30 18:30:53 2010 New Revision: 158941 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158941 Log: 2010-04-30 Tobias Burnus mbur...@net-b.de> PR fortra

[Bug other/43620] [4.3 Release Blocker] Uploading to gnu.org will fail due to automake security issue

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2010-04-30 18:26 --- Should be fixed for 4.4.5. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Known t

[Bug debug/43950] New: fortran: Use DW_AT_identifier_case

2010-04-30 Thread jan dot kratochvil at redhat dot com
Fortran currently lowercases all the identifiers for DWARF. In such case it should set DW_AT_identifier_case = DW_ID_down_case. GDB currently assumes DW_ID_down_case for DW_LANG_Fortran* which is incorrect, consumer should always default to DW_ID_case_sensitive according to DWARF4. Fortran should

[Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)

2010-04-30 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2010-04-30 18:09 --- I have a patch. -- kargl at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unas

[Bug middle-end/31750] Suboptimal builtin_memset on x86 with SSE

2010-04-30 Thread jb at gcc dot gnu dot org
--- Comment #4 from jb at gcc dot gnu dot org 2010-04-30 18:02 --- Some more experimentation, on different hardware, reveals that the relative performance of "rep stos" vs. loop depends heavily on the size of the object to set, the optimization options (loop unrolling etc.), and presumab

[Bug debug/43937] [4.6 regression] FAIL: gcc.dg/guality/inline-params.c

2010-04-30 Thread ebotcazou at gcc dot gnu dot org
--- Comment #2 from ebotcazou at gcc dot gnu dot org 2010-04-30 17:31 --- Looking into it. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43948] Valid generic procedure interface rejected

2010-04-30 Thread kargl at gcc dot gnu dot org
--- Comment #5 from kargl at gcc dot gnu dot org 2010-04-30 17:28 --- (In reply to comment #4) > (In reply to comment #3) > > Any chance to convert the code in comment #1 into a testcase? > > > > laptop:kargl[205] grep "already present" *c > > laptop:kargl[206] grep "already" *c > > lap

[Bug other/43949] bogus warning: array subscript is above array bounds

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-30 17:25 --- Confirmed. VRP is stupid and does Visiting statement: index_4 = i_21 % 3; Found new range for index_4: VARYING Yet another missed optimization. -- rguenth at gcc dot gnu dot org changed: What|

[Bug fortran/43948] Valid generic procedure interface rejected

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2010-04-30 17:17 --- (In reply to comment #3) > Any chance to convert the code in comment #1 into a testcase? > > laptop:kargl[205] grep "already present" *c > laptop:kargl[206] grep "already" *c > laptop:kargl[207] grep "Entity" *c I t

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #19 from rguenth at gcc dot gnu dot org 2010-04-30 17:12 --- (In reply to comment #18) > > As far as I understand this use statement causes GFortran to read in the > > bytecode from the .mod file and combine the files again to a single > > translation unit. So this split is

[Bug testsuite/25763] objc.dg/stubify-*.m, and obj-c++.dg/stubify-*.mm fail on i686-darwin

2010-04-30 Thread iains at gcc dot gnu dot org
--- Comment #4 from iains at gcc dot gnu dot org 2010-04-30 16:57 --- (In reply to comment #3) > see: > http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00585.html > and: > http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00131.html I think this should be cleared now - by: http://gcc.gnu.org/ml

[Bug fortran/43948] Valid generic procedure interface rejected

2010-04-30 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2010-04-30 16:53 --- (In reply to comment #2) > Found the latest version (thanks Bill!): > http://j3-fortran.org/doc/year/10/10-006A.txt > > It clearly states that it is invalid. > > (In reply to comment #1) > > Fortran 2003 (j3/04-007)

[Bug fortran/43948] Valid generic procedure interface rejected

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-04-30 16:43 --- Found the latest version (thanks Bill!): http://j3-fortran.org/doc/year/10/10-006A.txt It clearly states that it is invalid. (In reply to comment #1) > Fortran 2003 (j3/04-007) only has C1209 in "Annex D": Actually

[Bug target/43883] missed optimization of constant __int128_t modulus

2010-04-30 Thread svfuerst at gmail dot com
--- Comment #4 from svfuerst at gmail dot com 2010-04-30 16:33 --- Argh, the sar trick doesn't work when the number is negative and even. Sorry about the extra noise. This leaves as the best code: mov%rsi,%rdx shr$0x3f,%rdx lea(%rdi,%rdx,1),%rax and$0x1,%eax sub%rdx

[Bug target/43944] libgcc2 fails to build in gcc 4.5.0

2010-04-30 Thread viriketo at gmail dot com
--- Comment #2 from viriketo at gmail dot com 2010-04-30 16:32 --- (In reply to comment #1) > Err, so what is the configuration and what are you trying to do ? It sounds > like you are trying to do a profiled bootstrap. Is that the case ? Sorry, I thought that the information I pasted

[Bug other/43949] New: bogus warning: array subscript is above array bounds

2010-04-30 Thread joachim dot reichel at gmx dot de
$ cat test.cpp void f(); int c[3]; int result; struct Vector { static int get(int i) { if (i >= 3) f(); return c[i]; } }; void g() { for (int i = 0; i < 3; ++i) { const int index = i % 3; result = Vector::get(index) + Vector::get(index);

[Bug target/43883] missed optimization of constant __int128_t modulus

2010-04-30 Thread svfuerst at gmail dot com
--- Comment #3 from svfuerst at gmail dot com 2010-04-30 16:12 --- Oops, you are right. The 128 bit version needs an extra sbb on the end with that code. (For some reason I was missreading the shr as a sar.): mov%rsi,%rdx shr$0x3f,%rdx lea(%rdi,%rdx,1),%rax and$0x1,%ea

[Bug fortran/43948] Valid generic procedure interface rejected

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-04-30 16:02 --- Maybe this is wrong. The edit ends with: Remove C1209 from 12.3.2.1. HISTORY: 04-406m170 Submitted 04-406r1 m170 Passed J3 meeting 05-146m171 Passed J3 letter ballot #10 Fortran 2003 (j

[Bug libstdc++/36231] ostream includes unistd.h outside namespace std, polluting

2010-04-30 Thread redi at gcc dot gnu dot org
--- Comment #11 from redi at gcc dot gnu dot org 2010-04-30 15:58 --- (In reply to comment #9) > My report says that gcc violates > that standard, because it gratuitously dumps POSIX names into my global space. And once again, my response said "yes, I know but WONTFIX" > Of course, I m

[Bug libgomp/39098] FAIL: libgomp.fortran/reduction3.f90

2010-04-30 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2010-04-30 15:54 --- Subject: Re: FAIL: libgomp.fortran/reduction3.f90 > Does this still fail ? Recent testresults don't show this failure in > libgomp. It's not failing on trunk. Will recheck 4.4 and 4.5. Dave -- ht

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread dominiq at lps dot ens dot fr
--- Comment #18 from dominiq at lps dot ens dot fr 2010-04-30 15:53 --- > As far as I understand this use statement causes GFortran to read in the > bytecode from the .mod file and combine the files again to a single > translation unit. So this split is in fact not a split. >From my ve

[Bug fortran/43948] New: Valid generic procedure interface rejected

2010-04-30 Thread burnus at gcc dot gnu dot org
See http://www.j3-fortran.org/doc/meeting/172/05-006ar1.txt Item F03/0019 QUESTION 1: Does the following program conform to the 2003 standard? program P interface X subroutine S ( A ) integer :: A end subroutine S procedure S end interface X end program P AN

[Bug c++/43947] [C++0x] constexpr should allow declaration without a definition

2010-04-30 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-04-30 15:41 --- > I am aware constexpr is not fully supported, To be clear: officially, is not supported *at all*. If Jason told you that we want to remember this specific detail in Bugzilla, fine, of course. You may want to

[Bug target/43888] FAIL: gcc.dg/alias-7.c execution test

2010-04-30 Thread davek at gcc dot gnu dot org
--- Comment #2 from davek at gcc dot gnu dot org 2010-04-30 15:30 --- Posted: http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01899.html -- davek at gcc dot gnu dot org changed: What|Removed |Added -

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread jv244 at cam dot ac dot uk
--- Comment #17 from jv244 at cam dot ac dot uk 2010-04-30 15:26 --- in this case the Fortran bits depend on PR40011 -- jv244 at cam dot ac dot uk changed: What|Removed |Added

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2010-04-30 15:17 --- (In reply to comment #15) > > ... without -fwhole-file. But all IPA optimizations rely on that, so it's > > critical that -fwhole-file is enabled. > > -fwhole-file works only at the file level, i.e., if proc_ptr_

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread dominiq at lps dot ens dot fr
--- Comment #15 from dominiq at lps dot ens dot fr 2010-04-30 14:51 --- > ... without -fwhole-file. But all IPA optimizations rely on that, so it's > critical that -fwhole-file is enabled. -fwhole-file works only at the file level, i.e., if proc_ptr_comp_12.f90 is split as: [macbook]

[Bug libstdc++/36231] ostream includes unistd.h outside namespace std, polluting

2010-04-30 Thread joseph at codesourcery dot com
--- Comment #10 from joseph at codesourcery dot com 2010-04-30 14:42 --- Subject: Re: ostream includes unistd.h outside namespace std, polluting On Fri, 30 Apr 2010, igodard at pacbell dot net wrote: > namespace that has not been opened by "using". My report says that gcc > violate

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-04-30 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2010-04-30 14:33 --- (In reply to comment #0) > Another OOP problem found by Salvatore. > > Jim Xia confirms that NAG f95 gives the correct result, cf. > http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/e18d0434c46598

[Bug fortran/43592] Unexpected INTERFACE statement in INTERFACE block at (1)

2010-04-30 Thread dfranke at gcc dot gnu dot org
-- dfranke at gcc dot gnu dot org changed: What|Removed |Added CC||dfranke at gcc dot gnu dot |

[Bug libstdc++/36231] ostream includes unistd.h outside namespace std, polluting

2010-04-30 Thread igodard at pacbell dot net
--- Comment #9 from igodard at pacbell dot net 2010-04-30 14:24 --- This is not a fault of POSIX, because I'm *not* using POSIX. I'm using C++ ostream. Because I'm not using POSIX I expect to be able to declare (for example) "int open = 0;" without a problem - "open" is not a reserved ke

[Bug c++/43943] "warning: no return statement in function returning non-void" should be an error

2010-04-30 Thread david at rothlis dot net
--- Comment #6 from david at rothlis dot net 2010-04-30 14:01 --- OK, thanks for the explanation! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43943

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2010-04-30 13:57 --- Indeed all proc_ptr_* execution FAILs are fixed with -fwhole-program. The frontend does not properly unify decls for example in proc_ptr_comp_12.f90 for testObj%test => returnMat vs. function returnMat( a,

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
to/43946 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data first after all lowering passes. * gcc.dg/lto/20100430-1_0.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/lto/20100430-1_0.c Modified: trunk/gcc/ChangeLog trunk/gcc/passes.c trunk/gcc/t

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-04-30 13:23 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug objc++/32052] [4.3/4.4/4.5/4.6 Regression] encode-2.mm, encode-3.mm fail on at least powerpc-darwin

2010-04-30 Thread steven at gcc dot gnu dot org
--- Comment #12 from steven at gcc dot gnu dot org 2010-04-30 13:22 --- Iain, perhaps you should request to be confirmed as ObjC maintainer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32052

[Bug c++/43947] [C++0x] constexpr should allow declaration without a definition

2010-04-30 Thread public at alisdairm dot net
--- Comment #3 from public at alisdairm dot net 2010-04-30 13:15 --- Subject: Re: [C++0x] constexpr should allow declaration without a definition I am aware constexpr is not fully supported, and checked with Jason before filing this issue. We believe that constexpr should cur

[Bug c++/43947] [C++0x] constexpr should allow declaration without a definition

2010-04-30 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-04-30 12:57 --- Really, constexpr are *not* available yet, it seems definitely too early to file PRs (in retrospect, I think we should not have committed those parser bits, are causing a lot of counfusion :( -- http://gcc

[Bug c++/43947] [C++0x] constexpr should allow declaration without a definition

2010-04-30 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-04-30 12:55 --- I think "support" is putting it a bit strongly :) There is some code in place to recognise the keyword, that's about it -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43947

[Bug c++/43947] New: [C++0x] constexpr should allow declaration without a definition

2010-04-30 Thread public at alisdairm dot net
GCC 4.5 has early support for constexpr, which syntax checks code but does not support use in a constant expression. The following code should be allowed, but fails as GCC currently requires the in initial declaration also be a definition: constexpr auto five() -> int; inline constexpr auto five(

[Bug debug/43478] Missing DW_AT_location for a variable

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2010-04-30 12:10 --- The #c6 patch bootstrapped/regtested fine on x86_64-linux and i686-linux. In --enable-checking=yes,rtl build number of variables with DW_AT_location grew by 105 (excluding df-problems.o) in x86-64 cc1plus and by 98 in

[Bug debug/43942] [4.5/4.6 Regression] -fcompare-debug faulure with external declaration in function.

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #21 from rguenth at gcc dot gnu dot org 2010-04-30 12:06 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-04-30 12:02 --- Mine, I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Assig

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-30 11:43 --- "Proper" testcase: static void expand_stmt_with_iterators_1 (void) { extern void expand_expr_stmt (void); expand_expr_stmt (); } void iterator_expand (void) { expand_stmt_with_iterators_1 (); } -- http://

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-30 11:42 --- Without -fprofile-arcs we never output the decl copy (so it probably gets lost). So this seems to be a latent problem with early inlining? At least the inlining before profiling sees { Scope block #0 extern void

[Bug debug/43942] [4.5/4.6 Regression] -fcompare-debug faulure with external declaration in function.

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #20 from jakub at gcc dot gnu dot org 2010-04-30 11:31 --- Subject: Bug 43942 Author: jakub Date: Fri Apr 30 11:30:52 2010 New Revision: 158932 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158932 Log: PR debug/43942 * tree.c (auto_var_in_fn_p): Retu

[Bug c++/43943] "warning: no return statement in function returning non-void" should be an error

2010-04-30 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-04-30 11:26 --- The point being that it's undefined behaviour to /return/ from such a function, not to /write/ such a function. If the programmer guarantees the "missing return" will never happen then there's no error. I was wrong to

[Bug debug/43942] [4.5/4.6 Regression] -fcompare-debug faulure with external declaration in function.

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #19 from jakub at gcc dot gnu dot org 2010-04-30 11:24 --- Subject: Bug 43942 Author: jakub Date: Fri Apr 30 11:24:16 2010 New Revision: 158931 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158931 Log: PR debug/43942 * tree.c (auto_var_in_fn_p): Retu

[Bug c++/43943] "warning: no return statement in function returning non-void" should be an error

2010-04-30 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-04-30 11:22 --- (In reply to comment #3) > > a function with a missing return is valid > > I just can't reconcile that with the following line from the C++ standard: "It > is now invalid to return (explicitly or implicitly) from a fun

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-30 11:19 --- We end up with a 2nd FUNCTION_DECL "for debug info" which does not have an assembler name set. Created by: Run till exit from #0 0x00bbcb87 in copy_node_stat ( node=0x75adcb00) at /space/rguenther/

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread hubicka at ucw dot cz
--- Comment #2 from hubicka at ucw dot cz 2010-04-30 10:57 --- Subject: Re: SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program This smeells like notice_global_symbol issue again that computes assembler name on random first symbol in th

[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-30 10:44 --- We fail the DECL_ASSEMBLER_NAME_SET_P (decl) check. The function declaration in question is an implicit one at the point of its use (which means that we likely do not get a cgraph node for it at LTO dump time). Tes

[Bug debug/43942] [4.5/4.6 Regression] -fcompare-debug faulure with external declaration in function.

2010-04-30 Thread jakub at gcc dot gnu dot org
--- Comment #18 from jakub at gcc dot gnu dot org 2010-04-30 10:24 --- All patches bootstrapped/regtested on x86_64-linux and i686-linux, unfortunately patch3 had slightly negative impact on debuginfo quality (about 4000 variables in rtl checking cc1plus lost DW_AT_location attribute).

[Bug target/28715] Attribute with section (".init_array") does't work under Solaris

2010-04-30 Thread ro at gcc dot gnu dot org
--- Comment #3 from ro at gcc dot gnu dot org 2010-04-30 10:15 --- This only happens when using GCC with Sun as, GNU as with either Sun ld or GNU ld is fine. While gas follows the ELF gABI and sets SHT_INIT_ARRAY on an .init_array section, Sun as does not, and I see no easy workaround.

[Bug tree-optimization/43879] -fipa-pta causes various miscompilations

2010-04-30 Thread rguenth at gcc dot gnu dot org
--- Comment #13 from rguenth at gcc dot gnu dot org 2010-04-30 10:06 --- I can now successfully bootstrap with -O2 -fipa-pta but lto1 seems to be miscompiled (all LTO tests ICE). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43879

[Bug lto/43946] New: SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program

2010-04-30 Thread hubicka at gcc dot gnu dot org
We get: unit size align 32 symtab 0 alias set -1 canonical type 0x77ed0498 precision 32 min max pointer_to_this > QI size unit size align 8 symtab 0 alias set -1 canonical type 0x76e370a8> addressable public exte

[Bug c/42579] [PATCH] support for obtaining file basename

2010-04-30 Thread cfriedt at visible-assets dot com
--- Comment #4 from cfriedt at visible-assets dot com 2010-04-30 09:54 --- (In reply to comment #0) > Please consider this patch. It adds support for obtaining file basename via > __FILE_BASENAME__. Please do! What would also be really nice would be to have similar functionality for

[Bug libstdc++/36231] ostream includes unistd.h outside namespace std, polluting

2010-04-30 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-04-30 09:51 --- > I guess I'm still not being clear. I'm not using *any* of those names; I'm not If you're not using the names why do you care? > using C; I'm not using POSIX. I'm only using ostream, which is a plain old C++ > librar

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-04-30 Thread sfilippone at uniroma2 dot it
cal/gnu46 --enable-languages=c,c++,fortran,lto --no-create --no-recursion Thread model: posix gcc version 4.6.0 20100430 (experimental) (GCC) [sfili...@donald bug15]$ gfortran -o testd15 testd15.f03 testd15.f03:73:0: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:703 Please submit

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-04-30 Thread sfilippone at uniroma2 dot it
--- Comment #4 from sfilippone at uniroma2 dot it 2010-04-30 09:42 --- Created an attachment (id=20522) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20522&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43945

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-04-30 Thread sfilippone at uniroma2 dot it
--- Comment #3 from sfilippone at uniroma2 dot it 2010-04-30 09:41 --- (In reply to comment #1) > (In reply to comment #0) > > Another OOP problem found by Salvatore. > > > > > Whoa, you beat me in opening the bug! > If I modify the source code as in the next attachment, I get an ICE

[Bug ada/38832] Main program runs fine but hangs on exit when linked with Ada shared lib

2010-04-30 Thread charlet at gcc dot gnu dot org
--- Comment #6 from charlet at gcc dot gnu dot org 2010-04-30 09:36 --- The bug is in your manual build procedure (the patch to s-finimp.adb is a kludge that would only hide the wrong build procedure) which is bypassing the gnat toolset normal operations. I would suggest using stand alo

[Bug fortran/43945] [OOP] Derived type with GENERIC: resolved to the wrong specific TBP

2010-04-30 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-04-30 09:35 --- "4.5.7.3 Type-bound procedure overriding" (F2008 FDIS): "If a specific type-bound procedure specified in a type definition has the same binding name as a type-bound procedure from the parent type then the binding spe

  1   2   >