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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [special/] [gcsec-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* AIX gld supports garbage collection. But AIX gcc does not support
2
   -ffunction-sections or -fdata-sections.  */
3
/* { dg-do run { xfail rs6000-*-aix* powerpc*-*-aix* } } */
4
/* { dg-require-gc-sections "" } */
5
 
6
/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections" } */
7
/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" { target static } } */
8
 
9
#include <stdlib.h>
10
 
11
static int unusedint=5;
12
 
13
static int usedint=1;
14
 
15
int unused(void) {
16
    return 1;
17
}
18
 
19
int foo(void) {
20
    return usedint;
21
}
22
 
23
int main(void) {
24
 
25
    if (foo())
26
        exit(0);
27
    else
28
        abort();
29
}

powered by: WebSVN 2.1.0

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