[Bug fortran/39570] cabs and cabsf are named differently on NetBSD 5

2009-03-28 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2009-03-28 09:54 --- Another fix is to #undef TARGET_C99_FUNCTIONS as obviously netbsd is another OS without a clue ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39570

[Bug fortran/39570] cabs and cabsf are named differently on NetBSD 5

2009-03-27 Thread aran at 100acres dot us
--- Comment #4 from aran at 100acres dot us 2009-03-28 01:34 --- Subject: Re: cabs and cabsf are named differently on NetBSD 5 What is beyond me is how darwin_patch_builtings gets called. It looks like it is called from rs6000.c in rs6000_init_builtins via the macro SUBTARGET_INIT_B

[Bug fortran/39570] cabs and cabsf are named differently on NetBSD 5

2009-03-27 Thread steven at gcc dot gnu dot org
--- Comment #3 from steven at gcc dot gnu dot org 2009-03-28 01:02 --- Completely beyond you, how? What gcc does for darwin (and this is a hack, mind you), is basically replace the standard C99 builtins with darwin-specific ones. You have to do the same for NetBSD. See the following f

[Bug fortran/39570] cabs and cabsf are named differently on NetBSD 5

2009-03-27 Thread aran at 100acres dot us
--- Comment #2 from aran at 100acres dot us 2009-03-28 00:23 --- I really tried looking at Darwin's fix to the built-in problem, but that is completely beyond me. Any suggestions would be very nice. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39570

[Bug fortran/39570] cabs and cabsf are named differently on NetBSD 5

2009-03-27 Thread aran at 100acres dot us
--- Comment #1 from aran at 100acres dot us 2009-03-28 00:22 --- Created an attachment (id=17552) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17552&action=view) Grungy little patch. This is a dirty hack for NetBSD 5.x only. It is not intended to be applied to the main source.