Move alloca handling before bytecode construction so that VAX C won't need two differ...
authorRichard Stallman <rms@gnu.org>
Sun, 10 Oct 1993 05:31:33 +0000 (05:31 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 10 Oct 1993 05:31:33 +0000 (05:31 +0000)
Move alloca handling before bytecode construction
so that VAX C won't need two different values for LIBS.  Eliminate a
comment about make-like functionality that referred to a capability
which has not been implemented.

From-SVN: r5706

gcc/make-cc1.com

index 7d4350b0e63d7be769b9f24f66665b0478c79bff..edbec28581e6d7fd106678cd2ce41aed6b4d5a7d 100644 (file)
@@ -150,6 +150,18 @@ $ if DO_DEBUG.eq.1 then LDFLAGS :='LDFLAGS'/debug
 $!
 $if DO_LINK.eq.1 then goto compile_cc1
 $!
+$! Build alloca if necessary (in 'LIBS for use with VAXC)
+$!
+$ if f$locate("alloca.obj",f$edit(LIBS,"lowercase")).ge.f$length(LIBS) then -
+       goto skip_alloca
+$ if f$search("alloca.obj").nes."" then -  !does .obj exist? is it up to date?
+    if f$cvtime(f$file_attributes("alloca.obj","RDT")).gts.-
+       f$cvtime(f$file_attributes("alloca.c","RDT")) then  goto skip_alloca
+$set verify
+$ 'CC 'CFLAGS /define="STACK_DIRECTION=(-1)" alloca.c
+$!'f$verify(0)
+$skip_alloca:
+$!
 $if DO_BC.eq.1 
 $      THEN 
 $      call compile bi_all.opt ""
@@ -170,18 +182,6 @@ $!
 $if DO_INDEPENDENT.eq.1 
 $      THEN 
 $!
-$! Build alloca if necessary (in 'LIBS for use with VAXC)
-$!
-$ if f$locate("alloca.obj",f$edit(LIBS,"lowercase")).ge.f$length(LIBS) then -
-       goto skip_alloca
-$ if f$search("alloca.obj").nes."" then -  !does .obj exist? is it up to date?
-    if f$cvtime(f$file_attributes("alloca.obj","RDT")).gts.-
-       f$cvtime(f$file_attributes("alloca.c","RDT")) then  goto skip_alloca
-$set verify
-$ 'CC 'CFLAGS /define="STACK_DIRECTION=(-1)" alloca.c
-$!'f$verify(0)
-$skip_alloca:
-$!
 $! First build a couple of header files from the machine description
 $! These are used by many of the source modules, so we build them now.
 $!
@@ -359,10 +359,6 @@ $! name of the insn-* file to generate.  The second argument contains a
 $! list of any other object modules which must be linked to the gen*.c
 $! program.
 $!
-$! If a previous version of insn-* exists, it is compared to the new one,
-$! and if it has not changed, then the new one is discarded.  This is
-$! done so that make like programs do not get thrown off.
-$!
 $generate:
 $subroutine
 $if f$extract(0,5,p1).nes."INSN-"
@@ -385,13 +381,9 @@ $endsubroutine
 $!
 $! This subroutine generates the bc-* files.  The first argument is the
 $! name of the bc-* file to generate.  The second argument contains a 
-$! list of any other object modules which must be linked to the gen*.c
+$! list of any other object modules which must be linked to the bi*.c
 $! program.
 $!
-$! If a previous version of bc-* exists, it is compared to the new one,
-$! and if it has not changed, then the new one is discarded.  This is
-$! done so that make like programs do not get thrown off.
-$!
 $bc_generate:
 $subroutine
 $if f$extract(0,3,p1).nes."BC-"