[Bug libfortran/43844] open(unit, status="scratch") fails to create tempporary file

2010-04-21 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2010-04-22 06:57 --- I also do not like: > if (tempdir == NULL) >tempdir = DEFAULT_TEMPDIR; /* This is "/tmp". */ My feeling is that, e.g., on Windows this won't work; I do not know whether before the environment variables "GFORT

[Bug c/43827] Intrinsic possibility: does not alias global data

2010-04-21 Thread darkshikari at gmail dot com
--- Comment #6 from darkshikari at gmail dot com 2010-04-22 06:31 --- It seems that __attribute__((pure)) can already do this for many instances of this situation--but it doesn't work for function pointers. Is this an arbitrary limitation, or would serious work be necessary to make ((pu

[Bug tree-optimization/43846] New: 4.5.0 regression, array vs members, dead code removal issues

2010-04-21 Thread tbptbp at gmail dot com
Hello, As instructed in http://gcc.gnu.org/ml/gcc/2010-04/msg00505.html i'm filing this. I've noticed gcc 4.5 has more trouble than it used to to removed dead stores when dealing with arrays, as exemplified by $ cat huh.cc struct foo_t { float x, y, z; foo_t() {} foo_t(floa

[Bug c/43845] Segfault when using __attribute__((const)), versions 4.4.3 and 4.6

2010-04-21 Thread darkshikari at gmail dot com
--- Comment #1 from darkshikari at gmail dot com 2010-04-22 06:01 --- Created an attachment (id=20457) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20457&action=view) Preprocessed source that produces the segfault -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43845

[Bug c/43845] New: Segfault when using __attribute__((const)), versions 4.4.3 and 4.6

2010-04-21 Thread darkshikari at gmail dot com
I was playing around with __attribute__((const)), not realizing that what I actually should have used was __attribute__((pure)). But regardless of the fact that I was using these attributes incorrectly, gcc obviously shouldn't segfault. First comment will have the preprocessed source that generat

[Bug debug/43478] Missing DW_AT_location for a variable

2010-04-21 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-04-22 04:43 --- That sounds like a good idea, hope it will work well. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43478

[Bug debug/43478] Missing DW_AT_location for a variable

2010-04-21 Thread aoliva at gcc dot gnu dot org
--- Comment #4 from aoliva at gcc dot gnu dot org 2010-04-22 02:39 --- After much pondering, an idea that might fix this problem and many others hit me: instead of just resetting debug stmts that refer to an earlier REG_DEAD, emit a debug temp that binds to the reg before it dies, and re

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread howarth at nitro dot med dot uc dot edu
xflags "-shared-libgcc -lgcj $libiconv" } if { [istarget "*-*-solaris*"] } { However it ends up compiling... xecuting on host: /sw/src/fink.build/gcc46-4.5.999-20100421/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc46-4.5.999-20100421/darwin_objdir/gcc/ /sw/src/fink.

[Bug libfortran/43844] open(unit, status="scratch") fails to create tempporary file

2010-04-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-04-22 00:44 --- The if and do .. while block may execute mktemp more than once. ?? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43844

[Bug libfortran/43844] open(unit, status="scratch") fails to create tempporary file

2010-04-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #1 from jvdelisle at gcc dot gnu dot org 2010-04-22 00:41 --- This does not look right to me: static int tempfile (st_parameter_open *opp) { const char *tempdir; char *template; int fd; tempdir = getenv ("GFORTRAN_TMPDIR"); if (tempdir == NULL) tempdir = gete

[Bug c/4412] possible warning of logic errors not given

2010-04-21 Thread P at draigBrady dot com
--- Comment #3 from P at draigBrady dot com 2010-04-22 00:40 --- Actually gcc 4.5 was the first version to mention -Wlogical-op in the release notes, but that option has actually been available since gcc 4.3.0 (5 Mar 2008) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4412

[Bug libfortran/43844] New: open(unit, status="scratch") fails to create tempporary file

2010-04-21 Thread jvdelisle at gcc dot gnu dot org
This problem appears to result in many tessuite failures. I belive Kai is having a look at it. The problem is likely in libgfortran/io/unix.c . I have not determined if it is configuring or wrong code. I suspect the wrong code from my initial looks at this. -- Summary: open(unit,

[Bug c/43772] Errant -Wlogical-op warning when testing limits

2010-04-21 Thread P at draigBrady dot com
--- Comment #3 from P at draigBrady dot com 2010-04-22 00:37 --- I've confirmed that this is _not_ an issue with the previous gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43772

[Bug fortran/43832] OPEN statement not diagnosing missing unit number

2010-04-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2010-04-22 00:29 --- OK , I will see what I ca ndo. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/41468] SFINAE for expressions doesn't consider ambiguous conversion sequences

2010-04-21 Thread jason at gcc dot gnu dot org
--- Comment #1 from jason at gcc dot gnu dot org 2010-04-21 23:57 --- Another case, though it's a different ambiguity: #define static_assert(TEST,STR) \ do { int ar[(TEST)?1:-1]; } while (0); struct B {}; struct B1 : B {}; struct B2 : B {}; struct D : B1, B2 {}; template T create

[Bug c++/41468] SFINAE for expressions doesn't consider ambiguous conversion sequences

2010-04-21 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

[Bug rtl-optimization/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands

2010-04-21 Thread schwab at linux-m68k dot org
--- Comment #7 from schwab at linux-m68k dot org 2010-04-21 23:40 --- I think 'T' should accept tls references like 's' does. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43804

[Bug middle-end/41817] bogus "may be uninitialized" (huge testcase, inlining?)

2010-04-21 Thread xinliangli at gmail dot com
--- Comment #8 from xinliangli at gmail dot com 2010-04-21 23:38 --- This is one of the typical cases that will be handled by patch in http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00706.html size_t search_table_entries; search_table = parse_eh_frame_hdr (...&search_table_entries,..); i

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread howarth at nitro dot med dot uc dot edu
--- Comment #7 from howarth at nitro dot med dot uc dot edu 2010-04-21 23:33 --- This may be fixable with... Index: testsuite/Makefile.in === --- testsuite/Makefile.in (revision 158487) +++ testsuite/Makefile.in

[Bug java/43086] PR16923 fails with Assertion failed: (class_id)

2010-04-21 Thread howarth at nitro dot med dot uc dot edu
--- Comment #4 from howarth at nitro dot med dot uc dot edu 2010-04-21 23:19 --- Mike, The suggestion in Comment 2 works fine with my gcc trunk build on x86_64-apple-darwin10 (assuming one fixes the-liconv linkage manually)... bash-3.2# /sw/src/fink.build/gcc46-4.5.999-20100418/dar

[Bug rtl-optimization/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands

2010-04-21 Thread schwab at linux-m68k dot org
--- Comment #6 from schwab at linux-m68k dot org 2010-04-21 22:51 --- (In reply to comment #5) > assuming -mpcrel and -fpic are equivalent: They aren't. -mpcrel implies -fpic, but not the other way round. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43804

[Bug c++/36797] ICE mangling __is_empty

2010-04-21 Thread jason at gcc dot gnu dot org
--- Comment #13 from jason at gcc dot gnu dot org 2010-04-21 22:49 --- Changing summary and suspending until C++0x is finalized. -- jason at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/43827] Intrinsic possibility: does not alias global data

2010-04-21 Thread darkshikari at gmail dot com
--- Comment #5 from darkshikari at gmail dot com 2010-04-21 22:24 --- One somewhat unrelated issue I had when attempting to compile using LTO: we have about 5 arrays in C that are referenced from YASM-syntax assembly code. Even I add __attribute__((used)), LTO/wholeprogram seems to opti

[Bug tree-optimization/43827] Intrinsic possibility: does not alias global data

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-04-21 22:13 --- (In reply to comment #2) > Here's what the compiler currently says about one of these calls using "-flto > -fipa-pta -fwhole-program -fdump-tree-optimized-alias -O3 -fomit-frame-pointer > -ffastmath": > > # PT = non

[Bug c/43827] Intrinsic possibility: does not alias global data

2010-04-21 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-21 22:09 --- Can you provide the preprocessed source for your testcase? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/43827] Intrinsic possibility: does not alias global data

2010-04-21 Thread darkshikari at gmail dot com
--- Comment #2 from darkshikari at gmail dot com 2010-04-21 22:07 --- Here's what the compiler currently says about one of these calls using "-flto -fipa-pta -fwhole-program -fdump-tree-optimized-alias -O3 -fomit-frame-pointer -ffastmath": # PT = nonlocal unit-escaped D.9637_762 = h_79(

[Bug fortran/43841] Missing temporary for ELEMENTAL function call

2010-04-21 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2010-04-21 21:51 --- PR43843 looks like a duplicate. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43841

[Bug fortran/43843] Wrong-code due to missing temporary with user-defined operatator

2010-04-21 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-04-21 21:49 --- It looks like a duplicate of PR 43841. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43843

[Bug fortran/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2010-04-21 21:30 --- Subject: Bug 43836 Author: jakub Date: Wed Apr 21 21:26:11 2010 New Revision: 158621 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158621 Log: PR fortran/43836 * f95-lang.c (gfc_define_builtin

[Bug fortran/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-04-21 21:26 --- Subject: Bug 43836 Author: jakub Date: Wed Apr 21 21:24:04 2010 New Revision: 158620 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158620 Log: PR fortran/43836 * f95-lang.c (gfc_define_builtin

[Bug fortran/43843] New: Wrong-code due to missing temporary with user-defined operatator

2010-04-21 Thread burnus at gcc dot gnu dot org
Reported by Kyle Horne at http://gcc.gnu.org/ml/fortran/2010-04/msg00215.html There is a missing temporary for user-defined operators: type(polar_t),dimension(3)::b b = polar_t(1.0,0.5) b(:) = b(:)/b(1) The latter is translated into: struct polar_t * D.1551; D.1551 = &b[0];

[Bug fortran/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-04-21 21:23 --- Subject: Bug 43836 Author: jakub Date: Wed Apr 21 21:20:07 2010 New Revision: 158619 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158619 Log: PR fortran/43836 * f95-lang.c (gfc_define_builtin

[Bug fortran/43841] Missing temporary for ELEMENTAL function call

2010-04-21 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-04-21 20:48 --- Confirmed. The test fails with gfortran from at least 4.2.3 up to trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43841

[Bug libstdc++/37477] [Core 475] std::uncaught_exception() returns wrong value after entering terminate() in some cases

2010-04-21 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-04-21 20:46 --- The status is now [Ready], unsuspending. -- paolo dot carlini at oracle dot com changed: What|Removed |Added -

[Bug c/43842] New: ice in vect_create_epilog_for_reduction

2010-04-21 Thread regehr at cs dot utah dot edu
Configured with: ../configure --with-libelf=/usr/local --enable-lto --prefix=/home/regehr/z/compiler-install/gcc-r158618-install --program-prefix=r158618- --enable-languages=c,c++ Thread model: posix gcc version 4.6.0 20100421 (experimental) (GCC) [reg...@gamow tmp407]$ cat small.c typedef s

[Bug tree-optimization/43791] [4.6 Regression] kernel/rtmutex.c:1138:1: internal compiler error: in cgraph_decide_inlining_of_small_functions, at ipa-inline.c:1009

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #17 from rguenth at gcc dot gnu dot org 2010-04-21 20:23 --- *** Bug 43840 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug regression/43840] ICE in gcc 4.6.0 with -O1 -finline-small-functions

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-21 20:23 --- *** This bug has been marked as a duplicate of 43791 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug lto/43823] [lto] ICE during linking in testsuite

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-21 20:22 --- I guess you have to debug it - I do not have a freebsd system available. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43823

[Bug fortran/43841] New: Missing temporary for ELEMENTAL function call

2010-04-21 Thread anlauf at gmx dot de
As reported in http://gcc.gnu.org/ml/fortran/2010-04/msg00215.html gfortran does not always produce a temporary when it deems necessary. Reduce testcase: program main implicit none type::polar_t real :: l end type polar_t call test_member contains subroutine test_member ty

[Bug rtl-optimization/43804] [4.5/4.6 regression] ICE in reload_cse_simplify_operands

2010-04-21 Thread maxim at codesourcery dot com
--- Comment #5 from mkuvyrkov at gcc dot gnu dot org 2010-04-21 19:43 --- Subject: Re: [4.5/4.6 regression] ICE in reload_cse_simplify_operands On 4/21/10 5:23 PM, schwab at linux-m68k dot org wrote: > --- Comment #4 from schwab at linux-m68k dot org 2010-04-21 13:22 --- > In

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #6 from mrs at gcc dot gnu dot org 2010-04-21 19:26 --- Ah, that wasn't the original work, just some mods along the way. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #5 from mrs at gcc dot gnu dot org 2010-04-21 19:23 --- Came in with http://gcc.gnu.org/ml/java-patches/2007-q4/msg00053.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839

[Bug lto/43823] [lto] ICE during linking in testsuite

2010-04-21 Thread sgk at troutmask dot apl dot washington dot edu
--- Comment #4 from sgk at troutmask dot apl dot washington dot edu 2010-04-21 19:14 --- Subject: Re: [lto] ICE during linking in testsuite On Wed, Apr 21, 2010 at 10:01:43AM -, rguenth at gcc dot gnu dot org wrote: > > --- Comment #3 from rguenth at gcc dot gnu dot org 2010

[Bug regression/43840] New: ICE in gcc 4.6.0 with -O1 -finline-small-functions

2010-04-21 Thread djdragonboy at gmail dot com
Program compiles correctly with GCC 4.1.2, 4.2.4, 4.3.4, 4.4.3, and 4.5.0 at -O3. In GCC 4.6.0-20100419, program compiles correctly at -O1, but ICE occurs with -O1 -finline-small-functions. ICE also occurs at -O2 and higher. GCC 4.6.0 was built from source checked out of SVN on 19 Apr 2010. Hos

[Bug c++/43831] [C++0x] gcc-4.5.0 does not fail invalid lambda captures (against n3092 5.1.2/8)

2010-04-21 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirme

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #4 from mrs at gcc dot gnu dot org 2010-04-21 19:02 --- *** Bug 43086 has been marked as a duplicate of this bug. *** -- mrs at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug java/43086] PR16923 fails with Assertion failed: (class_id)

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #3 from mrs at gcc dot gnu dot org 2010-04-21 19:02 --- I've been able to confirm that with the hack patch in PR43839, this testcase works on x86_64-apple-darwin10. *** This bug has been marked as a duplicate of 43839 *** -- mrs at gcc dot gnu dot org changed:

[Bug c++/43167] Warnings should not be disabled when instantiating templates defined in system headers

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #14 from redi at gcc dot gnu dot org 2010-04-21 19:02 --- Bug 43820 shows cases where libstdc++ was *relying* on the front-end issuing warnings about calling delete with a pointer to incomplete types. I'm going to change the library code to handle it instead, but it's an ext

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #3 from mrs at gcc dot gnu dot org 2010-04-21 19:00 --- Nasty hack around: Index: testsuite/libjava.jni/jni.exp === --- testsuite/libjava.jni/jni.exp (revision 157698) +++ testsuite/libjava.jni/jni.exp

[Bug libgomp/43826] [libgomp] sharing-2..f90 has too many excess errors

2010-04-21 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2010-04-21 19:00 --- (In reply to comment #2) > Works just fine here. Are you sure you have updated also to the latest > fortran/openmp.c and rebuilt f951? > Seems my trunk was only partially updated. I can't reproduce the result. Clo

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #19 from redi at gcc dot gnu dot org 2010-04-21 18:59 --- thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43820

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #2 from mrs at gcc dot gnu dot org 2010-04-21 18:52 --- Found it: if { [istarget "*-*-darwin*"] } { lappend cxxflags -shared-libgcc -lgcj -liconv } in libjava/testsuite/libjava.jni/jni.exp. This needs the proper -L added just before -liconv, or libgcj linked with -

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread paolo dot carlini at oracle dot com
--- Comment #18 from paolo dot carlini at oracle dot com 2010-04-21 18:48 --- c++/43167 ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43820

[Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #1 from mrs at gcc dot gnu dot org 2010-04-21 18:44 --- I think this is the root cause of PR43086. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839

[Bug java/43086] PR16923 fails with Assertion failed: (class_id)

2010-04-21 Thread mrs at gcc dot gnu dot org
--- Comment #2 from mrs at gcc dot gnu dot org 2010-04-21 18:39 --- When I run it by hand, I get: $ /Users/mrs/net/gcc-java/gcc/xgcc -B/Users/mrs/net/gcc-java/gcc/ /Users/mrs/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.c -bind_at_load -multiply_defined suppress -I. -I.. -

[Bug java/43839] New: libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix

2010-04-21 Thread mrs at gcc dot gnu dot org
libjava doesn't link libgcj with -liconv during build when --with-libiconv-prefix=/opt/local is used, and no corresponding -L for the -liconv is issued on the link line when running the libjava testsuite (jni.exp) for the FAIL: PR16923 run testcase: Executing on host: /Users/mrs/net/gcc-java/gcc/x

[Bug rtl-optimization/31485] C complex numbers, amd64 SSE, missed optimization opportunity

2010-04-21 Thread irar at il dot ibm dot com
--- Comment #10 from irar at il dot ibm dot com 2010-04-21 18:33 --- Thanks. So, it is not always profitable and requires a cost model. I am now working on cost model for basic block vectorization, I can look at this once we have one. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #17 from redi at gcc dot gnu dot org 2010-04-21 18:26 --- ok, thanks for the pointers, I'll hunt for the discussion -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43820

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread paolo dot carlini at oracle dot com
--- Comment #16 from paolo dot carlini at oracle dot com 2010-04-21 18:18 --- Note I'm traveling, thus I have limited capabilities. I strongly recommend digging out that conversation about the pragma itself, with Ian too involved, and trying to put to good use static_asserts and any oth

[Bug c++/43838] Incorrect output from abi::__cxa_demangle

2010-04-21 Thread slawomir at ezono dot com
--- Comment #1 from slawomir at ezono dot com 2010-04-21 18:15 --- Created an attachment (id=20456) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20456&action=view) Preprocessed source of example program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838

[Bug c++/43838] New: Incorrect output from abi::__cxa_demangle

2010-04-21 Thread slawomir at ezono dot com
g++ -v: Using built-in specs. Target: i686-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-z

[Bug fortran/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread jv244 at cam dot ac dot uk
--- Comment #3 from jv244 at cam dot ac dot uk 2010-04-21 17:53 --- (In reply to comment #2) > See patch at http://gcc.gnu.org/ml/fortran/2010-04/msg00222.html and follow up > at PR 43837 beats the speed of light... thanks. A very practical question. Is Fortran code compiled with -fexc

[Bug gcov-profile/43825] gcov is initialized wrong on x86_64

2010-04-21 Thread tglek at mozilla dot com
--- Comment #9 from tglek at mozilla dot com 2010-04-21 17:48 --- (In reply to comment #8) > Taras, to avoid triggering the problem from firefox you can search for the > file > (as I remember there is only one in xulrunner) with #pragma pack(1) and does > not reset it, and add #pragma p

[Bug fortran/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-04-21 17:48 --- See patch at http://gcc.gnu.org/ml/fortran/2010-04/msg00222.html and follow up at PR 43837 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43836

[Bug fortran/43837] New: Set TREE_NOTHROW also on libgfortran library calls

2010-04-21 Thread burnus at gcc dot gnu dot org
Follow up to PR 43836 and http://gcc.gnu.org/ml/fortran/2010-04/msg00222.html > It would be good to set TREE_NOTHROW also on libgfortran library calls > that are known not to throw exceptions (I guess most of them, except > those that do IO). POSIX lists which libc functions have to and can thr

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #15 from redi at gcc dot gnu dot org 2010-04-21 17:41 --- Comeau warns on the auto_ptr case. boost::shared_ptr refuses to compile if the type is incomplete -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43820

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2010-04-21 17:11 --- Forgot: before doing anything about those diagnostic issues, we should double check what other compilers do with / without our library, thus, say current ICC / something else (even among those available online

[Bug fortran/43326] [fortran-dev Regression] dynamic dispatch with CLASS components

2010-04-21 Thread dominiq at lps dot ens dot fr
--- Comment #12 from dominiq at lps dot ens dot fr 2010-04-21 17:09 --- > thanks for the reminder, Dominique You're welcome!-) Just another one: modulo spaces(?) gcc/testsuite/gfortran.dg/dynamic_dispatch_7.f03 in trunk and gcc/testsuite/gfortran.dg/dynamic_dispatch_9.f03 in fortran-de

[Bug libgcj/40860] [4.4/4.5/4.6 regression] regressions in libjava testsuite on arm-linux

2010-04-21 Thread aph at gcc dot gnu dot org
--- Comment #40 from aph at gcc dot gnu dot org 2010-04-21 17:05 --- Subject: Bug 40860 Author: aph Date: Wed Apr 21 17:04:42 2010 New Revision: 158614 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158614 Log: 2010-04-19 Andrew Haley PR libgcj/40860 * config

[Bug c++/43824] C++0x feature "inline namespace" enabled under -std=c++98; no warnings

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-04-21 17:04 --- good point then #pragma GCC system_header must disable the warning, so we can use inline namespaces and variadic templates in the standard library -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43824

[Bug libstdc++/43820] [4.4/4.5/4.6 Regression] auto_ptr used with incomplete type no longer triggers warning

2010-04-21 Thread paolo dot carlini at oracle dot com
--- Comment #13 from paolo dot carlini at oracle dot com 2010-04-21 17:04 --- static_asserts are fine, of course. Otherwise, if the real issue is that errors coming from system headers are suppressed and shouldn't, sometimes, from the user point of view, that is a **front-end** issue, a

[Bug fortran/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs

2010-04-21 Thread amonakov at gcc dot gnu dot org
--- Comment #3 from amonakov at gcc dot gnu dot org 2010-04-21 16:54 --- (In reply to comment #1) > Created an attachment (id=20455) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20455&action=view) [edit] > proposed patch > GCC generates gcov structures at runtime, and #pragma p

[Bug c++/43824] C++0x feature "inline namespace" enabled under -std=c++98; no warnings

2010-04-21 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-21 16:54 --- (In reply to comment #2) > Right, this is a GNU extension used to implement the library, which was later > standardised. We also support 'long long' in C++03 mode. Yes but with -pedantic we do warn about long long:

[Bug fortran/43326] [fortran-dev Regression] dynamic dispatch with CLASS components

2010-04-21 Thread pault at gcc dot gnu dot org
--- Comment #11 from pault at gcc dot gnu dot org 2010-04-21 16:51 --- Fixed on fortran-dev. Thanks, as usual, for the report, Janus, and thanks for the reminder, Dominique :-) Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/43326] [fortran-dev Regression] dynamic dispatch with CLASS components

2010-04-21 Thread pault at gcc dot gnu dot org
--- Comment #10 from pault at gcc dot gnu dot org 2010-04-21 16:50 --- Subject: Bug 43326 Author: pault Date: Wed Apr 21 16:49:28 2010 New Revision: 158613 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158613 Log: 2010-04-21 Paul Thomas PR fortran/43326 * re

[Bug debug/40040] gfortran invalid DW_AT_location for overridable variables

2010-04-21 Thread jakub at gcc dot gnu dot org
--- Comment #14 from jakub at gcc dot gnu dot org 2010-04-21 16:49 --- Subject: Bug 40040 Author: jakub Date: Wed Apr 21 16:48:41 2010 New Revision: 158612 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158612 Log: PR debug/40040 * dwarf2out.c (add_name_and_src_c

[Bug gcov-profile/43825] gcov is initialized wrong on x86_64

2010-04-21 Thread amonakov at gcc dot gnu dot org
--- Comment #8 from amonakov at gcc dot gnu dot org 2010-04-21 16:48 --- Taras, to avoid triggering the problem from firefox you can search for the file (as I remember there is only one in xulrunner) with #pragma pack(1) and does not reset it, and add #pragma pack() in the end of that f

[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs

2010-04-21 Thread amonakov at gcc dot gnu dot org
--- Comment #2 from amonakov at gcc dot gnu dot org 2010-04-21 16:45 --- *** Bug 43825 has been marked as a duplicate of this bug. *** -- amonakov at gcc dot gnu dot org changed: What|Removed |Added

[Bug gcov-profile/43825] gcov is initialized wrong on x86_64

2010-04-21 Thread amonakov at gcc dot gnu dot org
--- Comment #7 from amonakov at gcc dot gnu dot org 2010-04-21 16:45 --- *** This bug has been marked as a duplicate of 43341 *** -- amonakov at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs

2010-04-21 Thread amonakov at gcc dot gnu dot org
--- Comment #1 from amonakov at gcc dot gnu dot org 2010-04-21 16:43 --- Created an attachment (id=20455) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20455&action=view) proposed patch -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43341

[Bug middle-end/43812] [4.5/4.6 Regression] compiling .cc file with -fwhole-program results in ICE, in ipcp_iterate_stage, at ipa-cp.c:760

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2010-04-21 16:43 --- -fwhole-program is old. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug libgcj/40860] [4.4/4.5/4.6 regression] regressions in libjava testsuite on arm-linux

2010-04-21 Thread aph at gcc dot gnu dot org
--- Comment #39 from aph at gcc dot gnu dot org 2010-04-21 16:34 --- Subject: Bug 40860 Author: aph Date: Wed Apr 21 16:34:01 2010 New Revision: 158611 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158611 Log: 2010-04-19 Andrew Haley PR libgcj/40860 * config

[Bug middle-end/43812] compiling .cc file with -fwhole-program results in ICE, in ipcp_iterate_stage, at ipa-cp.c:760

2010-04-21 Thread steven at gcc dot gnu dot org
--- Comment #8 from steven at gcc dot gnu dot org 2010-04-21 16:31 --- How can this possibly be a regression in 4.5 if -fwhole-program is new there? Regression means "worked in an earlier release" and there is no earlier release with this feature. -- steven at gcc dot gnu dot org cha

[Bug debug/42648] [4.5/4.6 Regression] gcc.dg/guality/pr41353-1.c FAILs at -On, n > 0

2010-04-21 Thread sje at cup dot hp dot com
--- Comment #6 from sje at cup dot hp dot com 2010-04-21 16:27 --- This looks like what I see on ia64-debian-linux-gnu as well. -- sje at cup dot hp dot com changed: What|Removed |Added --

[Bug c++/43818] internal compiler error: Segmentation fault

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #9 from redi at gcc dot gnu dot org 2010-04-21 16:24 --- I tested on an x86_64 box (with -m32 because your preprocessed source was made on a 32bit box so it was necessary) so I definitely have a lot more memory available I'm still thinking it's a problem with running out of

[Bug middle-end/43812] [4.5/4.6 Regression] compiling .cc file with -fwhole-program results in ICE, in ipcp_iterate_stage, at ipa-cp.c:760

2010-04-21 Thread jamborm at gcc dot gnu dot org
--- Comment #7 from jamborm at gcc dot gnu dot org 2010-04-21 16:21 --- I have submitted a fix to the mailing list: http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01315.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43812

[Bug libstdc++/32354] libstdc++.so.6 missing RPATH

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #10 from redi at gcc dot gnu dot org 2010-04-21 16:13 --- P.S. the workaround is a hack and not ideal, because it adds RPATH=$ORIGIN to every binary object that gets built including the front-end drivers, cc1plus, collect2 etc. but it is only needed by shared libs that depen

[Bug libstdc++/32354] libstdc++.so.6 missing RPATH

2010-04-21 Thread redi at gcc dot gnu dot org
--- Comment #9 from redi at gcc dot gnu dot org 2010-04-21 16:08 --- I've just been bitten by this on Solaris 10, and I think lots more people will be now that gcc 4.5.0 has been released. The problem is made worse if libstdc++ (or libgomp etc.) is built with symbol versioning enabled b

[Bug middle-end/43835] [4.5 Regression] IPA-SRA doesn't rewrite attributes

2010-04-21 Thread jamborm at gcc dot gnu dot org
--- Comment #3 from jamborm at gcc dot gnu dot org 2010-04-21 16:04 --- Mine -- jamborm at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned

[Bug middle-end/43835] [4.5 Regression] IPA-SRA doesn't rewrite attributes

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-21 15:51 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug middle-end/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43836

[Bug middle-end/43836] [4.4 Regression] ice with -fexceptions and -fopenmp

2010-04-21 Thread jv244 at cam dot ac dot uk
--- Comment #1 from jv244 at cam dot ac dot uk 2010-04-21 15:30 --- 4.3.1 ([gcc-4_3-branch revision 135036]) does not fail, so marking as regression. 4.5.0 works as well with 4.4.4 I have this backtrace: (gdb) bt #0 bitmap_element_allocate (head=0x10284c0) at /data03/vondele/gcc_4_4_b

[Bug middle-end/43836] New: ice with -fexceptions and -fopenmp

2010-04-21 Thread jv244 at cam dot ac dot uk
d with: /data03/vondele/gcc_4_4_branch/gcc/configure --prefix=/data03/vondele/gcc_4_4_branch/build --with-ppl=/data03/vondele/gcc_trunk/build/ --with-cloog=/data03/vondele/gcc_trunk/build/ --enable-languages=c,c++,fortran --disable-multilib Thread model: posix gcc version 4.4.4 20100421 (prerelease) [g

[Bug middle-end/43835] IPA-SRA doesn't rewrite attributes

2010-04-21 Thread matz at gcc dot gnu dot org
--- Comment #1 from matz at gcc dot gnu dot org 2010-04-21 15:08 --- Created an attachment (id=20454) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20454&action=view) testcase # gcc -O2 sra-nonnull.c && ./a.out Segmentation fault -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug middle-end/43835] New: IPA-SRA doesn't rewrite attributes

2010-04-21 Thread matz at gcc dot gnu dot org
The testcase I'm attaching shortly will be miscompiled by IPA-SRA. The problem is, that SRA splits the pointer argument 'c' of mark_cell into two new parameters, one being a pointer itself, and another int param. But it doesn't rewrite the attribute list of the fndecl, hence the nonnull attributes

[Bug tree-optimization/43833] false warning: array subscript is above array bounds with -O3

2010-04-21 Thread jiez at gcc dot gnu dot org
--- Comment #1 from jiez at gcc dot gnu dot org 2010-04-21 14:48 --- The patch: http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01304.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43833

[Bug other/43834] problems when linking in XCode 3.2.2 (gcc build 5659) - static constants are messed?

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-21 14:37 --- Report it to Apple. The version Apple ships does not resemble anything like an FSF release that would still be supported. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug fortran/43326] [fortran-dev Regression] dynamic dispatch with CLASS components

2010-04-21 Thread pault at gcc dot gnu dot org
--- Comment #9 from pault at gcc dot gnu dot org 2010-04-21 14:29 --- Created an attachment (id=20453) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20453&action=view) Version of fix for fortran-dev This hasn been fully bootstrapped but runs gfortran.dg/dynamic*, proc* and class*

[Bug fortran/43829] Scalarization of reductions

2010-04-21 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-21 14:26 --- subroutine test0(esss,Ix, e_x) real(kind=kind(1.0d0)), dimension(:), intent(out) :: esss real(kind=kind(1.0d0)), dimension(:) :: Ix integer(kind=kind(1)), dimension(:) :: e_x esss = Ix(e_x) end subroutine wh

  1   2   >