pru-asm.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 2014-2022 Free Software Foundation, Inc.
  2. Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
  3. This file is free software; you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the
  5. Free Software Foundation; either version 3, or (at your option) any
  6. later version.
  7. This file is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. Under Section 7 of GPL version 3, you are granted additional
  12. permissions described in the GCC Runtime Library Exception, version
  13. 3.1, as published by the Free Software Foundation.
  14. You should have received a copy of the GNU General Public License and
  15. a copy of the GCC Runtime Library Exception along with this program;
  16. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  17. <http://www.gnu.org/licenses/>. */
  18. /* ANSI concatenation macros. */
  19. #define CONCAT1(a, b) CONCAT2(a, b)
  20. #define CONCAT2(a, b) a ## b
  21. /* Use the right prefix for global labels. */
  22. #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
  23. #define FUNC(X) .type SYM(X),@function
  24. #define HIDDEN_FUNC(X) FUNC(X)` .hidden SYM(X)
  25. #define ENDFUNC0(X) CONCAT1(.Lfe_,X): .size X,CONCAT1(.Lfe_,X)-X
  26. #define ENDFUNC(X) ENDFUNC0(SYM(X))