[Bug fortran/35740] a = conjg(transpose(a)) still gives wrong results, see bug 31994

2008-03-28 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2008-03-29 06:38 --- (In reply to comment #1) > Confirm. There seems to be a temporary missing. > > Paul, you have fixed PR 31994, do you have an idea here? Tobias, I'll put my thinking cap on. Our conjg(tranpose()) trick is efficoent,

[Bug fortran/34128] slow gfortran 4.x (library?) compared to g77 3.4

2008-03-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2008-03-29 05:27 --- Browsing through the glibc sources I see two kinds of implementations for the sinf function, FPU and software. The FPU versions appear to be succinct assembly code with the expected FPU instructions. The softwar

[Bug c/35753] apparent integer math bug

2008-03-28 Thread pinskia at gmail dot com
--- Comment #1 from pinskia at gmail dot com 2008-03-29 05:08 --- Subject: Re: New: apparent integer math bug Sent from my iPhone On Mar 28, 2008, at 21:40, "regehr at cs dot utah dot edu" <[EMAIL PROTECTED] > wrote: > This is for "gcc (GCC) 4.3.0". > > This function returns dif

Re: [Bug c/35753] New: apparent integer math bug

2008-03-28 Thread Andrew Pinski
Sent from my iPhone On Mar 28, 2008, at 21:40, "regehr at cs dot utah dot edu" <[EMAIL PROTECTED] > wrote: This is for "gcc (GCC) 4.3.0". This function returns different values at -O1 and -O2: int func_5 (void) { int g_4 = 0x4E6D4F28; return 0 <= (6 * g_4); } This multiplication overf

[Bug fortran/34128] slow gfortran 4.x (library?) compared to g77 3.4

2008-03-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #7 from jvdelisle at gcc dot gnu dot org 2008-03-29 04:48 --- The disparity goes away mostly using -ffast-math $ g77 -ffast-math demo1.f -o g771 $ time ./g771 result = -0.690680927 real0m0.594s user0m0.590s sys 0m0.004s $ gfc -ffast-math demo1.f -o gfc1 $ ti

[Bug c/35753] New: apparent integer math bug

2008-03-28 Thread regehr at cs dot utah dot edu
This is for "gcc (GCC) 4.3.0". This function returns different values at -O1 and -O2: int func_5 (void) { int g_4 = 0x4E6D4F28; return 0 <= (6 * g_4); } At -O1 output looks good: func_5: pushl %ebp movl%esp, %ebp movl$0, %eax popl%ebp re

[Bug target/35733] Can't compile gcc 4.3.0 on old celeron processor (4.2.3 is ok)

2008-03-28 Thread fragabr at gmail dot com
--- Comment #2 from fragabr at gmail dot com 2008-03-29 02:47 --- You're completely right! I messed with gmp and mfpr libraries. I recompiled them and now everything is fine. Thank you very much (I'm changing this bug to invalid). -- fragabr at gmail dot com changed: What

[Bug bootstrap/35169] SIGSEGV for stack growth failure while building 4.2.3

2008-03-28 Thread bugzilla-gcc at thewrittenword dot com
--- Comment #4 from bugzilla-gcc at thewrittenword dot com 2008-03-29 02:21 --- (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > ld is running at this time so I doubt this is a GCC bug. > > > > The Pid it is referring to ("Pid 18929 received a SIGS

[Bug bootstrap/35752] Combined gcc + binutils source tree doesn't bootstrap

2008-03-28 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2008-03-29 01:47 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01827.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug fortran/35699] [4.3/4.4 regression] run-time abort writing zero sized section to direct access file

2008-03-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #11 from jvdelisle at gcc dot gnu dot org 2008-03-29 01:11 --- Fixed on trunk and 4.3.1 -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/29950] Generated code changes after unrelated edits in source.

2008-03-28 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2008-03-29 00:57 --- This is working as designed, the unrelated edits are really related as we base stuff on the DECL UID which we assign based on the order. We only promise the same generated code for the same preprocessed source. Oth

[Bug fortran/35743] allocate negative memory for zero-sized WHERE construct

2008-03-28 Thread dfranke at gcc dot gnu dot org
--- Comment #1 from dfranke at gcc dot gnu dot org 2008-03-28 23:59 --- Confirmed. Somewhat simplified testcase: logical lda(5) lda = (/ (i/2*2 .ne. I, i=1,5) /) call rg0025(lda, 1, 2, 3, 5, 6, -1, -2) end program SUBROUTINE RG0025(LDA,nf1,nf2,nf3,nf5,nf6,mf1,mf2) REAL TD

[Bug fortran/35699] [4.3/4.4 regression] run-time abort writing zero sized section to direct access file

2008-03-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #10 from jvdelisle at gcc dot gnu dot org 2008-03-28 23:24 --- Subject: Bug 35699 Author: jvdelisle Date: Fri Mar 28 23:23:34 2008 New Revision: 133703 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133703 Log: 2008-03-28 Jerry DeLisle <[EMAIL PROTECTED]>

[Bug libfortran/32972] performance of pack/unpack

2008-03-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #22 from tkoenig at gcc dot gnu dot org 2008-03-28 23:23 --- Subject: Bug 32972 Author: tkoenig Date: Fri Mar 28 23:22:49 2008 New Revision: 133702 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133702 Log: 2008-03-28 Thomas Koenig <[EMAIL PROTECTED]> PR

[Bug fortran/32512] efficiency of RESHAPE and SPREAD

2008-03-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2008-03-28 23:23 --- Subject: Bug 32512 Author: tkoenig Date: Fri Mar 28 23:22:49 2008 New Revision: 133702 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133702 Log: 2008-03-28 Thomas Koenig <[EMAIL PROTECTED]> PR li

[Bug fortran/35707] Search /usr/local/include and /usr/include for .mod files

2008-03-28 Thread dfranke at gcc dot gnu dot org
--- Comment #1 from dfranke at gcc dot gnu dot org 2008-03-28 23:19 --- Implementation of this request should be trivial. IIRC just add the paths as arguments to -I options in lang-spec.h. > That way one could also cpp-preprocess files included via "INCLUDE" > rather than via "#includ

[Bug c++/27433] vector template argument is not fully supported in function arguments

2008-03-28 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-03-28 23:11 --- We actually accept this code now but reject the following code now: #define __vector __attribute__((vector_size(16))) template void f(A, __vector A, int); void g(void) { __vector int a; f(1, a, 2); } Even thou

[Bug fortran/34714] ICE-on-invalid in gfc_conv_descriptor_dtype

2008-03-28 Thread dfranke at gcc dot gnu dot org
--- Comment #4 from dfranke at gcc dot gnu dot org 2008-03-28 23:02 --- Fixed in trunk, no backport. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #52 from rguenth at gcc dot gnu dot org 2008-03-28 22:58 --- I'm now testing a variant of the patch that fixes fold_sign_changed_comparison and just initializes incoming parameter value-ranges based on their types. This seems to do the same range-check removals and looks lik

[Bug fortran/34714] ICE-on-invalid in gfc_conv_descriptor_dtype

2008-03-28 Thread dfranke at gcc dot gnu dot org
--- Comment #3 from dfranke at gcc dot gnu dot org 2008-03-28 22:58 --- Subject: Bug 34714 Author: dfranke Date: Fri Mar 28 22:57:25 2008 New Revision: 133701 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133701 Log: gcc/fortran: 2008-03-28 Daniel Franke <[EMAIL PROTECTED]>

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread baldrick at free dot fr
--- Comment #51 from baldrick at free dot fr 2008-03-28 22:48 --- Subject: Re: VRP fails to eliminate range checks in Ada code > This is fold simplifying (js__TtB) target_first == -128 to > target_first == 128 via fold_sign_changed_comparison. Right, that was my instant guess. The Ad

[Bug c++/35708] jump to label enters catch block

2008-03-28 Thread bruno at clisp dot org
--- Comment #4 from bruno at clisp dot org 2008-03-28 22:48 --- The bug also occurs with g++ 4.3.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35708

[Bug c++/35708] jump to label enters catch block

2008-03-28 Thread bruno at clisp dot org
--- Comment #3 from bruno at clisp dot org 2008-03-28 22:46 --- > you are entering a scope that has objects constructed. Can you point out the sections in the ISO C++ standard that say that an 'if' statement can create the scope for some objects? -- http://gcc.gnu.org/bugzilla/show

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread baldrick at free dot fr
--- Comment #50 from baldrick at free dot fr 2008-03-28 22:42 --- Subject: Re: VRP fails to eliminate range checks in Ada code > T' sub; > T x; > > x = sub; (1) > sub = (T')x; (2) > x = VIEW_CONVERT_EXPR (sub); (3) > > where VRP for the simple copy (1) does not rest

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #49 from rguenth at gcc dot gnu dot org 2008-03-28 22:35 --- As of "The TYPE_MIN/MAX_VALUEs are of the type of the base type, so target_first_66s value range is [10, 20] at the point of this comparison. Is this supposed to be a comparison with -128 or with 128? That is, i

[Bug bootstrap/35752] New: Combined gcc + binutils source tree doesn't bootstrap

2008-03-28 Thread hjl dot tools at gmail dot com
I combined the current gcc and binutils mainlines into a combined gcc + binutils source tree. When I tried to bootstrap it on Linux/ia32 and Linux/Intel64 with shared library enabled, it went to an infinite loop when as or ld from stage 2 was used. The problem is ld-new tries to use itself to relin

[Bug fortran/35699] [4.3/4.4 regression] run-time abort writing zero sized section to direct access file

2008-03-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #9 from jvdelisle at gcc dot gnu dot org 2008-03-28 22:17 --- Subject: Bug 35699 Author: jvdelisle Date: Fri Mar 28 22:16:29 2008 New Revision: 133700 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133700 Log: 2008-03-28 Jerry DeLisle <[EMAIL PROTECTED]>

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #48 from rguenth at gcc dot gnu dot org 2008-03-28 22:14 --- Created an attachment (id=15394) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15394&action=view) patch for comment #47 This is what I was playing with. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30

[Bug fortran/35699] [4.3/4.4 regression] run-time abort writing zero sized section to direct access file

2008-03-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2008-03-28 22:14 --- Subject: Bug 35699 Author: jvdelisle Date: Fri Mar 28 22:13:17 2008 New Revision: 133699 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133699 Log: 2008-03-28 Jerry DeLisle <[EMAIL PROTECTED]>

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #47 from rguenth at gcc dot gnu dot org 2008-03-28 22:12 --- What is interesting is that j__target_type___XDLU_10__20 is a unsigned sub type with range [10, 20] of a signed base type with range [-128, 127]. So, we enter compare_values ((js__TtB)20, (j__target_type___XDLU_10

[Bug c/35751] New: ICE with invalid variable after #pragma omp parallel

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.2.0: = void foo(int i) { extern int a[i]; #pragma omp parallel a[0] = 0; } = bug.c: In function 'foo': bug.c:3: error: object with variably modified type must ha

[Bug c/35750] New: ICE with invalid old-style parameter declaration

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since at least GCC 2.95.3: = void foo(int[]); void foo(x) int x[](); {} = bug.c: In function 'foo': bug.c:2: error: declaration of 'x' as array of functions bug.c:2: internal compile

[Bug fortran/35745] Divide incorrectly extracted from WHERE block?; run time abort

2008-03-28 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-03-28 22:05 --- Confirm. Valgrind shows: Process terminating with default action of signal 8 (SIGFPE): dumping core Integer divide by zero at address 0x40274EADB at 0x4008C6: MAIN__ (ghfhgk.f90:15) > Divide incorrectly extra

[Bug c/35749] New: Mudflap false violation

2008-03-28 Thread eugen at familiamorjolic dot ro
This is my code that is generating a false violation when compiled with mudflap and the following options export MUDFLAP_OPTIONS='-mode-check -viol-segv -backtrace=4 -verbose-violations -check-initialization' #include #include #include #include #include #include #include #include int mai

[Bug c/35748] New: ICE with cast to invalid union

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since at least GCC 2.95.3: = union U { void x[1]; }; void foo() { (union U)0; } = bug.c:1: error: declaration of 'x' as array of voids bug.c: In function 'foo': bug.c:5: internal

[Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747

[Bug c++/35747] New: [4.3/4.4 regression] ICE with undefined variable in statement expression

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following invalid code snippets triggers an ICE since GCC 4.3.0: = void foo() { ({ i; ({ i; }); 0; }); } = bug.cc: In function 'void foo()': bug.cc:3: error: 'i' was not declared in this scope gimplification failed: > head

[Bug c/35746] [4.3/4.4 regression] ICE with undefined variables

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746

[Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following invalid code snippets triggers an ICE since GCC 4.3.0: == int foo(int i); void bar() { __complex__ int i; X j; if (i = foo(j)) ; } == bug.c: In function 'bar': bug.c:6: error: 'X' undeclared (first use in this function) bug.c:6: er

[Bug c/35744] [4.1/4.2/4.3/4.4 regression] ICE attributes for invalid types

2008-03-28 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2008-03-28 21:45 --- Mine. Patch here: http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01822.html -- reichelt at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/35745] New: Divide incorrectly extracted from WHERE block?; run time abort

2008-03-28 Thread dick dot hendrickson at gmail dot com
The following program aborts at run-time opening a box that says "a.exe has encountered a problem and needs to close. We are sorry for the inconvenience." And then offers to send an error report to Microsoft. I believe the problem is the extraction of the 1/NF0 from within the WHERE block.

[Bug c/35744] New: [4.1/4.2/4.3/4.4 regression] ICE attributes for invalid types

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following invalid code snippets triggers an ICE since GCC 4.1.0: = struct A { void x[1] __attribute__((packed)); }; = bug.c:3: error: declaration of 'x' as array of voids bug.c:3: internal compiler error: tree c

[Bug fortran/35743] New: allocate negative memory for zero-sized WHERE construct

2008-03-28 Thread dick dot hendrickson at gmail dot com
The following program fails when rg0025 attempts to allocate a negative amount of memory under windows XP. It doesn't abort when the array subscripts are explicit constants instead of variables. Dick Hendrickson program try_rg0025 ! fails on Windows XP ! gcc version 4.4.0 20080312 (experime

[Bug bootstrap/35169] SIGSEGV for stack growth failure while building 4.2.3

2008-03-28 Thread bugzilla-gcc at thewrittenword dot com
--- Comment #3 from bugzilla-gcc at thewrittenword dot com 2008-03-28 20:58 --- (In reply to comment #2) > (In reply to comment #1) > > ld is running at this time so I doubt this is a GCC bug. > > The Pid it is referring to ("Pid 18929 received a SIGSEGV for stack growth > failure.") i

Re: Priorites for PR 35435 and PR 35441

2008-03-28 Thread Joseph S. Myers
On Fri, 28 Mar 2008, Volker Reichelt wrote: > Hi Joseph, > > on March 15 you changed to priority of PR 35435 and PR 35441 to P4. > IMHO this is not in line with our current policy: > > * PR 35435 is not an error-recovery bug (i.e. we don't issue a valid > error message before the ICE). So this

Priorites for PR 35435 and PR 35441

2008-03-28 Thread Volker Reichelt
Hi Joseph, on March 15 you changed to priority of PR 35435 and PR 35441 to P4. IMHO this is not in line with our current policy: * PR 35435 is not an error-recovery bug (i.e. we don't issue a valid error message before the ICE). So this should rather be P2, I think. * PR 35441 is a diagnostic b

[Bug c/35742] [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'goto_expr' not supported by pp_c_expression

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35742

[Bug c/35742] New: [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'goto_expr' not supported by pp_c_expression

2008-03-28 Thread reichelt at gcc dot gnu dot org
A broken diagnostic is issued for the following invalid code snippet since GCC 4.1.0: = void foo() { for (;;) ({break;})(); } = #'goto_expr' not supported by pp_c_expression#'bug.c: In function 'foo': bug.c:4: e

[Bug fortran/35740] a = conjg(transpose(a)) still gives wrong results, see bug 31994

2008-03-28 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-03-28 19:58 --- Confirm. There seems to be a temporary missing. Paul, you have fixed PR 31994, do you have an idea here? The problem seems to be in general expressions of this type: array = function(transpose(array)) where func

[Bug fortran/35723] Can't use run-time array element in character declaration

2008-03-28 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-03-28 19:40 --- Confirmed. A simple patch would be the following: Index: expr.c === --- expr.c (Revision 133693) +++ expr.c (Arbeitskopie) @@ -2502,6 +2502,7

[Bug c++/35741] [4.2/4.3/4.4 regression] ICE with offsetof and references

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35741

[Bug c++/35741] New: [4.2/4.3/4.4 regression] ICE with offsetof and references

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following (valid ?) code snippet triggers an ICE since GCC 4.2.0: = struct A { char c; int& i; }; int j = __builtin_offsetof (A, i); = bug.cc:7: warning: invalid access to non-static data member 'A::i' of NU

[Bug tree-optimization/30997] FRE does not simplify comparisons in COND_EXPRs

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-03-28 19:21 --- SCCVN now tries to simplify COND_EXPR conditions using their operands value number. This still doesn't remove redundant comparisons. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30997

[Bug fortran/35740] a = conjg(transpose(a)) still gives wrong results, see bug 31994

2008-03-28 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #46 from rguenth at gcc dot gnu dot org 2008-03-28 19:18 --- Ok, I didn't really expect that ;) Some new background information. With the middle-end type-system work we now omit conversions from sub-types T' to their base-types T. Thus we have the three cases T' sub;

[Bug fortran/35740] New: a = conjg(transpose(a)) still gives wrong results, see bug 31994

2008-03-28 Thread dominik dot muth at gmx dot de
conjg(transpose(a)) still gives wrong results, if it is assigned to a. transpose(conjg(a)) works. program main implicit none complex, dimension(2,2) :: a,b,c a(1,1) = (1.,1.) a(2,1) = (2.,2.) a(1,2) = (3.,3.) a(2,2) = (4.,4.) print *, "original: ",a b = conjg(tr

[Bug c/35739] [4.3/4.4 regression] ICE with _Decimal128 and va_list

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35739

[Bug c/35739] New: [4.3/4.4 regression] ICE with _Decimal128 and va_list

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE since GCC 4.3.0 when compiled with "-fmudflap -O": = _Decimal128 foo(int n, ...) { int i; _Decimal128 j; __builtin_va_list va; __builtin_va_start(va,n); for (i = 0; i < n; i++) j += __builtin_va

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2008-03-28 18:54 --- Patches: http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01803.html http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01811.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34793

[Bug c/35738] New: ICE with #pragma omp atomic and conversion from pointer to int

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE since GCC 4.2.0 when compiled with "-fopenmp": = int foo(); void bar() { int i; #pragma omp atomic i += foo; } = bug.c: In function 'bar': bug.c:7: internal co

[Bug c++/35734] [4.3/4.4 regression] ICE with copy constructor in derived class

2008-03-28 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug tree-optimization/35737] [4.3/4.3/4.4 regression] ICE with __builtin_setjmp and complex variable

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35737

[Bug tree-optimization/35737] New: [4.3/4.3/4.4 regression] ICE with __builtin_setjmp and complex variable

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE since GCC 4.2.0 when compiled with "-O": = #include jmp_buf buf; int foo() { __complex__ int i = 0; if (__builtin_setjmp(buf)) { i = 1; bar(); } return i == 0; }

[Bug target/35735] error in default_secondary_reload, at targhooks.c:649

2008-03-28 Thread mstein dot lists at googlemail dot com
--- Comment #1 from mstein dot lists at googlemail dot com 2008-03-28 18:23 --- Created an attachment (id=15393) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15393&action=view) delta-reduced -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35735

[Bug c/35736] [4.4 regression] ICE with continue and -Wall

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35736

[Bug c/35736] New: [4.4 regression] ICE with continue and -Wall

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE on mainline when compiled with "-Wall": = void foo() { while (1) for (;;({ continue; })) ; } = bug.c: In function 'foo': bug.c:4: internal compiler error: S

[Bug target/35735] New: error in default_secondary_reload, at targhooks.c:649

2008-03-28 Thread mstein dot lists at googlemail dot com
Hi, compiling newlib now fails with: xgcc -c -O1 ldtoa-delta.c /home/mstein/combined-trunk/newlib/libc/stdlib/ldtoa.c: In function '_ldtoa_r': /home/mstein/combined-trunk/newlib/libc/stdlib/ldtoa.c:2857: internal compiler error: in default_secondary_reload, at targhooks.c:649 rev: 133684 --

[Bug middle-end/35400] [4.4 Regression] -Wtype-limits -O2 causes ICE tree check: expected ssa_name, have addr_expr in get_value_range, at tree-vrp.c:469

2008-03-28 Thread reichelt at gcc dot gnu dot org
--- Comment #8 from reichelt at gcc dot gnu dot org 2008-03-28 18:13 --- Here's a reduced C testcase (fuirther reduced from PR35663): === struct A { struct A *p; }; int foo(const struct A *q) { return q->p == q; } void bar(int); void baz() { struct

[Bug middle-end/35400] [4.4 Regression] -Wtype-limits -O2 causes ICE tree check: expected ssa_name, have addr_expr in get_value_range, at tree-vrp.c:469

2008-03-28 Thread reichelt at gcc dot gnu dot org
--- Comment #7 from reichelt at gcc dot gnu dot org 2008-03-28 17:44 --- A short C++ testcase I ran into: struct A { A(); ~A(); }; void foo() { A x[1]; } == -- reichelt at gcc dot gnu dot org changed: What|Removed

[Bug c++/35734] [4.3/4.4 regression] ICE with copy constructor in derived class

2008-03-28 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2008-03-28 17:37 --- Manuel, Jason, was probably introduced by your patch: 2008-02-14 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> Jason Merrill <[EMAIL PROTECTED]> PR c++/5645 PR c++/11159 * class.c

[Bug middle-end/34226] [4.3/4.4 Regression][frv] ICE in default_secondary_reload, at targhooks.c:612

2008-03-28 Thread mstein dot lists at googlemail dot com
--- Comment #12 from mstein dot lists at googlemail dot com 2008-03-28 17:34 --- A simple 'int main (int argc, char *argv[]) { return 0; }' still fails with "error: in default_secondary_reload, at targhooks.c:612" in rev. 133684 (trunk). -- mstein dot lists at googlemail dot com c

[Bug target/35733] Can't compile gcc 4.3.0 on old celeron processor (4.2.3 is ok)

2008-03-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-28 17:33 --- How did you configure GCC? How did you invoke make? How did you configure/build GMP/MPFR ? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/35734] [4.3/4.4 regression] ICE with copy constructor in derived class

2008-03-28 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35734

[Bug c++/35734] New: [4.3/4.4 regression] ICE with copy constructor in derived class

2008-03-28 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE since GCC 4.3.0 when compiled with "-W": = struct A { A(); template A(const T&); }; struct B : A { B(const B&) {} }; = bug.cc: In copy constructor 'B::B(const B&

[Bug c/35733] New: Can't compile gcc 4.3.0 on old celeron processor (4.2.3 is ok)

2008-03-28 Thread fragabr at gmail dot com
Linux 2.6.24 glibc 2.7 Celeron (Mendocino) - 466MHz When i try to compile gcc 4.3.0, I get the following (gcc 4.2.3 compiles perfectly, but 4.3.0 doesn't): /home/fraga/b/./gcc/xgcc -B/home/fraga/b/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i

[Bug fortran/35681] wrong result for vector subscripted array expression in MVBITS

2008-03-28 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2008-03-28 16:22 --- It looks like a missing temporary: integer, dimension(10) :: ILA1 = (/1,2,3,4,5,6,7,8,9,10/), ILA2, ILA3 ILA3 = (/9,9,6,2,4,9,2,9,6,10/) print '(10(I3))', ILA1((/9,9,6,2,4,9,2,9,6,10/)) ILA2 = ILA1 do i = 1

[Bug fortran/35681] wrong result for vector subscripted array expression in MVBITS

2008-03-28 Thread dick dot hendrickson at gmail dot com
--- Comment #3 from dick dot hendrickson at gmail dot com 2008-03-28 15:48 --- Subject: Re: wrong result for vector subscripted array expression in MVBITS Right, in case you haven't found it yet, the first paragraph of 12.7.3, page 214, says effectively that all of the arguments must

[Bug fortran/35681] wrong result for vector subscripted array expression in MVBITS

2008-03-28 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2008-03-28 15:29 --- For the second test in comment #1, ifort gives: fortcom: Error: pr35681_2.f90, line 2: The shapes of the arguments do not conform. [MVBITS] call mvbits ((ILA1((/9/))), 2, 4, ILA1, 3) -

[Bug fortran/35681] wrong result for vector subscripted array expression in MVBITS

2008-03-28 Thread fxcoudert at gcc dot gnu dot org
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2008-03-28 15:18 --- Reduced testcase: integer, dimension(10) :: ILA1 = (/1,2,3,4,5,6,7,8,9,10/) call mvbits ((ILA1((/9,9,6,2,4,9,2,9,6,10/))), 2, 4, ILA1, 3) write (*,'(10(I3))') ila1 end output is: 17 18 11 36 77 22 39

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread baldrick at gcc dot gnu dot org
--- Comment #45 from baldrick at gcc dot gnu dot org 2008-03-28 14:58 --- The recent VRP improvements made no difference to this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30911

[Bug fortran/35732] New: -fbounds-check: LHS/RHS size mismatch: Misleading error message

2008-03-28 Thread burnus at gcc dot gnu dot org
For integer :: a(2) integer, volatile :: i i = 1 a(1:i) = a(1:2) end The message is misleading: At line 4 of file aa.f90 Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of array 'a' (0/1) ISSUE: The size should be "1/2" and not "0/1" (For a zero-sized array the out

[Bug target/35655] [m68hc11] Segmentation fault when compiling libgcc2.c

2008-03-28 Thread mstein dot lists at googlemail dot com
--- Comment #1 from mstein dot lists at googlemail dot com 2008-03-28 14:51 --- backtrace: [EMAIL PROTECTED]:~/build/m68hc11-elf/build/gcc$ gdb -args /home/mstein/build/m68hc11-elf/build/./gcc/cc1 -quiet -nostdinc -v -I. -I. -I../.././gcc -I/home/mstein/combined-trunk/libgcc -I/home/ms

[Bug ada/32234] [Ada] Default pointer initialization not occuring - due to the use of <>

2008-03-28 Thread baldrick at gcc dot gnu dot org
--- Comment #13 from baldrick at gcc dot gnu dot org 2008-03-28 14:30 --- This has been fixed. -- baldrick at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/35608] gcc.c-torture/compile/limits-structnest.c fails -O2 -Os

2008-03-28 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2008-03-28 14:04 --- The testcase has 10001 nested (), which is processed with recursive calls. My default stack limit is 8MB. 10001 recursive calls need around 8MB stack. Any changes in my setup will push it over the limit. I think we s

[Bug fortran/35721] ASSOCIATED returns false when strides confusing

2008-03-28 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2008-03-28 13:49 --- FIXED on the trunk (4.4.0). Thanks again for the report. -- burnus at gcc dot gnu dot org changed: What|Removed |Added --

[Bug fortran/35721] ASSOCIATED returns false when strides confusing

2008-03-28 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2008-03-28 13:47 --- Subject: Bug 35721 Author: burnus Date: Fri Mar 28 13:47:06 2008 New Revision: 133684 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133684 Log: 2008-03-28 Tobias Burnus <[EMAIL PROTECTED]> PR fort

[Bug rtl-optimization/19580] [4.1/4.2/4.3 Regression] missed load/store motion

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #39 from rguenth at gcc dot gnu dot org 2008-03-28 13:45 --- Subject: Bug 19580 Author: rguenth Date: Fri Mar 28 13:44:41 2008 New Revision: 133683 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133683 Log: 2008-03-28 Richard Guenther <[EMAIL PROTECTED]>

[Bug rtl-optimization/19580] [4.1/4.2/4.3 Regression] missed load/store motion

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #38 from rguenth at gcc dot gnu dot org 2008-03-28 13:40 --- Fixed in GCC 4.4 with the store-motion rewrite to use an alias-oracle: : r_I_lsm.18 = r[5]; r_I_lsm.13 = r[0]; r_I_lsm.14 = r[1]; r_I_lsm.15 = r[2]; r_I_lsm.16 = r[3]; r_I_lsm.17 = r[4]; r_I_lsm.27 =

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2008-03-28 13:02 --- I have two patches for the other missing parts to fix this PR. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/30317] VRP cannot extract a range from (unsigned int) i + 0x0ffffffff > 4

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-03-28 12:56 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug fortran/35731] libfortran should use gettext to for localized error messages

2008-03-28 Thread joseph at codesourcery dot com
--- Comment #1 from joseph at codesourcery dot com 2008-03-28 12:48 --- Subject: Re: New: libfortran should use gettext to for localized error messages On Fri, 28 Mar 2008, burnus at gcc dot gnu dot org wrote: > Currently, only libcpp and the compilers ("gcc") use gettext for locali

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2008-03-28 12:21 --- Subject: Bug 34793 Author: rguenth Date: Fri Mar 28 12:20:09 2008 New Revision: 133680 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133680 Log: 2008-03-28 Richard Guenther <[EMAIL PROTECTED]> PR

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #44 from rguenth at gcc dot gnu dot org 2008-03-28 12:21 --- Subject: Bug 30911 Author: rguenth Date: Fri Mar 28 12:20:09 2008 New Revision: 133680 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133680 Log: 2008-03-28 Richard Guenther <[EMAIL PROTECTED]>

[Bug tree-optimization/30317] VRP cannot extract a range from (unsigned int) i + 0x0ffffffff > 4

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-03-28 12:21 --- Subject: Bug 30317 Author: rguenth Date: Fri Mar 28 12:20:09 2008 New Revision: 133680 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133680 Log: 2008-03-28 Richard Guenther <[EMAIL PROTECTED]> PR

[Bug middle-end/35705] [4.3/4.4 Regression] Symbol address check eliminated by C frontend.

2008-03-28 Thread carlos at codesourcery dot com
--- Comment #14 from carlos at codesourcery dot com 2008-03-28 11:39 --- With the patch in comment #9, a glibc cvs head build completes successfully. The test results show some regressions, but this is almost always the case when switching to a new gcc branch. -- http://gcc.gnu.org

[Bug fortran/27997] Fortran 2003: Support type-spec for array constructor

2008-03-28 Thread burnus at gcc dot gnu dot org
--- Comment #14 from burnus at gcc dot gnu dot org 2008-03-28 10:32 --- (In reply to comment #13) > Created an attachment (id=15374) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15374&action=view) [edit] > Patch padding for constant character lengths I assume that you have not bo

[Bug target/31110] Problem while compiling gcc for mn10300-elf

2008-03-28 Thread mstein dot lists at googlemail dot com
--- Comment #14 from mstein dot lists at googlemail dot com 2008-03-28 10:31 --- Fixed :) -- mstein dot lists at googlemail dot com changed: What|Removed |Added

[Bug c/35526] ICE on memcpy

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2008-03-28 10:30 --- *** Bug 35730 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/35730] ICE on valid code convert_move expr.c:373

2008-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-03-28 10:30 --- *** This bug has been marked as a duplicate of 35526 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug target/31232] Problem while compiling gcc for xstormy16-elf

2008-03-28 Thread mstein dot lists at googlemail dot com
--- Comment #8 from mstein dot lists at googlemail dot com 2008-03-28 10:30 --- Fixed :) -- mstein dot lists at googlemail dot com changed: What|Removed |Added

  1   2   >