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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [pr8788-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* PR inline-asm/8788 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
typedef struct {
6
    long x[6];
7
} myjmp_buf;
8
 
9
typedef struct {
10
    myjmp_buf regs;
11
} my_stack;
12
 
13
void switch_to_stack (my_stack *stack){
14
    asm (  /* { dg-error "impossible constraint" } */
15
/* { dg-warning "asm operand 1" "asm operand 1" { target *-*-* } 14 } */
16
        "\n"
17
        : "+r" (stack->regs)
18
    );
19
}
20
 

powered by: WebSVN 2.1.0

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