[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-13 Thread hjl at lucon dot org
--- Comment #1 from hjl at lucon dot org 2007-09-13 21:52 --- Revision 116656: http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00026.html causes this regression. -- hjl at lucon dot org changed: What|Removed |Added --

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-14 Thread hjl at lucon dot org
--- Comment #2 from hjl at lucon dot org 2007-09-15 03:43 --- It also fails on Linux/ia32 and Linux/x86-64. -- hjl at lucon dot org changed: What|Removed |Added GCC targe

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread hjl at lucon dot org
--- Comment #3 from hjl at lucon dot org 2007-09-15 14:23 --- It is a simpler testcase: --- static struct { char buf[15]; } u2; void test6 (void) { int len; char *p; for (len = 0; len < 2; len++) { p = __builtin___memset_chk (u2.buf, '\0', len, 15); if (p != u2

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread hjl at lucon dot org
--- Comment #4 from hjl at lucon dot org 2007-09-15 14:58 --- This one works: --- static char buf[15]; void test6 (void) { int len; char *p; for (len = 0; len < 15; len++) { p = __builtin___memset_chk (&buf[0], '\0', len, 15); if (p != &buf[0]) return; } }

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread hjl at lucon dot org
--- Comment #5 from hjl at lucon dot org 2007-09-15 15:00 --- We can fold __builtin___memset_chk (buf, 0, 1, 15); into __builtin_memset (&buf, 0, 1); But we failed to fold __builtin___memset_chk (&u2.buf[0], 0, 1, 15); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33423

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread hjl at lucon dot org
--- Comment #6 from hjl at lucon dot org 2007-09-15 18:50 --- Another simple testcase: --- static char buf; void test6 (void) { int len; void *p; for (len = 0; len < 2; len++) { p = __builtin___memset_chk (&buf, '\0', len, 1); if (p != &buf) return; } } --- f

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread hjl at lucon dot org
--- Comment #7 from hjl at lucon dot org 2007-09-15 19:24 --- This patch works for the testcase. --- gcc/expr.c.chk 2007-09-07 07:53:42.0 -0700 +++ gcc/expr.c 2007-09-15 12:21:57.0 -0700 @@ -9117,7 +9117,6 @@ expand_expr_real_1 (tree exp, rtx target case BIND_

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-09-15 19:30 --- Subject: Re: [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670 On 15 Sep 2007 19:24:28 -, hjl at lucon dot org <[EMAIL PROTECTED]> wrote: > > > --- Comment #7 from hjl at

[Bug middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-15 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 middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670

2007-09-17 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2007-09-17 22:05 --- Subject: Bug 33423 Author: jakub Date: Mon Sep 17 22:05:40 2007 New Revision: 128554 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128554 Log: PR middle-end/33423 * builtins.c (expand_builtin_