1 /* Darwin support needed only by Fortran frontends. 2 Copyright (C) 2008 Free Software Foundation, Inc. 3 Contributed by Daniel Franke. 4 5 This file is part of GCC. 6 7 GCC is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3, or (at your option) 10 any later version. 11 12 GCC is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with GCC; see the file COPYING3. If not see 19 <http://www.gnu.org/licenses/>. */ 20 21 22 /* Provide stubs for the hooks defined by darwin.h 23 TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES 24 25 As both, gcc and gfortran link in incpath.o, we can not 26 conditionally undefine said hooks if fortran is build. 27 However, we can define do-nothing stubs of said hooks as 28 we are not interested in objc include files in Fortran. 29 30 The hooks original purpose (see also darwin-c.c): 31 * darwin_register_objc_includes 32 Register the GNU objective-C runtime include path if STDINC. 33 34 * darwin_register_frameworks 35 Register all the system framework paths if STDINC is true and setup 36 the missing_header callback for subframework searching if any 37 frameworks had been registered. */ 38 39 40 #include "ansidecl.h" 41 42 /* Prototypes for functions below to avoid a lengthy list of includes 43 to achieve the same. */ 44 void darwin_register_objc_includes (const char *, const char *, int); 45 void darwin_register_frameworks (const char *, const char *, int); 46 47 48 void 49 darwin_register_objc_includes (const char *sysroot ATTRIBUTE_UNUSED, 50 const char *iprefix ATTRIBUTE_UNUSED, 51 int stdinc ATTRIBUTE_UNUSED) 52 { 53 } 54 55 void 56 darwin_register_frameworks (const char *sysroot ATTRIBUTE_UNUSED, 57 const char *iprefix ATTRIBUTE_UNUSED, 58 int stdinc ATTRIBUTE_UNUSED) 59 { 60 } 61