From 02490c738e2fa78912d202e20c16d07f677fcb69 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 10 Oct 1993 05:31:33 +0000 Subject: [PATCH] Move alloca handling before bytecode construction so that VAX C won't need two different values for LIBS. 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 | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/gcc/make-cc1.com b/gcc/make-cc1.com index 7d4350b0e63..edbec28581e 100644 --- a/gcc/make-cc1.com +++ b/gcc/make-cc1.com @@ -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-"