[Bug fortran/36825] F2008: libgfortran I/O+intrinsics: Rank 7 arrays [will break presumably break library ABI]

2008-07-28 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2008-07-28 06:41 --- I see only one place in the I/O library that uses GFC_DTYPE_RANK_MASK. There are many many places in the intrinsics. Hmm, true. Maybe one should disable the rank 15 in the frontend again. I see GFC_DESCRIPTOR used

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2

2008-07-28 Thread dodji at gcc dot gnu dot org
--- Comment #10 from dodji at gcc dot gnu dot org 2008-07-28 07:19 --- Created an attachment (id=15968) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15968action=view) try scanning DECL_EXPR instead of VAR_DECLs directly. @Jason: I have tried scanning DECL_EXPR and setting only

[Bug fortran/36825] F2008: libgfortran I/O+intrinsics: Rank 7 arrays [will break presumably break library ABI]

2008-07-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #9 from tkoenig at gcc dot gnu dot org 2008-07-28 09:46 --- See http://gcc.gnu.org/wiki/ArrayDescriptorUpdate -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36931] unneeded temporary for array intrinsic binop scalar

2008-07-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-07-28 09:52 --- Another test case: $ cat foo.f90 program main real, dimension(2,2) :: a real, dimension(2) :: b call random_number(a) b = sum(a,dim=1) + 0.4 end program main $ gfortran -Warray-temporaries foo.f90

[Bug fortran/36933] unneeded temporary with derived type containing an array as argument

2008-07-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-07-28 10:38 --- No temporary is done if the first argument of the matmul intrinsic is a (3,3) array. Interesting. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36915] Unneccessary array temporary for same_array_ptr = const * same_array_ptr

2008-07-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2008-07-28 10:38 --- Confirmed. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36874] Add shape checks to cshift/eoshift

2008-07-28 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-07-28 10:48 --- Why a run-time check? AFAIK, we can always determine the rank at runtime, so unless somebody messes with our array descriptors big time, we should be safe. -- tkoenig at gcc dot gnu dot org changed:

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2

2008-07-28 Thread dodji at gcc dot gnu dot org
--- Comment #11 from dodji at gcc dot gnu dot org 2008-07-28 10:52 --- Created an attachment (id=15969) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15969action=view) update vars more specifically, adding BIND_EXPR After talking with Jakub, it appeared that I was forgetting to

[Bug middle-end/32581] make profiledbootstrap - stageprofile - gcc/ada/a-except.adb:1301: error: control flow in the middle of basic block 20

2008-07-28 Thread tim at bishnet dot net
--- Comment #8 from tim at bishnet dot net 2008-07-28 10:52 --- For what it's worth, I just wanted to add a me too. I'm building on Solaris 9 sparc using gcc 4.2.4 to build with. The error occurs with 4.3.1 and the 20080724 snapshot. /u1/src/garstow/devel/gcc/work/build/./prev-gcc/xgcc

[Bug tree-optimization/36952] New: Optimizer generates faulty assembler code when estimating max. floating point value in a for loop

2008-07-28 Thread tcm dot home at gmx dot de
Hello, I am working on a larger project processing audio signals in double format. As I needed to estimate the max. Amplitude of a buffer, it returned a faulty value. I debugged the assembler code and realized, that the optimizer created a faulty computation of the maximum. By only changing one

[Bug fortran/36652] Internal compiler error: in gfc_conv_expr

2008-07-28 Thread j dot wookey at bristol dot ac dot uk
--- Comment #2 from j dot wookey at bristol dot ac dot uk 2008-07-28 11:02 --- Updating gfortran to 4.4.0 (20080728) on i386-apple-darwin9.4.0 fixes problem. Thanks for looking at it! -- j dot wookey at bristol dot ac dot uk changed: What|Removed

[Bug tree-optimization/36953] New: Optimizer generates faulty assembler code when estimating max. floating point value in a for loop

2008-07-28 Thread tcm dot home at gmx dot de
Hello, I am working on a larger project processing audio signals in double format. As I needed to estimate the max. Amplitude of a buffer, it returned a faulty value. I debugged the assembler code and realized, that the optimizer created a faulty computation of the maximum. By only changing one

[Bug tree-optimization/36953] Optimizer generates faulty assembler code when estimating max. floating point value in a for loop

2008-07-28 Thread tcm dot home at gmx dot de
--- Comment #1 from tcm dot home at gmx dot de 2008-07-28 11:15 --- Created an attachment (id=15970) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15970action=view) File generated with g++ -o factor -v -save-temps -Wall -O2 -march=i686 factor.cpp --

[Bug fortran/36874] Add shape checks to cshift/eoshift

2008-07-28 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2008-07-28 11:21 --- Why a run-time check? Because the shape might not be known at compile time? And a compile-time check because compile-time checks are nicer ;-) AFAIK, we can always determine the rank at runtime Yes, the RANK

[Bug fortran/36652] Internal compiler error: in gfc_conv_expr

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

[Bug tree-optimization/36952] Optimizer generates faulty assembler code when estimating max. floating point value in a for loop

2008-07-28 Thread tcm dot home at gmx dot de
--- Comment #1 from tcm dot home at gmx dot de 2008-07-28 11:49 --- *** This bug has been marked as a duplicate of 36953 *** -- tcm dot home at gmx dot de changed: What|Removed |Added

[Bug tree-optimization/36953] Optimizer generates faulty assembler code when estimating max. floating point value in a for loop

2008-07-28 Thread tcm dot home at gmx dot de
--- Comment #2 from tcm dot home at gmx dot de 2008-07-28 11:49 --- *** Bug 36952 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36953

[Bug bootstrap/36908] bootstrap forever with BOOT_CFLAGS=-O2 -ftree-loop-distribution

2008-07-28 Thread tomby at gcc dot gnu dot org
--- Comment #1 from tomby at gcc dot gnu dot org 2008-07-28 11:53 --- Created an attachment (id=15971) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15971action=view) Testcase where loop distribution enabled makes run of binary forever Compilation with CFLAGS=-O2 and running of

[Bug target/36919] [4.4 regression] Bootstrap failure on IRIX 6.5: unrecognizable insn in errors.c

2008-07-28 Thread michael dot a dot richmond at nasa dot gov
--- Comment #1 from michael dot a dot richmond at nasa dot gov 2008-07-28 12:23 --- I get the same error in gcc-4.4-20080725 under MIPS Linux. My last successful bootstrap was 20080718. -- michael dot a dot richmond at nasa dot gov changed: What|Removed

[Bug c++/36954] New: Wrong warning with -Wlogical-op

2008-07-28 Thread olaf at bonorden dot de
compiling the following functions with g++ -Wlogical-op leads to a wrong warning - templateclass C void Test() { if ((1 == 2) || (true)) { // warning: logical #8216;||#8217; with non-zero constant will always evaluate as true } if ((1 == 2) || (!false)) {

[Bug tree-optimization/36953] Optimizer generates faulty assembler code when estimating max. floating point value in a for loop

2008-07-28 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-07-28 13:12 --- I can reproduce this with 4.2.4, but not with 4.1.3 or 4.3.1. -fno-strict-aliasing fixes it, so I suspect it's a dup of one of the known wrong-code bugs with GCC 4.2.x -- rguenth at gcc dot gnu dot org changed:

[Bug target/36919] [4.4 regression] Bootstrap failure on IRIX 6.5: unrecognizable insn in errors.c

2008-07-28 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2008-07-28 13:42 --- Have you tried revision 138154 or newer? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36919

[Bug target/36919] [4.4 regression] Bootstrap failure on IRIX 6.5: unrecognizable insn in errors.c

2008-07-28 Thread michael dot a dot richmond at nasa dot gov
--- Comment #3 from michael dot a dot richmond at nasa dot gov 2008-07-28 13:49 --- (In reply to comment #2) Have you tried revision 138154 or newer? I don't know what that is -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36919

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2

2008-07-28 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2008-07-28 15:00 --- There are unneeded {} pairs, when there is just one statement in for/if, you should just write if (something) DECL_CONTEXT (x) = current_function_decl; and similar for for (.) if (something)

[Bug tree-optimization/36792] [4.4 Regression] Revision 137631 causes many failures

2008-07-28 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-07-28 15:35 --- They have been all XFAILed, with the tuples merge we now get XPASS: gcc.dg/tree-ssa/data-dep-1.c scan-tree-dump-times ltrans 4, \\+, 1 0 XPASS: gcc.dg/tree-ssa/ltrans-3.c scan-tree-dump-times ltrans transformed

[Bug tree-optimization/36766] [4.4 Regression] natGC.cc:229: internal compiler error: Segmentation fault

2008-07-28 Thread rguenth at gcc dot gnu dot org
--- Comment #20 from rguenth at gcc dot gnu dot org 2008-07-28 16:15 --- I can reproduce this on the trunk after the tuples merge (i686). -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/36919] [4.4 regression] Bootstrap failure on IRIX 6.5: unrecognizable insn in errors.c

2008-07-28 Thread michael dot a dot richmond at nasa dot gov
--- Comment #4 from michael dot a dot richmond at nasa dot gov 2008-07-28 16:23 --- (In reply to comment #2) Have you tried revision 138154 or newer? Revision 138154 fixed the problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36919

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2

2008-07-28 Thread dodji at gcc dot gnu dot org
--- Comment #13 from dodji at gcc dot gnu dot org 2008-07-28 17:01 --- Created an attachment (id=15972) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15972action=view) reworked patch Reworked patch to walk BIND_EXPR_VARs only. I think there is no need to walk VAR_DECLs via

[Bug target/36955] New: TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread janis at gcc dot gnu dot org
This testcase (yes, it's actually huge): #include iostream int main () { std::cerr writing to cerr std::endl; } segfaults in libstdc++ when powerpc-linux mainline GCC is configured with --enable-secureplt and uses 2.16 binutils (specifically, I used 2.16.91.0.5 20051219 (SUSE

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-28 17:47 --- Blah. This makes little sense really though, the generated code should be exactly the same before and after. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/36956] New: [4.4 Regression] Revision 138207 causes some regressions

2008-07-28 Thread hjl dot tools at gmail dot com
On Linux/x86, revision 138207 causes +FAIL: gcc.dg/format/bitfld-1.c -DWIDE (test for excess errors) +FAIL: gcc.dg/format/bitfld-1.c (test for excess errors) +FAIL: gcc.dg/matrix/matrix-1.c scan-ipa-dump-times matrix-reorg Flattened 3 dimensions 1: dump file does not exist +FAIL:

[Bug tree-optimization/36956] [4.4 Regression] Revision 138207 causes some regressions

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-28 18:15 --- The matrix ones are expected. I guess you really don't read the mailing list about the trunk being frozen. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36956

[Bug ada/36957] New: ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

2008-07-28 Thread laurent at guerby dot net
gcc version 4.4.0 20080728 (experimental) [trunk revision 138209] (GCC) COLLECT_GCC_OPTIONS='-c' '-B/home/guerby/build/gcc/' '-gnatws' '-O1' '-I/home/guerby/build/gcc/testsuite/ada/acats/support' '-v' '-gnatez' '-mtune=generic' /home/guerby/build/gcc/gnat1 -I/home/guerby/build/gcc/testsuite/ada

[Bug ada/36957] ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

2008-07-28 Thread laurent at guerby dot net
--- Comment #1 from laurent at guerby dot net 2008-07-28 18:29 --- (gdb) f 2 #2 0x007886d4 in emit_move_insn (x=0x2b6f9e60, y=0x2b6f9d40) at ../../trunk/gcc/expr.c:3380 3380 gcc_assert (mode != BLKmode (gdb) debug_rtx(x) Undefined command: debug_rtx. Try help.

[Bug ada/36957] ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

2008-07-28 Thread laurent at guerby dot net
--- Comment #2 from laurent at guerby dot net 2008-07-28 18:29 --- (reg:HI 59 [ T12b ]) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36957

[Bug fortran/36403] [4.4 Regression] Some fortran tests using eoshift fail on SH

2008-07-28 Thread domob at gcc dot gnu dot org
--- Comment #4 from domob at gcc dot gnu dot org 2008-07-28 18:41 --- Thanks for all the hints, Tobias! I've had a look through the F2003 standard about intrinsics taking optional char arguments, and it seems as though PACK and RESHAPE would suffer from the same problem as EOSHIFT does

[Bug fortran/36403] [4.4 Regression] Some fortran tests using eoshift fail on SH

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

[Bug tree-optimization/36861] [4.3 Regression] boost's compressed avl confuses GCC

2008-07-28 Thread lothar at tradescape dot biz
--- Comment #19 from lothar at tradescape dot biz 2008-07-28 18:55 --- Created an attachment (id=15973) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15973action=view) oprofile logs I compiled optimized executables with and without -fno-strict-aliasing and generated an oprofile

[Bug ada/36957] ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

2008-07-28 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-07-28 19:19 --- The problem is that the cast in item = (ce3801b__B_1__fix_io__num___XF_1_10_1_16) iftmp.130; is stripped away. item (QImode) is of type type integer_type 0xb7da3000 ce3801b__B_1__fix_io__num___XF_1_10_1_16

[Bug ada/36957] ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

2008-07-28 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-07-28 19:21 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36403] [4.4 Regression] Some fortran tests using eoshift fail on SH

2008-07-28 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-07-28 20:04 --- and it seems as though PACK and RESHAPE would suffer from the same problem as EOSHIFT does Seems so. I glanced through F2008 CD but I could not find more potential problems. Is it ok if I try to write one

[Bug libstdc++/36949] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count

2008-07-28 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2008-07-28 20:27 --- (In reply to comment #2) Jonathan, can you have a look? If you can confirm the issue, is it just matter of adding a call to __enable_shared_from_this_helper(_M_refcount, _M_ptr, _M_ptr) to

[Bug ada/36957] ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

2008-07-28 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-07-28 20:33 --- Subject: Bug 36957 Author: rguenth Date: Mon Jul 28 20:32:32 2008 New Revision: 138217 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=138217 Log: 2008-07-28 Richard Guenther [EMAIL PROTECTED] PR

[Bug ada/36957] ACATS ce3801b ICE emit_move_insn, at expr.c:3381 post tuple merge

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

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2008-07-28 20:41 --- Like Pinski said: the code before and after the patch should be identical w.r.t. TLS addresses. Without a more specific test case I'm not even going to look at this. -- steven at gcc dot gnu dot org changed:

[Bug translation/36958] New: typos in french translation.

2008-07-28 Thread dodji at gcc dot gnu dot org
There are many fr.po files in which the word sans has been misleadingly typed sasn. :!find . -name fr.po -exec grep -in sasn {} /dev/null \; ./gcc/po/fr.po:18353:msgstr %Jd#65533;claration de #65533; %D #65533; sasn lien suivant une d#65533;claration externe ./gcc/po/fr.po:21788:msgstr

[Bug translation/36958] typos in french translation.

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

[Bug translation/36958] typos in french translation.

2008-07-28 Thread joseph at codesourcery dot com
--- Comment #1 from joseph at codesourcery dot com 2008-07-28 20:53 --- Subject: Re: typos in french translation. Translation fixes must go to the language teams. We make no local changes to the .po files, only import unmodified new versions from the TP. --

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2008-07-28 21:17 --- Created an attachment (id=15974) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15974action=view) disassembly of eh_globals.o before aptch File libstdc++-v3/libsupc++/eh_globals.cc is compiled differently before

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread janis at gcc dot gnu dot org
--- Comment #4 from janis at gcc dot gnu dot org 2008-07-28 21:19 --- Created an attachment (id=15975) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15975action=view) disassembly of eh_globals.o after patch This attachment is the disassembly with the patch. --

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-07-28 21:28 --- Hmm, is this with the relocs? The first thing I noticed is that the loading of the global address is different. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36955

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread janis at gcc dot gnu dot org
--- Comment #6 from janis at gcc dot gnu dot org 2008-07-28 21:32 --- The attachments are the output of objdump -d (2.16 objdump) of eh_globals.o in the build trees for r135960 and r135961. Let me know if there are things you'd like me to try. --

[Bug target/36955] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread janis at gcc dot gnu dot org
--- Comment #7 from janis at gcc dot gnu dot org 2008-07-28 22:26 --- Smaller testcase, in C: int* get_global() { static __thread int global; return global; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36955

[Bug target/36955] [4.4 Regression] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2008-07-28 22:29 --- The difference is the saving/restoring of r30. r30 is not used at all as far as I can tell. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug translation/36958] typos in french translation.

2008-07-28 Thread dodji at gcc dot gnu dot org
--- Comment #2 from dodji at gcc dot gnu dot org 2008-07-28 22:40 --- Ah okay. So what is the email address to send the translation fixes to ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36958

[Bug libstdc++/36949] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count

2008-07-28 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2008-07-28 23:09 --- Thanks, fix forthcoming. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug target/36955] [4.4 Regression] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread janis at gcc dot gnu dot org
--- Comment #9 from janis at gcc dot gnu dot org 2008-07-28 23:21 --- The difference is in setting up r30 before branching to __tls_get_addr, which probably uses r30. -- janis at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/36955] [4.4 Regression] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2008-07-28 23:27 --- From http://sourceware.org/ml/binutils/2005-05/msg00391.html: Also, the ld support doesn't allow registers other than r30 as a GOT pointer. booo. -- Pinski -- pinskia at gcc dot gnu dot org changed:

[Bug libstdc++/36949] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count

2008-07-28 Thread paolo at gcc dot gnu dot org
--- Comment #5 from paolo at gcc dot gnu dot org 2008-07-28 23:29 --- Subject: Bug 36949 Author: paolo Date: Mon Jul 28 23:28:16 2008 New Revision: 138219 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=138219 Log: 2008-07-28 Paolo Carlini [EMAIL PROTECTED] PR

[Bug libstdc++/36949] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count

2008-07-28 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2008-07-28 23:30 --- Fixed. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/36959] New: [4.2/4.3/4.4 Regression] C++ front-end causing a static inline function to be emitted

2008-07-28 Thread pinskia at gcc dot gnu dot org
Take: static inline int *fromSlotB(void) { static int shuf_BZZZ = 1; return shuf_BZZZ; } int main(void) { return (int)fromSlotB(); } --- CUT --- At -O2, fromSlotB is still being emitted even though it is unused. It is being marked in cxx_callgraph_analyze_expr: else if (DECL_CONTEXT

[Bug c++/36959] [4.2/4.3/4.4 Regression] C++ front-end causing a static inline function to be emitted

2008-07-28 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Known to fail||4.1.1 4.4.0 Known to work||3.4.0

[Bug c++/36960] New: Reference variable in virtually inherited base corrupted under optimization

2008-07-28 Thread raymond at corvil dot com
Apologies if this is a duplicate: I searched existing reports and found tons of hits on virtual inheritance and reference, but couldn't find anything like this. The following program illustrates the problem: struct Lower { const int ref; Lower(const int ref) : ref(ref) {

[Bug c++/36960] Reference variable in virtually inherited base corrupted under optimization

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-29 00:01 --- i = 0; upper.D.2127.ref = i; upper.D.2125._vptr$Middle = _ZTV5Upper + 12; return *((struct Lower *) upper + (long unsigned int) *(int *) _ZTV5Upper)-ref; This works on the trunk correctly. --

[Bug c++/36960] Reference variable in virtually inherited base corrupted under optimization

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-07-29 00:02 --- Likewise for 4.3.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36960

[Bug c++/36943] [c++0x] Use of nested C++0x initializer list for non-aggregate rejected

2008-07-28 Thread jason at gcc dot gnu dot org
--- Comment #2 from jason at gcc dot gnu dot org 2008-07-29 00:06 --- Subject: Bug 36943 Author: jason Date: Tue Jul 29 00:06:08 2008 New Revision: 138221 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=138221 Log: PR c++/36943 * decl.c (reshape_init_r): Allow

[Bug c++/36943] [c++0x] Use of nested C++0x initializer list for non-aggregate rejected

2008-07-28 Thread jason at gcc dot gnu dot org
--- Comment #3 from jason at gcc dot gnu dot org 2008-07-29 00:07 --- fixed, thanks. -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/36955] [4.4 Regression] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread amodra at bigpond dot net dot au
--- Comment #11 from amodra at bigpond dot net dot au 2008-07-29 00:20 --- When -fPIC, r30 needs to be set to point into the .got2 section for the function, so that r30 is valid for the __tls_get_addr plt call stub. Note that this is a different GOT pointer than that used by @[EMAIL

[Bug target/36955] [4.4 Regression] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread amodra at bigpond dot net dot au
--- Comment #12 from amodra at bigpond dot net dot au 2008-07-29 00:37 --- So, the easy fix for this bug is (totally untested, not even compiled) Index: gcc/config/rs6000/rs6000.c === --- gcc/config/rs6000/rs6000.c

[Bug c++/36961] New: fails to identify template

2008-07-28 Thread igodard at pacbell dot net
enum A{a}; enum B{b}; class bottom {}; templatetypename E class attr { public: E v; operator E() { return v;} }; templatetemplatetypename class node, typename attr, typename next class attrNode : public nodeattr, public next {}; templatetemplatetypename class node class list1 :

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #1 from igodard at pacbell dot net 2008-07-29 00:52 --- Oops - sorry, posted wrong test case: enum A{a}; enum B{b}; enum C{c}; enum D{d}; class bottom {}; templatetypename E class attr { public: E v; operator E() { return v;} }; templatetemplatetypename class

[Bug c++/36961] fails to identify template

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-07-29 00:53 --- A x3 = attA(foo); foo is a class. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #3 from igodard at pacbell dot net 2008-07-29 00:54 --- p.s. Comeau likes the (correct, second) test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961

[Bug c++/36961] fails to identify template

2008-07-28 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-07-29 01:01 --- The error is correct as the type of v2 is foo so it cannot figure out the rest of the template agruments from that type. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug target/36955] [4.4 Regression] TLS LIBCALL change breaks libstdc++ built with older binutils

2008-07-28 Thread amodra at bigpond dot net dot au
--- Comment #13 from amodra at bigpond dot net dot au 2008-07-29 01:04 --- Blah, of course that's the wrong place to add the use_reg. Needs to be a few lines lower. I guess I may as well take this bug and go thru a boot/regress cycle. -- amodra at bigpond dot net dot au changed:

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #5 from igodard at pacbell dot net 2008-07-29 01:07 --- Please confirm that it is an error with your associates. First, Comeau likes it. Second, other template functions have no trouble identifying a template base class given a derived class. What is different about this

[Bug translation/36958] typos in french translation.

2008-07-28 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2008-07-29 02:02 --- Subject: Re: typos in french translation. On Mon, 28 Jul 2008, dodji at gcc dot gnu dot org wrote: Ah okay. So what is the email address to send the translation fixes to ? See the Language-Team entry in the .po

[Bug c++/36961] fails to identify template

2008-07-28 Thread igodard at pacbell dot net
--- Comment #6 from igodard at pacbell dot net 2008-07-29 02:32 --- FWIW, Visual Studio has been reported to me as accepting the test case too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36961