This is the mail archive of the gcc-bugs@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]

minor bug in egcs-1.0.2-980309-prerelease



Linux on Alpha (RedHat 5.0) defines SIGINFO, and struct sigaction has
a sa_mask field that is a structure.  So cross compilers targeted for
MIPS configurations don't build.

This patch makes it build.  More properly, I think the SIGINFO
handling should be moved to toplev.c, or removed entirely, but I'll
let someone else make that call.

(It's not shown here, but this code is establishing a signal handler
for SIGINFO, if SIGINFO is defined.)

Ken

--- mips.c~	Fri Mar 13 18:10:05 1998
+++ mips.c	Fri Mar 13 22:42:12 1998
@@ -3712,4 +3713,9 @@
       struct sigaction action;
+
+      /* On OSF/1, action.sa_mask is an int; on Alpha Linux, it's a
+	 struct.  Clear it either way.  Can we rely on sigemptyset
+	 existing?  */
+      memset (&action, 0, sizeof (action));
+
       action.sa_handler = siginfo;
-      action.sa_mask = 0;
       action.sa_flags = SA_RESTART;


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