Re: Preparsing sprintf format strings

2007-10-10 Thread Heikki Linnakangas
Kaveh R. GHAZI wrote: On Mon, 8 Oct 2007, Heikki Linnakangas wrote: sprintf(dest, %d, arg1); - a new function that does the same thing, but without the overhead of parsing the format string. Like itoa on some platforms. We could inline it as well. That would allow further optimizations, if

Re: Preparsing sprintf format strings

2007-10-10 Thread Heikki Linnakangas
Joe Buck wrote: If your program has one or two dominant sprintf calls (as in the example that motivated this exercise), it pays off. But for a large program with thousands of {,s,f}printf calls, this kind of code size expansion could easily hurt instead of help. Without some data showing a

Problem with optimization passes management

2007-10-10 Thread Wolfgang Gellerich
There is a conflict between the command line switches that turn off individual optimization steps and their preconditions. Compiling a hello world with the following options: -O1 -fno-tree-salias causes gcc to fail with an internal consistency check. Pass return_slot has PROP_alias in its

Re: Problem with optimization passes management

2007-10-10 Thread Andrew Pinski
On 10/10/07, Wolfgang Gellerich [EMAIL PROTECTED] wrote: There is a conflict between the command line switches that turn off individual optimization steps and their preconditions. Compiling a hello world with the following options: This one issue is know, it was reported as PR 33092. Thanks,

gcc mirror

2007-10-10 Thread admin
Hi Gcc Webmaster, I estabilished an http mirror via rsync, updated four times a day with a cron job, located in Utah (US), available at the URL http://gcc.bigsearcher.com/;, from my server bigsearcher.com; Please add this mirror to the list of available mirror location. Best regards, Andrea

Re: Problem with optimization passes management

2007-10-10 Thread Wolfgang Gellerich
On 10/10/07, Wolfgang Gellerich [EMAIL PROTECTED] wrote: There is a conflict between the command line switches that turn off individual optimization steps and their preconditions. Compiling a hello world with the following options: This one issue is know, it was reported as PR 33092.

Re: Preparsing sprintf format strings

2007-10-10 Thread Joe Buck
On Wed, Oct 10, 2007 at 12:12:25AM -0400, Kaveh R. GHAZI wrote: One simplification I don't believe we do yet, that should always be a win, is turning: sprintf (foo, %c, bar); into:*foo = bar; You need the null terminator: foo[0] = bar; foo[1] = 0; But these things are rarely going to be

Re: Inconsistent use of __GTHREAD_HAS_COND

2007-10-10 Thread fafa
Jason Merrill wrote: fafa wrote: I tried to build gcc from the latest snapshot (gcc-4.3-20071005), but I undefined the symbol __GTHREAD_HAS_COND which is desribed in libstdc++-v3\ChangeLog as follows: ... [!__GTHREAD_HAS_COND] Fall back to the old code, which deadlocks. ... But

Re: Inconsistent use of __GTHREAD_HAS_COND

2007-10-10 Thread Benjamin Kosnik
FYI this was libstdc++/33682, and was fixed with: http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00415.html Which was checked in yesterday. Please update your sources and try again. best, -benjamin

University coursework GCC

2007-10-10 Thread Alexander Monakov
Hello, I am currently looking for a topic for graduation thesis. I would like it to be in the area of GCC code generation enhancements, and my current best choice is providing predication support in selective scheduling. If you have anything to suggest, I will be very glad to hear; or maybe

MIPS testsuite failures...

2007-10-10 Thread David Daney
I am pleased that the current trunk is looking to be in very good shape for the mipsel-linux target: http://gcc.gnu.org/ml/gcc-testresults/2007-10/msg00397.html The gcc.c-torture/execute/loop-2[fg].c FAILures are due to kernel bugs. gcc.c-torture/execute/mayalias-[23].c FAIL on

Re: MIPS testsuite failures...

2007-10-10 Thread Richard Sandiford
David Daney [EMAIL PROTECTED] writes: There are two GCC tests for which I cannot explain the failures: FAIL: gcc.dg/memcpy-1.c scan-tree-dump-times nasty_local 0 This is on my list of things to look at. It seems to fail on 32-bit MIPS targets but not 64-bit ones. FAIL:

Successfully built and installed gcc 4.2.2

2007-10-10 Thread Gabriele Inghirami
$ ./config.guess i686-pc-linux-gnu $gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-threads --enable-languages=c,c++,fortran,java,objc,obj-c++,treelang --enable-__cxa_atexit Thread model: posix gcc version 4.2.2 Linux

Re: Preparsing sprintf format strings

2007-10-10 Thread Kaveh R. GHAZI
On Wed, 10 Oct 2007, Joe Buck wrote: On Wed, Oct 10, 2007 at 12:12:25AM -0400, Kaveh R. GHAZI wrote: One simplification I don't believe we do yet, that should always be a win, is turning: sprintf (foo, %c, bar); into:*foo = bar; You need the null terminator: foo[0] = bar; foo[1] =

Re: Scheduling problem - A more detailed explain

2007-10-10 Thread Jim Wilson
ÎâêØ wrote: Well... Is there anything I miss or forget to do ? Someone needs to step through code in a debugger and try to figure out what is going wrong. I made an initial attempt at that. I hacked gcc a little to try to force a failure with a contrived testcase. The first thing I

Re: Preparsing sprintf format strings

2007-10-10 Thread Joe Buck
On Wed, Oct 10, 2007 at 04:22:45PM -0400, Kaveh R. GHAZI wrote: But these things are rarely going to be a huge win, and I get the impression that competing compiler developers only do them when they help with standard benchmarks. Their loss. I agree with avoiding these micro opts when

Re: Scheduling problem - A more detailed explain

2007-10-10 Thread 吴曦
2007/10/11, Jim Wilson [EMAIL PROTECTED]: Thanks for you helpful hints ! And I am sorry for such a late reply. I have figured out this problem yesterday :-). Do we know for sure that the scheduler is failing here? Have you looked at -da RTL dumps to verify which pass is performing the

[Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer

2007-10-10 Thread belyshev at depni dot sinp dot msu dot ru
--- Comment #10 from belyshev at depni dot sinp dot msu dot ru 2007-10-10 06:08 --- This bug is not fixed by r129193 -- belyshev at depni dot sinp dot msu dot ru changed: What|Removed |Added

[Bug middle-end/33713] [4.3 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'

2007-10-10 Thread bonzini at gnu dot org
--- Comment #3 from bonzini at gnu dot org 2007-10-10 06:44 --- forward_propagate_and_simplify only propagates into single-set insns. In principle there's nothing to forbid working on other insns (it already does it for forward_propagate_subreg), but it is made harder because df does

[Bug fortran/33686] FORALL loop gives wrong result

2007-10-10 Thread pault at gcc dot gnu dot org
--- Comment #8 from pault at gcc dot gnu dot org 2007-10-10 06:50 --- (In reply to comment #7) Hmmm, that's not right, is it? It should be PROGRAM TST IMPLICIT NONE INTEGER :: P(4),I integer, allocatable :: Q(:) P = (/2,4,1,3/) allocate (Q(size(P))) Q = P FORALL(I=1:4)

[Bug middle-end/33706] gcc_assert failure in verify_eh_edges

2007-10-10 Thread aoliva at gcc dot gnu dot org
--- Comment #5 from aoliva at gcc dot gnu dot org 2007-10-10 06:31 --- http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00538.html -- aoliva at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31608] wrong types in character array/scalar binop

2007-10-10 Thread pault at gcc dot gnu dot org
--- Comment #27 from pault at gcc dot gnu dot org 2007-10-10 07:05 --- (In reply to comment #17) char.3 = (*(char[0:][1:1] *) atmp.0.data)[S.2][1]{lb: 1 sz: 1}; (*(char[0:][1:1] *) atmp.1.data)[S.2] = char.3; the first line is correct, the second is not. For

[Bug middle-end/32370] [4.3 Regression] Segfault after rejecting bogus assembler

2007-10-10 Thread tbm at cyrius dot com
--- Comment #8 from tbm at cyrius dot com 2007-10-10 07:35 --- *** Bug 33138 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32370

[Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer

2007-10-10 Thread ubizjak at gmail dot com
--- Comment #11 from ubizjak at gmail dot com 2007-10-10 07:59 --- (In reply to comment #9) Revision 128957 causes this regression. I can confirm that r128956 bootstraps OK when configured with --build=i386-pc-linux-gnu. Also, r128956 compiles and runs testcase from comment #8 without

[Bug ada/33722] putenv() is made posix-conformant on FreeBSD 7.x

2007-10-10 Thread kostikbel at ukr dot net
--- Comment #1 from kostikbel at ukr dot net 2007-10-10 08:16 --- Created an attachment (id=14335) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14335action=view) Fix for free() after putenv() on FreeBSD 7.x The patch allowed me to bootstrap gcc 4.2.2 on the FreeBSD 7.x with gnat

Re: [Bug ada/33722] putenv() is made posix-conformant on FreeBSD 7.x

2007-10-10 Thread Arnaud Charlet
Created an attachment (id=14335) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14335action=view) Fix for free() after putenv() on FreeBSD 7.x The patch allowed me to bootstrap gcc 4.2.2 on the FreeBSD 7.x with gnat enabled. Patch looks good to me. OK for 4.2 branch and trunk. Arno

[Bug ada/33722] New: putenv() is made posix-conformant on FreeBSD 7.x

2007-10-10 Thread kostikbel at ukr dot net
The putenv() in the FreeBSD 7.x is made posix-conforming, that means that the function does not make the copy of the argument string for entering it into the environment. As consequence, gcc/ada/env.c, __gnat_setenv() function shall not call free() on the malloc'ed string. Otherwise, memory of

[Bug ada/33722] putenv() is made posix-conformant on FreeBSD 7.x

2007-10-10 Thread charlet at adacore dot com
--- Comment #2 from charlet at adacore dot com 2007-10-10 08:18 --- Subject: Re: putenv() is made posix-conformant on FreeBSD 7.x Created an attachment (id=14335) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14335action=view) --

[Bug target/26902] missed optimization during x87 args load with inline-asm

2007-10-10 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2007-10-10 09:06 --- Maybe regstack needs to be taught how to swap stack register loads to avoid the fxch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26902

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread pcarlini at suse dot de
--- Comment #4 from pcarlini at suse dot de 2007-10-10 09:19 --- (In reply to comment #2) Here's my plan for the legacy hash containers: 1) port debug mode to tr1 associative containers 2) move ext/hash containers to deprecated Thoughts? Certainly, I agree with the (mid term?)

[Bug tree-optimization/32183] [4.3 Regression] reassoc2 can more extra calculations into a loop

2007-10-10 Thread steven at gcc dot gnu dot org
--- Comment #33 from steven at gcc dot gnu dot org 2007-10-10 08:57 --- What happened with the suggestion to only do this in reassoc2 (see comment #27)? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32183

[Bug target/33381] [4.2 regression] miscompilation casting signed long to void*

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-10-10 09:24 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/33381] [4.2 regression] miscompilation casting signed long to void*

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2007-10-10 09:24 --- Subject: Bug 33381 Author: rguenth Date: Wed Oct 10 09:24:43 2007 New Revision: 129197 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129197 Log: 2007-10-10 Richard Guenther [EMAIL PROTECTED] PR

[Bug tree-optimization/33099] [4.2 Regression] Scalar evolutions confusing VRP with pointer values that wrap around

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2007-10-10 09:24 --- Subject: Bug 33099 Author: rguenth Date: Wed Oct 10 09:24:43 2007 New Revision: 129197 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129197 Log: 2007-10-10 Richard Guenther [EMAIL PROTECTED] PR

[Bug tree-optimization/33099] [4.2 Regression] Scalar evolutions confusing VRP with pointer values that wrap around

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-10-10 09:25 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/31899] [4.2 Regression] -g and using declaration causing ICE in reference_to_unused

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #14 from rguenth at gcc dot gnu dot org 2007-10-10 09:29 --- Subject: Bug 31899 Author: rguenth Date: Wed Oct 10 09:29:13 2007 New Revision: 129199 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129199 Log: 2007-10-10 Richard Guenther [EMAIL PROTECTED]

[Bug debug/31899] [4.2 Regression] -g and using declaration causing ICE in reference_to_unused

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #15 from rguenth at gcc dot gnu dot org 2007-10-10 09:29 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/33686] FORALL loop gives wrong result

2007-10-10 Thread dominiq at lps dot ens dot fr
--- Comment #9 from dominiq at lps dot ens dot fr 2007-10-10 09:35 --- Are the codes in #7 and #8 supposed to behave differently? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33686

[Bug middle-end/33692] [4.3 Regression] Type checking error with address-of and volatile

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-10-10 09:57 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug target/33369] [4.3 Regression] suffix or operands invalid for `pslld'

2007-10-10 Thread uros at gcc dot gnu dot org
--- Comment #8 from uros at gcc dot gnu dot org 2007-10-10 10:02 --- Subject: Bug 33369 Author: uros Date: Wed Oct 10 10:01:53 2007 New Revision: 129201 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129201 Log: Backport from mainline: 2007-09-14 Uros Bizjak

[Bug target/33438] [4.3 Regression] ICE in cselib_record_set, at cselib.c:1515 on x86

2007-10-10 Thread uros at gcc dot gnu dot org
--- Comment #3 from uros at gcc dot gnu dot org 2007-10-10 10:02 --- Subject: Bug 33438 Author: uros Date: Wed Oct 10 10:01:53 2007 New Revision: 129201 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129201 Log: Backport from mainline: 2007-09-14 Uros Bizjak

[Bug libfortran/32954] pack with -fdefault-integer-8

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org

[Bug tree-optimization/33723] New: [4.1/4.2/4.3 Regression] Inefficient code with compound literals

2007-10-10 Thread jakub at gcc dot gnu dot org
At -O2 we should IMNSHO generate the same code for all 3 functions: typedef union { struct { int f1, f2, f3, f4, f5, f6, f7, f8; long int f9, f10; int f11; } f; char s[56]; long int a; } T; void foo (void) { T t; t = (T) { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }; test

[Bug fortran/33636] Rejects valid use of vector subscript in derived type parameter

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-10-10 11:23 --- The problem is that we try simplification in find_array_section() because the vector subscript is EXPR_ARRAY, which is not necessarily constant (in this case, the values in the constructor depend on variable i).

[Bug middle-end/33724] New: [4.3 Regression] Type checking error with address-of and ref-all pointer type

2007-10-10 Thread rguenth at gcc dot gnu dot org
struct xt_entry_target { unsigned char name[1]; }; struct ipt_entry { unsigned char elems[1]; }; void match_different(const unsigned char *); int dump_entry(struct xt_entry_target *t) { return __builtin_strcmp (t-name, ); } void is_same(const struct ipt_entry *a) {

[Bug middle-end/33724] [4.3 Regression] Type checking error with address-of and ref-all pointer type

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-10-10 11:34 --- The problem here is that some times we use build_pointer_type () and sometimes we use build_pointer_type_for_mode (). If the latter is called with ref-all true (as done from builtins.c for unsigned char) we get

[Bug middle-end/33724] [4.3 Regression] Type checking error with address-of and ref-all pointer type

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-10-10 11:37 --- Another fix would be to exchange the fix for PR19382 by only doing the folding of builtin_memcmp if the alias set of unsigned char is zero. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33724

[Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer

2007-10-10 Thread zadeck at naturalbridge dot com
--- Comment #12 from zadeck at naturalbridge dot com 2007-10-10 11:41 --- I will look at it today. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33676

[Bug middle-end/33724] [4.3 Regression] Type checking error with address-of and ref-all pointer type

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-10-10 11:49 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/33636] Rejects valid use of vector subscript in derived type parameter

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added URL||http://gcc.gnu.org/ml/gcc- |

[Bug rtl-optimization/33676] libgfortran bootstrap failure: selected_int_kind.f90:22: Segmentation fault, wrong code with -fomit-frame-pointer

2007-10-10 Thread zadeck at naturalbridge dot com
-- zadeck at naturalbridge dot com changed: What|Removed |Added BugsThisDependsOn|33669 | AssignedTo|unassigned at gcc dot gnu |zadeck at

[Bug c/33725] New: Could eliminate argument push for the second const function for same arguments

2007-10-10 Thread ubizjak at gmail dot com
This testcase: --cut here-- extern const int foo (int a); extern const int bar (int a); int test (int a) { return foo (a) + bar (a); } --cut here-- compiles to: test: subl$12, %esp movl%ebx, 4(%esp) movl16(%esp), %ebx movl%esi, 8(%esp)

[Bug tree-optimization/33680] [4.3 Regression] ICE when compilling elbg.c from ffmpeg (vectorizer)

2007-10-10 Thread irar at il dot ibm dot com
--- Comment #11 from irar at il dot ibm dot com 2007-10-10 13:23 --- I understand that those symbols have to be renamed, I am just saying that maybe it should be done in the gimplifier and not in the vectorizer. But since force_gimple_operand_bsi also goes through the statements list,

[Bug fortran/33254] Diagnose different string lengths in array constructors at run time

2007-10-10 Thread tobi at gcc dot gnu dot org
--- Comment #2 from tobi at gcc dot gnu dot org 2007-10-10 12:59 --- I have a patch for this. Unfortunately, while playing around with testcases I found a new segfault, so I'll have to look into this before submitting. Failing testcase: ! { dg-do run } ! { dg-options -fbounds-check }

[Bug middle-end/33662] [4.3 Regression] Wrong register allocation on SH

2007-10-10 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2007-10-10 13:28 --- Not fixed by r129192. I see FAIL: gcc.c-torture/execute/pr33669.c execution, -O1 FAIL: gcc.c-torture/execute/pr33669.c execution, -O2 FAIL: gcc.c-torture/execute/pr33669.c execution, -Os on

[Bug middle-end/33662] [4.3 Regression] Wrong register allocation on SH

2007-10-10 Thread zadeck at naturalbridge dot com
--- Comment #4 from zadeck at naturalbridge dot com 2007-10-10 13:33 --- Subject: Re: [4.3 Regression] Wrong register allocation on SH kkojima at gcc dot gnu dot org wrote: --- Comment #3 from kkojima at gcc dot gnu dot org 2007-10-10 13:28 --- Not fixed by r129192. I

[Bug fortran/33636] Rejects valid use of vector subscript in derived type parameter

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-10-10 13:38 --- Subject: Bug 33636 Author: fxcoudert Date: Wed Oct 10 13:38:38 2007 New Revision: 129208 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129208 Log: PR fortran/33636 * expr.c

[Bug c/33726] [4.3 Regression] Type checking error with address-of and volatile and arrays

2007-10-10 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-10-10 13:39 --- The C FE strips qualifier in building the ARRAY_REF. I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/33391] [4.3 regression] gfortran.dg/do_3.F90 fails at -O2

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
--- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-10-10 13:41 --- Subject: Bug 33391 Author: fxcoudert Date: Wed Oct 10 13:40:50 2007 New Revision: 129209 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129209 Log: PR testsuite/33391 *

[Bug fortran/33636] Rejects valid use of vector subscript in derived type parameter

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
--- Comment #5 from fxcoudert at gcc dot gnu dot org 2007-10-10 13:41 --- Fixed. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug testsuite/33391] [4.3 regression] gfortran.dg/do_3.F90 fails at -O2

2007-10-10 Thread fxcoudert at gcc dot gnu dot org
--- Comment #10 from fxcoudert at gcc dot gnu dot org 2007-10-10 13:42 --- Testcase fixed. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/33721] [meta-bug] Gcc can't properly align stack variable

2007-10-10 Thread hjl at lucon dot org
--- Comment #1 from hjl at lucon dot org 2007-10-10 13:52 --- There are -- Macro: STACK_BOUNDARY Define this macro to the minimum alignment enforced by hardware for the stack pointer on this machine. The definition is a C expression for the desired alignment (measured

[Bug fortran/33727] New: Segfault with ugly string array constructor

2007-10-10 Thread tobi at gcc dot gnu dot org
pb-d-128-141-24-81:~/src/pr tobi$ cat t.f90 program array_char implicit none character (len=2) :: x, y character (len=2) :: z(2) x = a y = cd z = [y(1:len(trim(y))), x(1:1)] ! causes segfault end program array_char pb-d-128-141-24-81:~/src/pr tobi$ ../hggcc/build/gcc/f951 t.f90 MAIN__ t.f90:6:

[Bug fortran/33254] Diagnose different string lengths in array constructors at run time

2007-10-10 Thread tobi at gcc dot gnu dot org
--- Comment #3 from tobi at gcc dot gnu dot org 2007-10-10 14:23 --- The failure from #2 is now PR 33727. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33254

[Bug rtl-optimization/33721] [meta-bug] Gcc can't properly align stack variable

2007-10-10 Thread hjl at lucon dot org
--- Comment #2 from hjl at lucon dot org 2007-10-10 13:54 --- (In reply to comment #1) STACK_BOUNDARY = PREFERRED_STACK_BOUNDARY = INCOMING_STACK_BOUNDARY But for backward compatibility, we can only do it with a command line option. --

[Bug fortran/33727] Segfault with ugly string array constructor

2007-10-10 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2007-10-10 14:38 --- Note that the (IMHO) valid code: program array_char implicit none character (len=2) :: x, y character (len=2) :: z(2) x = a y = cd z = (/y(1:len(trim(x))), x(1:len(trim(x)))/) ! causes segfault print *, z end

[Bug c++/33728] New: Assignement allowed to const pointer

2007-10-10 Thread brianp at occinc dot com
I have a block of code: struct LatLon : public Coord { std::string lat; std::string lon; inline LatLon() : lat(), lon() {} }; Coord* coord; coord = new LatLon(); static_castconst LatLon*(coord)-lat = static_castconst LatLon*(other.coord)-lat;

[Bug fortran/33727] Segfault with ugly string array constructor

2007-10-10 Thread tobi at gcc dot gnu dot org
--- Comment #4 from tobi at gcc dot gnu dot org 2007-10-10 14:40 --- OTOH this works: program array_char implicit none character (len=2) :: x character (len=1) :: z x = a z = x(1:len(trim(x))) end program array_char So the problem is with array constructors. --

[Bug fortran/33727] Segfault with ugly string array constructor

2007-10-10 Thread tobi at gcc dot gnu dot org
--- Comment #1 from tobi at gcc dot gnu dot org 2007-10-10 14:25 --- There's a disabled check in bounds_check_10.f90 (to be submitted) which depends on this bug, please enable it after fixing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33727

[Bug fortran/33727] Segfault with ugly string array constructor

2007-10-10 Thread tobi at gcc dot gnu dot org
--- Comment #2 from tobi at gcc dot gnu dot org 2007-10-10 14:34 --- (In reply to comment #1) There's a disabled check in bounds_check_10.f90 (to be submitted) which depends on this bug, please enable it after fixing. Scratch that, of course after the first runtime error the

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread bkoz at gcc dot gnu dot org
--- Comment #5 from bkoz at gcc dot gnu dot org 2007-10-10 15:24 --- Subject: Bug 33633 Author: bkoz Date: Wed Oct 10 15:23:59 2007 New Revision: 129210 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=129210 Log: 2007-10-10 Benjamin Kosnik [EMAIL PROTECTED] PR

[Bug fortran/31608] wrong types in character array/scalar binop

2007-10-10 Thread pault at gcc dot gnu dot org
--- Comment #28 from pault at gcc dot gnu dot org 2007-10-10 15:44 --- The patch below fixes the lot. It was not necessary in the end to touch trans-intrinsic.c. Once the appropriate, offending bit of trans-array.c was fixed, all the casting occurred correctly. The fixes to

[Bug libstdc++/33682] libstdc++ broken for !__GTHREAD_HAS_COND hosts

2007-10-10 Thread bkoz at gcc dot gnu dot org
--- Comment #5 from bkoz at gcc dot gnu dot org 2007-10-10 15:45 --- This should be fixed now. Please confirm and close. -- bkoz at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31608] wrong types in character array/scalar binop

2007-10-10 Thread rguenther at suse dot de
--- Comment #29 from rguenther at suse dot de 2007-10-10 15:47 --- Subject: Re: wrong types in character array/scalar binop On Wed, 10 Oct 2007, pault at gcc dot gnu dot org wrote: --- Comment #28 from pault at gcc dot gnu dot org 2007-10-10 15:44 --- The patch below

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread bkoz at gcc dot gnu dot org
--- Comment #6 from bkoz at gcc dot gnu dot org 2007-10-10 15:49 --- Fixed. Current debug mode results (ie, with make CXXFLAGS=-D_GLIBCXX_DEBUG check) FAIL: 20_util/pair/moveable.cc execution test FAIL: 23_containers/deque/moveable.cc execution test FAIL:

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread pcarlini at suse dot de
--- Comment #7 from pcarlini at suse dot de 2007-10-10 15:52 --- Yes, time to fix the moveable.cc tests in debug-mode. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33633

[Bug boehm-gc/33442] 1938 unexpected fails in libjava testsuite

2007-10-10 Thread danglin at gcc dot gnu dot org
--- Comment #6 from danglin at gcc dot gnu dot org 2007-10-10 17:08 --- Hans, Is the attached patch correct? -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread pcarlini at suse dot de
--- Comment #8 from pcarlini at suse dot de 2007-10-10 17:36 --- The moveable.cc fails are now fixed. Otherwise, a couple of fails are also trivial 23_containers/vector/bool/capacity/29134.cc 23_containers/vector/bool/modifiers/insert/31370.cc _S_word_size in the wrong namespace.

Re: [Bug tree-optimization/32183] [4.3 Regression] reassoc2 can more extra calculations into a loop

2007-10-10 Thread Daniel Berlin
On 10 Oct 2007 08:58:00 -, steven at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #33 from steven at gcc dot gnu dot org 2007-10-10 08:57 --- What happened with the suggestion to only do this in reassoc2 (see comment #27)? Yeah, i'm not sure why we just made both

[Bug tree-optimization/32183] [4.3 Regression] reassoc2 can more extra calculations into a loop

2007-10-10 Thread dberlin at dberlin dot org
--- Comment #34 from dberlin at gcc dot gnu dot org 2007-10-10 17:43 --- Subject: Re: [4.3 Regression] reassoc2 can more extra calculations into a loop On 10 Oct 2007 08:58:00 -, steven at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #33 from steven at gcc dot

[Bug target/30801] [4.3 Regression] performance regression on uint64_t operations

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30801

[Bug tree-optimization/31090] [4.3 Regression] Revision 121302 causes 30% performance regression

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31090

[Bug target/32086] [4.3 Regression] 10% to 20% Performance Regression Between 4.1.3 and 4.3

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32086

[Bug tree-optimization/32590] [4.3 regression] Duplicate code generated on both branches of if/else

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32590

[Bug tree-optimization/32653] [4.3 Regression] Bootstrap failure with excessive memory consumption in tree-ssa-pre compiling libjava/interperter.c

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32653

[Bug tree-optimization/32921] [4.3 Regression] Revision 126326 causes 12% slowdown

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32921

[Bug bootstrap/33100] [4.3 regression] on bootstrap getting section .eh_frame: bad cie version 0: offset 0x0

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33100

[Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33168

[Bug middle-end/33280] [4.3 regression] FAIL: gcc.c-torture/execute/990404-1.c execution at -O3

2007-10-10 Thread mmitchel at gcc dot gnu dot org
--- Comment #3 from mmitchel at gcc dot gnu dot org 2007-10-10 17:52 --- The original submitter says the problem has disappeared. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/33315] [4.3 Regression] If condition not getting eliminated

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33315

[Bug middle-end/33318] [4.3 Regression] fortran/expr.c:305: internal compiler error: internal consistency failure

2007-10-10 Thread mmitchel at gcc dot gnu dot org
--- Comment #4 from mmitchel at gcc dot gnu dot org 2007-10-10 17:53 --- Dave -- Is this fixed with Jan's patch? If so, please close. Thanks, -- Mark -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33318

[Bug tree-optimization/33319] [4.2/4.3 regression] g++.dg/tree-ssa/pr27549.C ICE with vectorization

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33319

[Bug middle-end/33335] [4.3 Regression] FAIL: 26_numerics/complex/inserters_extractors/wchar_t/1.cc

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5

[Bug bootstrap/33368] [4.3 regression] bootstrap comparision failure with --enable-targets=all

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33368

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread bkoz at gcc dot gnu dot org
--- Comment #9 from bkoz at gcc dot gnu dot org 2007-10-10 17:56 --- Sweet, thanks. Any chance you could put in the 23_containers/vector/bool/capacity/29134.cc 23_containers/vector/bool/modifiers/insert/31370.cc fix too? My sources are in pre-deprecate mode right now... best,

[Bug tree-optimization/33383] [4.3 Regression] Revision 128092 miscompiles 400.perlbench

2007-10-10 Thread mmitchel at gcc dot gnu dot org
--- Comment #11 from mmitchel at gcc dot gnu dot org 2007-10-10 17:57 --- I understand that we don't know whether this is a problem in GCC or in Perl. However, until we know, I think this should be P1 -- having GCC releases that don't work with SPEC, without an explanation, undermines

[Bug libstdc++/33633] [4.3 Regression] -D_GLIBCXX_DEBUG vs ext/hash_*

2007-10-10 Thread pcarlini at suse dot de
--- Comment #10 from pcarlini at suse dot de 2007-10-10 17:57 --- I don't have a fix ;) Everything seems rather ugly and not worth the trouble... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33633

[Bug c++/33407] [4.1/4.3 Regression] C++ operator new and new expression do not change dynamic type

2007-10-10 Thread mmitchel at gcc dot gnu dot org
--- Comment #7 from mmitchel at gcc dot gnu dot org 2007-10-10 17:58 --- We really need to fix this class of problems. Every release of GCC over the past couple of years has had serious aliasing issues that caused real-world programs to fall over. We can fix this by making the

[Bug tree-optimization/33434] [4.3 Regression] -fipa-cp miscompilation

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33434

[Bug tree-optimization/33458] [4.3 regression] ICE PHI def is not a GIMPLE value

2007-10-10 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33458

  1   2   >