11debfc3dSmrg /* Darwin support needed only by Fortran frontends.
2*8feb0f0bSmrg Copyright (C) 2008-2020 Free Software Foundation, Inc.
31debfc3dSmrg Contributed by Daniel Franke.
41debfc3dSmrg
51debfc3dSmrg This file is part of GCC.
61debfc3dSmrg
71debfc3dSmrg GCC is free software; you can redistribute it and/or modify
81debfc3dSmrg it under the terms of the GNU General Public License as published by
91debfc3dSmrg the Free Software Foundation; either version 3, or (at your option)
101debfc3dSmrg any later version.
111debfc3dSmrg
121debfc3dSmrg GCC is distributed in the hope that it will be useful,
131debfc3dSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of
141debfc3dSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
151debfc3dSmrg GNU General Public License for more details.
161debfc3dSmrg
171debfc3dSmrg You should have received a copy of the GNU General Public License
181debfc3dSmrg along with GCC; see the file COPYING3. If not see
191debfc3dSmrg <http://www.gnu.org/licenses/>. */
201debfc3dSmrg
211debfc3dSmrg
221debfc3dSmrg /* Provide stubs for the hooks defined by darwin.h
231debfc3dSmrg TARGET_EXTRA_PRE_INCLUDES, TARGET_EXTRA_INCLUDES
241debfc3dSmrg
251debfc3dSmrg As both, gcc and gfortran link in incpath.o, we cannot
261debfc3dSmrg conditionally undefine said hooks if fortran is build.
271debfc3dSmrg However, we can define do-nothing stubs of said hooks as
281debfc3dSmrg we are not interested in objc include files in Fortran.
291debfc3dSmrg
301debfc3dSmrg The hooks original purpose (see also darwin-c.c):
311debfc3dSmrg * darwin_register_objc_includes
321debfc3dSmrg Register the GNU objective-C runtime include path if STDINC.
331debfc3dSmrg
341debfc3dSmrg * darwin_register_frameworks
351debfc3dSmrg Register all the system framework paths if STDINC is true and setup
361debfc3dSmrg the missing_header callback for subframework searching if any
371debfc3dSmrg frameworks had been registered. */
381debfc3dSmrg
391debfc3dSmrg
401debfc3dSmrg #include "ansidecl.h"
411debfc3dSmrg
421debfc3dSmrg /* Prototypes for functions below to avoid a lengthy list of includes
431debfc3dSmrg to achieve the same. */
441debfc3dSmrg void darwin_register_objc_includes (const char *, const char *, int);
451debfc3dSmrg void darwin_register_frameworks (const char *, const char *, int);
461debfc3dSmrg
471debfc3dSmrg
481debfc3dSmrg void
darwin_register_objc_includes(const char * sysroot ATTRIBUTE_UNUSED,const char * iprefix ATTRIBUTE_UNUSED,int stdinc ATTRIBUTE_UNUSED)491debfc3dSmrg darwin_register_objc_includes (const char *sysroot ATTRIBUTE_UNUSED,
501debfc3dSmrg const char *iprefix ATTRIBUTE_UNUSED,
511debfc3dSmrg int stdinc ATTRIBUTE_UNUSED)
521debfc3dSmrg {
531debfc3dSmrg }
541debfc3dSmrg
551debfc3dSmrg void
darwin_register_frameworks(const char * sysroot ATTRIBUTE_UNUSED,const char * iprefix ATTRIBUTE_UNUSED,int stdinc ATTRIBUTE_UNUSED)561debfc3dSmrg darwin_register_frameworks (const char *sysroot ATTRIBUTE_UNUSED,
571debfc3dSmrg const char *iprefix ATTRIBUTE_UNUSED,
581debfc3dSmrg int stdinc ATTRIBUTE_UNUSED)
591debfc3dSmrg {
601debfc3dSmrg }
61