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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [vms/] [vms-crt0.c] - Blame information for rev 282

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
/* VMS crt0 returning VMS style condition codes .
2
   Copyright (C) 2001, 2009 Free Software Foundation, Inc.
3
   Contributed by Douglas B. Rupp (rupp@gnat.com).
4
 
5
   This file is part of GCC.
6
 
7
   GCC is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3, or (at your option)
10
   any later version.
11
 
12
   GCC is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   Under Section 7 of GPL version 3, you are granted additional
18
   permissions described in the GCC Runtime Library Exception, version
19
   3.1, as published by the Free Software Foundation.
20
 
21
   You should have received a copy of the GNU General Public License and
22
   a copy of the GCC Runtime Library Exception along with this program;
23
   see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24
   <http://www.gnu.org/licenses/>.  */
25
 
26
#if !defined(__DECC)
27
You Lose! This file can only be compiled with DEC C.
28
#else
29
 
30
/* This file can only be compiled with DEC C, due to the call to
31
   lib$establish.  */
32
 
33
#include <stdlib.h>
34
#include <string.h>
35
#include <ssdef.h>
36
 
37
extern void decc$main ();
38
 
39
extern int main ();
40
 
41
static int
42
handler (sigargs, mechargs)
43
     void *sigargs;
44
     void *mechargs;
45
{
46
  return SS$_RESIGNAL;
47
}
48
 
49
int
50
__main (arg1, arg2, arg3, image_file_desc, arg5, arg6)
51
     void *arg1, *arg2, *arg3;
52
     void *image_file_desc;
53
     void *arg5, *arg6;
54
{
55
  int argc;
56
  char **argv;
57
  char **envp;
58
 
59
  lib$establish (handler);
60
 
61
  decc$main(arg1, arg2, arg3, image_file_desc, arg5, arg6,
62
            &argc, &argv, &envp);
63
 
64
  return main (argc, argv, envp);
65
}
66
#endif

powered by: WebSVN 2.1.0

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