[Bug c/35347] Return of static causes segfault

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-24 07:28 --- This is correct behavior, a string literal is constant data so you are returning a pointer to a constant data which then you are trying to copy into. -- pinskia at gcc dot gnu dot org changed: What

[Bug libgomp/33131] [4.2 regression] libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp'

2008-02-23 Thread bugzilla-gcc at thewrittenword dot com
--- Comment #4 from bugzilla-gcc at thewrittenword dot com 2008-02-24 07:09 --- (In reply to comment #3) > Created an attachment (id=15208) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15208&action=view) [edit] > patch to include string.h and strings.h (stolen from libcpp) > > P

[Bug c/35347] New: Return of static causes segfault

2008-02-23 Thread rkies at cpan dot org
Apologies if this has been reported before. I've encountered this behavior in a test script. System info (output of uname -a): Linux opti1 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686 GNU/Linux Output of gcc -v --save-temps... [EMAIL PROTECTED]:~$ gcc -v -save-temps static-strcpy-bug.c

[Bug middle-end/35346] New: Scalar replacement -- handling of conditional generator -- missing

2008-02-23 Thread xinliangli at gmail dot com
// David Li: Conditional generator is not handled, missing redundancy elimination for a[i] and a[i-1] int a[1000]; int b[1000]; void foo(int n) { int i = 1; for(; i < n; i++) { if (b[i] > 0) a[i+1] = a[i-1]; b[i] = a[i]; } } ==> should be (similar to PRE)

[Bug middle-end/35345] New: Scalar replacement to handle output dependence

2008-02-23 Thread xinliangli at gmail dot com
// David Li Gcc's scalar replacement and predictive commoning implementation is very good. There are some missing cases. Handling output dependence is one of them. Handling of output dependence. In this case, the store at (1) is dead except for the last iteration -- it should be sinked out of the

[Bug middle-end/35344] New: Loop unswitching to produce perfect loop nest

2008-02-23 Thread xinliangli at gmail dot com
GCC loop unswitching is very good -- handles most of the cases I tried. The only only thing I notice is that the nested for loops in C in the example below is not converted into a perfect loop nest: int** p; int** q; void foo(int m, int n) { int i, j; for (i = 0; i < m; i++) { f

[Bug middle-end/35343] New: Sum-reduction loop not recognized

2008-02-23 Thread xinliangli at gmail dot com
It is beneficial to unroll reduction loop (and split the reduction target) to reduce dependence height due to recurrence, but GCC does not perform such optimization (-O3 -fno-tree-vectorize) int a[1000]; int b[1000]; int foo(int n) { int s = 0; int i = 0; for (i = 0; i < 1000 ; i++)

[Bug middle-end/35342] New: Full unrolling limitation -- inner most loop only

2008-02-23 Thread xinliangli at gmail dot com
Short trip counted loop nest (perfect or not) is not fully unrolled, only the innnermost loop: (-O3 -fno-tree-vectorize) #ifndef TC #define TC 3 #endif int a[100][100]; int foo(void) { int i, j; for (i = 0; i < TC; i ++) { for (j = 0; j < TC; j++) a[2*i][j] += a[i

[Bug middle-end/35341] New: Early exit loop with short known trip count not unrolled

2008-02-23 Thread xinliangli at gmail dot com
Gcc fully unrolls short trip counted (known) loop if the unrolled loop body size d oes not exceed a threshold. However, if the loop has early exit, this is not done -- leading to missing scalar opt later on. Example: int a[100]; int b[100]; int foo(void) { int i, j; for (i = 0; i < 5;

[Bug preprocessor/35340] Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-24 04:15 --- I don't think this is a bug. How are you invoking GCC? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug other/35250] gmp and mpfr are erroneously configured with --target

2008-02-23 Thread nightstrike at gmail dot com
--- Comment #2 from nightstrike at gmail dot com 2008-02-24 03:31 --- This is a very simple fix. Can someone add it? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35250

[Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file

2008-02-23 Thread aparna dot upadhya at gmail dot com
Hi, I am trying to compile bootrom on power PC (8360) for vxWorks (version 5.4). When compiling romInit.S I am getting following errors ./romInit.s:437: Error: too many positional arguments ../romInit.s:453: Error: too many positional arguments ../romInit.s:453: Error: too many positional argumen

[Bug c++/35297] Compiling error with variadic template with fixed parameter with default type.

2008-02-23 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|critical|normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35297

[Bug target/32889] [4.2 Regression] ICE in delete_output_reload, at reload1.c:7926

2008-02-23 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #18 from dave at hiauly1 dot hia dot nrc dot ca 2008-02-24 01:41 --- Subject: Re: [4.2 Regression] ICE in delete_output_reload, at reload1.c:7926 > --- Comment #16 from eager at eagercon dot com 2008-02-23 21:18 --- > Attached is a patch to reload.c which addresse

[Bug fortran/35339] New: Improve translation of implied do loop in transfer

2008-02-23 Thread jvdelisle at gcc dot gnu dot org
Currently we create a looping structure which is executed to traverse an array and transfer it one element at a time. This works, but is not too efficient. We could improve this by converting the implied do loops into the appropriate array descriptor and call transfer_array. The two cases are:

[Bug middle-end/35306] Missing expression simplication for conditional OR

2008-02-23 Thread xinliangli at gmail dot com
--- Comment #2 from xinliangli at gmail dot com 2008-02-24 00:36 --- (In reply to comment #1) > (In reply to comment #0) > > The following rule is not handled by GCC > > > > (a & x) || (a & y) ===> a & (x | y) > > Perhaps that is because those two expressions aren't equivalent? > > B

[Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.

2008-02-23 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2008-02-23 23:12 --- Weak and hidden aren't really compatible. Linker should enforce it. I opened a linker bug: http://sourceware.org/bugzilla/show_bug.cgi?id=5789 As for gcc, I think it is OK since it is a user error and linker should

[Bug middle-end/34762] [4.2 regression] internal compiler error: in delete_output_reload, at reload1.c:7958

2008-02-23 Thread eager at eagercon dot com
--- Comment #10 from eager at eagercon dot com 2008-02-23 21:24 --- Created an attachment (id=15216) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15216&action=view) More complete fix for reload.c This is a more complete patch to reload.c. Duplicate of fix for bug 32889. -- h

[Bug target/32889] [4.2 Regression] ICE in delete_output_reload, at reload1.c:7926

2008-02-23 Thread eager at eagercon dot com
--- Comment #17 from eager at eagercon dot com 2008-02-23 21:21 --- Created an attachment (id=15215) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15215&action=view) Fix to reload.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32889

[Bug target/32889] [4.2 Regression] ICE in delete_output_reload, at reload1.c:7926

2008-02-23 Thread eager at eagercon dot com
--- Comment #16 from eager at eagercon dot com 2008-02-23 21:18 --- Attached is a patch to reload.c which addresses the root cause. -- eager at eagercon dot com changed: What|Removed |Added --

[Bug target/32219] optimizer causes wrong code in pic/hidden/weak symbol checking.

2008-02-23 Thread pluto at agmk dot net
--- Comment #5 from pluto at agmk dot net 2008-02-23 21:09 --- (In reply to comment #3) > (In reply to comment #2) > > > Also you should be using -PIE when linking. > > hmm, it doesn't work with int main(); > > $ gcc -s main.c -fpie -Wl,-pie > /usr/bin/ld: /usr/lib64/crt1.o: relocatio

[Bug middle-end/34212] spurious warning: value computed is not used

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2008-02-23 20:35 --- (In reply to comment #7) > ping^2 I am just finally getting back to my assigned bugs after so long, this is lower down on the list than some other ones. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34212

[Bug middle-end/34212] spurious warning: value computed is not used

2008-02-23 Thread pluto at agmk dot net
--- Comment #7 from pluto at agmk dot net 2008-02-23 20:33 --- ping^2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34212

[Bug fortran/35299] scope of variables in statement function do not acquire rank from host

2008-02-23 Thread tkoenig at gcc dot gnu dot org
--- Comment #1 from tkoenig at gcc dot gnu dot org 2008-02-23 20:22 --- Confirmed. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug middle-end/34572] program that built with 4.1.2 fails with 4.2.2

2008-02-23 Thread galtgendo at o2 dot pl
--- Comment #7 from galtgendo at o2 dot pl 2008-02-23 20:17 --- Well, shortly after I reported this bug hardware got upgraded (it was Christmas). Now it's 512MB and gcc 4.2.3. It still fails. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34572

Problem with c++ exception handling within shared objects

2008-02-23 Thread Peer Georgi
Hi All, I have a very subtly problem when linking a shared object that includes the gcc-runtime to support c++ exceptions, type info, ... The problem is that the following crashes: try { throw cCoreException(); } // catch(const cUnUsedObjectThatWillNeverBeT

[Bug libfortran/24685] real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90)

2008-02-23 Thread fxcoudert at gcc dot gnu dot org
--- Comment #31 from fxcoudert at gcc dot gnu dot org 2008-02-23 20:11 --- Subject: Bug 24685 Author: fxcoudert Date: Sat Feb 23 20:10:29 2008 New Revision: 132577 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132577 Log: PR libfortran/24685 * gfortran.dg/large

[Bug libfortran/24685] real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90)

2008-02-23 Thread fxcoudert at gcc dot gnu dot org
--- Comment #30 from fxcoudert at gcc dot gnu dot org 2008-02-23 20:10 --- On powerpc-apple-darwin9.2, gfortran.dg/large_real_kind_form_io_2.f90 fails for that reason: $ cat a.f90 real(kind=16) :: a,b character(len=180) :: tmp b = 8.9884656743115795386465259539450128766966288724

[Bug middle-end/35307] Missing Simplication for div op

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-02-23 20:00 --- (In reply to comment #1) > Not equivalent in the presence of overflow. You mean defined overflow :). -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/35307] Missing Simplication for div op

2008-02-23 Thread segher at kernel dot crashing dot org
--- Comment #1 from segher at kernel dot crashing dot org 2008-02-23 19:57 --- Not equivalent in the presence of overflow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35307

[Bug c++/35338] [4.3/4.4 regression] Broken diagnostics for fixed-point types

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35338

[Bug c++/35338] New: [4.3/4.4 regression] Broken diagnostics for fixed-point types

2008-02-23 Thread reichelt at gcc dot gnu dot org
Broken diagnostics are issued for the following invalid code snippet on mainline and 4.3 branch: int i = 1r; bool b = !1r; bug.cc:1: error: cannot convert '#'fixed_point_type' not supported b

[Bug c++/35337] New: Broken diagnostic for firstprivate clause

2008-02-23 Thread reichelt at gcc dot gnu dot org
A broken diagnostic is issued for the following invalid code snippet since GCC 4.2.0: struct A {}; void foo() { #pragma omp parallel firstprivate(A) ; } bug.cc: In function 'void foo()

[Bug middle-end/35306] Missing expression simplication for conditional OR

2008-02-23 Thread segher at kernel dot crashing dot org
--- Comment #1 from segher at kernel dot crashing dot org 2008-02-23 19:51 --- (In reply to comment #0) > The following rule is not handled by GCC > > (a & x) || (a & y) ===> a & (x | y) Perhaps that is because those two expressions aren't equivalent? But, confirmed, assuming you me

[Bug c++/35336] New: Broken diagnostic: 'bit_field_ref' not supported by dump_expr

2008-02-23 Thread reichelt at gcc dot gnu dot org
A broken diagnostic is issued for the following invalid code snippet since at least GCC 2.95.3: struct A { int i : 2; }; void foo(bool b) { A a; (a.i || b)(); } bug.cc: In function 'vo

[Bug c++/35335] [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'expr_stmt' not supported by dump_expr

2008-02-23 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=35335

[Bug c++/35335] New: [4.1/4.2/4.3/4.4 regression] Broken diagnostic: 'expr_stmt' not supported by dump_expr

2008-02-23 Thread reichelt at gcc dot gnu dot org
A broken diagnostic is issued for the following invalid code snippet since GCC 4.0.0: struct A {}; void foo() { A a; a = ({ { 1; } }); } bug.cc: In function 'void foo()': bug.cc:6: error

[Bug c++/35334] New: [4.1/4.2/4.3/4.4 regression] Broken diagnostic for complex cast

2008-02-23 Thread reichelt at gcc dot gnu dot org
A broken diagnostic is issued for the following invalid code snippet since at least GCC 2.95.3: void foo(__complex__ unsigned int i) { ((__complex__ int)i)(); } bug.cc: In function 'void fo

[Bug c++/35333] [4.1/4.2/4.3/4.4 regression] Broken diagnostic for complex builtin

2008-02-23 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=35333

[Bug c++/35333] New: [4.1/4.2/4.3/4.4 regression] Broken diagnostic for complex builtin

2008-02-23 Thread reichelt at gcc dot gnu dot org
A broken diagnostic is issued for the following invalid code snippet since GCC 4.0.0: void foo(__complex__ double x) { __builtin_conj(x)(); } bug.cc: In function 'void foo(double __complex_

[Bug c++/35332] [4.1/4.2/4.3/4.4 regression] Broken diagnostics for builtins

2008-02-23 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=35332

[Bug c++/35332] New: [4.1/4.2/4.3/4.4 regression] Broken diagnostics for builtins

2008-02-23 Thread reichelt at gcc dot gnu dot org
Broken diagnostics are issued for the following invalid code snippet since GCC 3.0: void foo(double x) { __builtin_isgreater(x, 0.0)(); __builtin_isless(x, 0.0)(); __builtin_isunordered(x, 0.0)(); }

[Bug c++/35331] [4.3/4.4 regression] ICE with invalid specialization of variadic template

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35331

[Bug c++/35331] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline and 4.3 branch: template struct A; template struct A { friend void foo(); }; bug.cc:3: error: parameter packs not expanded wi

[Bug c/35330] [4.1/4.2/4.3/4.4 regression] ICE with invalid pragma weak

2008-02-23 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=35330

[Bug c/35330] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid pragma weak

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 3.1.1: #pragma weak int = foo :0: error: weak declaration of 'int' must be public bug.c:1: internal compiler error: in make_decl_r

[Bug c++/35329] [4.2/4.3/4.4 regression] ICE with invalid template class after #pragma interface

2008-02-23 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=35329

[Bug c++/35329] New: [4.2/4.3/4.4 regression] ICE with invalid template class after #pragma interface

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.2.0: #pragma implementation #pragma interface template struct A { A() {} }; bug.cc:4: error: 'void' is not a valid type for a

[Bug c++/35328] New: ICE with firstprivate variable with invalid destructor

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.2.0 when compiled with "-fopenmp": struct A { ~A()(); }; void foo() { A a; #pragma omp parallel firstprivate(a) ; } b

[Bug c++/35327] [4.3/4.4 regression] ICE with invalid constructor

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35327

[Bug c++/35327] New: [4.3/4.4 regression] ICE with invalid constructor

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline and 4.3 branch: struct A { A(int)(); }; template void foo(bool b, A a) { b ? a : 0; } bug.cc:3: error: 'A' declared as functi

[Bug c++/35326] [4.2/4.3/4.4 regression] ICE with stray digraph token

2008-02-23 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=35326

[Bug c++/35326] New: [4.2/4.3/4.4 regression] ICE with stray digraph token

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.2.0: %:%:; bug.cc:1: error: stray '%:%:' in program bug.cc:1: internal compiler error: vector VEC(fs_p,base) index domain error,

[Bug c++/35325] [4.3/4.4 regression] ICE with fixed-point types in template parameter

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35325

[Bug c++/35325] New: [4.3/4.4 regression] ICE with fixed-point types in template parameter

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline and 4.3 branch: template struct A {}; template struct B : A {}; template struct C : A {}; bug.cc:5: internal compiler error: i

[Bug target/25477] builtin functions should use $LDBL128 suffix on darwin when appropriate

2008-02-23 Thread fxcoudert at gcc dot gnu dot org
--- Comment #49 from fxcoudert at gcc dot gnu dot org 2008-02-23 19:00 --- To fix this completely, a little bit more work is required to check what should be done for nanl(), which is not handled by current patch. (I don't have time to look into it.) For more information, see http://gcc

[Bug c++/35324] [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template

2008-02-23 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=35324

[Bug c++/35324] New: [4.1/4.2/4.3/4.4 regression] Invalid argument to sizeof not rejected in template

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet is accepted since GCC 3.4.0: = template struct A {}; template struct B : A {}; = Before the code was correctly rejected, although the error message couldn't be printed: bug.cc:3: s

[Bug preprocessor/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-23 18:51 --- The preprocessor is the one that is crashing and the preprocessor in the case of the #pragma is the one that errors out. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c++/35323] [4.3/4.4 regression] ICE calling functions with fixed-point type parameter

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35323

[Bug c++/35323] New: [4.3/4.4 regression] ICE calling functions with fixed-point type parameter

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline and 4.3 branch: = void foo(int); void bar() { foo(1r); } = bug.cc: In function 'void bar()': bug.cc:5: internal compiler error: in arg_assoc_type, at c

[Bug libfortran/35063] Clean up use of destroy_unit_mutex()

2008-02-23 Thread jb at gcc dot gnu dot org
--- Comment #39 from jb at gcc dot gnu dot org 2008-02-23 18:46 --- (In reply to comment #38) > Janne, do you want to bring your patch from comment #35 up to date and submit > for approval to the lists? Sure, I hope to get it done withing a few days; assigning to myself. -- jb at gc

[Bug c/35322] [4.2/4.3/4.4 regression] ICE with incomplete macro

2008-02-23 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=35322

[Bug c/35322] New: [4.2/4.3/4.4 regression] ICE with incomplete macro

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.2.0: = _Pragma("GCC dependency") = bug.c:1: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] A correct error message i

[Bug target/25477] builtin functions should use $LDBL128 suffix on darwin when appropriate

2008-02-23 Thread fxcoudert at gcc dot gnu dot org
--- Comment #48 from fxcoudert at gcc dot gnu dot org 2008-02-23 18:42 --- Subject: Bug 25477 Author: fxcoudert Date: Sat Feb 23 18:42:04 2008 New Revision: 132576 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132576 Log: PR target/25477 * config/darwin-protos

[Bug c++/35321] [4.1/4.2/4.3/4.4 regression] ICE with invalid use of __builtin_offsetof

2008-02-23 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=35321

[Bug c++/35321] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid use of __builtin_offsetof

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.0.0: = struct A { A operator[] (int); }; struct B { A a; }; void foo() { __builtin_offsetof(B, a[0]); } = bug.cc: In function 'void foo()': bug.cc

[Bug target/35271] Stack not aligned at mod 16 byte boundary in x86_64 code

2008-02-23 Thread tege-gcc at swox dot com
--- Comment #16 from tege-gcc at swox dot com 2008-02-23 18:27 --- I don't know how a PLT entry looks like. They use the object format macho, of which I know nothing. Note that the new testcase does not have any recursive calls. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35271

[Bug c++/35320] [4.1/4.2/4.3/4.4 regression] ICE with invalid friend declaration

2008-02-23 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=35320

[Bug c++/35320] New: [4.1/4.2/4.3/4.4 regression] ICE with invalid friend declaration

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 3.1: == typedef void (func_type)(); struct A { friend func_type f : 2; }; == bug.cc:5: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] Befor

[Bug c++/35319] [4.3/4.4 regression] ICE throwing fixed-point types

2008-02-23 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2008-02-23 18:17 --- The code also ICEs without "-O". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35319

[Bug c++/35319] [4.3/4.4 regression] ICE throwing fixed-point types

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35319

[Bug c++/35319] New: [4.3/4.4 regression] ICE throwing fixed-point types

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE on mainline and 4.3 branch when compiled with -O: === void foo() { throw 0r; } === bug.cc: In function 'void foo()': bug.cc:3: internal compiler error: in write_type, at cp/mangle.c:1695 Please submit a full bug report, [e

[Bug target/35318] [4.3/4.4 regression] ICE with inline asm in reload

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-23 18:12 --- this works on: Target: i386-apple-darwin8.11.1 Configured with: /Users/apinski/src/local/gcc/configure --prefix=/Users/apinski/local-gcc --disable-multilib Thread model: posix gcc version 4.4.0 20080223

[Bug target/35271] Stack not aligned at mod 16 byte boundary in x86_64 code

2008-02-23 Thread hubicka at gcc dot gnu dot org
--- Comment #15 from hubicka at gcc dot gnu dot org 2008-02-23 18:10 --- Still, can I ask how does the PLT entry of Darwin look like? It seems a bit weird that recursive call that should not trigger lazy binding will get into code relying on the alignment. Or are some kind of aliases i

[Bug inline-asm/35318] [4.3/4.4 regression] ICE with inline asm in reload

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35318

[Bug inline-asm/35318] New: [4.3/4.4 regression] ICE with inline asm in reload

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE on mainline and 4.3 branch when compiled with -O: void foo() { double x = 4, y; __asm__ volatile ("" : "=r,r" (x), "=r,r" (y) : "%0,0" (x), "m,r" (8)); }

[Bug target/35271] Stack not aligned at mod 16 byte boundary in x86_64 code

2008-02-23 Thread hubicka at gcc dot gnu dot org
--- Comment #14 from hubicka at gcc dot gnu dot org 2008-02-23 18:05 --- I see. It is quite pity that Darwin's dynamic linker insist on the alignment. I guess it would be worthwhile to try to tell GCC to optimize those calls as local: calling overhead of recursive functions is quite ex

[Bug tree-optimization/33512] Simple bitwise simplification missed

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-02-23 18:02 --- The RTL level has been fixed. The tree level needs fixing still but I am not working on that. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/35317] [4.1/4.2/4.3/4.4 regression] ICE with operator delete[] and ellipsis

2008-02-23 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=35317

[Bug c++/35317] New: [4.1/4.2/4.3/4.4 regression] ICE with operator delete[] and ellipsis

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE since GCC 3.1: struct A { void operator delete[] (void*, ...); }; bug.cc:2: internal compiler error: Segmentation fault Please submit a full bug report, [et

[Bug rtl-optimization/33512] Simple bitwise simplification missed

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-02-23 17:59 --- Subject: Bug 33512 Author: pinskia Date: Sat Feb 23 17:58:48 2008 New Revision: 132575 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132575 Log: 2008-02-23 Andrew Pinski <[EMAIL PROTECTED]> PR rt

[Bug c++/35316] [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields

2008-02-23 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=35316

[Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE since GCC 4.2.0: == template struct A { int i : 2; void foo() { typeof(i) j; } }; == bug.cc: In member function 'void A< >::foo()': bug.cc:7: internal compiler error: Segmentation fault P

[Bug driver/35300] References to original ${prefix} paths in relocated toolchain and /lib and /usr/lib search paths appear in cross toolchain.

2008-02-23 Thread drow at false dot org
--- Comment #10 from drow at gcc dot gnu dot org 2008-02-23 17:45 --- Subject: Re: References to original ${prefix} paths in relocated toolchain and /lib and /usr/lib search paths appear in cross toolchain. On Sat, Feb 23, 2008 at 08:54:56AM -, kkylheku at gmail dot

[Bug c++/35315] [4.4 regression] ICE with attribute transparent_union

2008-02-23 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35315

[Bug c++/35315] New: [4.4 regression] ICE with attribute transparent_union

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following valid code snippet triggers an ICE on mainline: = typedef union { int i; } U __attribute__((transparent_union)); static void foo(U) {} static void foo(int) {} void bar() { foo(0); } ==

[Bug driver/35300] References to original ${prefix} paths in relocated toolchain and /lib and /usr/lib search paths appear in cross toolchain.

2008-02-23 Thread drow at false dot org
--- Comment #9 from drow at gcc dot gnu dot org 2008-02-23 17:43 --- Subject: Re: References to original ${prefix} paths in relocated toolchain and /lib and /usr/lib search paths appear in cross toolchain. On Sat, Feb 23, 2008 at 08:03:34AM -, kkylheku at gmail dot

[Bug middle-end/35314] [4.2/4.3/4.4 regression] ICE with __builtin_setjmp and -fmudflap

2008-02-23 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=35314

[Bug middle-end/35314] New: [4.2/4.3/4.4 regression] ICE with __builtin_setjmp and -fmudflap

2008-02-23 Thread reichelt at gcc dot gnu dot org
The following valid testcase triggers an ICE since GCC 4.2.0 when compiled with "-fmudflap": #include jmp_buf buf; void foo(volatile char* p) { if (__builtin_setjmp(buf)) *p; } bug.c: In function 'foo': bug.c:6: err

[Bug target/35311] ICE at postreload.c:392 while building webkit on s390

2008-02-23 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 preprocessor/35312] Invalid syntax in PP expressions not diagnosed in strict mode

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-23 17:16 --- I think this is a dup of bug 22168. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35312

[Bug target/35271] Stack not aligned at mod 16 byte boundary in x86_64 code

2008-02-23 Thread tege-gcc at swox dot com
--- Comment #13 from tege-gcc at swox dot com 2008-02-23 17:09 --- Created an attachment (id=15214) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15214&action=view) This is a minimized version of the original faling code. I understand the reasoning about local calls. The problem

[Bug pch/35027] "too short to be a PCH file" warning should be conditional on -Winvalid-PCH

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-02-23 17:08 --- Subject: Bug 35027 Author: pinskia Date: Sat Feb 23 17:08:12 2008 New Revision: 132574 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132574 Log: 2008-02-23 Andrew Pinski <[EMAIL PROTECTED]> PR pc

[Bug pch/35027] "too short to be a PCH file" warning should be conditional on -Winvalid-PCH

2008-02-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-02-23 17:08 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c++/35275] Operator<< for embedded class of templetized class isn't found

2008-02-23 Thread pcarlini at suse dot de
--- Comment #2 from pcarlini at suse dot de 2008-02-23 17:00 --- *** This bug has been marked as a duplicate of 13399 *** -- pcarlini at suse dot de changed: What|Removed |Added

[Bug c++/13399] G++ 3.3 fails to match the templatized, overloaded operator for subtypes defined in the class template

2008-02-23 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2008-02-23 17:00 --- *** Bug 35275 has been marked as a duplicate of this bug. *** -- pcarlini at suse dot de changed: What|Removed |Added -

[Bug fortran/25829] [F2003] Asynchronous IO support

2008-02-23 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-02-23 16:48 --- Status: local experimental trunk Front-end has most if not all keywords compiling. DECIMAL= is working all the way through to runtime. WAIT compiles and executes a stub in the runtime with a new st_parameter_wa

[Bug libfortran/35063] Clean up use of destroy_unit_mutex()

2008-02-23 Thread jvdelisle at gcc dot gnu dot org
--- Comment #38 from jvdelisle at gcc dot gnu dot org 2008-02-23 16:40 --- Janne, do you want to bring your patch from comment #35 up to date and submit for approval to the lists? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063

[Bug middle-end/30610] huge memory consumption with -O3

2008-02-23 Thread kcwu at csie dot org
--- Comment #5 from kcwu at csie dot org 2008-02-23 16:21 --- this issue is resolved in gcc 4.3 20080221 snapshot. $ time gcc43 -O3 -c f5.c -Wall user0m0.418s And the memory usage is less than 10 MB. -- kcwu at csie dot org changed: What|Removed

  1   2   >