Re: Infinite recursion due to builtin pattern detection

2013-06-27 Thread Paulo J. Matos
On 27/06/2013 16:02, Mikael Pettersson wrote: Paulo Matos writes: That explains why GCC removes the condition but the main issue of the memset recursion still stands. Known problem. See GCC PR56888. Thanks for the reference Mikael, that's exactly it. -- Paulo Matos

RE: Infinite recursion due to builtin pattern detection

2013-06-27 Thread Mikael Pettersson
Paulo Matos writes: > That explains why GCC removes the condition but the main issue of the memset > recursion still stands. Known problem. See GCC PR56888.

RE: Infinite recursion due to builtin pattern detection

2013-06-27 Thread Paulo Matos
> -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Paulo > Matos > Sent: 27 June 2013 15:02 > To: gcc@gcc.gnu.org > Subject: RE: Infinite recursion due to builtin pattern detection > > > Let me add that one of the

RE: Infinite recursion due to builtin pattern detection

2013-06-27 Thread Paulo Matos
> -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Paulo > Matos > Sent: 27 June 2013 14:52 > To: gcc@gcc.gnu.org > Subject: Infinite recursion due to builtin pattern detection > > Another thing I cannot grasp is that

Infinite recursion due to builtin pattern detection

2013-06-27 Thread Paulo Matos
Hi, I have noticed an interesting behaviour based on the memset builtin test on 4.8.1. If you compile memset-lib.i with -O3 you get an infinite recursion. $ cat memset-lib.i # 1 "/home/pmatos/work/fp_gcc-25x/gcc/testsuite/gcc.c-torture/execute/builtins/memset-lib.c" # 1 "" # 1 "/home/pmatos/wor