Paul Eggert wrote: > > subpipe.c:103: warning: variable `from_in_fd' might be clobbered by > > `longjmp' or `vfork' > > I take it that it's OK to put information into an array rather than a > variable that might be put into a register?
Yes, it looks like even gcc-4.0 cannot optimize these two arrays into registers. > The patch below does that. > I hope it fixes things for FreeBSD 4.0 i386 with gcc-2.95.3. It doesn't fix the warnings, because gcc-2.95.3 doesn't have enough dataflow capabilities to distinguish the (pid > 0) and (pid == 0) cases. But I'm convinced that it fixes the problem gcc warns about. Bruno
