xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/lm32/rtems.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg /* Definitions for rtems targeting a lm32 using ELF.
2*8feb0f0bSmrg    Copyright (C) 2009-2020 Free Software Foundation, Inc.
336ac495dSmrg 
436ac495dSmrg    This file is part of GCC.
536ac495dSmrg 
636ac495dSmrg    GCC is free software; you can redistribute it and/or modify it
736ac495dSmrg    under the terms of the GNU General Public License as published
836ac495dSmrg    by the Free Software Foundation; either version 3, or (at your
936ac495dSmrg    option) any later version.
1036ac495dSmrg 
1136ac495dSmrg    GCC is distributed in the hope that it will be useful, but WITHOUT
1236ac495dSmrg    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1336ac495dSmrg    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
1436ac495dSmrg    License for more details.
1536ac495dSmrg 
1636ac495dSmrg    Under Section 7 of GPL version 3, you are granted additional
1736ac495dSmrg    permissions described in the GCC Runtime Library Exception, version
1836ac495dSmrg    3.1, as published by the Free Software Foundation.
1936ac495dSmrg 
2036ac495dSmrg    You should have received a copy of the GNU General Public License and
2136ac495dSmrg    a copy of the GCC Runtime Library Exception along with this program;
2236ac495dSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2336ac495dSmrg    <http://www.gnu.org/licenses/>.  */
2436ac495dSmrg 
2536ac495dSmrg /* Target OS builtins.  */
2636ac495dSmrg #undef TARGET_OS_CPP_BUILTINS
2736ac495dSmrg #define TARGET_OS_CPP_BUILTINS()		\
2836ac495dSmrg   do						\
2936ac495dSmrg     {						\
3036ac495dSmrg 	builtin_define ("__rtems__");		\
3136ac495dSmrg 	builtin_define ("__USE_INIT_FINI__");	\
3236ac495dSmrg 	builtin_assert ("system=rtems");	\
3336ac495dSmrg     }						\
3436ac495dSmrg   while (0)
3536ac495dSmrg 
3636ac495dSmrg /* Use the default */
3736ac495dSmrg #undef LINK_GCC_C_SEQUENCE_SPEC
38