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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/tags/gnu-src/gcc-4.5.1/gcc-4.5.1-or32-1.0rc1/gcc/testsuite/gcc.dg/vxworks
    from Rev 298 to Rev 338
    Reverse comparison

Rev 298 → Rev 338

/initpri1.c
0,0 → 1,19
/* On VxWorks, in RTP mode, constructors and destructors go in named
sections. The section names must include the initialization
priority, even for constructors and destructors with the default
priority. */
 
/* The selector below excludes VxWorks AE because AE does not support
RTP mode. */
/* { dg-do compile { target { *-*-vxworks* && { ! *-*-vxworksae* } } } } */
/* { dg-options "-mrtp" } */
/* { dg-final { scan-assembler "ctors\.00000" } } */
/* { dg-final { scan-assembler "dtors\.00000" } } */
 
volatile int i;
 
void c1 () __attribute__((constructor));
void c1 () { ++i; }
 
void d1 () __attribute__((destructor));
void d1 () { --i; }
initpri1.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: initpri2.c =================================================================== --- initpri2.c (nonexistent) +++ initpri2.c (revision 338) @@ -0,0 +1,15 @@ +/* On VxWorks, in kernel mode, there is no support for .ctors/.dtors. + Instead, initialization is handled by munch. */ + +/* { dg-do compile { target vxworks_kernel } } */ +/* { dg-final { scan-assembler-not "\.ctors" } } */ +/* { dg-final { scan-assembler-not "\.dtors" } } */ + +volatile int i; + +void c1 () __attribute__((constructor)); +void c1 () { ++i; } + +void d1 () __attribute__((destructor)); +void d1 () { --i; } +
initpri2.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: vxworks.exp =================================================================== --- vxworks.exp (nonexistent) +++ vxworks.exp (revision 338) @@ -0,0 +1,36 @@ +# Copyright (C) 1997, 2007 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# . + +# GCC testsuite that uses the `dg.exp' driver. + +# Load support procs. +load_lib gcc-dg.exp + +# If a testcase doesn't have special options, use these. +global DEFAULT_CFLAGS +if ![info exists DEFAULT_CFLAGS] then { + set DEFAULT_CFLAGS " -ansi -pedantic-errors" +} + +# Initialize `dg'. +dg-init + +# Main loop. +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cSi\]]] \ + "" $DEFAULT_CFLAGS + +# All done. +dg-finish

powered by: WebSVN 2.1.0

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