patch-gcc_config_pa_t-openbsd 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $OpenBSD: patch-gcc_config_pa_t-openbsd,v 1.1 2013/01/16 19:28:48 pascal Exp $
  2. --- gcc/config/pa/t-openbsd.orig Wed Apr 4 10:33:01 2012
  3. +++ gcc/config/pa/t-openbsd Wed Apr 4 12:50:16 2012
  4. @@ -0,0 +1,37 @@
  5. +# Copyright (C) 1999, 2001, 2002, 2008 Free Software Foundation, Inc.
  6. +#
  7. +# This file is part of GCC.
  8. +#
  9. +# GCC is free software; you can redistribute it and/or modify
  10. +# it under the terms of the GNU General Public License as published by
  11. +# the Free Software Foundation; either version 3, or (at your option)
  12. +# any later version.
  13. +#
  14. +# GCC is distributed in the hope that it will be useful,
  15. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. +# GNU General Public License for more details.
  18. +#
  19. +# You should have received a copy of the GNU General Public License
  20. +# along with GCC; see the file COPYING3. If not see
  21. +# <http://www.gnu.org/licenses/>.
  22. +
  23. +#Plug millicode routines into libgcc.a We want these on both native and
  24. +#cross compiles. We use the "64-bit" routines because the "32-bit" code
  25. +#is broken for certain corner cases.
  26. +
  27. +LIB1ASMFUNCS = _divI _divU _remI _remU _div_const _mulI _dyncall
  28. +LIB1ASMSRC = pa/milli64.S
  29. +
  30. +# Compile libgcc2.a as PIC.
  31. +TARGET_LIBGCC2_CFLAGS = -fPIC -DELF=1
  32. +
  33. +LIB2FUNCS_EXTRA=fptr.c
  34. +LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/pa/linux-atomic.c
  35. +
  36. +fptr.c: $(srcdir)/config/pa/fptr.c
  37. + rm -f fptr.c
  38. + cp $(srcdir)/config/pa/fptr.c .
  39. +
  40. +# Compile crtbeginS.o and crtendS.o as PIC.
  41. +CRTSTUFF_T_CFLAGS_S = -fPIC