]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/x86/lib/gcc.c
Add more SPDX-License-Identifier tags
[people/ms/u-boot.git] / arch / x86 / lib / gcc.c
index 4043431ecaa904e0ffc5606db762c2206c3f7dcb..3c70d790d49d79a4b8394c642f31e20f90d96404 100644 (file)
@@ -3,18 +3,7 @@
  *
  * Copyright (C) 2009 coresystems GmbH
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 or later of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 #ifdef __GNUC__
@@ -28,7 +17,9 @@
 #define WRAP_LIBGCC_CALL(type, name) \
        type __normal_##name(type a, type b) __attribute__((regparm(0))); \
        type __wrap_##name(type a, type b); \
-       type __wrap_##name(type a, type b) { return __normal_##name(a, b); }
+       type __attribute__((no_instrument_function)) \
+               __wrap_##name(type a, type b) \
+                { return __normal_##name(a, b); }
 
 WRAP_LIBGCC_CALL(long long, __divdi3)
 WRAP_LIBGCC_CALL(unsigned long long, __udivdi3)