OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [naked-1.c] - Blame information for rev 318

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 313 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O0" } */
3
/* Check that function arguments aren't assigned and copied to stack slots
4
   in naked functions.  This ususally happens at -O0 (presumably for
5
   better debugging), but is highly undesirable if we haven't created
6
   a stack frame.  */
7
void __attribute__((naked))
8
foo(int n)
9
{
10
  __asm__ volatile ("frob r0\n");
11
}
12
/* { dg-final { scan-assembler "\tfrob r0" } } */
13
/* { dg-final { scan-assembler-not "\tstr" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.