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]
Other format: [Raw text]

[Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap


------- 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


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