OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [vxworks/] [initpri1.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
/* On VxWorks, in RTP mode, constructors and destructors go in named
2
   sections.  The section names must include the initialization
3
   priority, even for constructors and destructors with the default
4
   priority.  */
5
 
6
/* The selector below excludes VxWorks AE because AE does not support
7
   RTP mode.  */
8
/* { dg-do compile { target { *-*-vxworks* && { ! *-*-vxworksae* } } } } */
9
/* { dg-options "-mrtp" } */
10
/* { dg-final { scan-assembler "ctors\.00000" } } */
11
/* { dg-final { scan-assembler "dtors\.00000" } } */
12
 
13
volatile int i;
14
 
15
void c1 () __attribute__((constructor));
16
void c1 () { ++i; }
17
 
18
void d1 () __attribute__((destructor));
19
void d1 () { --i; }

powered by: WebSVN 2.1.0

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