xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/mips/rtems.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
11debfc3dSmrg /* Definitions for rtems targeting a MIPS using ELF.
2*8feb0f0bSmrg    Copyright (C) 1996-2020 Free Software Foundation, Inc.
31debfc3dSmrg    Contributed by Joel Sherrill (joel@OARcorp.com).
41debfc3dSmrg 
51debfc3dSmrg    This file is part of GCC.
61debfc3dSmrg 
71debfc3dSmrg    GCC is free software; you can redistribute it and/or modify it
81debfc3dSmrg    under the terms of the GNU General Public License as published
91debfc3dSmrg    by the Free Software Foundation; either version 3, or (at your
101debfc3dSmrg    option) any later version.
111debfc3dSmrg 
121debfc3dSmrg    GCC is distributed in the hope that it will be useful, but WITHOUT
131debfc3dSmrg    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
141debfc3dSmrg    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
151debfc3dSmrg    License for more details.
161debfc3dSmrg 
171debfc3dSmrg    Under Section 7 of GPL version 3, you are granted additional
181debfc3dSmrg    permissions described in the GCC Runtime Library Exception, version
191debfc3dSmrg    3.1, as published by the Free Software Foundation.
201debfc3dSmrg 
211debfc3dSmrg    You should have received a copy of the GNU General Public License and
221debfc3dSmrg    a copy of the GCC Runtime Library Exception along with this program;
231debfc3dSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
241debfc3dSmrg    <http://www.gnu.org/licenses/>.  */
251debfc3dSmrg 
261debfc3dSmrg /* Specify predefined symbols in preprocessor.  */
271debfc3dSmrg 
281debfc3dSmrg #define TARGET_OS_CPP_BUILTINS()	\
291debfc3dSmrg do {					\
301debfc3dSmrg   builtin_define ("__rtems__");		\
311debfc3dSmrg   builtin_define ("__USE_INIT_FINI__");	\
321debfc3dSmrg   builtin_assert ("system=rtems");	\
331debfc3dSmrg } while (0)
341debfc3dSmrg 
351debfc3dSmrg /* No sdata.
361debfc3dSmrg  * The RTEMS BSPs expect -G0
371debfc3dSmrg  */
381debfc3dSmrg #undef MIPS_DEFAULT_GVALUE
391debfc3dSmrg #define MIPS_DEFAULT_GVALUE 0
40