This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [build] Move MD_UNWIND_SUPPORT to toplevel libgcc
- From: Richard Henderson <rth at redhat dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: Mike Stump <mikestump at comcast dot net>, gcc-patches at gcc dot gnu dot org, "Joseph S. Myers" <joseph at codesourcery dot com>, Paolo Bonzini <bonzini at gnu dot org>, Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, Douglas Rupp <rupp at gnat dot com>, Tristan Gingold <gingold at adacore dot com>, John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>, Steve Ellcey <sje at cup dot hp dot com>, Kai Tietz <ktietz at redhat dot com>, Dave Korn <dave dot korn dot cygwin at gmail dot com>, ktietz at redhat dot com
- Date: Wed, 01 Jun 2011 10:32:17 -0700
- Subject: Re: [build] Move MD_UNWIND_SUPPORT to toplevel libgcc
- References: <yddr57gry79.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <43A4E364-0CF4-445E-9AFD-19E52361FCFD@comcast.net> <yddd3ixczhj.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
On 06/01/2011 09:01 AM, Rainer Orth wrote:
> The problem with this approach is that some of the macros tested only
> live in gcc, not libgcc once the libgcc sources no longer include tm.h
> etc. E.g. look at i386/mingw32.h:
>
> #if !TARGET_64BIT_DEFAULT && !defined (TARGET_BI_ARCH)
> #define MD_UNWIND_SUPPORT "config/i386/w32-unwind.h"
> #endif
>
> Both TARGET_64BIT_DEFAULT and TARGET_BI_ARCH live in gcc only, so at
> least in the medium term, we need different tests here.
For this specific case, surely neither isn't relevant.
Surely the proper test, in the target header, is simply
#ifndef __MINGW64__
as one would write in normal user-level code.
r~