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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [alpha/] [vms-crt0.c] - Blame information for rev 841

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* VMS crt0 returning VMS style condition codes .
2
   Copyright (C) 2001 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 2, or (at your option)
10
any later version.
11
 
12
In addition to the permissions in the GNU General Public License, the
13
Free Software Foundation gives you unlimited permission to link the
14
compiled version of this file into combinations with other programs,
15
and to distribute those combinations without any restriction coming
16
from the use of this file.  (The General Public License restrictions
17
do apply in other respects; for example, they cover modification of
18
the file, and distribution when not linked into a combine
19
executable.)
20
 
21
GCC is distributed in the hope that it will be useful,
22
but WITHOUT ANY WARRANTY; without even the implied warranty of
23
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
GNU General Public License for more details.
25
 
26
You should have received a copy of the GNU General Public License
27
along with GCC; see the file COPYING.  If not, write to
28
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
29
Boston, MA 02110-1301, USA.  */
30
 
31
#if !defined(__DECC)
32
You Lose! This file can only be compiled with DEC C.
33
#else
34
 
35
/* This file can only be compiled with DEC C, due to the call to
36
   lib$establish.  */
37
 
38
#include <stdlib.h>
39
#include <string.h>
40
#include <ssdef.h>
41
 
42
extern void decc$main ();
43
 
44
extern int main ();
45
 
46
static int
47
handler (sigargs, mechargs)
48
     void *sigargs;
49
     void *mechargs;
50
{
51
  return SS$_RESIGNAL;
52
}
53
 
54
int
55
__main (arg1, arg2, arg3, image_file_desc, arg5, arg6)
56
     void *arg1, *arg2, *arg3;
57
     void *image_file_desc;
58
     void *arg5, *arg6;
59
{
60
  int argc;
61
  char **argv;
62
  char **envp;
63
 
64
  lib$establish (handler);
65
 
66
  decc$main(arg1, arg2, arg3, image_file_desc, arg5, arg6,
67
            &argc, &argv, &envp);
68
 
69
  return main (argc, argv, envp);
70
}
71
#endif

powered by: WebSVN 2.1.0

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