1 /* Stub functions. 2 Copyright (C) 2006-2019 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 3, or (at your option) 9 any later version. 10 11 GCC is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 Under Section 7 of GPL version 3, you are granted additional 17 permissions described in the GCC Runtime Library Exception, version 18 3.1, as published by the Free Software Foundation. 19 20 You should have received a copy of the GNU General Public License and 21 a copy of the GCC Runtime Library Exception along with this program; 22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 <http://www.gnu.org/licenses/>. */ 24 25 #include "tsystem.h" 26 27 #ifdef L_register_frame_info 28 struct object; 29 void __register_frame_info (const void *, struct object *); 30 void 31 __register_frame_info (__attribute__((unused)) const void *p, 32 __attribute__((unused)) struct object *ob) 33 { 34 } 35 #endif 36 37 #ifdef L_deregister_frame_info 38 void *__deregister_frame_info (const void *); 39 void * 40 __deregister_frame_info (__attribute__((unused)) const void *p) 41 { 42 return (void *)0; 43 } 44 #endif 45 46 #ifdef L_ITM_registerTMCloneTable 47 struct object; 48 void _ITM_registerTMCloneTable (const void *, size_t); 49 void 50 _ITM_registerTMCloneTable (__attribute__((unused)) const void *p, 51 __attribute__((unused)) size_t s) 52 { 53 } 54 #endif 55 56 #ifdef L_ITM_deregisterTMCloneTable 57 void _ITM_deregisterTMCloneTable (const void *); 58 void 59 _ITM_deregisterTMCloneTable (__attribute__((unused)) const void *p) 60 { 61 } 62 #endif 63 64 #ifdef L_cxa_finalize 65 void __cxa_finalize (void *); 66 void 67 __cxa_finalize (__attribute__((unused)) void *p) 68 { 69 } 70 #endif 71 72 #ifdef L_Jv_RegisterClasses 73 void _Jv_RegisterClasses (void *); 74 void 75 _Jv_RegisterClasses (__attribute__((unused)) void *p) 76 { 77 } 78 #endif 79 80 #ifdef L_pthread_default_stacksize_np 81 int pthread_default_stacksize_np (unsigned long, unsigned long *); 82 int 83 pthread_default_stacksize_np (__attribute__((unused)) unsigned long new, 84 unsigned long *old) 85 { 86 if (old) 87 *old = 0; 88 return 0; 89 } 90 #endif 91 92 #ifdef L_pthread_mutex_lock 93 int pthread_mutex_lock (void); 94 int 95 pthread_mutex_lock (void) 96 { 97 return 0; 98 } 99 #endif 100 101 #ifdef L_pthread_mutex_unlock 102 int pthread_mutex_unlock (void); 103 int 104 pthread_mutex_unlock (void) 105 { 106 return 0; 107 } 108 #endif 109 110 #ifdef L_pthread_once 111 int pthread_once (void); 112 int 113 pthread_once (void) 114 { 115 return 0; 116 } 117 #endif 118 119 #ifdef L_gnu_lto_v1 120 char gnu_lto_v1; 121 #endif 122