[Bug fortran/31139] sum(w_re(1:nn,1)*fi(i(1:nn, ii))) up to 3.5x slower than C version

2007-03-12 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2007-03-12 08:16 --- > Can someone try instead of doing "__real__ a += w[j] *__real__ mfi[*index];" > Use "a+= xxx* yyy" and also use -std=c99 to get the correct multiplication? Well, -std=c99 was used already and the "real(!) * complex"

[Bug fortran/30922] IMPORT fails for same symbol in multiple interface bodies of same interface block

2007-03-12 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-03-12 08:50 --- Created an attachment (id=13193) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13193&action=view) Patch draft (by Paul Thomas) Notes by Paul: (i) gfc_find_symbol searches via proc_name->ns to o

[Bug objc++/31134] [4.3 Regression] Objective-C++ has ran into the tree number limit

2007-03-12 Thread pcarlini at suse dot de
--- Comment #8 from pcarlini at suse dot de 2007-03-12 09:07 --- (In reply to comment #7) > Also adding new features should not break old features Here we are not talking about trade-offs, that should be rather clear by now. We are talking about fixing for real the underlying very serio

[Bug c++/20599] variadic template support

2007-03-12 Thread pcarlini at suse dot de
--- Comment #15 from pcarlini at suse dot de 2007-03-12 09:26 --- Actually in the latest mailing there are two new papers, N2151 and N2152. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20599

[Bug c++/29164] Overloaded operator delete[] doesn't get called

2007-03-12 Thread Andreas dot Kowarz at tu-dresden dot de
--- Comment #10 from Andreas dot Kowarz at tu-dresden dot de 2007-03-12 09:30 --- THS (The Holy Standard :-) ) 3.7.4.2/3 reads to me that for standard library implementations the delete operators must be called in any case but return immediately if the first argument is NULL => NULL-che

[Bug c++/29365] Unnecessary anonymous namespace warnings

2007-03-12 Thread Woebbeking at web dot de
--- Comment #7 from Woebbeking at web dot de 2007-03-12 09:37 --- Any news on this? It's really annoying if you've many pimpls which often use anonymous namespace. -- Woebbeking at web dot de changed: What|Removed |Added ---

[Bug c++/31145] New: ICE: in cse_find_path, at cse.c:5930 with -O3 -ftracer

2007-03-12 Thread wouter dot vermaelen at pi dot be
e-werror --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug i486-linux-gnu --enable-libmudflap --enable-checking=release Thread model: posix gcc version 4.3.0 20070312 (experimental) -- Summary: ICE: in cse_find_path, at cse.c:5930

[Bug c++/28774] Request for warning where const/volatile is ignored in a cast

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-03-12 12:10 --- This seems a duplicate of PR 14710. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28774

[Bug tree-optimization/31146] New: forwprop does not look through casts

2007-03-12 Thread rguenth at gcc dot gnu dot org
The following two testcases should produce the same code after forwprop1: struct foo { int i[3]; }; void bar (void) { struct foo Foo; int i; for (i=0; i<3; ++i) { void *p = &Foo.i[i]; int *pi = (int *)p; if (pi != 0) { *pi = 0; } } } ---

[Bug c++/31147] New: increased size of debug information

2007-03-12 Thread Woebbeking at web dot de
Hi, compared to 4.1.2 the size increased by 50% and more. E.g. Qt 4.2.2 libQtGui.so.4.2.2.debug - 4.2.0 97902763 bytes - 4.1.2 62435403 bytes We compile with -O2 -g. Is this a regression or just more (useful?) information? -- Summary: increased size of debug information P

[Bug inline-asm/23200] [4.0/4.1/4.2/4.3 regression] rejects "i"(&var + 1)

2007-03-12 Thread amacleod at redhat dot com
--- Comment #30 from amacleod at redhat dot com 2007-03-12 13:11 --- Err, yeah. thats right. TER doesn't run without optimization, and I forgot this was more than just an optimization issue. Where is that work to do basic SSA optimizations at -O0 when you need it?? :-) -- http://gc

[Bug tree-optimization/30604] Unable to coalesce ssa_names and which are marked as MUST COALESCE

2007-03-12 Thread amacleod at redhat dot com
--- Comment #10 from amacleod at redhat dot com 2007-03-12 13:33 --- They do all have the (ab) next to them, I was just indicating that they all occurred in a PHI together, and hence needed to be coalesced. I should have been more precise. Well, _t_3 definately does have the (ab) flag,

[Bug c++/31147] increased size of debug information

2007-03-12 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-03-12 14:03 --- It's more information - whether it's useful depends. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31147

[Bug c++/31147] increased size of debug information

2007-03-12 Thread Woebbeking at web dot de
--- Comment #2 from Woebbeking at web dot de 2007-03-12 14:22 --- Subject: Re: increased size of debug information On Monday 12 March 2007, rguenth at gcc dot gnu dot org wrote: > It's more information - whether it's useful depends. Wow, more than 50%. Are there any docs to this chang

[Bug c++/30975] ptr to member func __delta is 0 if ptr declaration does not match function porototype

2007-03-12 Thread ingo dot donasch at L-3com dot com
--- Comment #5 from ingo dot donasch at L-3com dot com 2007-03-12 14:32 --- Subject: RE: ptr to member func __delta is 0 if ptr declar ation does not match function porototype I know our code is wrong, but my point is that gcc34 generated correct code and gcc4x is not. A Gcc4x

[Bug fortran/30922] IMPORT fails for same symbol in multiple interface bodies of same interface block

2007-03-12 Thread patchapp at dberlin dot org
--- Comment #4 from patchapp at dberlin dot org 2007-03-12 14:50 --- Subject: Bug number PR30922 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00728.html -- http://gcc.gnu.org/bugzilla/sh

[Bug c++/31147] increased size of debug information

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-03-12 14:51 --- Figure out which source causes the increase and then attach the preprocessed source and then we might be able to decide. It could be that in 4.1.2, that we were not emitting enums and some other types which should h

[Bug c++/31145] ICE: in cse_find_path, at cse.c:5930 with -O3 -ftracer

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-12 14:56 --- *** This bug has been marked as a duplicate of 31127 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug middle-end/31127] [4.3 regression] ICE in cse_find_path, at cse.c:5930

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-03-12 14:56 --- *** Bug 31145 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/31146] forwprop does not look through casts

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-12 14:59 --- forwprop should NOT, I repeat should NOT look through casts for conditional if the SSA_NAME that defines the cast is still used after the conditional. Really this non zero optimization should be done by VRP. --

[Bug tree-optimization/31146] forwprop does not look through casts

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-12 15:09 --- I should mention, unless it can produce a constant result. For an example this function: void bar (void * a) { struct foo Foo; int i; for (i=0; i<3; ++i) { void *p = a; int *pi = (int *)p;

[Bug fortran/30922] IMPORT fails for same symbol in multiple interface bodies of same interface block

2007-03-12 Thread pault at gcc dot gnu dot org
--- Comment #5 from pault at gcc dot gnu dot org 2007-03-12 15:24 --- The testcase in comment 1 should be lifted and deposited in another PR; it is going to be quite difficult to fix because the type and kind of an interface function is established before the specification statements tha

[Bug fortran/30870] GENERIC non-INTRINSIC procedure rejected as actual argument

2007-03-12 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2007-03-12 15:25 --- I just submitted a patch for this PR. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30870

[Bug tree-optimization/31146] forwprop does not look through casts

2007-03-12 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-03-12 15:35 --- The problem is that for example FRE value numbers void *p_4 = &a[0]; int *q_1 = (int *)p_4; p_4 with void* type (even if &a[0] is of int* type) and so re-generates the conversion to int* even though it is about

[Bug fortran/30879] Syntax error for derived type's compounds in a data-stmt-value-set

2007-03-12 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2007-03-12 15:40 --- I just submitted a patch for this PR. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/31148] New: optional argument of elemental function

2007-03-12 Thread vivekrao4 at yahoo dot com
Since ivec is not passed to sub, I think the two calls to set_optional should be equivalent, but gfortran crashes upon the second call. u:\vrao\fortran type xopt_bug.f90 module sub_mod contains elemental subroutine set_optional(i,idef,iopt) ! set i to (iopt,idef) if iopt (is,is not) PRESENT inte

[Bug tree-optimization/31146] forwprop does not look through casts

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-03-12 15:41 --- I think really this comes down to our type system, I remember posting a patch for the LTO branch which adds back the explict cast to "void*", I can test that, it should fix this testcase also :). -- http://gcc.g

[Bug tree-optimization/31146] forwprop does not look through casts

2007-03-12 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-03-12 16:01 --- Well sure - if we then would get int *p_1 = &a[0]; void *q_1 = (void *)p_1; int *r_1 = (int *)q_1; if (r_1 != NULL) ... then FRE would figure out that r_1 == p_1 and the forwprop pass after FRE will fold the

[Bug fortran/31149] New: gfortran: no diagnostics about too many arguments in legacy code (vs. g77)

2007-03-12 Thread bartoldeman at users dot sourceforge dot net
Consider this code: SUBROUTINE FOO(I) I=0 END SUBROUTINE BAR() CALL FOO(1,2) END compiled with g77 3.4.6: f77.f: In subroutine `bar': f77.f:1: SUBROUTINE FOO(I) 1 f77.f:6: (continued): CALL FOO(1,2) 2 Too m

[Bug c++/30108] [4.0/4.1/4.2/4.3 Regression] internal compiler error: in make_decl_rtl, at varasm.c:890

2007-03-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #10 from mmitchel at gcc dot gnu dot org 2007-03-12 16:24 --- Subject: Bug 30108 Author: mmitchel Date: Mon Mar 12 16:24:18 2007 New Revision: 122844 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122844 Log: PR c++/30108 * call.c (convert_default_ar

[Bug c++/31147] increased size of debug information

2007-03-12 Thread Woebbeking at web dot de
--- Comment #4 from Woebbeking at web dot de 2007-03-12 16:46 --- Created an attachment (id=13194) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13194&action=view) preprocessed qcombobox.cpp I added both versions (4.2.0 and 4.1.2). It's compiled with -c -fno-exceptions -pipe -O2

[Bug middle-end/31150] New: [4.1/4.2/4.3 Regression] Not promoting an whole array to be static const

2007-03-12 Thread pinskia at gcc dot gnu dot org
Take: int main() { char str[2][34] = {"a","b"}; __builtin_puts(str[0]); return 0; } In 4.0.2, we used to get: static char C.0[2][34] = {"a", "b"}; char str[2][34]; str = C.0; __builtin_puts (&str[0][0]); But in 4.1.1 and above, we get: char str[2][34]; str = {};

[Bug middle-end/31150] [4.1/4.2/4.3 Regression] Not promoting an whole array to be static const

2007-03-12 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31150

[Bug c++/20478] poor diagnostic

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2007-03-12 16:47 --- It would be helpful if you could reduce the testcase. Thanks. -- manu at gcc dot gnu dot org changed: What|Removed |Added -

[Bug bootstrap/31151] New: During 'make bootstrap': Syntax error at line 1 : `>' is not expected

2007-03-12 Thread jkurpa at co dot volusia dot fl dot us
Am receiving following error during 'make bootstrap' for GCC v4.1.2 on AIX 5.3: srcdir="/usr/local/gcc-4.1.2/fixincludes" /bin/sh /usr/local/gcc-4.1.2/f ixincludes/mkfixinc.sh powerpc-ibm-aix5.3.0.0 sed -e 's/@gcc_version@//' < > mkheadersT /bin/sh: 0403-057 Syntax error at line 1

[Bug bootstrap/31151] During 'make bootstrap': Syntax error at line 1 : `>' is not expected

2007-03-12 Thread jkurpa at co dot volusia dot fl dot us
--- Comment #1 from jkurpa at co dot volusia dot fl dot us 2007-03-12 16:51 --- Created an attachment (id=13195) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13195&action=view) Screen output from 'make bootstrap' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31151

[Bug bootstrap/31151] During 'make bootstrap': Syntax error at line 1 : `>' is not expected

2007-03-12 Thread jkurpa at co dot volusia dot fl dot us
--- Comment #2 from jkurpa at co dot volusia dot fl dot us 2007-03-12 16:52 --- Created an attachment (id=13196) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13196&action=view) Screen output from configure -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31151

[Bug tree-optimization/31130] [4.3 Regression] VRP no longer derives range for division after negation

2007-03-12 Thread ian at airs dot com
--- Comment #4 from ian at airs dot com 2007-03-12 17:08 --- First test case: int f(int a) { if (a < 0) a = -a; return a < 0; } As far as I can tell the behaviour of this test case in VRP is unchanged by the patch in this PR. And the code is still fully optimized. Second test

[Bug tree-optimization/31130] [4.3 Regression] VRP no longer derives range for division after negation

2007-03-12 Thread ian at airs dot com
--- Comment #5 from ian at airs dot com 2007-03-12 17:21 --- Unfortunately my patch in comment #1 doesn't handle this test case correctly: extern void abort (void); void foo (int a) { if (a <= (int) 0x8001) { a = - a; if (a > 0) abort (); } } It turns

[Bug c/11051] -Wno-deprecated needed also for C

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #14 from manu at gcc dot gnu dot org 2007-03-12 17:22 --- Tom, your patch http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01853.html will also fix this by adding Wdeprecated to the C front-end. -- manu at gcc dot gnu dot org changed: What|Removed

[Bug target/26090] IA-64 creates DT_TEXTREL binaries

2007-03-12 Thread rth at gcc dot gnu dot org
--- Comment #6 from rth at gcc dot gnu dot org 2007-03-12 17:15 --- Subject: Bug 26090 Author: rth Date: Mon Mar 12 17:15:44 2007 New Revision: 122847 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122847 Log: PR target/26090 * config/alpha/alpha.c (alpha_elf_sel

[Bug preprocessor/23479] Implement binary constants with a "0b" prefix

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #19 from manu at gcc dot gnu dot org 2007-03-12 17:31 --- (In reply to comment #18) > Created an attachment (id=13025) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13025&action=view) [edit] > Updated patch, output from "svn diff" as of 2007-02-07 > Joerg, as Andrew s

[Bug tree-optimization/31152] New: -(x>y) generates wrong code

2007-03-12 Thread anton at mips dot complang dot tuwien dot ac dot at
The actual gcc version is gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) When compiled and run with this gcc version, using the command line gcc -O xxx.c && a.out the attached program outputs -1, whereas the correct output is 0. If I use gcc 3.3.6 or leave away the -O flag, the prog

[Bug c++/23263] Incomprehensible message for invalid attempt to partially specialize a member

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2007-03-12 17:39 --- (In reply to comment #4) > See also PR 23281 [snip] > Consequently I'm filing this as a DR against the gcc DR reporting machinery > itself, rather than against the compiler in particular. There needs to be > categories

[Bug tree-optimization/31152] -(x>y) generates wrong code

2007-03-12 Thread anton at mips dot complang dot tuwien dot ac dot at
--- Comment #1 from anton at mips dot complang dot tuwien dot ac dot at 2007-03-12 17:43 --- Subject: Re: New: -(x>y) generates wrong code I cannot create an attachment in Bugzilla, so I'll just append the test program here: #include #include long foo(long x, long y); int main()

[Bug other/28002] decNumber sources need GPL+exception for use in libgcc

2007-03-12 Thread janis at gcc dot gnu dot org
--- Comment #6 from janis at gcc dot gnu dot org 2007-03-12 17:45 --- The link in comment #5 is to David Edelsohn's message that RMS had approved the license change. Ben Elliston changed the license in the decNumber files for mainline and the 4.2 branch. -- janis at gcc dot gnu dot

[Bug c/24016] Missing warning for unspecified evaluation order

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2007-03-12 17:48 --- (In reply to comment #1) > > It is, however, at least unspecified order of evaluation and a warning > here would still make sense. > A candidate for -Wsequence-points ? -- http://gcc.gnu.org/bugzilla/show_bug.c

[Bug c++/30108] [4.0/4.1/4.2/4.3 Regression] internal compiler error: in make_decl_rtl, at varasm.c:890

2007-03-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #11 from mmitchel at gcc dot gnu dot org 2007-03-12 18:07 --- Subject: Bug 30108 Author: mmitchel Date: Mon Mar 12 18:07:33 2007 New Revision: 122848 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122848 Log: PR c++/30108 * call.c (convert_default_ar

[Bug c++/30108] [4.0/4.1 Regression] internal compiler error: in make_decl_rtl, at varasm.c:890

2007-03-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #12 from mmitchel at gcc dot gnu dot org 2007-03-12 18:09 --- Fixed in 4.2.0, 4.3.0. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++

2007-03-12 Thread craig dot lawson at centrify dot com
--- Comment #4 from craig dot lawson at centrify dot com 2007-03-12 18:26 --- Perhaps there are different degrees of thread safety here. If I write my multi-threaded program such that only one thread does stream I/O with libstdc++, I would expect it to operate safely with respect to th

[Bug tree-optimization/28544] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1309

2007-03-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #22 from mmitchel at gcc dot gnu dot org 2007-03-12 18:27 --- Danny, please apply the patch to 4.2.0. Thanks, -- Mark -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28544

[Bug target/28701] [4.1/4.2/4.3 regression] ABI test failures building libstdc++ on a glibc-2.4 based system

2007-03-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #12 from mmitchel at gcc dot gnu dot org 2007-03-12 18:31 --- It appears from the audit trail that there is no GCC bug here, other than, perhaps, the configuration options not defaulting to ideal choices. If that's a problem, file a new PR; however, AFAICT, we do not have a

[Bug c/31153] New: -Wconversion does not catch return value mismatch

2007-03-12 Thread craig dot lawson at centrify dot com
In functions declared to return unsigned int, -Wconversion correctly warns when a constant signed int is returned. But -Wconversion fails to warn when the return value is an identifier with type signed int. Seen in gcc 3.2.3 (Red Hat) and 4.0.1 (Mac OS X) -- Summary: -Wconversion doe

[Bug middle-end/30433] [4.1 Regression] no longer folding __complex__(0.0, 1.0) == __complex__(1.0, 0.0)

2007-03-12 Thread sayle at gcc dot gnu dot org
--- Comment #6 from sayle at gcc dot gnu dot org 2007-03-12 18:41 --- Subject: Bug 30433 Author: sayle Date: Mon Mar 12 18:40:56 2007 New Revision: 122852 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122852 Log: 2007-03-12 Roger Sayle <[EMAIL PROTECTED]> Andrew P

[Bug middle-end/30433] [4.1 Regression] no longer folding __complex__(0.0, 1.0) == __complex__(1.0, 0.0)

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-03-12 18:45 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/30761] [4.1/4.2/4.3 regression] Error: unsupported relocation against sfp

2007-03-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #5 from mmitchel at gcc dot gnu dot org 2007-03-12 18:45 --- Ulrich -- Did your patch fix this PR on mainline? Is a backport to 4.1/4.2 possible? Thanks, -- Mark -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added -

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++

2007-03-12 Thread pcarlini at suse dot de
--- Comment #5 from pcarlini at suse dot de 2007-03-12 18:51 --- (In reply to comment #4) > Perhaps there are different degrees of thread safety here. > > If I write my multi-threaded program such that only one thread does stream I/O > with libstdc++, I would expect it to operate safely

[Bug c/31153] -Wconversion does not catch return value mismatch

2007-03-12 Thread craig dot lawson at centrify dot com
--- Comment #1 from craig dot lawson at centrify dot com 2007-03-12 18:53 --- Test program (Create a New Attachment is not working for me today): const int i = -1; unsigned int slip_one_by() { return i; } unsigned int caught_me() { return -1; } $ gcc -c unsigned_return.c -W

[Bug fortran/31067] MINLOC should sometimes be inlined (gas_dyn is sooooo sloooow)

2007-03-12 Thread pault at gcc dot gnu dot org
--- Comment #10 from pault at gcc dot gnu dot org 2007-03-12 19:04 --- (In reply to comment #9) > > As a workaround, one could always use "minloc(...,dim=1)", then > we get the inline version. > Thomas, it's a bit kludgy, but why not add a constant expression = 1, if dim is not presen

[Bug fortran/31149] gfortran: no diagnostics about too many arguments in legacy code (vs. g77)

2007-03-12 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-03-12 19:09 --- This is do to the fact that gfortran does no same-file checking; this checking is outside the Fortran standard but still useful. It is planed for this year; cf. PR 26227 and references therein. *** This bug has been

[Bug fortran/26227] accepts invalid fortran, different dummy types/number

2007-03-12 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2007-03-12 19:09 --- *** Bug 31149 has been marked as a duplicate of this bug. *** -- burnus at gcc dot gnu dot org changed: What|Removed |Added -

[Bug tree-optimization/28544] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1309

2007-03-12 Thread dberlin at gcc dot gnu dot org
--- Comment #23 from dberlin at gcc dot gnu dot org 2007-03-12 19:09 --- Subject: Bug 28544 Author: dberlin Date: Mon Mar 12 19:09:05 2007 New Revision: 122857 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122857 Log: 2007-03-12 Daniel Berlin <[EMAIL PROTECTED]> Fix

[Bug tree-optimization/28544] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1309

2007-03-12 Thread dberlin at gcc dot gnu dot org
--- Comment #24 from dberlin at gcc dot gnu dot org 2007-03-12 19:12 --- Fixed -- dberlin at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/31154] New: IMPORT fails for " FUNCTION (...)" kind of procedures

2007-03-12 Thread burnus at gcc dot gnu dot org
+++ This bug was initially created as a clone of Bug #30922 +++ gfortran currently does not like the following: module x implicit none integer, parameter :: d=8 interface real(d) function y() import end function end interface end module x

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++

2007-03-12 Thread craig dot lawson at centrify dot com
--- Comment #6 from craig dot lawson at centrify dot com 2007-03-12 19:23 --- > Anyway, what happens in the GNU systems is that errno is a per-thread variable > and the __convert_to_v code has to do nothing special, just safely use it. I agree. The problem is that this is not happening

[Bug middle-end/30761] [4.1/4.2 regression] Error: unsupported relocation against sfp

2007-03-12 Thread uweigand at gcc dot gnu dot org
--- Comment #6 from uweigand at gcc dot gnu dot org 2007-03-12 19:34 --- I haven't verified that this problem is fixed -- the patch was originally intended to fix another bug uncovered by Peter Bergner, and I just added this PR number to the check-in due to Andrew's comment #3 on this b

[Bug middle-end/30984] [4.1/4.2/4.3 Regression] ICE with computed goto and constants

2007-03-12 Thread janis at gcc dot gnu dot org
--- Comment #2 from janis at gcc dot gnu dot org 2007-03-12 19:45 --- A regression hunt on powerpc-linux using the submitter's test case identified this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=96084 r96084 | law | 2005-03-08 03:39:19 + (Tue, 08 Mar 2005) -- janis

[Bug c++/31155] New: priority_queue sorts wrong with std::less

2007-03-12 Thread rmecklenburg at s5w dot com
#define protected public #include #include typedef std::vector int_collection; typedef std::priority_queue > int_queue; void print(int_queue & q) { for (int_collection::iterator iter(q.c.begin()); iter != q.c.end(); ++iter) std::cout << *iter << " "; std::cout << std::endl; } i

[Bug c++/31155] priority_queue sorts wrong with std::less

2007-03-12 Thread rmecklenburg at s5w dot com
--- Comment #1 from rmecklenburg at s5w dot com 2007-03-12 19:51 --- Created an attachment (id=13197) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13197&action=view) gcc -v -E version of the test program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31155

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++

2007-03-12 Thread pcarlini at suse dot de
--- Comment #7 from pcarlini at suse dot de 2007-03-12 19:51 --- (In reply to comment #6) > > Anyway, what happens in the GNU systems is that errno is a per-thread > > variable > > and the __convert_to_v code has to do nothing special, just safely use it. > > I agree. The problem is th

[Bug preprocessor/23479] Implement binary constants with a "0b" prefix

2007-03-12 Thread j at uriah dot heep dot sax dot de
--- Comment #20 from j at uriah dot heep dot sax dot de 2007-03-12 19:55 --- (In reply to comment #19) > Joerg, as Andrew said, you need a copyright assignment and you need to submit > the patch to [EMAIL PROTECTED] Patch submitted to list by 2007-02-09, message-id is <[EMAIL PROTECTE

[Bug bootstrap/30635] --enable-stage1-langauges configure option is not documented.

2007-03-12 Thread brooks at gcc dot gnu dot org
--- Comment #1 from brooks at gcc dot gnu dot org 2007-03-12 20:03 --- Subject: Bug 30635 Author: brooks Date: Mon Mar 12 20:03:33 2007 New Revision: 122861 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122861 Log: PR 30635 * doc/install.texi: Document --enable-stage1-languages

[Bug c++/31155] priority_queue sorts wrong with std::greater

2007-03-12 Thread pcarlini at suse dot de
--- Comment #2 from pcarlini at suse dot de 2007-03-12 20:05 --- This is how priority_queue works: it makes an "heap" (in the exact computer science meaning), therefore, in particular, there is no guarantee that the contents are all fully sorted, only that the smallest is the first one (

[Bug middle-end/30984] [4.1/4.2/4.3 Regression] ICE with computed goto and constants

2007-03-12 Thread law at redhat dot com
--- Comment #3 from law at redhat dot com 2007-03-12 20:06 --- Subject: Re: [4.1/4.2/4.3 Regression] ICE with computed goto and constants On Mon, 2007-03-12 at 19:45 +, janis at gcc dot gnu dot org wrote: > > --- Comment #2 from janis at gcc dot gnu dot org 2007-03-12

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++

2007-03-12 Thread craig dot lawson at centrify dot com
--- Comment #8 from craig dot lawson at centrify dot com 2007-03-12 20:07 --- Not on Linux: correct. I could give it a try, but I haven't built this library before. If you could point me to a brief how-to, I could give it a try on a Solaris 10 SPARC. Rather than code around it, I woul

[Bug bootstrap/30635] --enable-stage1-langauges configure option is not documented.

2007-03-12 Thread brooks at gcc dot gnu dot org
--- Comment #2 from brooks at gcc dot gnu dot org 2007-03-12 20:09 --- Fixed, as per the previous comment. -- brooks at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/31117] c++locale.o thread-unsafe in libstdc++

2007-03-12 Thread pcarlini at suse dot de
--- Comment #9 from pcarlini at suse dot de 2007-03-12 20:14 --- (In reply to comment #8) > Not on Linux: correct. Ok. > I could give it a try, but I haven't built this library before. If you could > point me to a brief how-to, I could give it a try on a Solaris 10 SPARC. > > Rather t

[Bug preprocessor/23479] Implement binary constants with a "0b" prefix

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #21 from manu at gcc dot gnu dot org 2007-03-12 20:15 --- (In reply to comment #20) > Patch submitted to list by 2007-02-09, message-id is > <[EMAIL PROTECTED]> > > I've got a copyright assignment on file since 2003-03-19 (date of > confirmation email from Jessica Natale). >

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread dje at gcc dot gnu dot org
--- Comment #3 from dje at gcc dot gnu dot org 2007-03-12 20:19 --- The problem appears to be occurring in real.c conversions from CONST_DOUBLE to TARGET_DOUBLE. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30704

[Bug middle-end/30761] [4.1/4.2 regression] Error: unsupported relocation against sfp

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-03-12 20:19 --- > Andrew, have you verified that the problem is fixed now? Yes the patch fixed the problem for me. >Was this impression mistaken? Yes but in my own testing of a private tree of GCC 4.1.1 modifed for the PS3 game OS

[Bug preprocessor/23479] Implement binary constants with a "0b" prefix

2007-03-12 Thread patchapp at dberlin dot org
--- Comment #22 from patchapp at dberlin dot org 2007-03-12 20:40 --- Subject: Bug number preprocessor/23479 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00810.html -- http://gcc.gnu.org

[Bug libstdc++/30915] [4.3 regression] bootstrap fails while building libstdc++-v3 on x86_64-pc-linux-gnu

2007-03-12 Thread b33fc0d3 at gmail dot com
--- Comment #17 from b33fc0d3 at gmail dot com 2007-03-12 20:48 --- I can confirm this patch works on an amd64 gentoo sytem too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30915

[Bug libstdc++/30915] [4.3 regression] bootstrap fails while building libstdc++-v3 on x86_64-pc-linux-gnu

2007-03-12 Thread pcarlini at suse dot de
--- Comment #18 from pcarlini at suse dot de 2007-03-12 21:08 --- (In reply to comment #17) > I can confirm this patch works on an amd64 gentoo sytem too. And what happens if you just change that #include_next to #include , that would be useful in understanding the issue and how much of

[Bug c++/31156] New: creates reference to copy constructor on use of temporary object

2007-03-12 Thread charles at vmware dot com
The following code fails to compile: begin #include class Foo { Foo(const Foo&); // private public: Foo(int x) { } }; std::ostream &operator <<(std::ostream &out, const Foo &) { return out; } int main() { std::cout << Foo(5); } // test.cpp:5: error: 'Foo::

[Bug c++/28774] Request for warning where const/volatile is ignored in a cast

2007-03-12 Thread simon_baldwin at yahoo dot com
--- Comment #7 from simon_baldwin at yahoo dot com 2007-03-12 21:48 --- PR 14710 isn't really quite the same thing as PR 28774. PR 14170 is concerned with unnecessary casts; PR 28774 is concerned with unnecessary "const" or "volatile" qualifiers within otherwise valid and perhaps necess

[Bug middle-end/30835] ICE with -O2 -ftree-loop-linear

2007-03-12 Thread rakdver at gcc dot gnu dot org
--- Comment #2 from rakdver at gcc dot gnu dot org 2007-03-12 21:56 --- Subject: Bug 30835 Author: rakdver Date: Mon Mar 12 21:56:12 2007 New Revision: 122866 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122866 Log: PR tree-optimization/30835 * lambda-code.c (c

[Bug c++/31156] creates reference to copy constructor on use of temporary object

2007-03-12 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-12 21:56 --- See PR 25950 and PR 12226 (dup). The resolution is that you need an accessible copy-constructor, regardless of whether or not the compiler elides it during temporary creation. -- fang at csl dot cornell dot e

[Bug c++/31156] creates reference to copy constructor on use of temporary object

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-12 21:59 --- *** This bug has been marked as a duplicate of 25950 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/25950] [DR 391] Reference binding and explicit copy constructors

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #26 from pinskia at gcc dot gnu dot org 2007-03-12 21:59 --- *** Bug 31156 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25950

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread dje at gcc dot gnu dot org
--- Comment #4 from dje at gcc dot gnu dot org 2007-03-12 22:20 --- I do not believe this is an endian issue. It is a coincidence that the output value looks like the original constant. GCC converts the __builtin_memcpy() into a VIEW_CONVERT_EXPR. The constant is equivalent to a NaN a

[Bug c/31153] -Wconversion does not catch return value mismatch

2007-03-12 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2007-03-12 22:25 --- Wconversion is implemented in the front-end and there is no data-flow solving on front-ends, so basically it is impossible to know the value of i. In addition, up to GCC 4.3, Wconversion was not meant to warn about sig

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-03-12 22:25 --- Index: ../../gcc/fold-const.c === --- ../../gcc/fold-const.c (revision 122864) +++ ../../gcc/fold-const.c (working copy) @@ -7357,6 +7357,7 @@

[Bug libstdc++/30915] [4.3 regression] bootstrap fails while building libstdc++-v3 on x86_64-pc-linux-gnu

2007-03-12 Thread martin dot jansa at mk dot cvut dot cz
--- Comment #19 from martin dot jansa at mk dot cvut dot cz 2007-03-12 22:30 --- (In reply to comment #18) > (In reply to comment #17) > > I can confirm this patch works on an amd64 gentoo sytem too. > > And what happens if you just change that #include_next to #include , > that would

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-03-12 22:38 --- >From native_encode_int, we get: (gdb) p/x *(unsigned int[2]*)ptr $14 = {0x0f00, 0x} Which is obviously wrong, it should have encoded it as: {0x000f, 0x} So we get the wrong answer to begin

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-03-12 22:44 --- (In reply to comment #6) > From native_encode_int, we get: > (gdb) p/x *(unsigned int[2]*)ptr > $14 = {0x0f00, 0x} No that is right, I was looking at while doing a cross so (unsigned int[2]*) meant we ha

[Bug c++/31157] New: Bitfield is not promoted

2007-03-12 Thread ismail at pardus dot org dot tr
Following testcase compiles fine with gcc 3.4.6 but not with gcc 4.2.0 20070307 : - cut here - #include using namespace std; class Foo { public: Foo() { x=1; y=0; }; unsigned int x:12; unsigned int y; }; int main() { Foo bar; max(bar.y,bar.x); return

[Bug c++/31157] Bitfield is not promoted

2007-03-12 Thread ismail at pardus dot org dot tr
--- Comment #1 from ismail at pardus dot org dot tr 2007-03-12 23:03 --- Original code was from WebKit SVN. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31157

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-03-12 23:08 --- the issue is with native_interpret_real really, tmp is getting the wrong words order. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30704

[Bug libstdc++/30915] [4.3 regression] bootstrap fails while building libstdc++-v3 on x86_64-pc-linux-gnu

2007-03-12 Thread pcarlini at suse dot de
--- Comment #20 from pcarlini at suse dot de 2007-03-12 23:09 --- (In reply to comment #19) ... > this isn't enough even with building with this brand new > gcc-4.3.0_alpha20070309. > I'll repeat it with include of proper stdio.h, which looks in gentoo multilib > like this > > jama gcc

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-03-12 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-03-12 23:18 --- Here is my new patch: Index: ../../gcc/fold-const.c === --- ../../gcc/fold-const.c (revision 122864) +++ ../../gcc/fold-const.c (working copy)

  1   2   >