aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-21 17:38:33 +0000
committerRichard Stallman <rms@gnu.org>1992-08-21 17:38:33 +0000
commit144499abeb7161ac622f294de3736ed5a3a1d99c (patch)
tree390d6b3809fb59997161f6bfe9a66e3f672a6b17 /gcc
parenteeb43d32dbbddfdbccc863f6194093b64eef0f51 (diff)
downloadgcc-144499abeb7161ac622f294de3736ed5a3a1d99c.zip
gcc-144499abeb7161ac622f294de3736ed5a3a1d99c.tar.gz
gcc-144499abeb7161ac622f294de3736ed5a3a1d99c.tar.bz2
(bcopy, bzero, bcmp): Remove #if VMS code--always use inline C loops.
From-SVN: r1927
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 4ac4cb6..084af35 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -8429,20 +8429,8 @@ bzero (b, length)
register char *b;
register unsigned length;
{
-#ifdef VMS
- short zero = 0;
- long max_str = 65535;
-
- while (length > max_str) {
- (void) LIB$MOVC5 (&zero, &zero, &zero, &max_str, b);
- length -= max_str;
- b += max_str;
- }
- (void) LIB$MOVC5 (&zero, &zero, &zero, &length, b);
-#else
while (length-- > 0)
*b++ = 0;
-#endif /* not VMS */
}
void
@@ -8451,20 +8439,8 @@ bcopy (b1, b2, length)
register char *b2;
register unsigned length;
{
-#ifdef VMS
- long max_str = 65535;
-
- while (length > max_str) {
- (void) LIB$MOVC3 (&max_str, b1, b2);
- length -= max_str;
- b1 += max_str;
- b2 += max_str;
- }
- (void) LIB$MOVC3 (&length, b1, b2);
-#else
while (length-- > 0)
*b2++ = *b1++;
-#endif /* not VMS */
}
int
@@ -8473,18 +8449,11 @@ bcmp (b1, b2, length) /* This could be a macro! */
register char *b2;
register unsigned length;
{
-#ifdef VMS
- struct dsc$descriptor_s src1 = {length, DSC$K_DTYPE_T, DSC$K_CLASS_S, b1};
- struct dsc$descriptor_s src2 = {length, DSC$K_DTYPE_T, DSC$K_CLASS_S, b2};
-
- return STR$COMPARE (&src1, &src2);
-#else
while (length-- > 0)
if (*b1++ != *b2++)
return 1;
return 0;
-#endif /* not VMS */
}
#endif /* not BSTRING */
#endif /* USG or VMS */