This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR 4068
- From: Dara Hazeghi <dhazeghi at yahoo dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: jsm28 at cam dot ac dot uk
- Date: Wed, 18 Jun 2003 18:37:20 -0700 (PDT)
- Subject: [PATCH] PR 4068
Hello,
the included one line patch originally included with
PR 4068 by Joseph Myers allows gcc to build for
x86/Linux-glibc 2.0 cross. I don't have a glibc 2.0
host, so I can't test whether gcc bootstrap there, but
it bootstraps on i686-linux, and the cross compiler
generates functioning executables. In any case, I
hardly see how it can make things worse... Okay for
mainline and branch?
Thanks,
Dara
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
2002-11-19 Joseph Myers jsm28@cam.ac.uk
* config/i386/linux.h: don't include headers glibc 2.0.x doesn't have
*** config/i386/linux.h.old 2003-06-18 08:21:35.000000000 -0700
--- config/i386/linux.h 2003-06-18 08:44:18.000000000 -0700
*************** Boston, MA 02111-1307, USA. */
*** 230,240 ****
state data appropriately. See unwind-dw2.c for the structs. */
#ifdef IN_LIBGCC2
! /* There's no sys/ucontext.h for some (all?) libc1, so no
signal-turned-exceptions for them. There's also no configure-run for
the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the
target libc1 macro should be enough. */
! #ifndef USE_GNULIBC_1
#include <signal.h>
#include <sys/ucontext.h>
--- 230,240 ----
state data appropriately. See unwind-dw2.c for the structs. */
#ifdef IN_LIBGCC2
! /* There's no sys/ucontext.h for some (all?) libc1 nor glibc 2.0.x, so no
signal-turned-exceptions for them. There's also no configure-run for
the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the
target libc1 macro should be enough. */
! #if !(defined (USE_GNULIBC_1) || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0))
#include <signal.h>
#include <sys/ucontext.h>