This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Merged ARM-Thumb branch...
- To: Scott Bambrough <scottb at netwinder dot org>
- Subject: Re: Merged ARM-Thumb branch...
- From: Philip Blundell <pb at labs dot futuretv dot com>
- Date: Wed, 09 Feb 2000 16:29:01 +0000
- cc: Richard Earnshaw <richard dot earnshaw at arm dot com>, Nick Clifton <nickc at cygnus dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- References: <38A19161.3C0C1ED@netwinder.org>
>1) gcc/config/arm/linux-oldld.h is in my 2.95.2 patches and the mainline, but
>not in the branch. It should have been moved over I believe.
Agreed.
>3) FUNCTION_PROFILER is defined in arm.h. It uses two other defines
>(ARM_FUNCTION_PROFILER, THUMB_FUNCTION_PROFILER). In linux-elf.h
>FUNCTION_PROFILER is undefined, then redefined. I need to test this again, bu
>t
>the definition in linux-elf.h is the one I have been using since 2.8.1 with
>glibc 2.x. I think it should probably undefine ARM_FUNCTION_PROFILER then
>redefine it, rather than FUNCTION_PROFILER. The other alternative is the
>current definition of ARM_PROFILER is broken, or needed for other platforms.
>Comments?
The ARM_/THUMB_FUNCTION_PROFILER macros are new in the branch. You're right
that linux-elf should probably override them instead of FUNCTION_PROFILER.
I imagine the existing ARM_PROFILER in arm.h is suitable for RISC iX and
NetBSD.
>- if (CONSTANT_P (operands[1]) && flag_pic)
>+ if (CONSTANT_P (operands[1]) || symbol_mentioned_p (operands[1])
>+ || label_mentioned_p (operands[1]) && flag_pic)
This patch was originally written by Pat, as far as I know. It's been in my
tree for years.
>Fri Jul 16 10:29:48 1999 Philip Blundell <pb@futuretv.com>
> * function.c (rtx_equal_for_addressof_p): New function.
> (purge_addressof_1): Use it instead of rtx_equal_p.
The patch you posted only includes the first of these changes, which is not
much use in isolation. :-)
As far as I know, this bug is still present, but I'm not at all convinced that
my patch is the right answer.
p.