Bug#445536: GCC generate wrong code for infinitely recursive functions

2007-10-20 Thread Martin Michlmayr
tags 445536 + upstream forwarded 445536 http://gcc.gnu.org/PR33826 thanks * Samuel Tardieu <[EMAIL PROTECTED]> [2007-10-06 18:07]: > As far as I know, there are two acceptable behaviours for function foo(): > - loop indefinitely (if tail recursion is used) > - overflow the stack (if tail recur

Bug#445536: GCC generate wrong code for infinitely recursive functions

2007-10-06 Thread Samuel Tardieu
Package: gcc-4.2 Version: 4.2.1-5 Severity: normal % cat > t.c << EOF void foo() { foo(); } EOF % gcc -O -S -o - -fomit-frame-pointer -Wall t.c .file "t.c" .text .globl foo .type foo, @function foo: rep ; ret .size foo, .-foo .ident "GCC: (GN