[Gc] alpha_mach_dep.S comment problem

Christian Thalinger twisti at complang.tuwien.ac.at
Mon Jul 11 15:01:10 PDT 2005


Hi!

We are using boehm-gc in CACAO and i've got some problems compiling it
on a debian box. The preprocessor does not like the # comments. So, why
not using C comments, when we already use the preprocessor? Attached is
a patch against 6.5.

TWISTI

Index: alpha_mach_dep.S
===================================================================
RCS file: /ahome/cacao/cacaocvs/cacao/src/boehm-gc/alpha_mach_dep.S,v
retrieving revision 1.2
diff -u -3 -p -r1.2 alpha_mach_dep.S
--- alpha_mach_dep.S    10 Jul 2004 15:34:06 -0000      1.2
+++ alpha_mach_dep.S    11 Jul 2005 21:57:32 -0000
@@ -1,4 +1,4 @@
- # $Id: alpha_mach_dep.S,v 1.2 2004/07/10 15:34:06 stefan Exp $
+/* $Id: alpha_mach_dep.S,v 1.2 2004/07/10 15:34:06 stefan Exp $
*/
        .arch ev6
 
         .text
@@ -12,13 +12,13 @@ GC_push_regs:
         .mask   0x04000000, 0
         .frame  $sp, 16, $26, 0
 
- # $0          integer result
- # $1-$8       temp regs - not preserved cross calls
- # $9-$15      call saved regs
- # $16-$21     argument regs - not preserved cross calls
- # $22-$28     temp regs - not preserved cross calls
- # $29         global pointer - not preserved cross calls
- # $30         stack pointer
+/* $0          integer result
*/
+/* $1-$8       temp regs - not preserved cross calls
*/
+/* $9-$15      call saved regs
*/
+/* $16-$21     argument regs - not preserved cross calls
*/
+/* $22-$28     temp regs - not preserved cross calls
*/
+/* $29         global pointer - not preserved cross calls
*/
+/* $30         stack pointer
*/
 
 # define call_push(x)                  \
        mov   x, $16;                   \
@@ -33,12 +33,12 @@ GC_push_regs:
         call_push($14)
         call_push($15)
 
- # $f0-$f1     floating point results
- # $f2-$f9     call saved regs
- # $f10-$f30   temp regs - not preserved cross calls
+/* $f0-$f1     floating point results
*/
+/* $f2-$f9     call saved regs
*/
+/* $f10-$f30   temp regs - not preserved cross calls
*/
 
-       # Use the most efficient transfer method for this hardware.
-       # Bit 1 detects the FIX extension, which includes ftoit.
+       /* Use the most efficient transfer method for this hardware. */
+       /* Bit 1 detects the FIX extension, which includes ftoit. */
        amask   2, $0
        bne     $0, $use_stack
 




More information about the Gc mailing list