darwin-f.c 2.0 KB

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