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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vxworks/] [initpri2.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* On VxWorks, in kernel mode, there is no support for .ctors/.dtors.
/* On VxWorks, in kernel mode, there is no support for .ctors/.dtors.
   Instead, initialization is handled by munch.  */
   Instead, initialization is handled by munch.  */
 
 
/* { dg-do compile { target vxworks_kernel } } */
/* { dg-do compile { target vxworks_kernel } } */
/* { dg-final { scan-assembler-not "\.ctors" } } */
/* { dg-final { scan-assembler-not "\.ctors" } } */
/* { dg-final { scan-assembler-not "\.dtors" } } */
/* { dg-final { scan-assembler-not "\.dtors" } } */
 
 
volatile int i;
volatile int i;
 
 
void c1 () __attribute__((constructor));
void c1 () __attribute__((constructor));
void c1 () { ++i; }
void c1 () { ++i; }
 
 
void d1 () __attribute__((destructor));
void d1 () __attribute__((destructor));
void d1 () { --i; }
void d1 () { --i; }
 
 
 
 

powered by: WebSVN 2.1.0

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