]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/darwin-f.c
Update copyright years.
[thirdparty/gcc.git] / gcc / config / darwin-f.c
CommitLineData
c776a6d0 1/* Darwin support needed only by Fortran frontends.
99dee823 2 Copyright (C) 2008-2021 Free Software Foundation, Inc.
c776a6d0
DF
3 Contributed by Daniel Franke.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3, or (at your option)
10any later version.
11
12GCC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along 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
67914693 25 As both, gcc and gfortran link in incpath.o, we cannot
c776a6d0
DF
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. */
44void darwin_register_objc_includes (const char *, const char *, int);
45void darwin_register_frameworks (const char *, const char *, int);
46
47
48void
49darwin_register_objc_includes (const char *sysroot ATTRIBUTE_UNUSED,
50 const char *iprefix ATTRIBUTE_UNUSED,
51 int stdinc ATTRIBUTE_UNUSED)
52{
53}
54
55void
56darwin_register_frameworks (const char *sysroot ATTRIBUTE_UNUSED,
57 const char *iprefix ATTRIBUTE_UNUSED,
58 int stdinc ATTRIBUTE_UNUSED)
59{
60}