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]

Re: [PATCH]: Revised patch for fixinc on BeOS





On Tue, 28 Nov 2000, Bruce Korb wrote:

> Daniel Berlin wrote:
> > 
> > This adds the BeOS specific makefile, as requested  by bruce.
> 
> Thanks :-)
> 
> Two nits below, otherwise looks ready for prime time to me.
> 
> > diff -c -3 -p -w -B -b -r1.42 fixincl.c
> > *** fixincl.c   2000/11/17 04:16:55     1.42
> > --- fixincl.c   2000/11/27 21:54:46
> 
> > --- 1421,1434 ----
> >       }
> > 
> >     read_fd = open( pz_temp_file, O_RDONLY );
> > +   if (read_fd > 0)
> > +   {
> >           test_for_changes( read_fd );
> >           /* Unlinking a file while it is still open is a Bad Idea on
> >              DOS/Windows.  */
> >           close( read_fd );
> >           unlink( pz_temp_file );
> > !   }
> >   # endif
> >     UNLOAD_DATA();
> >   }
> 
> I would still like to see an abort here.  I'll fix it later
> if you do not.
Last I tried, if we abort here, then we abort whenever we don't make a 
fix, on both BeOS and DOS.
I haven't tried since I got multiple fixes working, I didn't want to 
tempt fate that day. It's quitet possible it was the same problem i fixed.
I'll add it and see if it works. If it doesn't, iI won't get around to 
debugging it for another week or so.

Just became busy again.
 > 
> nc.sh
> > ===================================================================
> > RCS file: /cvs/gcc/egcs/gcc/fixinc/mkfixinc.sh,v
> > retrieving revision 1.28
> > diff -c -3 -p -w -B -b -r1.28 mkfixinc.sh
> > *** mkfixinc.sh 2000/11/17 23:48:15     1.28
> > --- mkfixinc.sh 2000/11/27 21:54:48
> > *************** case $machine in
> > *** 35,40 ****
> > --- 35,43 ----
> >         i?86-*-openbsd*)
> >                 fixincludes=fixinc.wrap
> >                 ;;
> > +       *-*-beos*)
> > +               MAKE="${MAKE} -f ${srcdir}/Makefile.BEOS"
> > +               ;;
> > 
> >         alpha*-*-winnt* | \
> >         i?86-*-winnt3*)
> > *************** case $machine in
> > *** 55,61 ****
> >         hppa1.1-*-bsd* | \
> >         hppa1.0-*-bsd* | \
> >         hppa*-*-lites* | \
> > !       *-*-beos* | \
> >         *-*-gnu* | \
> >         i?86-moss-msdos* | i?86-*-moss* | \
> >         i?86-*-osf1* | \
> > --- 58,64 ----
> >         hppa1.1-*-bsd* | \
> >         hppa1.0-*-bsd* | \
> >         hppa*-*-lites* | \
> > !       *-*-linux* | \
> >         *-*-gnu* | \
> >         i?86-moss-msdos* | i?86-*-moss* | \
> >         i?86-*-osf1* | \
> 
> Please do not add back ``linux'' here  :-)
Yeah, that was accidental, it got merged back by cvs sincelinux was 
removed after I started making these changes, and the beos line was right 
above it.


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