From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20922 invoked by alias); 19 Aug 2005 19:51:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20905 invoked by uid 48); 19 Aug 2005 19:51:25 -0000 Date: Fri, 19 Aug 2005 19:57:00 -0000 Message-ID: <20050819195125.20904.qmail@sourceware.org> From: "v dot haisman at sh dot cvut dot cz" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050819192439.23487.v.haisman@sh.cvut.cz> References: <20050819192439.23487.v.haisman@sh.cvut.cz> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg02280.txt.bz2 List-Id: ------- Additional Comments From v dot haisman at sh dot cvut dot cz 2005-08-19 19:51 ------- According to FreeBSD man page for sigaction (http://www.freebsd.org/cgi/man.cgi?query=sigaction&apropos=0&sektion=0&manpath=FreeBSD+5.4-RELEASE+and+Ports&format=html) the following looks like it should fix it. *** init.c.~1.52.~ Sun Jul 31 23:10:03 2005 --- init.c Fri Aug 19 21:49:07 2005 *************** *** 1598,1604 **** exceptions. Make sure that the handler isn't interrupted by another signal that might cause a scheduling event! */ ! act.sa_handler = __gnat_error_handler; act.sa_flags = SA_NODEFER | SA_RESTART; (void) sigemptyset (&act.sa_mask); --- 1598,1604 ---- exceptions. Make sure that the handler isn't interrupted by another signal that might cause a scheduling event! */ ! act.sa_handler = (void(*)(int))__gnat_error_handler; act.sa_flags = SA_NODEFER | SA_RESTART; (void) sigemptyset (&act.sa_mask); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23487