stublib.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* Stub functions.
  2. Copyright (C) 2006-2022 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. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. #include "tsystem.h"
  20. #ifdef L_register_frame_info
  21. struct object;
  22. void __register_frame_info (const void *, struct object *);
  23. void
  24. __register_frame_info (__attribute__((unused)) const void *p,
  25. __attribute__((unused)) struct object *ob)
  26. {
  27. }
  28. #endif
  29. #ifdef L_deregister_frame_info
  30. void *__deregister_frame_info (const void *);
  31. void *
  32. __deregister_frame_info (__attribute__((unused)) const void *p)
  33. {
  34. return (void *)0;
  35. }
  36. #endif
  37. #ifdef L_ITM_registerTMCloneTable
  38. struct object;
  39. void _ITM_registerTMCloneTable (const void *, size_t);
  40. void
  41. _ITM_registerTMCloneTable (__attribute__((unused)) const void *p,
  42. __attribute__((unused)) size_t s)
  43. {
  44. }
  45. #endif
  46. #ifdef L_ITM_deregisterTMCloneTable
  47. void _ITM_deregisterTMCloneTable (const void *);
  48. void
  49. _ITM_deregisterTMCloneTable (__attribute__((unused)) const void *p)
  50. {
  51. }
  52. #endif
  53. #ifdef L_cxa_finalize
  54. void __cxa_finalize (void *);
  55. void
  56. __cxa_finalize (__attribute__((unused)) void *p)
  57. {
  58. }
  59. #endif
  60. #ifdef L_Jv_RegisterClasses
  61. void _Jv_RegisterClasses (void *);
  62. void
  63. _Jv_RegisterClasses (__attribute__((unused)) void *p)
  64. {
  65. }
  66. #endif
  67. #ifdef L_pthread_default_stacksize_np
  68. int pthread_default_stacksize_np (unsigned long, unsigned long *);
  69. int
  70. pthread_default_stacksize_np (__attribute__((unused)) unsigned long new,
  71. unsigned long *old)
  72. {
  73. if (old)
  74. *old = 0;
  75. return 0;
  76. }
  77. #endif
  78. #ifdef L_pthread_mutex_lock
  79. int pthread_mutex_lock (void);
  80. int
  81. pthread_mutex_lock (void)
  82. {
  83. return 0;
  84. }
  85. #endif
  86. #ifdef L_pthread_mutex_unlock
  87. int pthread_mutex_unlock (void);
  88. int
  89. pthread_mutex_unlock (void)
  90. {
  91. return 0;
  92. }
  93. #endif
  94. #ifdef L_pthread_once
  95. int pthread_once (void);
  96. int
  97. pthread_once (void)
  98. {
  99. return 0;
  100. }
  101. #endif