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/] [openbsd.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
/* Configuration for an OpenBSD i386 target.
/* Configuration for an OpenBSD i386 target.
   Copyright (C) 1999, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
   Copyright (C) 1999, 2000, 2002, 2004, 2007 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 fprintf (stderr, " (OpenBSD/i386)");
#define TARGET_VERSION fprintf (stderr, " (OpenBSD/i386)");
 
 
/* This goes away when the math-emulator is fixed */
/* This goes away when the math-emulator is fixed */
#undef TARGET_SUBTARGET_DEFAULT
#undef TARGET_SUBTARGET_DEFAULT
#define TARGET_SUBTARGET_DEFAULT \
#define TARGET_SUBTARGET_DEFAULT \
  (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)
  (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)
 
 
#define TARGET_OS_CPP_BUILTINS()                \
#define TARGET_OS_CPP_BUILTINS()                \
  do                                            \
  do                                            \
    {                                           \
    {                                           \
        builtin_define ("__unix__");            \
        builtin_define ("__unix__");            \
        builtin_define ("__OpenBSD__");         \
        builtin_define ("__OpenBSD__");         \
        builtin_assert ("system=unix");         \
        builtin_assert ("system=unix");         \
        builtin_assert ("system=bsd");          \
        builtin_assert ("system=bsd");          \
        builtin_assert ("system=OpenBSD");      \
        builtin_assert ("system=OpenBSD");      \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
/* Layout of source language data types.  */
/* Layout of source language data types.  */
 
 
/* This must agree with <machine/ansi.h> */
/* This must agree with <machine/ansi.h> */
#undef SIZE_TYPE
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
#define SIZE_TYPE "unsigned int"
 
 
#undef PTRDIFF_TYPE
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
#define PTRDIFF_TYPE "int"
 
 
#undef WCHAR_TYPE
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
#define WCHAR_TYPE "int"
 
 
#undef WCHAR_TYPE_SIZE
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
#define WCHAR_TYPE_SIZE 32
 
 
/* Assembler format: overall framework.  */
/* Assembler format: overall framework.  */
 
 
#undef ASM_APP_ON
#undef ASM_APP_ON
#define ASM_APP_ON "#APP\n"
#define ASM_APP_ON "#APP\n"
 
 
#undef ASM_APP_OFF
#undef ASM_APP_OFF
#define ASM_APP_OFF "#NO_APP\n"
#define ASM_APP_OFF "#NO_APP\n"
 
 
/* Stack & calling: aggregate returns.  */
/* Stack & calling: aggregate returns.  */
 
 
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
/* Don't default to pcc-struct-return, because gcc is the only compiler, and
   we want to retain compatibility with older gcc versions.  */
   we want to retain compatibility with older gcc versions.  */
#define DEFAULT_PCC_STRUCT_RETURN 0
#define DEFAULT_PCC_STRUCT_RETURN 0
 
 
/* Assembler format: alignment output.  */
/* Assembler format: alignment output.  */
 
 
/* Kludgy test: when gas is upgraded, it will have p2align, and no problems
/* Kludgy test: when gas is upgraded, it will have p2align, and no problems
   with nops.  */
   with nops.  */
#ifndef HAVE_GAS_MAX_SKIP_P2ALIGN
#ifndef HAVE_GAS_MAX_SKIP_P2ALIGN
/* i386 OpenBSD still uses an older gas that doesn't insert nops by default
/* i386 OpenBSD still uses an older gas that doesn't insert nops by default
   when the .align directive demands to insert extra space in the text
   when the .align directive demands to insert extra space in the text
   segment.  */
   segment.  */
#undef ASM_OUTPUT_ALIGN
#undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
  if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
  if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
#endif
#endif
 
 
/* Stack & calling: profiling.  */
/* Stack & calling: profiling.  */
 
 
/* OpenBSD's profiler recovers all information from the stack pointer.
/* OpenBSD's profiler recovers all information from the stack pointer.
   The icky part is not here, but in machine/profile.h.  */
   The icky part is not here, but in machine/profile.h.  */
#undef FUNCTION_PROFILER
#undef FUNCTION_PROFILER
#define FUNCTION_PROFILER(FILE, LABELNO)  \
#define FUNCTION_PROFILER(FILE, LABELNO)  \
  fputs (flag_pic ? "\tcall mcount@PLT\n": "\tcall mcount\n", FILE);
  fputs (flag_pic ? "\tcall mcount@PLT\n": "\tcall mcount\n", FILE);
 
 
/* Assembler format: exception region output.  */
/* Assembler format: exception region output.  */
 
 
/* All configurations that don't use elf must be explicit about not using
/* All configurations that don't use elf must be explicit about not using
   dwarf unwind information.  */
   dwarf unwind information.  */
#define DWARF2_UNWIND_INFO 0
#define DWARF2_UNWIND_INFO 0
 
 
#undef ASM_PREFERRED_EH_DATA_FORMAT
#undef ASM_PREFERRED_EH_DATA_FORMAT
 
 
#undef ASM_COMMENT_START
#undef ASM_COMMENT_START
#define ASM_COMMENT_START ";#"
#define ASM_COMMENT_START ";#"
 
 
/* OpenBSD gas currently does not support quad, so do not use it.  */
/* OpenBSD gas currently does not support quad, so do not use it.  */
#undef ASM_QUAD
#undef ASM_QUAD
 
 

powered by: WebSVN 2.1.0

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