[Bug target/44564] [avr] usage of LPM instruction combination with undefined result

2010-06-18 Thread thomas-carsten dot franke at brunel dot de
--- Comment #4 from thomas-carsten dot franke at brunel dot de 2010-06-18 06:38 --- Created an attachment (id=20936) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20936action=view) extract of *.lss file shows the Z+ in lpm -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44564

[Bug target/44564] [avr] usage of LPM instruction combination with undefined result

2010-06-18 Thread thomas-carsten dot franke at brunel dot de
--- Comment #5 from thomas-carsten dot franke at brunel dot de 2010-06-18 06:40 --- Created an attachment (id=20937) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20937action=view) extract of .s file (-save-temps) shows the lpm r31,Z, only --

[Bug target/44575] __builtin_va_arg overwrites into adjacent stack location

2010-06-18 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-06-18 07:04 --- Regressed with r146817 (SSA expand). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44575

[Bug fortran/44556] [4.5/4.6 Regression] incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement

2010-06-18 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2010-06-18 07:33 --- Patch: http://gcc.gnu.org/ml/fortran/2010-06/msg00191.html -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/44576] New: testsuite/gfortran.dg/zero_sized_1.f90 with huge compile time on prefetching+peeling

2010-06-18 Thread borntraeger at de dot ibm dot com
testsuite/gfortran.dg/zero_sized_1.f90 takes almost 11 minutes to compile on my notebook when combining aggressive loop prefetching with loop peeling: $ time gfortran-4.5 -O3 -march=core2 zero_sized_1.f90 -S -fprefetch-loop-arrays -funroll-loops --param max-completely-peeled-insns=2000 real

[Bug middle-end/44576] testsuite/gfortran.dg/zero_sized_1.f90 with huge compile time on prefetching + peeling

2010-06-18 Thread borntraeger at de dot ibm dot com
--- Comment #1 from borntraeger at de dot ibm dot com 2010-06-18 07:59 --- 4.6 (trunk) is also affected -- borntraeger at de dot ibm dot com changed: What|Removed |Added

[Bug target/44564] [avr] usage of LPM instruction combination with undefined result

2010-06-18 Thread wvangulik at xs4all dot nl
--- Comment #6 from wvangulik at xs4all dot nl 2010-06-18 08:33 --- This bug can be closed it is a binutils bug. The dissambler is generating the wrong instruction. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44564

[Bug c++/44577] New: static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread mschulze at ivs dot cs dot ovgu dot de
IMO, in the following test program the variable s within the class template may be optimized-away in every case. Although, the variable is used as an argument for a function call, it is omit-able due to the definition of function t1 as static inline with its empty body. If I use instead of a class

[Bug c++/44577] static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread mschulze at ivs dot cs dot ovgu dot de
--- Comment #1 from mschulze at ivs dot cs dot ovgu dot de 2010-06-18 10:11 --- (In reply to comment #0) IMO, in the following test program the variable s within the class template may be optimized-away in every case. Although, the variable is used as an argument for a function

[Bug c/44517] improve diagnostic for mispelled typename in function declaration

2010-06-18 Thread pzhao at gcc dot gnu dot org
--- Comment #1 from pzhao at gcc dot gnu dot org 2010-06-18 10:18 --- Confirmed. The diagnostic of clang is better. -- pzhao at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44578] New: GCC generates MMX instructions but fails to generate emms

2010-06-18 Thread stephen dot dolan at havok dot com
I'm using GCC to compile some code which uses SSE intrinsics. The code is being compiled at -O3 -mfpmath=sse. GCC decides to use MMX instructions for some of the operations (zeroing some memory). There are no MMX intrinsics in the source, but an SSE _mm_setzero_ps gets compiled into a pair of

[Bug c++/44579] New: Extern doesn work for const arrays

2010-06-18 Thread igodard at pacbell dot net
Given file foo.cc: const int arr[] = {0}; compiled to foo.o, and file bar.cc: extern const int arr[]; int main() { return arr[0]; } compiled and linked with foo.o, you get: s3:~/ootbc/personal/ivan$ g++ bar.cc foo.o /tmp/ccsMPoJa.o: In function `main':

[Bug c++/44579] Extern doesn work for const arrays

2010-06-18 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-06-18 10:44 --- const objects at namespace scope are static by default, you need to declare it extern in foo.cc to prevent that -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44578] GCC generates MMX instructions but fails to generate emms

2010-06-18 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-06-18 10:46 --- As -mfpmath=sse isn't supposed to change the ABI we should never emit MMX instructions automagically. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/44577] static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-18 10:51 --- 9.4.2/6 says that static data members of a class have external linkage. You should be able to adjust that by providing proper visibility attributes or pragmas. -- rguenth at gcc dot gnu dot org changed:

[Bug middle-end/44576] [4.5/4.6 Regression] testsuite/gfortran.dg/zero_sized_1.f90 with huge compile time on prefetching + peeling

2010-06-18 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-18 10:52 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44575] [4.5/4.6 Regression] __builtin_va_arg overwrites into adjacent stack location

2010-06-18 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Keywords||wrong-code Summary|__builtin_va_arg overwrites |[4.5/4.6

[Bug target/44573] ICE+seg11 when compiling GTK

2010-06-18 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-18 10:56 --- Works on i?86-linux. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/44580] New: inconsistent right-hand operand of comma has no effect

2010-06-18 Thread akim dot demaille at gmail dot com
I have observed the following behavior on several generations of GCC (starting at Apple's 4.0) and up to 4.6. Tested on OS X, but also GNU/Linux. It's hard to write assert-like functions because GCC does not behave equally when the context is that of a function template, or a simple function.

[Bug c++/44580] inconsistent right-hand operand of comma has no effect

2010-06-18 Thread akim dot demaille at gmail dot com
--- Comment #1 from akim dot demaille at gmail dot com 2010-06-18 11:49 --- Created an attachment (id=20938) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20938action=view) Test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44580

[Bug c++/44577] static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread mschulze at ivs dot cs dot ovgu dot de
--- Comment #3 from mschulze at ivs dot cs dot ovgu dot de 2010-06-18 12:01 --- IMO, this is not a static member of a class itself, even it is defined inside of a member function, thus I think it has not to have external linkage. -- mschulze at ivs dot cs dot ovgu dot de changed:

[Bug c++/44577] static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-06-18 13:25 --- If class_templateint::class_template is instantiated in another translation unit then it needs to refer to the same 's' ... but since the constructor calls a static function, an instantiation in another TU would

[Bug fortran/44568] [OOP] ICE with TBP of polymorphic derived type array

2010-06-18 Thread boschmann at tp1 dot physik dot uni-siegen dot de
--- Comment #2 from boschmann at tp1 dot physik dot uni-siegen dot de 2010-06-18 13:29 --- Subject: Re: [OOP] ICE with TBP of polymorphic derived type array Hallo Janus, wird denn im Moment an diesem Feature gearbeitet? Eigentlich wollte ich diesen Sommer mein Code offiziell in das

[Bug bootstrap/38607] AIX error messages about TOC during build

2010-06-18 Thread michael dot haubenwallner at salomon dot at
--- Comment #14 from michael dot haubenwallner at salomon dot at 2010-06-18 13:44 --- (In reply to comment #13) #include string #include map void foo() { std::mapstd::string, std::string bar; } Simply compiling this source code into an rtl-enabled shared library

[Bug c/44581] New: internal compiler error: in simplify_subreg

2010-06-18 Thread b dot gunreben at web dot de
when trying to compile fftw3, I get the following error: gcc -O2 -g -mpa-risc-1-0 -c r2cf_16.i -fPIC r2cf_16.i: In function ‘r2cf_16’: r2cf_16.i:119:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5143 Please submit a full bug report, gcc is: gcc -v Using built-in specs.

[Bug c/44581] internal compiler error: in simplify_subreg

2010-06-18 Thread b dot gunreben at web dot de
--- Comment #1 from b dot gunreben at web dot de 2010-06-18 15:32 --- Created an attachment (id=20939) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20939action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44581

[Bug target/44575] [4.5/4.6 Regression] __builtin_va_arg overwrites into adjacent stack location

2010-06-18 Thread matz at gcc dot gnu dot org
--- Comment #2 from matz at gcc dot gnu dot org 2010-06-18 15:58 --- It's not SSA expand (might be exposed by it, don't know), but the bug is pre-existing already in 4.3: long unsigned int D.2219; struct S116 va_arg_tmp.3; ... addr.0 = va_arg_tmp.3; addr.4 = (long unsigned int

[Bug rtl-optimization/40900] redundant sign extend of short function returned value

2010-06-18 Thread ebotcazou at gcc dot gnu dot org
--- Comment #4 from ebotcazou at gcc dot gnu dot org 2010-06-18 16:39 --- Subject: Bug 40900 Author: ebotcazou Date: Fri Jun 18 16:38:29 2010 New Revision: 161006 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161006 Log: PR rtl-optimization/40900 * expr.c

[Bug rtl-optimization/40900] redundant sign extend of short function returned value

2010-06-18 Thread ebotcazou at gcc dot gnu dot org
--- Comment #5 from ebotcazou at gcc dot gnu dot org 2010-06-18 16:40 --- On the mainline. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/32618] std::vector calls uneccessary constructors instead of inplace construction of first object

2010-06-18 Thread paolo at gcc dot gnu dot org
--- Comment #11 from paolo at gcc dot gnu dot org 2010-06-18 18:08 --- Subject: Bug 32618 Author: paolo Date: Fri Jun 18 18:07:45 2010 New Revision: 161009 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161009 Log: 2010-06-18 Paolo Carlini paolo.carl...@oracle.com PR

[Bug fortran/44582] New: Gfotran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
the function with array return must create a temporary array to hold the returned value and transfer the value to destination array after function call. Gfortran directly pass the destination array as the first fake argument. This is wrong because destination is supposed to assigned to a value

[Bug fortran/44582] Gfotran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
--- Comment #1 from yin at absoft dot com 2010-06-18 18:16 --- Created an attachment (id=20940) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20940action=view) bug example -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44582

[Bug libstdc++/32618] std::vector calls uneccessary constructors instead of inplace construction of first object

2010-06-18 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-06-18 18:22 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug fortran/44582] Gfotran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
--- Comment #2 from yin at absoft dot com 2010-06-18 18:23 --- it should be 0.0 always, NOT to be chaotic number like C, because when ddx is declared, it has to be initialized to 0.0 by fortran standard. -- yin at absoft dot com changed: What|Removed

[Bug middle-end/44583] New: [4.6 Regression] c-c++-common/torture/complex-sign-add.c

2010-06-18 Thread hjl dot tools at gmail dot com
On Linux/ia64, revision 160916 gave FAIL: c-c++-common/torture/complex-sign-add.c -O0 execution test FAIL: c-c++-common/torture/complex-sign-sub.c -O0 execution test Revision 160869 is OK. -- Summary: [4.6 Regression] c-c++-common/torture/complex-sign-add.c Product:

[Bug middle-end/44584] New: [4.6 Regression] gfortran.dg/typebound_proc_15.f03

2010-06-18 Thread hjl dot tools at gmail dot com
On Linux/ia64, revision 160858 gave FAIL: gfortran.dg/typebound_proc_15.f03 -O (internal compiler error) FAIL: gfortran.dg/typebound_proc_15.f03 -O (test for excess errors) Revision 160826 is OK. -- Summary: [4.6 Regression] gfortran.dg/typebound_proc_15.f03 Product:

[Bug c++/44585] New: Failure to warn about implicit conversion from double to int

2010-06-18 Thread alvaro dot begue at gmail dot com
The following code compiles without warning and has an exit value of 1, which is correct according to the standard. However, an implicit conversion from double to int happened without a corresponding warning. This seems incorrect to me, and similar to bug 24525 (

[Bug fortran/44582] gfortran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2010-06-18 18:49 --- (In reply to comment #2) it should be 0.0 always, NOT to be chaotic number like C, because when ddx is declared, it has to be initialized to 0.0 by fortran standard. Can you point the language in the Fortran

[Bug fortran/44582] gfortran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
--- Comment #4 from yin at absoft dot com 2010-06-18 19:00 --- O.K. I doublechecked the standard. The array declared does not need to be initialized in this case. So the return value could be any number. However, this kind of implementation should fail in a certian case. I am trying to

[Bug fortran/44582] gfortran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread kargl at gcc dot gnu dot org
--- Comment #5 from kargl at gcc dot gnu dot org 2010-06-18 19:10 --- (In reply to comment #4) O.K. I doublechecked the standard. The array declared does not need to be initialized in this case. So the return value could be any number. However, this kind of implementation should fail

[Bug c/44586] New: gcc does not warn about casting non-variadic types to variadic types

2010-06-18 Thread raj dot khem at gmail dot com
the folowing testcase does a casting which results in undefined behaviour but gcc does not warn about it. ypedef int (*bar_t)(int x, int y, ...); int foo(int x, int y) { return x+y; } void f(int x, int y) { bar_t bar; /* Cast foo to variadic type... undefined behaviour */

[Bug c++/44585] Failure to warn about implicit conversion from double to int

2010-06-18 Thread alvaro dot begue at gmail dot com
--- Comment #1 from alvaro dot begue at gmail dot com 2010-06-18 20:42 --- I just learned about -Wconversion and gcc does indeed warn about the implicit conversion from double to int when I specify it. Sorry for the false alarm. -- alvaro dot begue at gmail dot com changed:

[Bug c++/44587] New: [4.4/4.5/4.6 Regression] ICE in instantiate_decl

2010-06-18 Thread jakub at gcc dot gnu dot org
template const char *N struct A { }; template class T struct B { static const char c[1]; typedef ABT::c C; }; ICEs in instantiate_decl. template const int N struct A { }; template class T struct B { static const int c; typedef ABT::c C; }; template class T const int BT c = sizeof (T); ICEs too,

[Bug target/44129] Building linux kernel with gcc-4.5.0 and CONFIG_CC_OPTIMIZE_FOR_SIZE segfaults

2010-06-18 Thread andi-gcc at firstfloor dot org
--- Comment #16 from andi-gcc at firstfloor dot org 2010-06-18 21:11 --- This turned out to be a kernel bug, rdtsc_barrier() needed to be marked __force_inline, otherwise gcc would not inline this function. (although it's slightly fishy for gcc too not inline a function that only has

[Bug fortran/40628] Assignment using = trim(string): Optimize trim away

2010-06-18 Thread tkoenig at gcc dot gnu dot org
--- Comment #1 from tkoenig at gcc dot gnu dot org 2010-06-18 21:12 --- Mine. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-18 21:18 --- Works for me on x86_64-unknown-linux-gnu at r160947. Can you show the backtrace for the ICE? -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40628] Assignment using = trim(string): Optimize trim away

2010-06-18 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-06-18 21:19 --- In the link, one also finds trim(str1) == trim(str2) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40628

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2010-06-18 21:24 --- (In reply to comment #0) On Linux/ia64, revision 160858 gave ... Revision 160826 is OK. The only Fortran-related change in this range is r160834 | janus | 2010-06-16 14:54:54 +0200 (Wed, 16 Jun 2010) | 17 lines

[Bug c++/44587] [4.4/4.5/4.6 Regression] ICE in instantiate_decl

2010-06-18 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-06-18 21:54 --- Compiled fine until r144617, starting with r144618 gave R.ii:2: error: ‘BT::c’ cannot appear in a constant-expression R.ii:2: error: template argument 1 is invalid and starting with r154042 started ICEing. --

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread hjl dot tools at gmail dot com
typebound_proc_15 -std=f2003 -version -o typebound_proc_15.s -fintrinsic-modules-path finclude GNU Fortran (GCC) version 4.6.0 20100618 (experimental) [trunk revision 161008] (ia64-unknown-linux-gnu) compiled by GNU C version 4.6.0 20100618 (experimental) [trunk revision 161008], GMP version 4.3.2

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread hjl dot tools at gmail dot com
Fortran (GCC) version 4.6.0 20100618 (experimental) [trunk revision 161010] (i686-pc-linux-gnu) compiled by GNU C version 4.6.0 20100618 (experimental) [trunk revision 161010], GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc

[Bug fortran/44556] [4.5/4.6 Regression] incorrect error: Stat-variable at (1) shall not be DEALLOCATEd within the same DEALLOCATE statement

2010-06-18 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2010-06-18 22:24 --- Subject: Bug 44556 Author: burnus Date: Fri Jun 18 22:23:40 2010 New Revision: 161011 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161011 Log: 2010-06-18 Tobias Burnus bur...@net-b.de PR

[Bug testsuite/43739] [4.5 Regression] FAIL: gcc.dg/pr43643.c (test for excess errors)

2010-06-18 Thread danglin at gcc dot gnu dot org
--- Comment #3 from danglin at gcc dot gnu dot org 2010-06-18 22:35 --- Subject: Bug 43739 Author: danglin Date: Fri Jun 18 22:34:42 2010 New Revision: 161012 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161012 Log: Backport from mainline 2010-04-14 Steve

[Bug testsuite/43739] [4.5 Regression] FAIL: gcc.dg/pr43643.c (test for excess errors)

2010-06-18 Thread danglin at gcc dot gnu dot org
--- Comment #4 from danglin at gcc dot gnu dot org 2010-06-18 22:39 --- Subject: Bug 43739 Author: danglin Date: Fri Jun 18 22:38:32 2010 New Revision: 161013 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161013 Log: Backport from mainline 2010-04-14 Steve

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2010-06-18 23:54 --- (In reply to comment #3) /export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gfortran.dg/typebound_proc_15.f03:15.23: procedure :: bar, baz { dg-error PROCEDURE list } 1 Error:

[Bug target/44129] Building linux kernel with gcc-4.5.0 and CONFIG_CC_OPTIMIZE_FOR_SIZE segfaults

2010-06-18 Thread bdubbs at linuxfromscratch dot org
--- Comment #17 from bdubbs at linuxfromscratch dot org 2010-06-19 00:05 --- I can confirm that changing inline to __always_inline in arch/x86/include/asm/system.h fixed the panic for me. I'm not sure if this fix is the result of an error in the kernel or gcc. Leaving the bug open for

[Bug target/44129] Building linux kernel with gcc-4.5.0 and CONFIG_CC_OPTIMIZE_FOR_SIZE segfaults

2010-06-18 Thread kevin dot bowling at kev009 dot com
--- Comment #18 from kevin dot bowling at kev009 dot com 2010-06-19 00:07 --- Does it make sense for the default and distros to use an -Os kernel with modern systems (i.e. 2M-8M cache). If gcc 4.5 won't inline this at -Os, I wonder what other bad decisions are being made. --

[Bug c++/41090] [4.3/4.4/4.5/4.6 Regression] Using static label reference in c++ class constructor produces wrong code

2010-06-18 Thread danglin at gcc dot gnu dot org
--- Comment #12 from danglin at gcc dot gnu dot org 2010-06-19 00:28 --- Subject: Bug 41090 Author: danglin Date: Sat Jun 19 00:28:18 2010 New Revision: 161018 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161018 Log: PR c++/41090 * g++.dg/ext/label13.C: xfail

[Bug fortran/44584] gfortran.dg/typebound_proc_15.f03 failed

2010-06-18 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-06-19 00:47 --- (In reply to comment #5) Ok, actually I also get an ICE. But for some reason only when compiling by hand, not in the testsuite. It is fixed by this patch: Index: gcc/fortran/resolve.c

[Bug target/44588] New: Very inefficient 8bit mod/div

2010-06-18 Thread hjl dot tools at gmail dot com
On x86, I got [...@gnu-6 divb]$ cat umod-2.c extern unsigned char z; unsigned char foo (unsigned char x, unsigned char y) { z = x/y; return x % y; } [...@gnu-6 divb]$ gcc -S -O3 umod-2.c [...@gnu-6 divb]$ cat umod-2.s .file umod-2.c .text .p2align 4,,15 .globl foo

[Bug target/44588] Very inefficient 8bit mod/div

2010-06-18 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-06-19 00:52 --- Created an attachment (id=20941) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20941action=view) A patch With this patch, I got foo: .LFB0: .cfi_startproc movl%edi, %eax divb

[Bug fortran/44477] Sequential I/O with END FILE: File position should be at EoF

2010-06-18 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2010-06-19 00:58 --- Subject: Bug 44477 Author: jvdelisle Date: Sat Jun 19 00:58:28 2010 New Revision: 161020 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161020 Log: 2010-06-18 Jerry DeLisle jvdeli...@gcc.gnu.org

[Bug fortran/44477] Sequential I/O with END FILE: File position should be at EoF

2010-06-18 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2010-06-19 01:05 --- Subject: Bug 44477 Author: jvdelisle Date: Sat Jun 19 01:05:05 2010 New Revision: 161021 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161021 Log: 2010-06-18 Jerry DeLisle jvdeli...@gcc.gnu.org