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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [special/] [gcsec-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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 -static" } */
7
/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" { target native } } */
8
/* { dg-options "-ffunction-sections -fdata-sections -Wl,--gc-sections" { target *-*-netware* } } */
9
 
10
#include <stdlib.h>
11
 
12
static int unusedint=5;
13
 
14
static int usedint=1;
15
 
16
int unused(void) {
17
    return 1;
18
}
19
 
20
int foo(void) {
21
    return usedint;
22
}
23
 
24
int main(void) {
25
 
26
    if (foo())
27
        exit(0);
28
    else
29
        abort();
30
}

powered by: WebSVN 2.1.0

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