lang-specs.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Definitions for specs for C++.
  2. Copyright (C) 1995-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. /* This is the contribution to the `default_compilers' array in gcc.c for
  16. g++. */
  17. #ifndef CPLUSPLUS_CPP_SPEC
  18. #define CPLUSPLUS_CPP_SPEC 0
  19. #endif
  20. {".cc", "@c++", 0, 0, 0},
  21. {".cp", "@c++", 0, 0, 0},
  22. {".cxx", "@c++", 0, 0, 0},
  23. {".cpp", "@c++", 0, 0, 0},
  24. {".c++", "@c++", 0, 0, 0},
  25. {".C", "@c++", 0, 0, 0},
  26. {".CPP", "@c++", 0, 0, 0},
  27. {".H", "@c++-header", 0, 0, 0},
  28. {".hpp", "@c++-header", 0, 0, 0},
  29. {".hp", "@c++-header", 0, 0, 0},
  30. {".hxx", "@c++-header", 0, 0, 0},
  31. {".h++", "@c++-header", 0, 0, 0},
  32. {".HPP", "@c++-header", 0, 0, 0},
  33. {".tcc", "@c++-header", 0, 0, 0},
  34. {".hh", "@c++-header", 0, 0, 0},
  35. {"@c++-header",
  36. "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\
  37. %{!E:%{!M:%{!MM:\
  38. %{save-temps*|no-integrated-cpp:cc1plus -E\
  39. %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}\
  40. cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}\
  41. %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}\
  42. %(cc1_options) %2\
  43. %{!fsyntax-only:%{!fdump-ada-spec*:-o %g.s %{!o*:--output-pch=%i.gch}\
  44. %W{o*:--output-pch=%*}}%V}}}}",
  45. CPLUSPLUS_CPP_SPEC, 0, 0},
  46. {"@c++",
  47. "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\
  48. %{!E:%{!M:%{!MM:\
  49. %{save-temps*|no-integrated-cpp:cc1plus -E\
  50. %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}\
  51. cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}\
  52. %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}\
  53. %(cc1_options) %2\
  54. %{!fsyntax-only:%(invoke_as)}}}}",
  55. CPLUSPLUS_CPP_SPEC, 0, 0},
  56. {".ii", "@c++-cpp-output", 0, 0, 0},
  57. {"@c++-cpp-output",
  58. "%{!M:%{!MM:%{!E:\
  59. cc1plus -fpreprocessed %i %(cc1_options) %2\
  60. %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},