110d565efSmrg /* Darwin support needed only by Fortran frontends.
2*ec02198aSmrg    Copyright (C) 2008-2020 Free Software Foundation, Inc.
310d565efSmrg    Contributed by Daniel Franke.
410d565efSmrg 
510d565efSmrg This file is part of GCC.
610d565efSmrg 
710d565efSmrg GCC is free software; you can redistribute it and/or modify
810d565efSmrg it under the terms of the GNU General Public License as published by
910d565efSmrg the Free Software Foundation; either version 3, or (at your option)
1010d565efSmrg any later version.
1110d565efSmrg 
1210d565efSmrg GCC is distributed in the hope that it will be useful,
1310d565efSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of
1410d565efSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1510d565efSmrg GNU General Public License for more details.
1610d565efSmrg 
1710d565efSmrg You should have received a copy of the GNU General Public License
1810d565efSmrg along with GCC; see the file COPYING3.  If not see
1910d565efSmrg <http://www.gnu.org/licenses/>.  */
2010d565efSmrg 
2110d565efSmrg 
2210d565efSmrg /* Provide stubs for the hooks defined by darwin.h
2310d565efSmrg      TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES
2410d565efSmrg 
2510d565efSmrg    As both, gcc and gfortran link in incpath.o, we cannot
2610d565efSmrg    conditionally undefine said hooks if fortran is build.
2710d565efSmrg    However, we can define do-nothing stubs of said hooks as
2810d565efSmrg    we are not interested in objc include files in Fortran.
2910d565efSmrg 
3010d565efSmrg    The hooks original purpose (see also darwin-c.c):
3110d565efSmrg     * darwin_register_objc_includes
3210d565efSmrg       Register the GNU objective-C runtime include path if STDINC.
3310d565efSmrg 
3410d565efSmrg     * darwin_register_frameworks
3510d565efSmrg       Register all the system framework paths if STDINC is true and setup
3610d565efSmrg       the missing_header callback for subframework searching if any
3710d565efSmrg       frameworks had been registered.  */
3810d565efSmrg 
3910d565efSmrg 
4010d565efSmrg #include "ansidecl.h"
4110d565efSmrg 
4210d565efSmrg /* Prototypes for functions below to avoid a lengthy list of includes
4310d565efSmrg    to achieve the same.  */
4410d565efSmrg void darwin_register_objc_includes (const char *, const char *, int);
4510d565efSmrg void darwin_register_frameworks (const char *, const char *, int);
4610d565efSmrg 
4710d565efSmrg 
4810d565efSmrg void
darwin_register_objc_includes(const char * sysroot ATTRIBUTE_UNUSED,const char * iprefix ATTRIBUTE_UNUSED,int stdinc ATTRIBUTE_UNUSED)4910d565efSmrg darwin_register_objc_includes (const char *sysroot ATTRIBUTE_UNUSED,
5010d565efSmrg 			       const char *iprefix ATTRIBUTE_UNUSED,
5110d565efSmrg 			       int stdinc ATTRIBUTE_UNUSED)
5210d565efSmrg {
5310d565efSmrg }
5410d565efSmrg 
5510d565efSmrg void
darwin_register_frameworks(const char * sysroot ATTRIBUTE_UNUSED,const char * iprefix ATTRIBUTE_UNUSED,int stdinc ATTRIBUTE_UNUSED)5610d565efSmrg darwin_register_frameworks (const char *sysroot ATTRIBUTE_UNUSED,
5710d565efSmrg 			    const char *iprefix ATTRIBUTE_UNUSED,
5810d565efSmrg 			    int stdinc ATTRIBUTE_UNUSED)
5910d565efSmrg {
6010d565efSmrg }
61