[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread truedfx at gentoo dot org
--- Comment #14 from truedfx at gentoo dot org 2010-08-10 05:59 --- In the original code, the patch fixes the problem too. Thanks again. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45234

[Bug bootstrap/45206] [4.6 regression] ICE in ix86_expand_epilogue compiling libgcc

2010-08-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #6 from ebotcazou at gcc dot gnu dot org 2010-08-10 05:49 --- > Does anyone know which combination of recent commits is causing this problem? The set of RTH's patches. Configure --with-tune=i686 to work around it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45206

[Bug c++/45245] Segmentation Fault

2010-08-09 Thread gekus at aha dot ru
--- Comment #1 from gekus at aha dot ru 2010-08-10 05:16 --- Created an attachment (id=21445) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21445&action=view) Preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45245

[Bug c++/45245] New: Segmentation Fault

2010-08-09 Thread gekus at aha dot ru
g++ -c -Wno-multichar -fexceptions -g3 -D_MT -DNDEBUG -O3 -funsafe-loop-optimizations -Wunsafe-loop-optimizations -static -v -save-temps -DTESTINETD -fnon-call-exceptions -I. -I../Common -o ./GNURelease/DelaydSQL.o DelaydSQL.cpp Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with

[Bug middle-end/45242] [4.6 Regression] ICE in trunc_int_for_mode, at explow.c:57

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-08-10 04:29 --- *** This bug has been marked as a duplicate of 45182 *** -- hjl dot tools at gmail dot com changed: What|Removed |Added --

[Bug middle-end/45182] [4.6 regression] Failed to build SPEC CPU 2000/2006

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-08-10 04:29 --- *** Bug 45242 has been marked as a duplicate of this bug. *** -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug bootstrap/45206] [4.6 regression] ICE in ix86_expand_epilogue compiling libgcc

2010-08-09 Thread kargl at gcc dot gnu dot org
--- Comment #5 from kargl at gcc dot gnu dot org 2010-08-10 02:54 --- Does anyone know which combination of recent commits is causing this problem? I've tried individually backing out several of the likely offenders, but I still can't bootstrap. So, I'm guessing that I need to back ou

[Bug fortran/45244] Incorrect passing of character string array argument triggers an internal compiler error

2010-08-09 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2010-08-10 02:37 --- Created an attachment (id=21444) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21444&action=view) Reduced testcase Reduced testcase. gdb shows Program received signal SIGSEGV, Segmentation fault. 0x080ed4c0 i

[Bug fortran/45244] Incorrect passing of character string array argument triggers an internal compiler error

2010-08-09 Thread Eric dot Zurcher at csiro dot au
--- Comment #1 from Eric dot Zurcher at csiro dot au 2010-08-10 02:16 --- The FORTRAN code given below causes gfortran to fail with the message: f951.exe: internal compiler error: Segmentation fault I have tested this using the Mingw32 version of gfortran 4.5.0, and version 4.3.2 on SU

[Bug fortran/45244] New: Incorrect passing of character string array argument triggers an internal compiler error

2010-08-09 Thread Eric dot Zurcher at csiro dot au
-- Summary: Incorrect passing of character string array argument triggers an internal compiler error Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug libstdc++/45226] the difference of fstream's open() in different GCC version

2010-08-09 Thread china dot wenli dot wang at gmail dot com
--- Comment #4 from china dot wenli dot wang at gmail dot com 2010-08-10 01:07 --- (In reply to comment #3) > (In reply to comment #2) > > Thank you,yeah,the code is not a self-contained testcase.I copile it with > > another codes which not show here. > > Yes, but we don't want to see

[Bug c++/45200] [4.5/4.6 Regression] ICE in template instantiation

2010-08-09 Thread dodji at gcc dot gnu dot org
--- Comment #7 from dodji at gcc dot gnu dot org 2010-08-09 23:56 --- Created an attachment (id=21443) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21443&action=view) Candidate patch I am testing this patch atm that seems to be working for now. -- dodji at gcc dot gnu dot org

[Bug tree-optimization/45243] Non-volatile variables don't need to be constantly modified at -Os

2010-08-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-08-09 23:12 --- Works with -O2 which means LIM is not working at -Os for some reason. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/45243] New: Non-volatile variables don't need to be constantly modified

2010-08-09 Thread msharov at users dot sourceforge dot net
void foo (int& sz, int n) { for (++n; --n;) sz += 5; } Produces (-Os): _Z3fooRii: incl%esi jmp .L2 .L3: addl$5, (%rdi) .L2: decl%esi jne .L3 ret gcc thinks that every little change to sz needs to be stored in memory,

[Bug fortran/45159] Unnecessary temporaries

2010-08-09 Thread tkoenig at gcc dot gnu dot org
--- Comment #16 from tkoenig at gcc dot gnu dot org 2010-08-09 22:56 --- (In reply to comment #15) > Here's another case where we generate a temporary: > > program main > integer a(100) > a(10:16) = a(11:17:1) > end program main Here's a tentative patch: Index: dependency.c

[Bug web/43011] Upgrade gcc.gnu.org/bugzilla to Bugzilla 3.6

2010-08-09 Thread LpSolit at netscape dot net
--- Comment #29 from LpSolit at netscape dot net 2010-08-09 22:21 --- (In reply to comment #28) > I think you should probably set yourself up an account on sourceware. > Fill out this form: http://sourceware.org/cgi-bin/pdw/ps_form.cgi and > list me as your referrer. Done! I selected "s

[Bug c++/45203] [Feature request] #pragma start_no_warn_regex

2010-08-09 Thread eric_moyer at yahoo dot com
--- Comment #4 from eric_moyer at yahoo dot com 2010-08-09 22:10 --- That is great to hear. I've wanted this feature for years (but never took the time to create a bugzilla account.) Thank you. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45203

[Bug fortran/45159] Unnecessary temporaries

2010-08-09 Thread tkoenig at gcc dot gnu dot org
--- Comment #15 from tkoenig at gcc dot gnu dot org 2010-08-09 21:54 --- Here's another case where we generate a temporary: program main integer a(100) a(10:16) = a(11:17:1) end program main i...@linux-fd1f:~/Krempel/Dep-9> gfortran -Warray-temporaries d1.f90 d1.f90:3.13: a(10:1

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread rodolfo at rodsoft dot org
--- Comment #12 from rodolfo at rodsoft dot org 2010-08-09 21:35 --- Thanks for the quick fix, I have already recompiled gcc and now it compiles the snippets I've posted. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45236

[Bug objc/24777] objc needs to use normal builtins for functions it declares

2010-08-09 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2010-08-09 21:32 --- This blocks 17982. There are assemble_external calls are for objc_get_class_decl, objc_assign_global_decl, and objc_assign_strong_cast_decl. -- steven at gcc dot gnu dot org changed: What|Removed

[Bug c++/45203] [Feature request] #pragma start_no_warn_regex

2010-08-09 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-08-09 21:28 --- (In reply to comment #2) > I want to disable warnings for particular lines of code rather than whole > files. See http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas And http://gcc.gnu.org

[Bug objc/24868] objc-act.c builds non-type-safe structure

2010-08-09 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-08-09 21:19 --- Fixed by: gcc/objc/ PR objc/44140 (init_objc_symtab): Use integer_zero_node, make the short integer type specific on relevant nodes. -- pinskia at gcc dot gnu dot org changed:

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread jason at gcc dot gnu dot org
--- Comment #11 from jason at gcc dot gnu dot org 2010-08-09 21:14 --- Fixed for 4.6. -- jason at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread jason at gcc dot gnu dot org
--- Comment #10 from jason at gcc dot gnu dot org 2010-08-09 21:13 --- Subject: Bug 45236 Author: jason Date: Mon Aug 9 21:13:12 2010 New Revision: 163042 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163042 Log: PR c++/45236 * pt.c (lookup_template_class): Don

[Bug middle-end/17982] stop calling assemble_external before final assembly output time

2010-08-09 Thread steven at gcc dot gnu dot org
--- Comment #34 from steven at gcc dot gnu dot org 2010-08-09 21:13 --- The FIXME here is this one in varasm.c: --- /* We delay assemble_external processing until the compilation unit is finalized. This is the best we can do for right now (i.e. stage 3

[Bug fortran/44235] array temporary with high upper bound

2010-08-09 Thread tkoenig at gcc dot gnu dot org
--- Comment #12 from tkoenig at gcc dot gnu dot org 2010-08-09 19:35 --- Subject: Bug 44235 Author: tkoenig Date: Mon Aug 9 19:34:49 2010 New Revision: 163041 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163041 Log: 2010-08-09 Thomas Koenig PR fortran/44235

[Bug target/45212] [4.6 Regression] FAIL: gcc.target/alpha/pr24178.c scan-assembler ldl.*,18\\\\(

2010-08-09 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2010-08-09 18:24 --- (In reply to comment #4) > Fixed. Confirmed fixed on alpha [1]. [1] http://gcc.gnu.org/ml/gcc-testresults/2010-08/msg00932.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45212

[Bug middle-end/45242] New: [4.6 Regression] ICE in trunc_int_for_mode, at explow.c:57

2010-08-09 Thread jv244 at cam dot ac dot uk
Recent regression with trunk revision 163037 > cat bug.f90 SUBROUTINE dbcsr_sort_indices(n,row_i, col_i) INTEGER, DIMENSION(1:n), INTENT(INOUT) :: row_i, col_i row_i(:) = ISHFT(row_i(:), 16) + col_i END SUBROUTINE dbcsr_sort_indices > gfortran -c -O3 bug.f90 bug.f90: In function

[Bug tree-optimization/45241] CPU2006 465.tonto ICE in the vectorizer with -fno-tree-pre

2010-08-09 Thread changpeng dot fang at amd dot com
--- Comment #1 from changpeng dot fang at amd dot com 2010-08-09 17:52 --- This patch should be a valid fix, because the recognition of the dot_prod pattern is known to be fail at this point if the stmt is outside the loop. (I am not sure whether we should not see this case in the vecto

[Bug tree-optimization/45241] New: CPU2006 465.tonto ICE in the vectorizer with -fno-tree-pre

2010-08-09 Thread changpeng dot fang at amd dot com
With gcc 4.6: gfortran -c -o diis.fppized.o -O3 -fno-tree-pre -march=amdfam10 -m64 diis.fppized.f90 diis.fppized.f90: In function 'extrapolate': diis.fppized.f90:882:0: internal compiler error: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:595 Please submi

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread truedfx at gentoo dot org
--- Comment #13 from truedfx at gentoo dot org 2010-08-09 17:44 --- Thanks, that seems to work for me too for the reduced code. I'll test the original larger code that was failing too, but that'll take a little longer for me to report back anything. -- http://gcc.gnu.org/bugzilla/sh

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-08-09 17:44 --- Ah, DR 691! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45236

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread jason at gcc dot gnu dot org
--- Comment #8 from jason at gcc dot gnu dot org 2010-08-09 17:42 --- Wait, no, I was misreading your testcase; it doesn't have a pack expansion as a template argument, so it ought to work. -- jason at gcc dot gnu dot org changed: What|Removed |Add

[Bug fortran/44595] INTENT of argeuments to intrinsics procedure not check

2010-08-09 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-08-09 17:41 --- (In reply to comment #0) > The problem is in check_variable() in check.c. The first if-statement > prevents the second one from being reached. Right. However, exchanging them produces lots of regressions, since the i

[Bug libgomp/45240] New: parallel.c: GOMP_parallel_end locks a mutex but fails to unlock it after atomic operation complete

2010-08-09 Thread shreyasp at ti dot com
In parallel.c, if HAVE_SYNC_BUILTINS is #undef'ed, then GOMP_parallel_end uses a mutex to atomically modify the team->nthreads field. The mutex that is used to atomically write to nthreads is locked but never unlocked. parallel.c, GOMP_parallel_end: #ifdef HAVE_SYNC_BUILTINS __sync_fet

[Bug tree-optimization/45239] New: CPU2006 465.tonto ICE in the vectorizer with -fno-tree-pre

2010-08-09 Thread changpeng dot fang at amd dot com
With gcc 4.6: gfortran -c -o diis.fppized.o -O3 -fno-tree-pre -march=amdfam10 -m64 diis.fppized.f90 diis.fppized.f90: In function 'extrapolate': diis.fppized.f90:882:0: internal compiler error: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:595 Please submi

[Bug c++/45236] [C++0x] unhelpful diagnostic for parameter pack that is not last

2010-08-09 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2010-08-09 17:36 --- http://www.open-std.org/JTC1/SC22/WG21/docs/cwg_active.html#691 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45236

[Bug c++/45236] [C++0x] unhelpful diagnostic for parameter pack that is not last

2010-08-09 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2010-08-09 17:34 --- 14.1 paragraph 11 says, If a template-parameter of a class template is a template parameter pack, it shall be the last template-parameter. This isn't quite right: what we really want to require is that if a partial-s

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #12 from hjl dot tools at gmail dot com 2010-08-09 17:24 --- Created an attachment (id=21442) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21442&action=view) A patch This patch seems to work for me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45234

[Bug fortran/45128] Segmentation fault with -fwhole-file for subref_array_pointer

2010-08-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2010-08-09 17:18 --- Paul, can you send me a preview of the new descriptor structure so I can be planning the internal unit I/O impacts if any. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45128

[Bug middle-end/41551] [4.4 Regression] ia64: ICE: in instantiate_virtual_regs_in_insn, at function.c:1630

2010-08-09 Thread steven at gcc dot gnu dot org
--- Comment #6 from steven at gcc dot gnu dot org 2010-08-09 17:11 --- Needs fixing in 4.4 still. -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/41551] [4.4 Regression] ia64: ICE: in instantiate_virtual_regs_in_insn, at function.c:1630

2010-08-09 Thread steven at gcc dot gnu dot org
--- Comment #5 from steven at gcc dot gnu dot org 2010-08-09 17:11 --- http://gcc.gnu.org/ml/gcc-cvs/2009-11/msg01067.html -- steven at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2010-08-09 17:01 --- (In reply to comment #9) > Does this patch: > > -- > diff --git a/gcc/calls.c b/gcc/calls.c > index cd0d9c5..cbb0944 100644 > --- a/gcc/calls.c > +++ b/gcc/calls.c > @@ -2846,7 +2846,8 @@ expand_call (tree exp, rt

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread truedfx at gentoo dot org
--- Comment #10 from truedfx at gentoo dot org 2010-08-09 16:58 --- I had already tried simply commenting out the assert, and that caused wrong code, so changing the assert without anything else won't help :) FWIW, I now also checked the code difference between alloca(2) and alloca(6) w

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2010-08-09 16:38 --- Does this patch: -- diff --git a/gcc/calls.c b/gcc/calls.c index cd0d9c5..cbb0944 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2846,7 +2846,8 @@ expand_call (tree exp, rtx target, int ignore) /* Stack must

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2010-08-09 16:28 --- /* Adjust the stack pointer by minus ADJUST (an rtx for a number of bytes). This pushes when ADJUST is positive. ADJUST need not be constant. */ void anti_adjust_stack (rtx adjust) { rtx temp; if (adjust =

[Bug middle-end/41551] ia64: ICE: in instantiate_virtual_regs_in_insn, at function.c:1630

2010-08-09 Thread armin76 at gentoo dot org
--- Comment #4 from armin76 at gentoo dot org 2010-08-09 16:28 --- Could this be backported to gcc-4.4 branch, please? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41551

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2010-08-09 16:19 --- __builtin_alloca (var) is handled properly. __builtin_alloca (const int) is a special case. I am looking into it now. -- hjl dot tools at gmail dot com changed: What|Removed |A

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread truedfx at gentoo dot org
--- Comment #6 from truedfx at gentoo dot org 2010-08-09 16:15 --- With those two lines removed from 4.5.0, it looks like the stack will be aligned properly by accident. When changing __builtin_alloca (2) to __builtin_alloca (6), the only thing that changes in the generated code is @@ -

[Bug other/45238] New: gccgo failure to build

2010-08-09 Thread gcc-bugzilla at gcc dot gnu dot org
libgo fails to build. Here's the error output: gmake[4]: Entering directory `/usr/home/chris/gnuobj/gccgo/i386-unknown-freebsd8.1/libgo' rm -f syscall.gox syscalls/libsyscall.a test -d syscalls || mkdir -p syscalls files=`echo ../../../../gnusrc/gccgo/libgo/syscalls/errstr.go ../../../../gnusrc/

[Bug target/45234] [4.4 Regression] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Summary|ICE in expand_call, at |[4.4 Regression] ICE in |calls.c:2845 when passing

[Bug other/43977] Patches from oldlto branch to be salvaged

2010-08-09 Thread froydnj at gcc dot gnu dot org
--- Comment #9 from froydnj at gcc dot gnu dot org 2010-08-09 15:58 --- r114528 and r114655 have been committed as r163033. r114348, r114396, and r116014 have been committed (no revisions, but I have them crossed off on my local list). FWIW, everything after r116179 is irrelevant for b

[Bug target/45234] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2010-08-09 15:51 --- (In reply to comment #4) > H.J, this was introduced by your commit: > ... > > By backing out lines marked as ***, compilation succeeds. > Can you take a look at the assembly output to see if the stack is realigne

[Bug target/45234] ICE in expand_call, at calls.c:2845 when passing aligned function argument from unaligned stack after alloca

2010-08-09 Thread ubizjak at gmail dot com
--- Comment #4 from ubizjak at gmail dot com 2010-08-09 15:24 --- H.J, this was introduced by your commit: 138808hjl /* Ensure current function's preferred stack boundary is at least 138808hjl what we need. Stack alignment may also increase preferred stack 138808

[Bug tree-optimization/42172] inefficient bit fields assignments

2010-08-09 Thread bernds at gcc dot gnu dot org
--- Comment #4 from bernds at gcc dot gnu dot org 2010-08-09 15:04 --- I'm reopening this as it's not fixed, and even if we fix it in the RTL optimizers, it should stay open as a reminder that we produce poor initial RTL. -- bernds at gcc dot gnu dot org changed: What

[Bug fortran/45211] C interoperable error when compiling BIND(C) function in a module.

2010-08-09 Thread brtnfld at hdfgroup dot org
--- Comment #2 from brtnfld at hdfgroup dot org 2010-08-09 15:02 --- If the type declaration is moved to the module scope the code compiles. MODULE liter_cb_mod USE ISO_C_BINDING TYPE, BIND(C) :: MYFTYPE INTEGER(C_INT) :: I, J REAL(C_FLOAT) :: S END TYPE MYFTYPE CONTAINS FUNCT

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread rodolfo at rodsoft dot org
--- Comment #5 from rodolfo at rodsoft dot org 2010-08-09 14:38 --- And I think that the original intent of the attached code (as I wrote in the summary) was lost when I tried to reduce it. Here's the original version: // template class foo; templat

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread rodolfo at rodsoft dot org
--- Comment #4 from rodolfo at rodsoft dot org 2010-08-09 14:24 --- Well, this compiles: template struct A {}; template struct B {}; template struct C {}; template struct foo; template class A, template class B, template class C, int...II, int J, int...K

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-09 14:20 --- This is certainly correct, and works as expected: template struct foo; template class C, int... II> struct foo> { struct bar {}; }; template struct A {}; foo<4, A<3>>::bar x; -- http://gcc.gnu.org/

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-08-09 14:18 --- To me: template class C, int... II, int S> with the variadic II in the middle and S without a default, seems badly illegal. Jason, should we immediately produce a meaningful error when we see it? -- pao

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-09 14:11 --- I would say the problem isn't about "access" (even in non-technical sense), instead that the specialization itself isn't considered: indeed, if you comment it out, the error is exactly the same. -- http://

[Bug c/45237] New: /usr/include/string.h:546:5: error: unknown type name �__locale_t�

2010-08-09 Thread michael dot a dot richmond at nasa dot gov
When I attempt to build gcc 4.5.1 or a recent 4.5 snapshot on an x86_64 workstation running SuSE Linux 11.3 I get the following messages: gcc -c -DHAVE_CONFIG_H -g -fkeep-inline-functions -I. -I/home/mrichmon/gcc-4.5.1/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototype

[Bug c++/45236] New: Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread rodolfo at rodsoft dot org
The following code doesn't compile on gcc-4.4.1, gcc-4.5.0 and gcc-trunk (as of 2010/08/09): //--- template class foo; template class C, int... II, int S> struct foo,S> { struct bar {}; }; template struct A {}; foo, 4>::bar x; //

[Bug rtl-optimization/45235] const volatile read moved out of order

2010-08-09 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-08-09 13:56 --- Probably easier to not set TREE_READONLY or MEM_READONY_P here. Index: gcc/emit-rtl.c === --- gcc/emit-rtl.c (revision 163030) +++ gcc/emit-rtl.c

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-08-09 13:44 --- Note the specific constructor I mentioned: // XXX http://gcc.gnu.org/ml/libstdc++/2008-02/msg00047.html template tuple(tuple<_UElements...>& __in) we are *not* talking there about any of the construct

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-09 Thread jason at redhat dot com
--- Comment #5 from jason at redhat dot com 2010-08-09 13:38 --- Subject: Re: [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue On 08/09/2010 09:31 AM, paolo dot carlini at oracle dot com wrote: > I'm also thinking that the weird constructor tuple(tuple<_UElements...>&

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-08-09 13:31 --- Thanks for the clarification Jason. Indeed, I think the most robust fix is using SFINAE, and actually we have already quite a bit of language in the FCD about tuple constuctors vs constraining, I think it's tim

[Bug tree-optimization/44632] [4.4/4.5 regression] wrong code for complex division

2010-08-09 Thread rguenth at gcc dot gnu dot org
--- Comment #19 from rguenth at gcc dot gnu dot org 2010-08-09 13:31 --- Backports are pre-approved if they pass bootstrap & testing. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-09 Thread jason at redhat dot com
--- Comment #3 from jason at redhat dot com 2010-08-09 13:22 --- Subject: Re: [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue For tuple_m, you have a variadic template constructor that can take *any* arguments whatsoever, and will therefore be a better match than anyt

[Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division

2010-08-09 Thread rguenth at gcc dot gnu dot org
--- Comment #18 from rguenth at gcc dot gnu dot org 2010-08-09 13:18 --- Subject: Bug 44632 Author: rguenth Date: Mon Aug 9 13:18:08 2010 New Revision: 163031 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163031 Log: 2010-08-09 Richard Guenther PR middle-end/44632

[Bug rtl-optimization/45235] const volatile read moved out of order

2010-08-09 Thread bigotp at acm dot org
--- Comment #1 from bigotp at acm dot org 2010-08-09 11:57 --- Created an attachment (id=21441) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21441&action=view) fixes for assumption that readonly means constant The problem is caused by the same sort of test as was fixed in a diffe

[Bug rtl-optimization/45235] New: const volatile read moved out of order

2010-08-09 Thread bigotp at acm dot org
This example is reduced from hardware-specific code that uses memory-mapped registers to control and sample a logical signal. The read of the input signal is moved to follow the clear of the output signal, in violation of the requirements for volatile memory access. Reproduce with: gcc -S -O2 ir

[Bug target/45212] [4.6 Regression] FAIL: gcc.target/alpha/pr24178.c scan-assembler ldl.*,18\\\\(

2010-08-09 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-08-09 11:53 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division

2010-08-09 Thread rguenther at suse dot de
--- Comment #17 from rguenther at suse dot de 2010-08-09 11:51 --- Subject: Re: [4.4/4.5/4.6 regression] wrong code for complex division On Mon, 9 Aug 2010, dave at hiauly1 dot hia dot nrc dot ca wrote: > --- Comment #16 from dave at hiauly1 dot hia dot nrc dot ca 2010-08-09 >

[Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division

2010-08-09 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #16 from dave at hiauly1 dot hia dot nrc dot ca 2010-08-09 11:44 --- Subject: Re: [4.4/4.5/4.6 regression] wrong > The following might be a regression: > Executing on host: /home/dave/gnu/gcc/objdir/./gcc/g++ -shared-libgcc -B/ho= > me/dave/gnu/gcc/objdir/./gcc -nostdinc++

[Bug target/45212] [4.6 Regression] FAIL: gcc.target/alpha/pr24178.c scan-assembler ldl.*,18\\\\(

2010-08-09 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-08-09 11:43 --- Subject: Bug 45212 Author: rguenth Date: Mon Aug 9 11:43:23 2010 New Revision: 163029 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163029 Log: 2010-08-09 Richard Guenther PR middle-end/45212

[Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division

2010-08-09 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #15 from dave at hiauly1 dot hia dot nrc dot ca 2010-08-09 11:37 --- Subject: Re: [4.4/4.5/4.6 regression] wrong > > On Sat, 07 Aug 2010, rguenth at gcc dot gnu dot org wrote: > > > So the following should fix this. Can you bootstrap/test this? Oh, I forgot to say test

[Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division

2010-08-09 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #14 from dave at hiauly1 dot hia dot nrc dot ca 2010-08-09 11:35 --- Subject: Re: [4.4/4.5/4.6 regression] wrong code for complex division On Sat, 07 Aug 2010, rguenth at gcc dot gnu dot org wrote: > So the following should fix this. Can you bootstrap/test this?

[Bug fortran/45128] Segmentation fault with -fwhole-file for subref_array_pointer

2010-08-09 Thread paul dot richard dot thomas at gmail dot com
--- Comment #2 from paul dot richard dot thomas at gmail dot com 2010-08-09 10:50 --- Subject: Re: Segmentation fault with -fwhole-file for subref_array_pointer Dear Tobias, > If one now recycles the definition for the array descriptor "desc" this > information is not presen

[Bug target/15087] IA64: Wrong alignment for structure > 8 byte

2010-08-09 Thread michael dot haubenwallner at salomon dot at
--- Comment #5 from michael dot haubenwallner at salomon dot at 2010-08-09 08:49 --- Well, I'm waiting for this to become fixed, even if it isn't a real blocker here. There is a workaround (=ugly hack) using alignment attributes within #ifdef's for the rare cases where this really is a

[Bug c/45207] The -Os flag generates wrong code for ARM966e-s

2010-08-09 Thread fredrik dot hederstierna at securitas-direct dot com
--- Comment #8 from fredrik dot hederstierna at securitas-direct dot com 2010-08-09 07:55 --- I think I found what was the problem, the flags -mthumb -mcpu=arm966e-s -Os -falign-functions=4 Did not 32-bit-align my thumb->arm trampoline function. I dont know if -Os win over -falign-fun

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #13 from paolo dot carlini at oracle dot com 2010-08-09 07:31 --- Any help with it would be appreciated, thanks. In general, if you mean to contribute it's a good idea to sort out first the Copyright Assignment paperwork, which is actually very simple but takes time: http://