OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [config/] [sh/] [elf.h] - Diff between revs 282 and 338

Only display areas with differences | Details | Blame | View Log

Rev 282 Rev 338
/* Definitions of target machine for gcc for Renesas / SuperH SH using ELF.
/* Definitions of target machine for gcc for Renesas / SuperH SH using ELF.
   Copyright (C) 1996, 1997, 2000, 2001, 2002, 2004, 2005, 2007
   Copyright (C) 1996, 1997, 2000, 2001, 2002, 2004, 2005, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Contributed by Ian Lance Taylor <ian@cygnus.com>.
   Contributed by Ian Lance Taylor <ian@cygnus.com>.
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
the Free Software Foundation; either version 3, or (at your option)
any later version.
any later version.
 
 
GCC is distributed in the hope that it will be useful,
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.  */
<http://www.gnu.org/licenses/>.  */
 
 
/* Let sh.c know this is ELF.  */
/* Let sh.c know this is ELF.  */
#undef TARGET_ELF
#undef TARGET_ELF
#define TARGET_ELF 1
#define TARGET_ELF 1
 
 
/* Generate DWARF2 debugging information and make it the default */
/* Generate DWARF2 debugging information and make it the default */
#define DWARF2_DEBUGGING_INFO 1
#define DWARF2_DEBUGGING_INFO 1
 
 
#undef PREFERRED_DEBUGGING_TYPE
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
 
/* use a more compact format for line information */
/* use a more compact format for line information */
#define DWARF2_ASM_LINE_DEBUG_INFO 1
#define DWARF2_ASM_LINE_DEBUG_INFO 1
 
 
/* WCHAR_TYPE / WCHAR_TYPE_SIZE are defined to long int / BITS_PER_WORD in
/* WCHAR_TYPE / WCHAR_TYPE_SIZE are defined to long int / BITS_PER_WORD in
   svr4.h, but these work out as 64 bit for shmedia64.  */
   svr4.h, but these work out as 64 bit for shmedia64.  */
#undef WCHAR_TYPE
#undef WCHAR_TYPE
/* #define WCHAR_TYPE (TARGET_SH5 ? "int" : "long int") */
/* #define WCHAR_TYPE (TARGET_SH5 ? "int" : "long int") */
#define WCHAR_TYPE SH_ELF_WCHAR_TYPE
#define WCHAR_TYPE SH_ELF_WCHAR_TYPE
 
 
#undef WCHAR_TYPE_SIZE
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
#define WCHAR_TYPE_SIZE 32
 
 
 
 
/* The prefix to add to user-visible assembler symbols.  */
/* The prefix to add to user-visible assembler symbols.  */
 
 
#undef LOCAL_LABEL_PREFIX
#undef LOCAL_LABEL_PREFIX
#define LOCAL_LABEL_PREFIX "."
#define LOCAL_LABEL_PREFIX "."
 
 
#undef SIZE_TYPE
#undef SIZE_TYPE
#define SIZE_TYPE (TARGET_SH5 ? "long unsigned int" : "unsigned int")
#define SIZE_TYPE (TARGET_SH5 ? "long unsigned int" : "unsigned int")
 
 
#undef PTRDIFF_TYPE
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE (TARGET_SH5 ? "long int" : "int")
#define PTRDIFF_TYPE (TARGET_SH5 ? "long int" : "int")
 
 
/* Pass -ml and -mrelax to the assembler and linker.  */
/* Pass -ml and -mrelax to the assembler and linker.  */
#undef ASM_SPEC
#undef ASM_SPEC
#define ASM_SPEC SH_ASM_SPEC
#define ASM_SPEC SH_ASM_SPEC
 
 
#undef LINK_SPEC
#undef LINK_SPEC
#define LINK_SPEC SH_LINK_SPEC
#define LINK_SPEC SH_LINK_SPEC
#undef LINK_EMUL_PREFIX
#undef LINK_EMUL_PREFIX
#if TARGET_ENDIAN_DEFAULT == MASK_LITTLE_ENDIAN
#if TARGET_ENDIAN_DEFAULT == MASK_LITTLE_ENDIAN
#define LINK_EMUL_PREFIX "sh%{!mb:l}elf"
#define LINK_EMUL_PREFIX "sh%{!mb:l}elf"
#else
#else
#define LINK_EMUL_PREFIX "sh%{ml:l}elf"
#define LINK_EMUL_PREFIX "sh%{ml:l}elf"
#endif
#endif
 
 
/* svr4.h undefined DBX_REGISTER_NUMBER, so we need to define it
/* svr4.h undefined DBX_REGISTER_NUMBER, so we need to define it
   again.  */
   again.  */
#define DBX_REGISTER_NUMBER(REGNO) SH_DBX_REGISTER_NUMBER (REGNO)
#define DBX_REGISTER_NUMBER(REGNO) SH_DBX_REGISTER_NUMBER (REGNO)
 
 
#undef ASM_GENERATE_INTERNAL_LABEL
#undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
#define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
  sprintf ((STRING), "*%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUM))
  sprintf ((STRING), "*%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUM))
 
 
#define DBX_LINES_FUNCTION_RELATIVE 1
#define DBX_LINES_FUNCTION_RELATIVE 1
#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
 
 
#undef STARTFILE_SPEC
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
#define STARTFILE_SPEC \
  "%{!shared: crt1.o%s} crti.o%s \
  "%{!shared: crt1.o%s} crti.o%s \
   %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
   %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
 
 
#undef ENDFILE_SPEC
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
#define ENDFILE_SPEC \
  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
 
 
/* ASM_OUTPUT_CASE_LABEL is defined in elfos.h.  With it,
/* ASM_OUTPUT_CASE_LABEL is defined in elfos.h.  With it,
   a redundant .align was generated.  */
   a redundant .align was generated.  */
#undef  ASM_OUTPUT_CASE_LABEL
#undef  ASM_OUTPUT_CASE_LABEL
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.