This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Configure patch for vfork et al on VMS


On Dec  7, 2001, "Douglas B. Rupp" <rupp@gnat.com> wrote:

> The command line length test as written returns a value of 97 for VMS.

Ouch!

> Before it hits the 1024 byte command element limit, it hits the
> largest POSIX compatible exit code of 255 that expr can return or
> rather a value that when doubled exceeds 255. The value is 129 which
> is then reduced by 1/4 giving 97.

Err...  I see why the exit status might be limited to 255, but not the
output of expr.  This is very unfortunate :-(

Does the same limit apply to `expr <number> \* 2'?  We don't really
need expr to count the length of the test variable, as long as we can
compute how long it is by doubling at every iteration.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]