[Bug testsuite/42313] FAIL: gcc.target/i386/builtin-unreachable.c scan-assembler-not %e[bs]p on i686 darwin

2009-12-08 Thread daney at gcc dot gnu dot org


--- Comment #5 from daney at gcc dot gnu dot org  2009-12-08 17:34 ---
(In reply to comment #4)
> Mike Stump says that the frame can be optimized away on darwin.  However,
> Apple's 4.2.1 compiler in darwin10 also appears to leave the stack frame...

That compiler doesn't implement __builtin_unreachable(), so is irrelevant to
the discussion of this bug.

Of interest is why, in a leaf function that doesn't use the stack, the stack
pointer is adjusted.

A darwin hacker will probably have to look into it as I only have access to
GNU/Linux targets.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42313



[Bug testsuite/42313] FAIL: gcc.target/i386/builtin-unreachable.c scan-assembler-not %e[bs]p on i686 darwin

2009-12-08 Thread howarth at nitro dot med dot uc dot edu


--- Comment #4 from howarth at nitro dot med dot uc dot edu  2009-12-08 
14:13 ---
Mike Stump says that the frame can be optimized away on darwin.  However,
Apple's 4.2.1 compiler in darwin10 also appears to leave the stack frame...

 [MacPro:~/bug] howarth% gcc-4.2 -O2 -fomit-frame-pointer -m32 --save-temps -c
builtin-unreachable.c
 [MacPro:~/bug] howarth% more builtin-unreachable.s
.text
.align 4,0x90
 .globl _h
 _h:
subl$12, %esp
movl16(%esp), %eax
 cmpb$0, (%eax)
je  L2
call___builtin_unreachable
 L2:
movl$1, %eax
addl$12, %esp
ret
.subsections_via_symbols  



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42313



[Bug testsuite/42313] FAIL: gcc.target/i386/builtin-unreachable.c scan-assembler-not %e[bs]p on i686 darwin

2009-12-07 Thread daney at gcc dot gnu dot org


--- Comment #3 from daney at gcc dot gnu dot org  2009-12-07 17:27 ---
It is failing because the redundant stack pointer adjustments are not being
removed.

This test is passing for me on  i686-pc-linux-gnu at r154987, so I think it
must be darwin specific.

If for some reason darwin requires a stack frame, perhaps the:

/* { dg-final { scan-assembler-not "%e\[bs\]p" } } */

part could be made conditional on  darwin.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42313



[Bug testsuite/42313] FAIL: gcc.target/i386/builtin-unreachable.c scan-assembler-not %e[bs]p on i686 darwin

2009-12-06 Thread howarth at nitro dot med dot uc dot edu


--- Comment #2 from howarth at nitro dot med dot uc dot edu  2009-12-06 
20:13 ---
Created an attachment (id=19243)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19243&action=view)
assembly file for gcc.target/i386/builtin-unreachable.c on i686-apple-darwin10

Generated with...

/sw/src/fink.build/gcc45-4.4.999-20091205/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc45-4.4.999-20091205/darwin_objdir/gcc/
/sw/src/fink.build/gcc45-4.4.999-20091205/gcc-4.5-20091205/gcc/testsuite/gcc.target/i386/builtin-unreachable.c
-O2 -fomit-frame-pointer --save-temps -S -o builtin-unreachable.s


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42313



[Bug testsuite/42313] FAIL: gcc.target/i386/builtin-unreachable.c scan-assembler-not %e[bs]p on i686 darwin

2009-12-06 Thread howarth at nitro dot med dot uc dot edu


--- Comment #1 from howarth at nitro dot med dot uc dot edu  2009-12-06 
20:12 ---
Created an attachment (id=19242)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19242&action=view)
preprocessed source forgcc.target/i386/builtin-unreachable.c on
i686-apple-darwin10


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42313