pkgsrc/lang/gcc5/patches/patch-gcc_config_netbsd-protos.h
ryoon 520d354235 Import gcc5-5.1.0 as lang/gcc5.
The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
Fortran, Java, and Go, as well as libraries for these languages (libstdc++,
libgcj,...). This package provides the snapshot release of version 5.

On NetBSD a working cabsl function must be present in libm to build gfortran.
This has been added to -current on 2014/10/10 and to NetBSD7 on 2014/10/13.
2015-07-16 12:03:36 +00:00

34 lines
1.1 KiB
C

$NetBSD: patch-gcc_config_netbsd-protos.h,v 1.1 2015/07/16 12:03:36 ryoon Exp $
--- /dev/null 2014-12-15 07:13:57.000000000 +0000
+++ gcc/config/netbsd-protos.h
@@ -0,0 +1,29 @@
+/* Prototypes.
+ Copyright (C) 2001-2014 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+#ifndef _NETBSD_PROTOS_H_
+#define _NETBSD_PROTOS_H_
+
+double __c99_cabs (double complex);
+float __c99_cabsf (float complex);
+long double __c99_cabsl (long double complex);
+
+void netbsd_patch_builtins (void);
+
+#endif /* _NETBSD_PROTOS_H_ */