* [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap
2005-08-19 19:29 [Bug bootstrap/23487] New: Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap v dot haisman at sh dot cvut dot cz
@ 2005-08-19 19:51 ` pinskia at gcc dot gnu dot org
2005-08-19 19:57 ` v dot haisman at sh dot cvut dot cz
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-19 19:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-19 19:28 -------
This is a bug in the freebsd specific section in init.c.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |ada
Keywords| |build
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap
2005-08-19 19:29 [Bug bootstrap/23487] New: Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap v dot haisman at sh dot cvut dot cz
2005-08-19 19:51 ` [Bug ada/23487] " pinskia at gcc dot gnu dot org
@ 2005-08-19 19:57 ` v dot haisman at sh dot cvut dot cz
2005-08-19 20:11 ` v dot haisman at sh dot cvut dot cz
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-08-19 19:57 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap
2005-08-19 19:29 [Bug bootstrap/23487] New: Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap v dot haisman at sh dot cvut dot cz
2005-08-19 19:51 ` [Bug ada/23487] " pinskia at gcc dot gnu dot org
2005-08-19 19:57 ` v dot haisman at sh dot cvut dot cz
@ 2005-08-19 20:11 ` v dot haisman at sh dot cvut dot cz
2005-08-19 20:12 ` v dot haisman at sh dot cvut dot cz
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-08-19 20:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From v dot haisman at sh dot cvut dot cz 2005-08-19 19:57 -------
More of the same:
*** link.c.~1.16.~ Fri Jul 8 12:45:47 2005
--- link.c Fri Aug 19 21:55:40 2005
***************
*** 154,166 ****
const char *__gnat_object_library_extension = ".a";
#elif defined (__FreeBSD__)
! char *__gnat_object_file_option = "";
! char *__gnat_run_path_option = "-Wl,-rpath,";
char __gnat_shared_libgnat_default = STATIC;
int __gnat_link_max = 8192;
unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 1;
! char *__gnat_object_library_extension = ".a";
#elif defined (linux)
const char *__gnat_object_file_option = "";
--- 154,166 ----
const char *__gnat_object_library_extension = ".a";
#elif defined (__FreeBSD__)
! const char *__gnat_object_file_option = "";
! const char *__gnat_run_path_option = "-Wl,-rpath,";
char __gnat_shared_libgnat_default = STATIC;
int __gnat_link_max = 8192;
unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 1;
! const char *__gnat_object_library_extension = ".a";
#elif defined (linux)
const char *__gnat_object_file_option = "";
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap
2005-08-19 19:29 [Bug bootstrap/23487] New: Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap v dot haisman at sh dot cvut dot cz
` (2 preceding siblings ...)
2005-08-19 20:11 ` v dot haisman at sh dot cvut dot cz
@ 2005-08-19 20:12 ` v dot haisman at sh dot cvut dot cz
2005-08-19 20:18 ` v dot haisman at sh dot cvut dot cz
2005-09-01 10:42 ` charlet at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-08-19 20:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From v dot haisman at sh dot cvut dot cz 2005-08-19 20:11 -------
2005-08-19 Vaclav Haisma <v.haisman@sh.cvut.cz>
* init.c (FreeBSD's __gnat_install_handler): Cast
__gnat_error_handler to proper type.
* link.c (FreeBSD's __gnat_object_file_option,
__gnat_run_path_option, __gnat_object_library_extension): Make
const.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap
2005-08-19 19:29 [Bug bootstrap/23487] New: Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap v dot haisman at sh dot cvut dot cz
` (3 preceding siblings ...)
2005-08-19 20:12 ` v dot haisman at sh dot cvut dot cz
@ 2005-08-19 20:18 ` v dot haisman at sh dot cvut dot cz
2005-09-01 10:42 ` charlet at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-08-19 20:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From v dot haisman at sh dot cvut dot cz 2005-08-19 20:12 -------
Errr, my surname is missing n at the end...
2005-08-19 Vaclav Haisman <v.haisman@sh.cvut.cz>
* init.c (FreeBSD's __gnat_install_handler): Cast
__gnat_error_handler to proper type.
* link.c (FreeBSD's __gnat_object_file_option,
__gnat_run_path_option, __gnat_object_library_extension): Make
const.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/23487] Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap
2005-08-19 19:29 [Bug bootstrap/23487] New: Assignment from incompatible pointer warning in __gnat_install_handler kills bootstrap v dot haisman at sh dot cvut dot cz
` (4 preceding siblings ...)
2005-08-19 20:18 ` v dot haisman at sh dot cvut dot cz
@ 2005-09-01 10:42 ` charlet at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: charlet at gcc dot gnu dot org @ 2005-09-01 10:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From charlet at gcc dot gnu dot org 2005-09-01 10:42 -------
Patch looks reasonable to me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23487
^ permalink raw reply [flat|nested] 7+ messages in thread