entered into RCS
[official-gcc.git] / gcc / config / vax / vaxv.h
blob999329b15eb879f0c301ba88492b52fdd28cd5df
1 /* Definitions of target machine for GNU compiler. Vax sysV version.
2 Copyright (C) 1988 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC 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 2, or (at your option)
9 any later version.
11 GNU CC 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.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 #include "vax.h"
22 /* Cope with these under SysV */
24 #define SCCS_DIRECTIVE
26 /* Output #ident as a .ident. */
28 #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
30 #undef DBX_DEBUGGING_INFO
31 #define SDB_DEBUGGING_INFO
33 #undef LIB_SPEC
35 /* The .file command should always begin the output. */
36 #undef ASM_FILE_START
37 #define ASM_FILE_START(FILE) \
38 output_file_directive ((FILE), main_input_filename)
40 #undef ASM_OUTPUT_ALIGN
41 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
42 fprintf(FILE, "\t.align %d\n", 1 << (LOG))
44 #undef ASM_OUTPUT_LOCAL
45 #define ASM_OUTPUT_LOCAL(FILE,NAME,SIZE,ROUNDED) \
46 ( data_section (), \
47 assemble_name ((FILE), (NAME)), \
48 fprintf ((FILE), ":\n\t.space %u\n", (ROUNDED)))
50 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \
51 { \
52 unsigned char *s; \
53 int i; \
54 for (i = 0, s = (PTR); i < (LEN); s++, i++) \
55 { \
56 if ((i % 8) == 0) \
57 fputs ("\n\t.byte\t", (FILE)); \
58 fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
59 } \
60 fputs ("\n", (FILE)); \
63 #undef ASM_OUTPUT_DOUBLE
64 #define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
65 fprintf (FILE, "\t.double 0d%.20e\n", (VALUE))