[Bug rtl-optimization/43058] [4.5 Regression] var-tracking uses up all virtual memory

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2010-03-23 06:48 --- But clearly it is not var-tracking that eats all the memory, instead it is the scheduler, and it happens also with -g0, and doesn't happen with -fno-schedule-insns -fno-schedule-insns2. So, please open a separate

[Bug c++/42556] Unnecessary generation of a zero initializer for array with C++

2010-03-23 Thread jiez at gcc dot gnu dot org
--- Comment #3 from jiez at gcc dot gnu dot org 2010-03-23 08:55 --- My patch for this bug: http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01039.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42556

[Bug debug/42959] g++ does not emit DW_AT_default_value

2010-03-23 Thread dodji at gcc dot gnu dot org
--- Comment #6 from dodji at gcc dot gnu dot org 2010-03-23 09:33 --- Created an attachment (id=20167) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20167action=view) Draft patch This draft patch emits a DW_AT_GNU_default_value_unrepresentable attribute flag when the default

[Bug other/43489] New: gcc fails to build

2010-03-23 Thread jon at jonshouse dot co dot uk
make[3]: Entering directory `/root/src/GNU/unmodified_gnu/gcc-4.4.3/i686-pc-linux-gnu/libgfortran' if /bin/sh ./libtool --tag=CC --mode=compile /root/src/GNU/unmodified_gnu/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/xgcc -B/root/src/GNU/unmodified_gnu/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/

[Bug debug/41130] GCC should emit an index of publicly named entities

2010-03-23 Thread dodji at gcc dot gnu dot org
--- Comment #14 from dodji at gcc dot gnu dot org 2010-03-23 09:54 --- Not working on this atm. -- dodji at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43488] Get compiler internal error with DFP expression

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-03-23 10:17 --- For which target? What internal error? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-23 10:24 --- We need a testcase to reproduce the bug (preprocessed source). You also might want to try removing -mcmodel=large (you really shouldn't need that). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43477

[Bug other/43489] gcc fails to build

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-03-23 10:49 --- That's a bug in your glibc headers, not in gcc. Just use newer glibc. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43490] New: sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
sin(x) (and sinf(x)) *used* to work accurately on earlier gcc versions, e.g. gcc 3.4.6 20060404 (Red Hat 3.4.6-9) ON x86_64-redhat-linux gcc 4.2.1 on Macintosh OR cross compiling for ARM Cortex-A8 with gcc version 4.3.2 BUT sin(x) becomes progressively more inaccurate with increasing

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
--- Comment #1 from simon dot fenney at imgtec dot com 2010-03-23 12:06 --- Created an attachment (id=20168) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20168action=view) Trivial test program that outputs sin(x) and sinf(x) for various vals VS expected results I haven't added

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread pluto at agmk dot net
--- Comment #2 from pluto at agmk dot net 2010-03-23 12:08 --- duplicate of PR43405. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43490

[Bug c/43488] Get compiler internal error with DFP expression

2010-03-23 Thread tydeman at tybor dot com
--- Comment #2 from tydeman at tybor dot com 2010-03-23 12:08 --- Host and target info: CPU: Intel Pentium 4 OS: Linux Fedora Core 10 with gcc 4.3.2 Fedora Core 11 with gcc 4.4.1 Fedora Core 12 with gcc 4.4.3 Command line options: CFLAGS=-std=gnu99 -pedantic -H -fno-builtin

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
--- Comment #3 from simon dot fenney at imgtec dot com 2010-03-23 12:20 --- (In reply to comment #2) duplicate of PR43405. It's doesn't seem to be the same. I just tried the test source from 43405 and on the old system (gcc 3.4.6) (which I assumed was working) got: double

[Bug c/43488] Get compiler internal error with DFP expression

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-03-23 12:30 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug target/40722] [4.5 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls

2010-03-23 Thread ktietz at gcc dot gnu dot org
--- Comment #8 from ktietz at gcc dot gnu dot org 2010-03-23 12:32 --- (In reply to comment #7) An updated patch is at http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00937.html Patch is fine. It is absolutely necessary to support gcc's intrinsic headers for mingw. The fixinclude

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2010-03-23 13:00 --- BUT sin(x) becomes progressively more inaccurate with increasing magnitude of x, as with the above version (on x86). At a guess, it would seem like something has broken the range reduction maths. Since pi is

[Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants

2010-03-23 Thread manu at gcc dot gnu dot org
--- Comment #20 from manu at gcc dot gnu dot org 2010-03-23 13:05 --- (In reply to comment #19) I wanted to record my unfinished patch to track macro expansion locations, and this bug seemed like an appropriate place. What is missing from this patch? Is it only the macro location

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
--- Comment #5 from simon dot fenney at imgtec dot com 2010-03-23 13:10 --- (In reply to comment #4) BUT sin(x) becomes progressively more inaccurate with increasing magnitude of x, as with the above version (on x86). At a guess, it would seem like something has broken the

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread pluto at agmk dot net
--- Comment #6 from pluto at agmk dot net 2010-03-23 13:17 --- (In reply to comment #3) (In reply to comment #2) duplicate of PR43405. Using maple and computing the result to 30 decimal places, I get -.852200849767188801772705893753 so it looks like there is an

[Bug rtl-optimization/43471] Unnecessary reload of asm m operand address

2010-03-23 Thread rearnsha at gcc dot gnu dot org
--- Comment #4 from rearnsha at gcc dot gnu dot org 2010-03-23 13:18 --- This second example clearly has nothing to do with the stated bug report summary line (there's no m constraint anywhere in the test case), and you make no attempt to explain what you think is wrong. Please see

[Bug rtl-optimization/43473] hword size destination variable induces suboptimal code generation compared to full word size var

2010-03-23 Thread rearnsha at gcc dot gnu dot org
--- Comment #1 from rearnsha at gcc dot gnu dot org 2010-03-23 13:21 --- You haven't explained what you think is wrong, and you haven't even said what options you used to generated the code. If the optimizer is not on the generated code *will* be very poor. That's why we have an

[Bug target/40722] [4.5 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls

2010-03-23 Thread hjl at gcc dot gnu dot org
--- Comment #9 from hjl at gcc dot gnu dot org 2010-03-23 13:24 --- Subject: Bug 40722 Author: hjl Date: Tue Mar 23 13:24:37 2010 New Revision: 157665 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157665 Log: Fix stdlib.h for mingw. 2010-03-23 H.J. Lu hongjiu...@intel.com

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-03-23 13:28 --- This is a glibc problem. Confirmed by LD_PRELOADing a different libm which makes it work. Please report to glibc bugzilla instead. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
--- Comment #8 from simon dot fenney at imgtec dot com 2010-03-23 13:37 --- (In reply to comment #6) you can test two different implementations: 1). '-O2 -m32 -fno-builtin' - force libm.so calls and test libc implementation. 2). '-O2 -m32' to test gcc compile-time evaluation.

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2010-03-23 13:37 --- Unassinging Andrew. Raising priority to P2. At -O2 we now optimize main () to main () { bb 2: # DEBUG a = 2 # DEBUG b = 3 # DEBUG c = 4 # DEBUG a = 3 # DEBUG b = 4 [t.c : 13:22] printf ([t.c : 13]

[Bug target/43358] [4.5 Regression] IRA: internal compiler error: in pool_free, at alloc-pool.c:335

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-23 13:39 --- CCing mips maintainer -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-23 13:39 --- David? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug target/43469] [4.5 Regression] ICE trying to compile glibc for ARM thumb2

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-03-23 13:41 --- Not exactly a primary or secondary target. CCing maintainer. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Component|rtl-optimization|target Priority|P3 |P1

[Bug rtl-optimization/43471] Unnecessary reload of asm m operand address

2010-03-23 Thread mirq-gccboogs at rere dot qmqm dot pl
--- Comment #5 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-23 14:04 --- The problem is that gcc sometimes emits instructions that are copying the global r4 (even when it's marked as const) into temporary. Originally I thought that the simplies case was this asm statememt, but it

[Bug target/43469] [4.5 Regression] ICE trying to compile glibc for ARM thumb2

2010-03-23 Thread tschwinge at gcc dot gnu dot org
--- Comment #5 from tschwinge at gcc dot gnu dot org 2010-03-23 14:14 --- Also got hit by this. -- tschwinge at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/43491] New: Unnecessary temporary for global register variable

2010-03-23 Thread mirq-gccboogs at rere dot qmqm dot pl
gcc sometimes allocates a temporary register for a variable that is global and has a fixed register. This happens when: a. the global is a register-fixed variable b. global is a pointer to structure c. an address of structure's field is passed as argument to inlined function d. the global is

[Bug rtl-optimization/43473] hword size destination variable induces suboptimal code generation compared to full word size var

2010-03-23 Thread mirq-gccboogs at rere dot qmqm dot pl
--- Comment #2 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-23 14:37 --- Sorry, I try to split encountered problems into simple testcases and after a few I forgot to add the common things to bugreports. The difference between ma() and mb() in the example is a global's size:

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #6 from meissner at gcc dot gnu dot org 2010-03-23 15:10 --- The rs6000 change on 2010-03-17 is the culprit. If I do a svn update for the sandbox, and then do: $ svn update -r157529 gcc/config/rs6000 There is no error. -- meissner at gcc dot gnu dot org changed:

[Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants

2010-03-23 Thread tromey at gcc dot gnu dot org
--- Comment #21 from tromey at gcc dot gnu dot org 2010-03-23 15:19 --- What is missing from this patch? Is it only the macro location tracked or the parameter expanded within the macro? The biggest problem with the patch is that I didn't finish debugging it. It causes regressions

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2010-03-23 15:22 --- Thus we are talking about: extern int printf (const char *, ...); __attribute__((noinline)) int add2 (int a, int b) { return a + b; } static inline int add3 (int a, int b, int c) { return a + add2 (b, c); }

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2010-03-23 15:56 --- Created an attachment (id=20169) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20169action=view) gcc45-pr19192.patch Untested fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #7 from meissner at gcc dot gnu dot org 2010-03-23 16:10 --- I forgot Peter was on vacation. I'll take it. -- meissner at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/42959] g++ does not emit DW_AT_default_value

2010-03-23 Thread tromey at gcc dot gnu dot org
--- Comment #7 from tromey at gcc dot gnu dot org 2010-03-23 16:11 --- In the case where the default value is an expression, would it be possible to just emit the expression as a string? I believe that would be sufficient for gdb's purposes. --

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread matz at gcc dot gnu dot org
--- Comment #14 from matz at gcc dot gnu dot org 2010-03-23 16:16 --- Simply replace the recursive call to expand_expr_real_1 with a call to expand_expr_real. That's the wrapper setting locations. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #15 from jakub at gcc dot gnu dot org 2010-03-23 16:17 --- Created an attachment (id=20170) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20170action=view) gcc45-pr19192.patch Updated patch that also fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43479#c1 testcase.

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #16 from jakub at gcc dot gnu dot org 2010-03-23 16:19 --- Actually it is not, it restores neither curr_insn_block or curr_insn_source_location. Perhaps the fix would be to fix that function though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed

2010-03-23 Thread aflyhorse at foxmail dot com
--- Comment #3 from aflyhorse at foxmail dot com 2010-03-23 16:30 --- (In reply to comment #2) We need a testcase to reproduce the bug (preprocessed source). You also might want to try removing -mcmodel=large (you really shouldn't need that). I've tryed to remove all newly added

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2010-03-23 16:37 --- Created an attachment (id=20171) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20171action=view) gcc45-pr19192.patch Patch that does that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread matz at gcc dot gnu dot org
--- Comment #18 from matz at gcc dot gnu dot org 2010-03-23 16:46 --- It should mostly not matter anymore as expand_expr_real_[12] and friends use an explicit location parameter, stored away before expanding operands. But to be safe, yes, expand_expr_real() should instead also restore

[Bug fortran/43492] New: f951: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:352

2010-03-23 Thread sfilippone at uniroma2 dot it
Hi, The attached code produces the subject error. [sfili...@donald bug14]$ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/local/gnudev/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with:

[Bug fortran/43492] f951: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:352

2010-03-23 Thread sfilippone at uniroma2 dot it
--- Comment #1 from sfilippone at uniroma2 dot it 2010-03-23 17:10 --- Created an attachment (id=20172) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20172action=view) test case If I switch the comments on lines 27-28 the code compiles, i.e. it is the GENERIC interface that is not

[Bug debug/43479] Missing DW_TAG_lexical_block+DW_TAG_variable

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-03-23 17:24 --- Created an attachment (id=20173) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20173action=view) gcc45-pr43479-test.patch This testcase is fixed on x86_64-linux by the PR19192 proposed patch (second or third).

[Bug c++/43493] New: exception ignores catch-clause when std::ostringstream helps in throwing

2010-03-23 Thread gcc at cohi dot at
See following code snippet; when the MY_THROW macro is changed to do { throw ::my_error( MeSSaGe ); } while( 1 ) then I get the expected result, i.e. invocation of the executable prints error foo and returns 1 to the shell... This is on an i7 iMac with Mac OS X 10.6.2 with 64bit Kernel and

[Bug c/43494] New: gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on ia64-unknown-linux-gnu with extra passes containing -fpic/-fPIC I get the following additional error on the 4.4 branch: FAIL: gcc.c-torture/execute/vector-2.c execution, -O2 FAIL: gcc.c-torture/execute/vector-2.c execution, -Os on 4.5 trunk I get: FAIL:

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread law at redhat dot com
--- Comment #9 from law at redhat dot com 2010-03-23 17:36 --- Subject: Re: Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used On 03/22/10 16:20, vmakarov at redhat dot com wrote: --- Comment #6 from vmakarov at redhat dot com

[Bug c/43494] gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2010-03-23 17:36 --- 4.4.4 ia64 results with error: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01631.html 4.5.0 ia64 results with error: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01997.html -- ghazi at gcc dot gnu dot

[Bug target/43493] exception ignores catch-clause when std::ostringstream helps in throwing

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 17:37 --- Most likely related to PR 43277. I want to say Darwin10's unwinder is broken ... -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on ia64-unknown-linux-gnu with extra passes containing -fpic/-fPIC I get the following additional error on the 4.5 trunk: FAIL: gcc.c-torture/execute/2603-1.c execution, -O2 FAIL: gcc.c-torture/execute/2603-1.c execution, -O3 -fomit-frame-pointer FAIL:

[Bug debug/43479] Missing DW_TAG_lexical_block+DW_TAG_variable

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-23 17:54 --- It is update_equiv_regs that does this. Will look into it tomorrow. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/43492] f951: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:352

2010-03-23 Thread sfilippone at uniroma2 dot it
--- Comment #2 from sfilippone at uniroma2 dot it 2010-03-23 18:01 --- Forgot to highlight that this only applies to fortran-dev branch, with a fresh 4.5 build it compiles cleanly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43492

[Bug c/43496] New: gcc.target/powerpc/gcse-1.c fails on powerpc-unknown-linux-gnu with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fpic/-fPIC I get the following additional error: FAIL: gcc.target/powerpc/gcse-1.c scan-assembler-times @ha 1 The error happens on the 4.3/4.4 branches and 4.5 trunk:

[Bug testsuite/43496] gcc.target/powerpc/gcse-1.c fails on powerpc-unknown-linux-gnu with -fpic/-fPIC

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 18:20 --- I don't speak ppc, so is this expected or is it a GCC bug? The testcase just needs to be changed for -fPIC/-fpic really, maybe just skipped. The @ha means taking the high part of the address for relocations. --

[Bug rtl-optimization/43494] gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-23 18:22 --- This sounds like an aliasing issue which is only exposed on ia64. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug pch/43497] New: gcc.dg/pch/static-1.c and gcc.dg/pch/static-2.c fail on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fPIC I get the following additional error on the 4.3 branch: FAIL: gcc.dg/pch/static-1.c -O0 -g assembly comparison FAIL: gcc.dg/pch/static-1.c -O0 assembly comparison FAIL: gcc.dg/pch/static-2.c -O0 -g

[Bug pch/43497] gcc.dg/pch/static-1.c and gcc.dg/pch/static-2.c fail on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2010-03-23 18:39 --- The -O0 vs -O0 -g diffs appear to be the same except for line number changes. So here is just the -O0 -g diffs for both testcases: line #69 .LCL1: .LCL0: line #70 .long .LCTOC1-.LCF1 .long

[Bug c++/43498] New: -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
I have compiled various C and C++ source files in attempt to generate async unwind tables for better stack trace accuracy with asynchronous signals, adding -fasynchronous-unwind-tables to compile options. I have so far been completely unable to come up with any example where the option would

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread vmakarov at redhat dot com
--- Comment #10 from vmakarov at redhat dot com 2010-03-23 18:45 --- (In reply to comment #5) Still I'll investigate a bit more why there are a lot of unexpected spills during assignment with -mvsx for the current code. The problem is in that part of VSX_REGS (altivec regs) does

[Bug c++/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-03-23 18:47 --- -fasynchronous-unwind-tables is the default on x86_64. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
--- Comment #2 from lat at cern dot ch 2010-03-23 18:52 --- Created an attachment (id=20174) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20174action=view) Random C source file for testing Random C source file for additional testing. Compile on Linux with and without

[Bug c++/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
--- Comment #3 from lat at cern dot ch 2010-03-23 18:54 --- Ah, that would explain it. Does it mean that all omissions and inaccuracies in unwind information are bugs? Like the lack of unwind info for thunks? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43498

[Bug middle-end/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-03-23 18:56 --- (In reply to comment #3) Ah, that would explain it. Does it mean that all omissions and inaccuracies in unwind information are bugs? Like the lack of unwind info for thunks? yes thunks should have unwind tables

[Bug libgomp/43499] New: libgomp.fortran/appendix-a/a.22.7.f90 and libgomp.fortran/omp_parse3.f90 fail on powerpc-unknown-linux-gnu with -fpic

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fpic I get the following additional error on the 4.3 branch: Running target unix/-fpic FAIL: libgomp.fortran/appendix-a/a.22.7.f90 -Os (test for excess errors) UNRESOLVED: libgomp.fortran/appendix-a/a.22.7.f90

[Bug middle-end/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
--- Comment #5 from lat at cern dot ch 2010-03-23 18:58 --- OK, reopening bug then. -- lat at cern dot ch changed: What|Removed |Added Status|RESOLVED

[Bug libgomp/43499] libgomp.fortran/appendix-a/a.22.7.f90 and libgomp.fortran/omp_parse3.f90 fail on powerpc-unknown-linux-gnu with -fpic

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 19:00 --- BFD 2.17 Considering this is an old version of binutils, it might be a bug in binutils. Since this is openmp code, I would not doubt it is related to TLS. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43499

[Bug libgomp/43499] libgomp.fortran/appendix-a/a.22.7.f90 and libgomp.fortran/omp_parse3.f90 fail on powerpc-unknown-linux-gnu with -fpic

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-23 19:02 --- And most likely fixed by: http://sourceware.org/ml/binutils/2008-11/msg00240.html :) Which is talking about TLS and the different models which gets changed by -fPIC. --

[Bug middle-end/43498] No unwind info for thunks even with -fasynchronous-unwind-tables

2010-03-23 Thread lat at cern dot ch
--- Comment #6 from lat at cern dot ch 2010-03-23 19:04 --- Changing subject to be more descriptive of the actual bug. -- lat at cern dot ch changed: What|Removed |Added

[Bug c/43495] [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2010-03-23 19:05 --- Testcase also fails on powerpc-unknown-linux-gnu with -fpic/-fPIC: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01630.html -- ghazi at gcc dot gnu dot org changed: What|Removed

[Bug other/43357] fixincludes/tests/base/iso/math_c99.h check fails

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-03-23 19:06 --- I can't reproduce it anymore in r157675 with x86_64, probably fixed by r157573: http://gcc.gnu.org/viewcvs?view=revisionrevision=157573 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43357

[Bug target/43498] No unwind info for thunks even with -fasynchronous-unwind-tables

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2010-03-23 19:13 --- The x86-64 target writes directly out asm rather than going through some RTL code which causes unwind tables not to be written out for the thunks. -- pinskia at gcc dot gnu dot org changed: What

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread vmakarov at gcc dot gnu dot org
--- Comment #11 from vmakarov at gcc dot gnu dot org 2010-03-23 19:19 --- Subject: Bug 43413 Author: vmakarov Date: Tue Mar 23 19:18:42 2010 New Revision: 157676 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157676 Log: 2010-03-23 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/43500] New: gcc.c-torture/execute/va-arg-trap-1.c fails on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fPIC I get the following additional errors on the 4.4 branch: FAIL: gcc.c-torture/execute/va-arg-trap-1.c compilation, -O2 (internal compiler error) FAIL: gcc.c-torture/execute/va-arg-trap-1.c compilation,

[Bug middle-end/43500] gcc.c-torture/execute/va-arg-trap-1.c fails on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 19:25 --- *** This bug has been marked as a duplicate of 39254 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/39254] [4.4 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #20 from pinskia at gcc dot gnu dot org 2010-03-23 19:25 --- *** Bug 43500 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/39254] [4.4 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #21 from ghazi at gcc dot gnu dot org 2010-03-23 19:55 --- As noted in duplicate PR43500, I am able to reproduce this error on plain powerpc-unknown-linux-gnu when adding -fPIC. I can run tests for the 4.4. branch but it will take several days to get a baseline result vs a

[Bug target/33120] Data not put in BSS section on Mac OS

2010-03-23 Thread mrs at gcc dot gnu dot org
--- Comment #10 from mrs at gcc dot gnu dot org 2010-03-23 20:03 --- Subject: Bug 33120 Author: mrs Date: Tue Mar 23 20:02:57 2010 New Revision: 157677 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157677 Log: PR target/33120 * config/darwin.h

[Bug middle-end/42181] [4.5 Regression][graphite] -fgraphite-identity miscompiles air.f90

2010-03-23 Thread spop at gcc dot gnu dot org
--- Comment #27 from spop at gcc dot gnu dot org 2010-03-23 20:08 --- I just verified that the problem is well in CLooG-PPL. With CLooG-ISL we generate a correct code that looks like this: for (c2=1;c2=D.1554_10-3;c2++) { S1(c2); for (c4=0;c4=c2-1;c4++) { S2(c2,c4);

[Bug target/33120] Data not put in BSS section on Mac OS

2010-03-23 Thread mrs at gcc dot gnu dot org
--- Comment #11 from mrs at gcc dot gnu dot org 2010-03-23 20:13 --- This should now be fixed. -- mrs at gcc dot gnu dot org changed: What|Removed |Added

[Bug other/43357] fixincludes/tests/base/iso/math_c99.h check fails

2010-03-23 Thread danglin at gcc dot gnu dot org
--- Comment #3 from danglin at gcc dot gnu dot org 2010-03-23 20:24 --- Also don't see any more. -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/39254] [4.4 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2010-03-23 Thread dominiq at lps dot ens dot fr
--- Comment #22 from dominiq at lps dot ens dot fr 2010-03-23 20:32 --- As noted in duplicate PR43500, I am able to reproduce this error on plain powerpc-unknown-linux-gnu when adding -fPIC. I can run tests for the 4.4. branch but it will take several days to get a baseline result

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at gcc dot gnu dot org
--- Comment #3 from davem at gcc dot gnu dot org 2010-03-23 20:40 --- Sorry, it's taking a long time to sort out the test case. The GLIBC regex code is huge and non-trivial. However I did track down that it might be dependent upon optimization options, for example I can reproduce with

[Bug debug/43501] New: [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread zsojka at seznam dot cz
Command line: gcc -g testcase.c - testcase.c - void foo (int __attribute__ ((__mode__ (vector_size (8 x) {} void bar (int x[i()]) {} -- (reduced from testsuite/gcc.dg/parm-impl-decl-1.c) Tested revisions: r157675 - crash r157460 - crash r157122 - crash r153685 -

[Bug middle-end/42181] [4.5 Regression][graphite] -fgraphite-identity miscompiles air.f90

2010-03-23 Thread spop at gcc dot gnu dot org
--- Comment #28 from spop at gcc dot gnu dot org 2010-03-23 21:24 --- I fixed this problem in CLooG-PPL: the code generated with the new version looks like the code generated by CLooG-ISL: for (c2=1;c2=D.1554_10-3;c2++) { S1(c2); for (c4=0;c4=c2-1;c4++) { S2(c2,c4);

[Bug middle-end/42181] [4.5 Regression][graphite] -fgraphite-identity miscompiles air.f90

2010-03-23 Thread spop at gcc dot gnu dot org
--- Comment #29 from spop at gcc dot gnu dot org 2010-03-23 21:27 --- Also note that with the fix in CLooG-PPL, gfortran -O2 -fgraphite-identity air.f90 -o air ./air passes without error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42181

[Bug debug/43501] [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-03-23 21:31 --- Created an attachment (id=20175) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20175action=view) better testcase This testcase is better as it is valid C89 code (I believe) --

[Bug debug/43501] [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-03-23 21:33 --- C89 + GNU extensions, that is -- zsojka at seznam dot cz changed: What|Removed |Added

[Bug debug/43501] [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-03-23 22:05 --- I'd say this is a dup of PR43381. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43501

[Bug target/43498] No unwind info for thunks even with -fasynchronous-unwind-tables

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2010-03-23 22:10 --- At least when using CFI asm this is solvable easily, see how I've changed i386 PIC setup generation. Without CFI asm it would be much harder though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43498

[Bug c/43495] [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #2 from ghazi at gcc dot gnu dot org 2010-03-23 22:17 --- Testcase also fails on sparc64-unknown-linux-gnu with -fpic/-fPIC in both 32 and 64 bit modes: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg00753.html -- ghazi at gcc dot gnu dot org changed: What

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-23 22:41 --- Wouldn't this be the same issue as http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01086.html ? On the trunk it wasn't just one commit, but several: 156888, 156889, 156893, 156903, 156913 If yes, would be interesting to

[Bug target/43435] [4.3/4/4 Regression] SH: Bad registers are restored before ISR is leaved

2010-03-23 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2010-03-23 23:13 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #12 from meissner at gcc dot gnu dot org 2010-03-23 23:40 --- This reduces the spills, and brings the performance backs up. I'm closing the bug. Thanks. -- meissner at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #8 from meissner at gcc dot gnu dot org 2010-03-23 23:43 --- I have tracked down the issue, and will submit a patch tomorrow after further testing. The issue is when a multi-word items is loaded to GPRS, and the address is of the form (r0+reg), the compiler was using r0 as

[Bug c++/43502] New: uninitialised read in grokfndecl() with lambda functions cause -fcompare-debug failures

2010-03-23 Thread zsojka at seznam dot cz
Command line: g++ -std=c++0x testcase.cpp testcase.cpp void f() { []{}(); } -- valgrind shows uninitialised read with this testcase Tested revisions: r157675 - fail Valgrind output: $ valgrind --trace-children=yes -q /mnt/svn/gcc-trunk/binary-157675-lto/bin/g++

[Bug c++/43502] uninitialised read in grokfndecl() with lambda functions cause -fcompare-debug failures

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-03-24 00:03 --- Created an attachment (id=20176) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20176action=view) reduced testcase showing -fcompare-debug failure Line numbers are random: $

  1   2   >