This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, ARM] Fix PIC + -fstack-protector (PR35965)


On Tue, 2009-02-10 at 13:51 +0000, Julian Brown wrote:
> On Thu, 26 Jun 2008 11:08:39 +0100
> Julian Brown <julian@codesourcery.com> wrote:
> 
> > Hi,
> > 
> > This patch fixes the test case in PR35965. The problem was that using
> > a -fstack-protector[-all] option causes arm.c:require_pic_register()
> > to be called from function.c:stack_protect_prologue() (via
> > validize_mem). The logic in require_pic_register is either expecting
> > to be called "as part of the rtx cost estimation process", or whilst
> > emitting RTL for a function.
> > [...]
> 
> Ping? (For after 4.4 branches?)
> 
> (I received a mail this morning from a user who has run into the same
> problem this patch fixes, which reminded me of its existence... I've
> not re-tested it on mainline recently, but I can do if needed.)

The patch looks ok to me.

Hmm, do you know if -fstack-protector worked on ARM in gcc-4.1?  If so,
then we have a wrong-code regression here and this should be fixed in
4.4.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]