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]

libjava: Fix comment in include/i386-signal.h


Make comment match code.  Applied to 3.0 branch as obvious.  I've left
the head alone, because it sounded like something else was happening
on the head.

The actual textual change is s/INIT_FPE/INIT_SEGV and &/ but then I
had to re-word-wrap the entire comment.

zw

	* include/i386-signal.h: Adjust comment to match previous
	change.

===================================================================
Index: include/i386-signal.h
--- include/i386-signal.h	2001/02/15 19:25:10	1.9.2.1
+++ include/i386-signal.h	2001/02/16 00:32:32
@@ -145,18 +145,18 @@ do								\
   }								\
 while (0)  
 
-/* You might wonder why we use syscall(SYS_sigaction) in INIT_FPE
- * instead of the standard sigaction().  This is necessary because of
- * the shenanigans above where we increment the PC saved in the
- * context and then return.  This trick will only work when we are
+/* You might wonder why we use syscall(SYS_sigaction) in INIT_SEGV and
+ * INIT_FPE instead of the standard sigaction().  This is necessary
+ * because of the shenanigans above where we increment the PC saved in
+ * the context and then return.  This trick will only work when we are
  * called _directly_ by the kernel, because linuxthreads wraps signal
- * handlers and its wrappers do not copy the sigcontext struct back
- * when returning from a signal handler.  If we return from our divide
- * handler to a linuxthreads wrapper, we will lose the PC adjustment
- * we made and return to the faulting instruction again.  Using
- * syscall(SYS_sigaction) causes our handler to be called directly by
- * the kernel, bypassing any wrappers.  This is a kludge, and a future
- * version of this handler will do something better.  */
+ * handlers and its wrappers do not copy the sigcontext struct back when
+ * returning from a signal handler.  If we return from our divide handler
+ * to a linuxthreads wrapper, we will lose the PC adjustment we made and
+ * return to the faulting instruction again.  Using syscall(SYS_sigaction)
+ * causes our handler to be called directly by the kernel, bypassing
+ * any wrappers.  This is a kludge, and a future version of this handler
+ * will do something better.  */
 
 #endif /* JAVA_SIGNAL_H */
   


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