This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

How to apply Patch


Hi
Im new to gcc, can any one tell me how to apply patch..
below is the patch , what i now is firat i have to make a file with the
same contents and just say
patch < patchfile.

looking forward to hear from u
Thanks



Index: gcc/cp/typeck2.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/cp/typeck2.c,v
retrieving revision 1.159
diff -p -r1.159 typeck2.c
*** typeck2.c  2000/04/04 01:21:00 1.159
--- typeck2.c  2000/07/06 20:31:02
*************** digest_init (type, init, tail)
*** 610,616 ****

       TREE_TYPE (string) = type;
       if (TYPE_DOMAIN (type) != 0
!          && TREE_CONSTANT (TYPE_SIZE (type)))
         {
           register int size
          = TREE_INT_CST_LOW (TYPE_SIZE (type));
--- 610,622 ----

       TREE_TYPE (string) = type;
       if (TYPE_DOMAIN (type) != 0
!          && TREE_CONSTANT (TYPE_SIZE (type))
!          /* It is possible for an unsized array to have a domain,
!          but its maximum size will be set to 0.  In such cases
!          we do not need to perform this check.  */
!          && TREE_CONSTANT (TYPE_MAX_VALUE (TYPE_DOMAIN (type)))
!          && (TREE_INT_CST_LOW (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) != 0
!           || TREE_INT_CST_HIGH (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) !=
0))
         {
           register int size
          = TREE_INT_CST_LOW (TYPE_SIZE (type));




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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