Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d2f05a0a
Commit
d2f05a0a
authored
27 years ago
by
Klaus Kaempf
Committed by
Jeff Law
27 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cccp.c (main): Predefine __VMS_VER on VMS.
From-SVN: r17578
parent
f8dac6eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
+63
-0
gcc/ChangeLog
+4
-0
gcc/cccp.c
+59
-0
No files found.
gcc/ChangeLog
View file @
d2f05a0a
Sun Feb 1 13:01:15 1998 Klaus Kaempf <kkaempf@progis.de>
* cccp.c (main): Predefine __VMS_VER on VMS.
Sun Feb 1 12:39:53 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* expr.c (get_inner_reference): Use sbitsizetype for type sizes.
...
...
This diff is collapsed.
Click to expand it.
gcc/cccp.c
View file @
d2f05a0a
...
...
@@ -130,6 +130,8 @@ extern char *getenv ();
/* VMS-specific definitions */
#ifdef VMS
#include <descrip.h>
#include <ssdef.h>
#include <syidef.h>
#define open(fname,mode,prot) VMS_open (fname,mode,prot)
#define fopen(fname,mode) VMS_fopen (fname,mode)
#define freopen(fname,mode,ofile) VMS_freopen (fname,mode,ofile)
...
...
@@ -1732,6 +1734,63 @@ main (argc, argv)
if
(
!
inhibit_predefs
)
{
char
*
p
=
(
char
*
)
alloca
(
strlen
(
predefs
)
+
1
);
#ifdef VMS
struct
dsc
$
descriptor_s
lcl_name
;
struct
item_list
{
unsigned
short
length
;
/* input length */
unsigned
short
code
;
/* item code */
unsigned
long
dptr
;
/* data ptr */
unsigned
long
lptr
;
/* output length ptr */
};
unsigned
long
syi_length
;
char
syi_data
[
16
];
struct
item_list
items
[]
=
{
{
16
,
SYI
$
_VERSION
,
0
,
0
},
{
0
,
0
,
0
,
0
}
};
items
[
0
].
dptr
=
(
unsigned
long
)
syi_data
;
items
[
0
].
lptr
=
(
unsigned
long
)(
&
syi_length
);
if
(
SYS
$
GETSYIW
(
0
,
0
,
0
,
items
,
NULL
,
NULL
,
NULL
,
NULL
)
==
SS
$
_NORMAL
)
{
unsigned
long
vms_version_value
;
char
*
vers
;
vers
=
syi_data
;
vms_version_value
=
0
;
if
(
*
vers
==
'V'
)
vers
++
;
if
(
isdigit
(
*
vers
))
{
vms_version_value
=
(
*
vers
-
'0'
)
*
10000000
;
}
vers
++
;
if
(
*
vers
==
'.'
)
{
vers
++
;
if
(
isdigit
(
*
vers
))
{
vms_version_value
+=
(
*
vers
-
'0'
)
*
100000
;
}
}
if
(
vms_version_value
>
0
)
{
char
versbuf
[
32
];
sprintf
(
versbuf
,
"__VMS_VER=%08ld"
,
vms_version_value
);
if
(
debug_output
)
output_line_directive
(
fp
,
&
outbuf
,
0
,
same_file
);
make_definition
(
versbuf
,
&
outbuf
);
}
}
#endif
strcpy
(
p
,
predefs
);
while
(
*
p
)
{
char
*
q
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment