winnt-c.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Default C-family target hooks initializer.
  2. Copyright (C) 2013-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. 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. #include "config.h"
  16. #include "system.h"
  17. #include "coretypes.h"
  18. #include "c-family/c-target.h"
  19. #include "hash-set.h"
  20. #include "machmode.h"
  21. #include "vec.h"
  22. #include "double-int.h"
  23. #include "input.h"
  24. #include "alias.h"
  25. #include "options.h"
  26. #include "symtab.h"
  27. #include "wide-int.h"
  28. #include "inchash.h"
  29. #include "c-family/c-target-def.h"
  30. static bool
  31. winnt_implicit_extern_c (const char *ident)
  32. {
  33. return !strcmp(ident, "wmain")
  34. || !strcmp(ident, "DllMain")
  35. || !strcmp(ident, "WinMain")
  36. || !strcmp(ident, "wWinMain");
  37. }
  38. #undef TARGET_CXX_IMPLICIT_EXTERN_C
  39. #define TARGET_CXX_IMPLICIT_EXTERN_C winnt_implicit_extern_c
  40. struct gcc_targetcm targetcm = TARGETCM_INITIALIZER;