[Bug testsuite/39537] overhaul printf formats and type casts in testsuite

2009-03-24 Thread kees at outflux dot net
--- Comment #3 from kees at outflux dot net 2009-03-24 07:10 --- g++.old-deja/g++.pt/t39.C: It looks like ptr[0],[1],[2] are either int or const char (i.e. ptr is int* or const char*). %p doesn't make much sense in those cases, so I opted for a cast. I'm not sure I followed your last se

[Bug testsuite/39537] overhaul printf formats and type casts in testsuite

2009-03-24 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-03-24 07:28 --- (In reply to comment #3) > g++.old-deja/g++.pt/t39.C: It looks like ptr[0],[1],[2] are either int or > const > char (i.e. ptr is int* or const char*). %p doesn't make much sense in those > cases, so I opted for a ca

[Bug tree-optimization/39529] ICE on valid code

2009-03-24 Thread irar at il dot ibm dot com
--- Comment #2 from irar at il dot ibm dot com 2009-03-24 08:23 --- I am testing this patch: Index: tree-vect-transform.c === --- tree-vect-transform.c (revision 145027) +++ tree-vect-transform.c (working copy)

[Bug debug/39535] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread MR dot Swami dot Reddy at nsc dot com
--- Comment #2 from MR dot Swami dot Reddy at nsc dot com 2009-03-24 08:35 --- Subject: Re: wrong function name and line numbers with -g -O2 option pinskia at gcc dot gnu dot org wrote: > > --- Comment #1 from pinskia at gcc dot gnu dot org 2009-03-24 05:16 > --- > Please

[Bug fortran/39528] [4.2/4.3/4.4 Regression] repeated entries are not read when using list-directed input

2009-03-24 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.0/4.1/4.2/4.3/4.4|[4.2/4.3/4.4 Regression] |Regression] repeated entr

[Bug debug/39538] New: wrong function name and line numbers with -g -O2 option

2009-03-24 Thread MR dot Swami dot Reddy at nsc dot com
With -g -O2 option, crx-elf-gcc generates wrong line numbers and function names. == /tmp/ccrrZsJf.o: In function `090312 (experimental)': /home10/swami/test.c:5: undefined reference to `_f1' collect2: ld returned 1 exit status === Expected output could be: === /tmp/ccEJcFRs.o: In function `main':

[Bug debug/39539] New: wrong function name and line numbers with -g -O2 option

2009-03-24 Thread MR dot Swami dot Reddy at nsc dot com
With -g -O2 option, crx-elf-gcc generates wrong line numbers and function names. == /tmp/ccrrZsJf.o: In function `090312 (experimental)': /home10/swami/test.c:5: undefined reference to `_f1' collect2: ld returned 1 exit status === Expected output could be: === /tmp/ccEJcFRs.o: In function `main':

[Bug debug/39540] New: wrong function name and line numbers with -g -O2 option

2009-03-24 Thread MR dot Swami dot Reddy at nsc dot com
With -g -O2 option, crx-elf-gcc generates wrong line numbers and function names. == /tmp/ccrrZsJf.o: In function `090312 (experimental)': /home10/swami/test.c:5: undefined reference to `_f1' collect2: ld returned 1 exit status === Expected output could be: === /tmp/ccEJcFRs.o: In function `main':

[Bug c++/39541] New: Templates class instantiation -name lookup

2009-03-24 Thread anubhav dot saxena at wipro dot com
Hi, Consider the code struct A{ void fn(){cout << "1";} }; template struct B{ void fn(){cout << "2";} }; template struct C : A, B{ C(){ fn(); } // fn is a non dependent name. }; int main(){ C c; } In this case, it looks fairly intuitive that the

[Bug c++/26155] ICE after error with namespace alias

2009-03-24 Thread doko at ubuntu dot com
--- Comment #4 from doko at ubuntu dot com 2009-03-24 10:40 --- confirmed with 4.3.4 and 4.4.0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26155

[Bug debug/39540] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-24 11:00 --- *** This bug has been marked as a duplicate of 39535 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug debug/39535] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-03-24 11:00 --- *** Bug 39540 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39535

[Bug debug/39539] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-24 11:00 --- *** This bug has been marked as a duplicate of 39535 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug debug/39535] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-03-24 11:00 --- *** Bug 39539 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39535

[Bug debug/39538] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-24 11:01 --- *** This bug has been marked as a duplicate of 39535 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug debug/39535] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-03-24 11:01 --- *** Bug 39538 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39535

[Bug debug/39535] wrong function name and line numbers with -g -O2 option

2009-03-24 Thread MR dot Swami dot Reddy at nsc dot com
--- Comment #6 from MR dot Swami dot Reddy at nsc dot com 2009-03-24 11:04 --- Subject: Re: wrong function name and line numbers with -g -O2 option rguenth at gcc dot gnu dot org wrote: > > --- Comment #4 from rguenth at gcc dot gnu dot org 2009-03-24 11:00 > --- > *** Bug

[Bug libstdc++/39542] New: doesn't contain vasprintf() and asprintf()

2009-03-24 Thread doko at ubuntu dot com
[forwarded from https://launchpad.net/bugs/332115] While the documentation states that vasprintf and asprintf belong to the the header, the C++ header doesn't contain any definition to them, thus forcing one to also #include -- Summary: doesn't contain vasprintf() and asprintf()

[Bug libstdc++/39542] doesn't contain vasprintf() and asprintf()

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-24 11:20 --- These are GNU extensions not appropriate for a ISO C++ header file (the standard lists which functions are to be made available in the std namespace). So at most they could be added to the __gnucxx namespace? --

[Bug rtl-optimization/39543] New: [4.4 Regression] Reload failure on mplayer from SVN

2009-03-24 Thread jakub at gcc dot gnu dot org
The following testcase errors while reloading the asms with -O3 -m32 or -O3 -m32 -DOMIT_FRAME_POINTER -fomit-frame-pointer since r139993 (before that it worked even with IRA, after that -fno-ira cured it while we still had it). I agree mplayer pushes the limits a little bit too far by having so man

[Bug libstdc++/39542] doesn't contain vasprintf() and asprintf()

2009-03-24 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-03-24 11:36 --- This is definitely not a bug. Note, in our implementation is included anyway from as an implementation detail. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug tree-optimization/39529] ICE on valid code

2009-03-24 Thread irar at il dot ibm dot com
--- Comment #3 from irar at il dot ibm dot com 2009-03-24 11:42 --- (In reply to comment #0) > My solution: > After each loop is vectorized, and SSA is updated, I re-compute alias > info. I am not familiar with the vectorizer sources, so I don't know > if there is a more efficient way to

[Bug c/39464] [4.2/4.3/4.4 Regression] Attribute may_alias causes invalid warning

2009-03-24 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39464

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-24 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-03-24 11:27 --- Ah, forgot the testcase: float __attribute__ ((aligned (16))) s0[128]; const float s1 = 0.707; float s2[8] __attribute__ ((aligned (16))); float s3[8] __attribute__ ((aligned (16))); float s4[16] __attribute__ ((align

[Bug pch/39492] [4.3/4.4 Regression] Parallel compilation fail using PCH on Windows NT>= 5.0

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-03-24 11:47 --- How is this a regression? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39492

[Bug bootstrap/39503] [4.4 Regression] libgcc2.c doesn't compile anymore

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-03-24 11:47 --- Can we please have a status update on whether this is a problem with your header setup or GCCs fault? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/39514] [4.4 Regression] unreported change to packed bitfields

2009-03-24 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39514

[Bug fortran/39528] [4.2/4.3/4.4 Regression] repeated entries are not read when using list-directed input

2009-03-24 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39528

[Bug pch/39492] [4.3/4.4 Regression] Parallel compilation fail using PCH on Windows NT>= 5.0

2009-03-24 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-03-24 12:16 --- (In reply to comment #3) > How is this a regression? Because it used to work in 4.1. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39529] ICE on valid code

2009-03-24 Thread irar at gcc dot gnu dot org
--- Comment #4 from irar at gcc dot gnu dot org 2009-03-24 12:18 --- Subject: Bug 39529 Author: irar Date: Tue Mar 24 12:18:19 2009 New Revision: 145029 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145029 Log: PR tree-optimization/39529 * tree-vect-transform.c

[Bug fortran/39528] [4.2/4.3/4.4 Regression] repeated entries are not read when using list-directed input

2009-03-24 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2009-03-24 12:24 --- Subject: Bug 39528 Author: jvdelisle Date: Tue Mar 24 12:24:29 2009 New Revision: 145030 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145030 Log: 2009-03-24 Jerry DeLisle PR libfortran/39528

[Bug fortran/39528] [4.2/4.3/4.4 Regression] repeated entries are not read when using list-directed input

2009-03-24 Thread jvdelisle at gcc dot gnu dot org
--- Comment #7 from jvdelisle at gcc dot gnu dot org 2009-03-24 12:30 --- Subject: Bug 39528 Author: jvdelisle Date: Tue Mar 24 12:30:17 2009 New Revision: 145031 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145031 Log: 2009-03-24 Jerry DeLisle PR libfortran/39528

[Bug fortran/39528] [4.2/4.3 Regression] repeated entries are not read when using list-directed input

2009-03-24 Thread jvdelisle at gcc dot gnu dot org
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2009-03-24 12:33 --- Fixed on 4.4. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added Known to fa

[Bug c++/39544] New: Grammar error in russian localization

2009-03-24 Thread xredor at gmail dot com
test.cpp:17: îøèáêà: ‘operator[]’ íå èìååò àðãóìåíòîâ, çàâèñÿùèõ îò ïàðàìåòðà-øàáëîíà, ïîýòîìó äîëæíà áûòü äîñüóïíà!!! äåêëàðàöèÿ ‘operator[]’ test.cpp:17: îøèáêà: (ñ êëþ÷îì ‘-fpermissive’, G++ ïðèìåò äàííûé êîä, íî ðàçðåøåíèå èñïîëüçîâàòü íåäåêëàðèðîâàííûå èìåíà áóäåò îòìåíåíî â äàëüíå

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-24 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-03-24 12:54 --- The reason for forcing the MEM addresses in "m"/"=m" into register is: /* By passing constant addresses through registers we get a chance to cse them. */ if (! cse_not_expected && CONSTANT_P (x) && CONSTANT_A

[Bug c/39464] [4.2/4.3/4.4 Regression] Attribute may_alias causes invalid warning

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-03-24 12:54 --- It's not that easy. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Assigne

[Bug testsuite/39537] overhaul printf formats and type casts in testsuite

2009-03-24 Thread joseph at codesourcery dot com
--- Comment #5 from joseph at codesourcery dot com 2009-03-24 13:19 --- Subject: Re: New: overhaul printf formats and type casts in testsuite The testsuite in FSF GCC tests correct behavior of FSF GCC and code compiled with it. If correct behavior for Ubuntu GCC and code compiled

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2009-03-24 Thread joseph at codesourcery dot com
--- Comment #10 from joseph at codesourcery dot com 2009-03-24 13:22 --- Subject: Re: stddef.h assumes machinee/ansi.h defines _ANSI_H_ On Tue, 24 Mar 2009, aran at 100acres dot us wrote: > This is a combination of the other two patches. GCC's version of stddef.h is > still install

[Bug c++/39544] Grammar error in russian localization

2009-03-24 Thread joseph at codesourcery dot com
--- Comment #1 from joseph at codesourcery dot com 2009-03-24 13:26 --- Subject: Re: New: Grammar error in russian localization We do not maintain the translations in GCC and the Russian team does not have a Bugzilla account, so you will need to pass your report on to g...@mx.ru you

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2009-03-24 Thread joseph at codesourcery dot com
--- Comment #11 from joseph at codesourcery dot com 2009-03-24 13:32 --- Subject: Re: stddef.h assumes machinee/ansi.h defines _ANSI_H_ I see you did in fact send the stddef.h changes to gcc-patches - thanks for splitting up the separate logical parts of the patch (which is always

[Bug bootstrap/39503] [4.4 Regression] libgcc2.c doesn't compile anymore

2009-03-24 Thread forumer at smartmobili dot com
--- Comment #6 from forumer at smartmobili dot com 2009-03-24 13:51 --- I think you can close it because I suppose the problem only happens with my includes/toolchains. I don't know why but normally DWORD definitions should be known since VirtualProtect is.If you really wanted to make ev

[Bug c++/26693] [4.2/4.3/4.4 regression] Access checks not performed for types in templates

2009-03-24 Thread howarth at nitro dot med dot uc dot edu
--- Comment #10 from howarth at nitro dot med dot uc dot edu 2009-03-24 13:55 --- Shouldn't this be closed as fixed? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26693

[Bug tree-optimization/39120] [4.2/4.3/4.4 Regression] Missed escape constraints for call results

2009-03-24 Thread howarth at nitro dot med dot uc dot edu
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2009-03-24 14:02 --- Can this be back ported to gcc trunk? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39120

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-24 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-03-24 14:18 --- Ok, so the reason why fwprop doesn't propagate this is: forward_propagate_and_simplify doing: rtx use_set = single_set (use_insn); ... if (!use_set) return false; ASM_OPERANDS with multiple output regs obviou

[Bug tree-optimization/39120] [4.2/4.3/4.4 Regression] Missed escape constraints for call results

2009-03-24 Thread rguenther at suse dot de
--- Comment #4 from rguenther at suse dot de 2009-03-24 14:20 --- Subject: Re: [4.2/4.3/4.4 Regression] Missed escape constraints for call results On Tue, 24 Mar 2009, howarth at nitro dot med dot uc dot edu wrote: > --- Comment #3 from howarth at nitro dot med dot uc dot edu 20

[Bug tree-optimization/39120] [4.2/4.3/4.4 Regression] Missed escape constraints for call results

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-03-24 14:40 --- Created an attachment (id=17532) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17532&action=view) part #2 Untested patches for the backport. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39120

[Bug tree-optimization/39120] [4.2/4.3/4.4 Regression] Missed escape constraints for call results

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-03-24 14:39 --- Created an attachment (id=17531) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17531&action=view) part #1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39120

[Bug rtl-optimization/39543] [4.4 Regression] Reload failure on mplayer from SVN

2009-03-24 Thread bonzini at gnu dot org
--- Comment #4 from bonzini at gnu dot org 2009-03-24 15:03 --- The only thing to be careful is to have set_reg_equal == FALSE if the insn has multiple sets, and find which set in a multiple-set insn is actually referring to USE (a combination of note_stores and loc_mentioned_in_p will d

[Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-03-24 15:37 --- Patch sent. http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01129.html -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2009-03-24 Thread aran at 100acres dot us
--- Comment #12 from aran at 100acres dot us 2009-03-24 15:49 --- Subject: Re: stddef.h assumes machinee/ansi.h defines _ANSI_H_ Joseph, The fixincludes changes fix another issue. Should I create a new bug and reference that bug in the e-mail or just describe the problem in

[Bug target/38182] stddef.h assumes machinee/ansi.h defines _ANSI_H_

2009-03-24 Thread joseph at codesourcery dot com
--- Comment #13 from joseph at codesourcery dot com 2009-03-24 16:04 --- Subject: Re: stddef.h assumes machinee/ansi.h defines _ANSI_H_ On Tue, 24 Mar 2009, aran at 100acres dot us wrote: > Joseph, > The fixincludes changes fix another issue. Should I create > a new bug an

[Bug target/39545] New: structures with zero-length array passed/returned inconsistently

2009-03-24 Thread hjl dot tools at gmail dot com
[...@gnu-6 tmp]$ cat f-1.c struct line { int length; char contents[]; }; void foo (struct line); struct line bar () { struct line x; x.length = sizeof (struct line); foo (x); return x; } [...@gnu-6 tmp]$ /usr/gcc-4.4/bin/gcc -fno-asynchronous-unwind-tables -O2 -S f-1.c [...@gnu-6 tmp]$ cat f-

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529: ICE due to missing or incorrectly relocated DECL_VALUE_EXPR in PCH header for PARM_DECL

2009-03-24 Thread danglin at gcc dot gnu dot org
--- Comment #48 from danglin at gcc dot gnu dot org 2009-03-24 16:31 --- On i686-apple-darwin9, this doesn't fail because DECL_HAS_VALUE_EXPR_P (loc) is not set: (gdb) p debug_tree (loc) unit size align 64 symtab 28208224 alias set 24 canonical type 0xf6adb0

[Bug libstdc++/39546] New: parallel mode doesn't support implicit string conversion

2009-03-24 Thread suokkos at gmail dot com
In parallel mode automatic conversion from string literal to std::string doesn't work when passing literal as parameter to std::find. Woring compiler parameters: g++ test.cpp -o test Failing compiler line: g++ -D_GLIBCXX_PARALLEL -fopenmp -lgomp test.cpp -o test Simple work around is making exp

[Bug libstdc++/39546] parallel mode doesn't support implicit string conversion

2009-03-24 Thread suokkos at gmail dot com
--- Comment #1 from suokkos at gmail dot com 2009-03-24 16:43 --- Created an attachment (id=17533) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17533&action=view) g++ -v output when trying to compiling in parallel mode -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39546

[Bug libstdc++/39546] parallel mode doesn't support implicit string conversion

2009-03-24 Thread suokkos at gmail dot com
--- Comment #2 from suokkos at gmail dot com 2009-03-24 16:46 --- Created an attachment (id=17534) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17534&action=view) --save-temps test.ii from failed compilation in parallel mode -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3954

[Bug libstdc++/39546] parallel mode doesn't support implicit string conversion

2009-03-24 Thread suokkos at gmail dot com
--- Comment #3 from suokkos at gmail dot com 2009-03-24 16:48 --- Created an attachment (id=17535) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17535&action=view) Source for the simple test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39546

[Bug libstdc++/39547] New: deque::erase invalidates end()

2009-03-24 Thread terra at gnome dot org
The program below should print nothing. For me, it prints "1". When erasing at the beginning or the end of a deque, the only iterators to be invalidated are those of elements being erased. All others, and in particular end(), should remain valid. (I am fairly certain that the standard didn't me

[Bug libstdc++/39546] parallel mode doesn't support implicit string conversion

2009-03-24 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-03-24 17:25 --- Johannes, can you have a look? To be honest, I'm not sure that using those binders (with all the known limitations which led to deprecation for C++0x) in dispatching functions really can be made to work also in

[Bug libstdc++/39546] parallel mode doesn't support implicit string conversion

2009-03-24 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last re

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-03-24 17:26 --- Created an attachment (id=17536) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17536&action=view) A updated testcase Here is the correct testcase. -- hjl dot tools at gmail dot com changed: Wha

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2009-03-24 17:26 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01133.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug libstdc++/39547] deque::erase invalidates end()

2009-03-24 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-03-24 17:31 --- Yes, this is DR 638: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#638 -- paolo dot carlini at oracle dot com changed: What|Removed |Added -

[Bug testsuite/39537] overhaul printf formats and type casts in testsuite

2009-03-24 Thread kees at outflux dot net
--- Comment #6 from kees at outflux dot net 2009-03-24 17:39 --- I'm trying to minimize the Ubuntu patch by getting changes accepted for the FSF GCC testsuite. I'm hoping to demonstrate that many of the changes are valid and represent stricter C coding, though none change the behavior o

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2009-03-24 17:43 --- Created an attachment (id=17537) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17537&action=view) A real tescase This should be correct. -- hjl dot tools at gmail dot com changed: What|Remo

[Bug bootstrap/36481] gcc fails to build on Solaris x86 - it forgets the locations of libmpfr

2009-03-24 Thread rwild at gcc dot gnu dot org
--- Comment #8 from rwild at gcc dot gnu dot org 2009-03-24 17:47 --- Hello David, (In reply to comment #0) > I'm trying to compile gcc 4.3.1 on a Laptop running Solaris Express Community > Edition Build 89. [...] > A search on the web for the "configure: error: cannot compute suffix of

[Bug tree-optimization/39548] New: gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread davidxl at gcc dot gnu dot org
The tot compile ICEs when compiling the following code with these options. -Wno-error -fno-exceptions -fno-tree-vrp -O2 -fprofile-generate=. copyprop.C: In member function 'void foo_14::hh_29(blah_46)': copyprop.C:1051: error: definition in block 29 does not dominate use in block 30 for SSA

[Bug preprocessor/39533] -MM may list a header file twice

2009-03-24 Thread rwild at gcc dot gnu dot org
--- Comment #8 from rwild at gcc dot gnu dot org 2009-03-24 17:49 --- Why is this a bug? I'm really curious to know; the manual doesn't document that -MM output is uniquified. -- rwild at gcc dot gnu dot org changed: What|Removed |Added --

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread davidxl at gcc dot gnu dot org
--- Comment #1 from davidxl at gcc dot gnu dot org 2009-03-24 17:50 --- Created an attachment (id=17538) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17538&action=view) Test case -- davidxl at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread davidxl at gcc dot gnu dot org
--- Comment #2 from davidxl at gcc dot gnu dot org 2009-03-24 17:51 --- Created an attachment (id=17539) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17539&action=view) patch file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39548

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-03-24 17:55 --- It might be better to place the check after the loop (and put an assert in set_copy_of_val that triggers the copy may not happen). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39548

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-03-24 17:56 --- Btw, it shouldn't really happen that we are not allowed to copyprop PHI arguments. It hints at some inconsistency in the IL instead. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39548

[Bug target/38203] attribute `noreturn' isn't effective when -mthumb param is active

2009-03-24 Thread ramana dot r at gmail dot com
Thread model: single gcc version 4.4.0 20090324 (experimental) [trunk revision 143499] (GCC) and might be related to PR #38570 . -- ramana dot r at gmail dot com changed: What|Removed

[Bug target/39545] structures with zero-length array passed/returned inconsistently

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2009-03-24 18:43 --- i386.c has static int classify_argument (enum machine_mode mode, const_tree type, enum x86_64_reg_class classes[MAX_CLASSES], int bit_offset) { HOST_WIDE_INT bytes = (mode == BLKmode) ? int

Re: Small error in manual

2009-03-24 Thread Ralf Wildenhues
Hello Reuben, I think nowadays the gcc-bugs list is meant only as gateway for bugzilla messages, so you might want to open a bugzilla for future reports. Thanks. * Reuben Thomas wrote on Mon, Mar 23, 2009 at 02:58:20AM CET: > (Found in 4.3; I was unable to discover without checking out the source

[Bug target/36209] arm-*-linux-gnueabi-gcc (4.3.0) segment fault during build of procps-3.2.7

2009-03-24 Thread ramana dot r at gmail dot com
--- Comment #5 from ramana dot r at gmail dot com 2009-03-24 18:53 --- I can confirm that this is fixed with revision 145038 in the 4.3 branch which is due to the fix committed here. http://gcc.gnu.org/viewcvs?view=rev&revision=143942 which is essentially a backport of the patch http:

[Bug c/39549] New: Nonoptimal byte load. mov (%rdi),%al better then movzbl (%rdi),%eax

2009-03-24 Thread vvv at ru dot ru
> gcc --version gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291] > cat test.c // file test.c One byte transfer void f(char *a,char *b){ *b=*a; } void F(char *a,char *b){ asm volatile("mov (%rdi),%al\nmov %al,(%rsi)"); } ... > gcc -g -otest test.c -O2 -mtune=core2 > objdump -d test 0

[Bug target/39545] structures with zero-length array passed/returned inconsistently

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-03-24 19:26 --- A patch is posted at: http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01144.html -- hjl dot tools at gmail dot com changed: What|Removed |Added --

Re: Small error in manual

2009-03-24 Thread Dave Korn
Ralf Wildenhues wrote: > Thanks for the report. OK to push this patch, tested 'make info pdf > html'? You forgot "dvi". cheers, DaveK

Re: Small error in manual

2009-03-24 Thread Ralf Wildenhues
* Dave Korn wrote on Tue, Mar 24, 2009 at 08:40:08PM CET: > Ralf Wildenhues wrote: > > > Thanks for the report. OK to push this patch, tested 'make info pdf > > html'? > > You forgot "dvi". I forgot to mention it, but I did test it. OK?

[Bug target/39545] structures with zero-length array passed/returned inconsistently

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-03-24 21:21 --- The updated patch with testcases is at http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01155.html -- hjl dot tools at gmail dot com changed: What|Removed |Added -

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread davidxl at gcc dot gnu dot org
--- Comment #5 from davidxl at gcc dot gnu dot org 2009-03-24 21:25 --- (In reply to comment #3) > It might be better to place the check after the loop (and put an assert in > set_copy_of_val that triggers the copy may not happen). > This sounds good. David -- http://gcc.gnu.org/

[Bug tree-optimization/39548] gcc ICE compiling code with option -fprofile-generate

2009-03-24 Thread davidxl at gcc dot gnu dot org
--- Comment #6 from davidxl at gcc dot gnu dot org 2009-03-24 21:33 --- (In reply to comment #4) > Btw, it shouldn't really happen that we are not allowed to copyprop PHI > arguments. It hints at some inconsistency in the IL instead. > This sounds good. David(In reply to comment #4)

[Bug testsuite/39550] New: compat tests for flexible array members

2009-03-24 Thread jsm28 at gcc dot gnu dot org
Bug 39545 is an x86_64 ABI issue relating to the handling of structures with flexible array members in function call and return. It seems likely this corner case has bugs (and incompatibilities with other implementations) for other targets as well. There should be gcc.dg/compat tests specifically

[Bug c++/28274] [4.2/4.3/4.4 Regression] Redeclaration with extra default argument doesn't work

2009-03-24 Thread jason at gcc dot gnu dot org
--- Comment #13 from jason at gcc dot gnu dot org 2009-03-24 22:26 --- Subject: Bug 28274 Author: jason Date: Tue Mar 24 22:26:21 2009 New Revision: 145042 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145042 Log: PR c++/28274 * name-lookup.c (pushdecl_maybe_fri

[Bug c++/28274] [4.2/4.3 Regression] Redeclaration with extra default argument doesn't work

2009-03-24 Thread jason at gcc dot gnu dot org
--- Comment #14 from jason at gcc dot gnu dot org 2009-03-24 22:27 --- Fixed for 4.4. -- jason at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.2

[Bug target/39545] structures with zero-length array passed/returned inconsistently

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2009-03-24 23:35 --- The updated patch is at http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01161.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

Re: Small error in manual

2009-03-24 Thread Dave Korn
Ralf Wildenhues wrote: > * Dave Korn wrote on Tue, Mar 24, 2009 at 08:40:08PM CET: >> Ralf Wildenhues wrote: >> >>> Thanks for the report. OK to push this patch, tested 'make info pdf >>> html'? >> You forgot "dvi". > > I forgot to mention it, but I did test it. OK? Well, it aint my say-so,

[Bug c++/39551] New: C++ frontend not warn about unused dereference operator with -Wunused-value

2009-03-24 Thread lcwu at gcc dot gnu dot org
rnings) when it processes the expression '*x++' in convert_to_void() in cp/cvt.c. Here is the version string of the compiler that I tried: gcc version 4.4.0 20090324 (experimental) (GCC) -- Summary: C++ frontend not warn about unused dereference operator

[Bug testsuite/39550] compat tests for flexible array members

2009-03-24 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2009-03-25 00:40 --- Flexible array member isn't allowed in union: [...@gnu-34 pr39545]$ cat u-1.i union line { int length; char contents[]; }; void foo (union line); union line bar () { union line x; x.length = sizeof (union line);

[Bug testsuite/39550] compat tests for flexible array members

2009-03-24 Thread joseph at codesourcery dot com
--- Comment #2 from joseph at codesourcery dot com 2009-03-25 00:45 --- Subject: Re: compat tests for flexible array members On Wed, 25 Mar 2009, hjl dot tools at gmail dot com wrote: > Flexible array member isn't allowed in union: However, a union may contain a structure that in tur

Re: Small error in manual

2009-03-24 Thread Ian Lance Taylor
Ralf Wildenhues writes: > 2009-03-24 Ralf Wildenhues > > * doc/invoke.texi (Debugging Options): Fix description of > -fno-merge-debug-strings. Really the original text is slightly wrong. > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi > index d1c86dc..8b97fa0 100644

Re: [Bug testsuite/39550] compat tests for flexible array members

2009-03-24 Thread Joseph S. Myers
On Wed, 25 Mar 2009, hjl dot tools at gmail dot com wrote: > Flexible array member isn't allowed in union: However, a union may contain a structure that in turn contains a flexible array member. And a union may contain a union containing such a structure, and so on. -- Joseph S. Myers jos...

[Bug middle-end/39552] New: Unnecessary stack usage with flexible array member

2009-03-24 Thread hjl dot tools at gmail dot com
After fixing PR 39545, I got [...@gnu-34 pr39545]$ cat f-1.i struct line { int length; char contents[]; }; void foo (struct line); struct line bar () { struct line x; x.length = sizeof (struct line); foo (x); return x; } [...@gnu-34 pr39545]$ make f-1.s /export/build/gnu/gcc-avx/build-x86_64

Re: Small error in manual

2009-03-24 Thread Ralf Wildenhues
* Ian Lance Taylor wrote on Wed, Mar 25, 2009 at 01:51:01AM CET: > > Really the original text is slightly wrong. [...] > This option only applies to strings in debugging information. It should > say something like "Direct the linker to not merge together strings in > the debugging information whi