On 06/29/2011 12:41 PM, Joseph S. Myers wrote:
On Wed, 29 Jun 2011, Paolo Bonzini wrote:
On 06/20/2011 02:24 PM, Rainer Orth wrote:
* The only unwinder-related macro I haven't moved is
LIBGCC2_UNWIND_ATTRIBUTE. It is only defined gcc/config/mips/mips.h.
I suppose we would need a libgcc equivalent of tm.h for that,
something I didn't want to attack at this point.
Something like the attached?
This patch appears to create a *second* file called libgcc_tm.h, so there
is one created in gcc/ and one in libgcc/, which seems incredibly
confusing. By all means move the libgcc_tm.h logic to libgcc/ (though
tm.h will need to continue to include libgcc_tm.h for the target, until
the transition away from tm.h target macros in target code is complete and
code includes libgcc_tm.h directly instead), but don't have two headers
with the same name in different build directories.
Yes, the patch was not complete and only meant to be the plumbing for
what you describe.
I think Rainer missed the existence of libgcc_tm_file. :)
Paolo