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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [lynx.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 LynxOS on i386.
/* Definitions for LynxOS on i386.
   Copyright (C) 1993, 1995, 1996, 2002, 2004, 2005, 2007
   Copyright (C) 1993, 1995, 1996, 2002, 2004, 2005, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
 
 
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/>.  */
 
 
#define TARGET_VERSION fputs (" (i386/LynxOS)", stderr);
#define TARGET_VERSION fputs (" (i386/LynxOS)", stderr);
 
 
#define TARGET_OS_CPP_BUILTINS()                \
#define TARGET_OS_CPP_BUILTINS()                \
  do                                            \
  do                                            \
    {                                           \
    {                                           \
      builtin_define ("__LITTLE_ENDIAN__");     \
      builtin_define ("__LITTLE_ENDIAN__");     \
      builtin_define ("__x86__");               \
      builtin_define ("__x86__");               \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
/* The svr4 ABI for the i386 says that records and unions are returned
/* The svr4 ABI for the i386 says that records and unions are returned
   in memory.  */
   in memory.  */
 
 
#define DEFAULT_PCC_STRUCT_RETURN 1
#define DEFAULT_PCC_STRUCT_RETURN 1
 
 
/* BSS_SECTION_ASM_OP gets defined i386/unix.h.  */
/* BSS_SECTION_ASM_OP gets defined i386/unix.h.  */
 
 
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
 
 
/* LynxOS's GDB counts the floating point registers from 16.  */
/* LynxOS's GDB counts the floating point registers from 16.  */
 
 
#undef DBX_REGISTER_NUMBER
#undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n)                                          \
#define DBX_REGISTER_NUMBER(n)                                          \
  (TARGET_64BIT ? dbx64_register_map[n]                                 \
  (TARGET_64BIT ? dbx64_register_map[n]                                 \
   : (n) == 0 ? 0                                                 \
   : (n) == 0 ? 0                                                 \
   : (n) == 1 ? 2                                                       \
   : (n) == 1 ? 2                                                       \
   : (n) == 2 ? 1                                                       \
   : (n) == 2 ? 1                                                       \
   : (n) == 3 ? 3                                                       \
   : (n) == 3 ? 3                                                       \
   : (n) == 4 ? 6                                                       \
   : (n) == 4 ? 6                                                       \
   : (n) == 5 ? 7                                                       \
   : (n) == 5 ? 7                                                       \
   : (n) == 6 ? 5                                                       \
   : (n) == 6 ? 5                                                       \
   : (n) == 7 ? 4                                                       \
   : (n) == 7 ? 4                                                       \
   : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n) + 8        \
   : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n) + 8        \
   : (-1))
   : (-1))
 
 
/* A C statement to output to the stdio stream FILE an assembler
/* A C statement to output to the stdio stream FILE an assembler
   command to advance the location counter to a multiple of 1<<LOG
   command to advance the location counter to a multiple of 1<<LOG
   bytes if it is within MAX_SKIP bytes.
   bytes if it is within MAX_SKIP bytes.
 
 
   This is used to align code labels according to Intel recommendations.  */
   This is used to align code labels according to Intel recommendations.  */
 
 
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP)                    \
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP)                    \
  do {                                                                  \
  do {                                                                  \
    if ((LOG) != 0) {                                                    \
    if ((LOG) != 0) {                                                    \
      if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));   \
      if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));   \
      else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));  \
      else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));  \
    }                                                                   \
    }                                                                   \
  } while (0)
  } while (0)
#endif
#endif
 
 
/* Undefine SUBTARGET_EXTRA_SPECS it is empty anyway.  We define it in
/* Undefine SUBTARGET_EXTRA_SPECS it is empty anyway.  We define it in
   config/lynx.h.  */
   config/lynx.h.  */
 
 
#undef SUBTARGET_EXTRA_SPECS
#undef SUBTARGET_EXTRA_SPECS
 
 
/* Undefine the definition from att.h to enable our default.  */
/* Undefine the definition from att.h to enable our default.  */
 
 
#undef ASM_OUTPUT_ALIGN
#undef ASM_OUTPUT_ALIGN
 
 
/* Undefine the definition from elfos.h to enable our default.  */
/* Undefine the definition from elfos.h to enable our default.  */
 
 
#undef PREFERRED_DEBUGGING_TYPE
#undef PREFERRED_DEBUGGING_TYPE
 
 
/* The file i386.c defines TARGET_HAVE_TLS unconditionally if
/* The file i386.c defines TARGET_HAVE_TLS unconditionally if
   HAVE_AS_TLS is defined.  HAVE_AS_TLS is defined as gas support for
   HAVE_AS_TLS is defined.  HAVE_AS_TLS is defined as gas support for
   TLS is detected by configure.  We undefine it here.  */
   TLS is detected by configure.  We undefine it here.  */
 
 
#undef HAVE_AS_TLS
#undef HAVE_AS_TLS
 
 

powered by: WebSVN 2.1.0

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