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: EGCS rs6000 and chill



  In message <9809131458.AA30612@marc.watson.ibm.com>you write:
  > >>>>> Jeffrey A Law writes:
  > 
  > Jeff> We should make up a number.  We should choose one pseudo-randomly,
  > Jeff> selecting the next number or a number like 100 would be bad since
  > Jeff> doing so is likely to conflict with IBM or other folks that might
  > Jeff> be providing compilers on the rs6000/ppc platform.
  > 
  > 	Given that IBM's sequence is in the low two-digit numbers, that
  > entire range should be relatively safe from bit stealing.  I propose using
  > the value "44" which is a numerical value for the word "chill" (a=1, b=2,
  > c=3, ...).
Sounds good.  Here's the patch I checked in to deal with this issue:

        * rs6000.c (output_epilogue): Handle Chill.


Index: rs6000.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/./gcc/config/rs6000/rs6000.c,v
retrieving revision 1.39
diff -c -3 -p -r1.39 rs6000.c
*** rs6000.c	1998/09/15 15:49:37	1.39
--- rs6000.c	1998/09/16 07:00:58
*************** output_epilog (file, size)
*** 4254,4260 ****
  	 official way to get this info, so we use language_string.  C
  	 is 0.  C++ is 9.  No number defined for Obj-C, so use the
  	 value for C for now.  There is no official value for Java,
!          although IBM appears to be using 13.  */
        if (! strcmp (language_string, "GNU C")
  	  || ! strcmp (language_string, "GNU Obj-C"))
  	i = 0;
--- 4254,4261 ----
  	 official way to get this info, so we use language_string.  C
  	 is 0.  C++ is 9.  No number defined for Obj-C, so use the
  	 value for C for now.  There is no official value for Java,
!          although IBM appears to be using 13.  There is no official value
! 	 for Chill, so we've choosen 44 pseudo-randomly.  */
        if (! strcmp (language_string, "GNU C")
  	  || ! strcmp (language_string, "GNU Obj-C"))
  	i = 0;
*************** output_epilog (file, size)
*** 4268,4273 ****
--- 4269,4276 ----
  	i = 9;
        else if (! strcmp (language_string, "GNU Java"))
  	i = 13;
+       else if (! strcmp (language_string, "GNU CHILL"))
+ 	i = 44;
        else
  	abort ();
        fprintf (file, "%d,", i);


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