Allow './Configure -Uoptimize'
authorAndy Dougherty <doughera@fractal.phys.lafayette.edu>
Thu, 6 Mar 1997 16:15:47 +0000 (11:15 -0500)
committerChip Salzenberg <chip@atlantic.net>
Thu, 6 Mar 1997 16:01:12 +0000 (04:01 +1200)
Subject: Re: miniperl core dumps during build of 5.003_91 on Unisys SVR4

On Thu, 6 Mar 1997, Alan Burlison wrote:

> In-Reply-To: <memo.119650@cix.compulink.co.uk>
> > miniperl dumps core during the build on Unisys SVR4 version 1.4.

> Apparently there is a bug in the C compiler optimiser in this version
> of the OS.  I'll attribute this problem to that, & just turn off

Our record in this regard is mixed, at best, I think.  (Some
problems that appeared to be optimizer problems have been made to go
away by fixing possibly-related bugs in the perl source.)  Still, if it
works . . . .

> debugging. I am using Configure -des -Doptimize=' ' to do that.  Is
> this the best way?  -Uoptimize causes Configure to die.

Oops.  That's not nice.  The way I do this is

sh Configure -Doptimize=none

though your way is quite fine too.

In general, there's no particular reason to expect optimize='undef' to
do what you want, but it's not hard to handle it gracefully either, so
we could apply this low-urgency but low-risk patch:

p5p-msgid: Pine.SOL.3.95q.970306110532.11070A-100000@fractal.lafayette.edu
private-msgid: Pine.SOL.3.95q.970306110532.11070A-100000@fractal.lafayette.

Configure

index 86733d3..5392c79 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -3557,7 +3557,7 @@ $rm -f testcpp.c testcpp.out
 
 : determine optimize, if desired, or use for debug flag also
 case "$optimize" in
-' ') dflt='none';;
+' '|$undef) dflt='none';;
 '') dflt='-O';;
 *) dflt="$optimize";;
 esac