OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [arm/] [unknown-elf.h] - Diff between revs 38 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
/* Definitions for non-Linux based ARM systems using ELF
/* Definitions for non-Linux based ARM systems using ELF
   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2007
   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Contributed by Catherine Moore <clm@cygnus.com>
   Contributed by Catherine Moore <clm@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 it
   GCC is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published
   under the terms of the GNU General Public License as published
   by the Free Software Foundation; either version 3, or (at your
   by the Free Software Foundation; either version 3, or (at your
   option) any later version.
   option) any later version.
 
 
   GCC is distributed in the hope that it will be useful, but WITHOUT
   GCC is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.
   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/>.  */
 
 
/* elfos.h should have already been included.  Now just override
/* elfos.h should have already been included.  Now just override
   any conflicting definitions and add any extras.  */
   any conflicting definitions and add any extras.  */
 
 
/* Run-time Target Specification.  */
/* Run-time Target Specification.  */
#ifndef TARGET_VERSION
#ifndef TARGET_VERSION
#define TARGET_VERSION  fputs (" (ARM/ELF)", stderr);
#define TARGET_VERSION  fputs (" (ARM/ELF)", stderr);
#endif
#endif
 
 
/* Default to using software floating point.  */
/* Default to using software floating point.  */
#ifndef TARGET_DEFAULT
#ifndef TARGET_DEFAULT
#define TARGET_DEFAULT  (0)
#define TARGET_DEFAULT  (0)
#endif
#endif
 
 
/* Now we define the strings used to build the spec file.  */
/* Now we define the strings used to build the spec file.  */
#undef  STARTFILE_SPEC
#undef  STARTFILE_SPEC
#define STARTFILE_SPEC  " crti%O%s crtbegin%O%s crt0%O%s"
#define STARTFILE_SPEC  " crti%O%s crtbegin%O%s crt0%O%s"
 
 
#undef  ENDFILE_SPEC
#undef  ENDFILE_SPEC
#define ENDFILE_SPEC    "crtend%O%s crtn%O%s"
#define ENDFILE_SPEC    "crtend%O%s crtn%O%s"
 
 
/* The __USES_INITFINI__ define is tested in newlib/libc/sys/arm/crt0.S
/* The __USES_INITFINI__ define is tested in newlib/libc/sys/arm/crt0.S
   to see if it needs to invoked _init() and _fini().  */
   to see if it needs to invoked _init() and _fini().  */
#undef  SUBTARGET_CPP_SPEC
#undef  SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC  "-D__USES_INITFINI__"
#define SUBTARGET_CPP_SPEC  "-D__USES_INITFINI__"
 
 
#undef  PREFERRED_DEBUGGING_TYPE
#undef  PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
 
/* Return a nonzero value if DECL has a section attribute.  */
/* Return a nonzero value if DECL has a section attribute.  */
#define IN_NAMED_SECTION(DECL)                                          \
#define IN_NAMED_SECTION(DECL)                                          \
  ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL)  \
  ((TREE_CODE (DECL) == FUNCTION_DECL || TREE_CODE (DECL) == VAR_DECL)  \
   && DECL_SECTION_NAME (DECL) != NULL_TREE)
   && DECL_SECTION_NAME (DECL) != NULL_TREE)
 
 
#undef  ASM_OUTPUT_ALIGNED_BSS
#undef  ASM_OUTPUT_ALIGNED_BSS
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN)           \
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN)           \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      if (IN_NAMED_SECTION (DECL))                                      \
      if (IN_NAMED_SECTION (DECL))                                      \
        switch_to_section (get_named_section (DECL, NULL, 0));           \
        switch_to_section (get_named_section (DECL, NULL, 0));           \
      else                                                              \
      else                                                              \
        switch_to_section (bss_section);                                \
        switch_to_section (bss_section);                                \
                                                                        \
                                                                        \
      ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));      \
      ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));      \
                                                                        \
                                                                        \
      last_assemble_variable_decl = DECL;                               \
      last_assemble_variable_decl = DECL;                               \
      ASM_DECLARE_OBJECT_NAME (FILE, NAME, DECL);                       \
      ASM_DECLARE_OBJECT_NAME (FILE, NAME, DECL);                       \
      ASM_OUTPUT_SKIP (FILE, SIZE ? (int)(SIZE) : 1);                   \
      ASM_OUTPUT_SKIP (FILE, SIZE ? (int)(SIZE) : 1);                   \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#undef  ASM_OUTPUT_ALIGNED_DECL_LOCAL
#undef  ASM_OUTPUT_ALIGNED_DECL_LOCAL
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN)    \
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN)    \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      if ((DECL) != NULL && IN_NAMED_SECTION (DECL))                    \
      if ((DECL) != NULL && IN_NAMED_SECTION (DECL))                    \
        switch_to_section (get_named_section (DECL, NULL, 0));           \
        switch_to_section (get_named_section (DECL, NULL, 0));           \
      else                                                              \
      else                                                              \
        switch_to_section (bss_section);                                \
        switch_to_section (bss_section);                                \
                                                                        \
                                                                        \
      ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));      \
      ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));      \
      ASM_OUTPUT_LABEL (FILE, NAME);                                    \
      ASM_OUTPUT_LABEL (FILE, NAME);                                    \
      fprintf (FILE, "\t.space\t%d\n", SIZE ? (int)(SIZE) : 1);         \
      fprintf (FILE, "\t.space\t%d\n", SIZE ? (int)(SIZE) : 1);         \
    }                                                                   \
    }                                                                   \
  while (0)
  while (0)
 
 
#ifndef SUBTARGET_CPU_DEFAULT
#ifndef SUBTARGET_CPU_DEFAULT
#define SUBTARGET_CPU_DEFAULT           TARGET_CPU_arm7tdmi
#define SUBTARGET_CPU_DEFAULT           TARGET_CPU_arm7tdmi
#endif
#endif
 
 
/* The libgcc udivmod functions may throw exceptions.  If newlib is
/* The libgcc udivmod functions may throw exceptions.  If newlib is
   configured to support long longs in I/O, then printf will depend on
   configured to support long longs in I/O, then printf will depend on
   udivmoddi4, which will depend on the exception unwind routines,
   udivmoddi4, which will depend on the exception unwind routines,
   which will depend on abort, which is defined in libc.  */
   which will depend on abort, which is defined in libc.  */
#undef LINK_GCC_C_SEQUENCE_SPEC
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group"
#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group"
 
 

powered by: WebSVN 2.1.0

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