BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.bin / gcc / cc1 / config / tm-vaxv.h
CommitLineData
5130427e
C
1/* Definitions of target machine for GNU compiler. Vax sysV version.
2 Copyright (C) 1988 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 1, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#include "tm-vax.h"
21
22/* Cope with these under SysV */
23
24#define SCCS_DIRECTIVE
25
26/* Output #ident as a .ident. */
27
28#define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
29
30#undef DBX_DEBUGGING_INFO
31#define SDB_DEBUGGING_INFO
32
33/* The .file command should always begin the output. */
34#undef ASM_FILE_START
35#define ASM_FILE_START(FILE) sdbout_filename ((FILE), main_input_filename)
36
37#undef ASM_OUTPUT_ALIGN
38#define ASM_OUTPUT_ALIGN(FILE,LOG) \
39 fprintf(FILE, "\t.align %d\n", 1 << (LOG))
40
41#undef ASM_OUTPUT_LOCAL
42#define ASM_OUTPUT_LOCAL(FILE,NAME,SIZE,ROUNDED) \
43( fputs (".data\n", (FILE)), \
44 assemble_name ((FILE), (NAME)), \
45 fprintf ((FILE), ":\n\t.space %u\n", (ROUNDED)))
46
47#define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \
48{ \
49 char *s; \
50 int i; \
51 for (i = 0, s = (PTR); i < (LEN); s++, i++) \
52 { \
53 if ((i % 8) == 0) \
54 fputs ("\n\t.byte\t", (FILE)); \
55 fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
56 } \
57 fputs ("\n", (FILE)); \
58}
59
60#undef ASM_OUTPUT_DOUBLE
61#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
62 fprintf (FILE, "\t.double 0d%.20e\n", (VALUE))