(root)/
gcc-13.2.0/
gcc/
config/
mn10300/
linux.h
       1  /* Definitions of taret machine for GNU compiler.
       2     Matsushita AM33/2.0
       3     Copyright (C) 2001-2023 Free Software Foundation, Inc.
       4     Contributed by Alexandre Oliva <aoliva@redhat.com>
       5  
       6     This file is part of GCC.
       7  
       8     GCC is free software; you can redistribute it and/or modify
       9     it under the terms of the GNU General Public License as published by
      10     the Free Software Foundation; either version 3, or (at your option)
      11     any later version.
      12  
      13     GCC is distributed in the hope that it will be useful,
      14     but WITHOUT ANY WARRANTY; without even the implied warranty of
      15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16     GNU General Public License for more details.
      17  
      18     You should have received a copy of the GNU General Public License
      19     along with GCC; see the file COPYING3.  If not see
      20     <http://www.gnu.org/licenses/>.  */
      21     
      22  #undef  PREFERRED_DEBUGGING_TYPE
      23  #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
      24  
      25  #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
      26  
      27  #undef  CPP_SPEC
      28  #define CPP_SPEC "%{mam33:-D__AM33__} %{!mam33:-D__AM33__=2 -D__AM33_2__} \
      29    %{posix:-D_POSIX_SOURCE} \
      30    %{pthread:-D_REENTRANT -D_PTHREADS}"
      31  
      32  #undef  ASM_SPEC
      33  #define ASM_SPEC ""
      34  
      35  #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
      36  
      37  #undef  LINK_SPEC
      38  #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
      39     %{!static: \
      40       %{rdynamic:-export-dynamic} \
      41       -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
      42     %{static:-static}"
      43  
      44  #undef  PROCESSOR_DEFAULT
      45  #define PROCESSOR_DEFAULT PROCESSOR_AM33_2
      46  
      47  extern int mn10300_protect_label;
      48  
      49  #undef  PRINT_OPERAND
      50  #define PRINT_OPERAND(FILE, X, CODE)		\
      51    do						\
      52      {						\
      53        mn10300_protect_label = 1;		\
      54        mn10300_print_operand ((FILE), (X), (CODE));	\
      55        mn10300_protect_label = 0;		\
      56      }						\
      57    while (0)
      58  
      59  #undef  PRINT_OPERAND_ADDRESS
      60  #define PRINT_OPERAND_ADDRESS(FILE, X)		\
      61    do						\
      62      {						\
      63        mn10300_protect_label = 1;		\
      64        mn10300_print_operand_address ((FILE), (X));	\
      65        mn10300_protect_label = 0;		\
      66      }						\
      67     while (0)
      68  
      69  #undef  ASM_OUTPUT_LABELREF
      70  #define ASM_OUTPUT_LABELREF(FILE, NAME)		\
      71    do						\
      72      {						\
      73        const char * real_name;			\
      74  						\
      75        real_name = (*targetm.strip_name_encoding) (NAME);	\
      76        if (mn10300_protect_label)		\
      77          asm_fprintf (FILE, "+");		\
      78        asm_fprintf (FILE, "%U%s", real_name);	\
      79      }						\
      80    while (0)           
      81  
      82  #undef SIZE_TYPE
      83  #undef PTRDIFF_TYPE
      84  #undef WCHAR_TYPE
      85  #undef WCHAR_TYPE_SIZE