This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] compileflags for libgcc
On Sat, 2004-01-10 at 05:20, Richard Zidlicky wrote:
> it affects soubroutines that are only ever called from code
> compiled with -m68060 or -m68020-60 flag.
This isn't obvious, but it looks like you are making assumptions based
on patterns in the md file. The 68020 has patterns defined for all long
long operations in libgcc2, so the libgcc2 routines only get used for
code compiled for 68060. This means you are relying on an undocumented
assumption. And there is the question of whether this is a safe
assumption, since libgcc2 and the m68k.md file are not maintained in
parallel, so there is no guarantee that this assumption will always be
true.
> do you mean
> TARGET_LIBGCC2_CFLAGS = -m68020-60
> ..that would work quite well for everyone I think.
Yes. This would make sense to anyone looking at the code later even
without a comment, we are trying to compile a single libgcc2 that works
for all processors from the '020 to the '060.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com