OSDN Git Service

1998-09-30 Dave Love <d.love@dl.ac.uk>
authorfx <fx@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Sep 1998 11:51:37 +0000 (11:51 +0000)
committerfx <fx@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Sep 1998 11:51:37 +0000 (11:51 +0000)
* g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
avoid losing on systems which need -lsocket.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22669 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g77.f-torture/execute/u77-test.f

index 4cb8f3d..c60f806 100644 (file)
@@ -1,3 +1,8 @@
+1998-09-30  Dave Love  <d.love@dl.ac.uk>
+
+       * g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
+       avoid losing on systems which need -lsocket.
+
 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * g++.old-deja/g++.other/bitfld1.C: expected failure
index 8364cb5..07928fb 100644 (file)
@@ -9,7 +9,7 @@
       real tarray1(2), tarray2(2), r1, r2, sum
       intrinsic getpid, getuid, getgid, ierrno, gerror,
      +     fnum, isatty, getarg, access, unlink, fstat,
-     +     stat, lstat, getcwd, gmtime, hostnm, etime, chmod,
+     +     stat, lstat, getcwd, gmtime, etime, chmod,
      +     chdir, fgetc, fputc, system_clock, second, idate, secnds,
      +     time, ctime, fdate, ttynam, date_and_time
       external lenstr, ctrlc
@@ -159,13 +159,15 @@ c now try to get times to change enough to see in etime/dtime
         write (6,*) '***CHDIR to ".": ', i
         call abort
       end if
-      i=hostnm(wd)
-      if(i.ne.0) then
-        call perror ('*** hostnm')
-        call abort
-      else
-        write (6,*) 'Host name is ', wd(:lenstr(wd))
-      end if
+CCC   Don't do this, beacuse some targets need -lsocket, which we don't
+CCC   have a mechanism for supplying.
+CCC      i=hostnm(wd)
+CCC      if(i.ne.0) then
+CCC        call perror ('*** hostnm')
+CCC        call abort
+CCC      else
+CCC        write (6,*) 'Host name is ', wd(:lenstr(wd))
+CCC      end if
       i = access('/dev/null ', 'rw')
       if (i.ne.0) write (6,*) '***Read/write ACCESS to /dev/null: ', i
       write (6,*) 'Creating file "foo" for testing...'