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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [vax/] [vaxv.h] - Blame information for rev 154

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

Line No. Rev Author Line
1 38 julius
/* Definitions of target machine for GNU compiler.  VAX sysV version.
2
   Copyright (C) 1988, 1993, 1996, 2000, 2002, 2007 Free Software Foundation, Inc.
3
 
4
This file is part of GCC.
5
 
6
GCC is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 3, or (at your option)
9
any later version.
10
 
11
GCC is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING3.  If not see
18
<http://www.gnu.org/licenses/>.  */
19
 
20
#define TARGET_OS_CPP_BUILTINS()                \
21
  do                                            \
22
    {                                           \
23
      builtin_define_std ("unix");              \
24
      builtin_assert ("system=svr3");           \
25
                                                \
26
      builtin_define_std ("vax");               \
27
      if (TARGET_G_FLOAT)                       \
28
        builtin_define_std ("GFLOAT");          \
29
    }                                           \
30
  while (0)
31
 
32
/* Output #ident as a .ident.  */
33
 
34
#define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
35
 
36
#undef DBX_DEBUGGING_INFO
37
#define SDB_DEBUGGING_INFO 1
38
 
39
#undef LIB_SPEC
40
 
41
/* The .file command should always begin the output.  */
42
#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
43
 
44
#undef ASM_OUTPUT_ALIGN
45
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
46
  fprintf(FILE, "\t.align %d\n", 1 << (LOG))
47
 
48
#undef ASM_OUTPUT_LOCAL
49
#define ASM_OUTPUT_LOCAL(FILE,NAME,SIZE,ROUNDED)        \
50
( switch_to_section (data_section),                     \
51
  assemble_name ((FILE), (NAME)),                       \
52
  fprintf ((FILE), ":\n\t.space %u\n", (int)(ROUNDED)))
53
 
54
#define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                  \
55
do {                                                    \
56
  const unsigned char *s = (const unsigned char *)(PTR);\
57
  size_t i, limit = (LEN);                              \
58
  for (i = 0; i < limit; s++, i++)               \
59
    {                                                   \
60
      if ((i % 8) == 0)                                  \
61
        fputs ("\n\t.byte\t", (FILE));                  \
62
      fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
63
    }                                                   \
64
  fputs ("\n", (FILE));                                 \
65
} while (0)

powered by: WebSVN 2.1.0

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