Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2011 14:33:30 +0000 (UTC)
From:      Fabien Thomas <fabient@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r227551 - stable/8/contrib/gcc/config/arm
Message-ID:  <201111161433.pAGEXUZd052661@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fabient
Date: Wed Nov 16 14:33:30 2011
New Revision: 227551
URL: http://svn.freebsd.org/changeset/base/227551

Log:
  MFC r227391:
  Import gcc fix for -fstack-protector that produces segfaulting
  binaries on arm/armel.
  
  Related gcc bug:
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35965
  
  Author kindly accepted that all of his patches can be use as GPLv2.
  
  PR:	161128

Modified:
  stable/8/contrib/gcc/config/arm/arm.c
Directory Properties:
  stable/8/contrib/gcc/   (props changed)

Modified: stable/8/contrib/gcc/config/arm/arm.c
==============================================================================
--- stable/8/contrib/gcc/config/arm/arm.c	Wed Nov 16 10:11:55 2011	(r227550)
+++ stable/8/contrib/gcc/config/arm/arm.c	Wed Nov 16 14:33:30 2011	(r227551)
@@ -3217,7 +3217,8 @@ legitimize_pic_address (rtx orig, enum m
 	  gcc_assert (!no_new_pseudos);
 	  if (arm_pic_register != INVALID_REGNUM)
 	    {
-	      cfun->machine->pic_reg = gen_rtx_REG (Pmode, arm_pic_register);
+	      if (!cfun->machine->pic_reg)
+		cfun->machine->pic_reg = gen_rtx_REG (Pmode, arm_pic_register);
 
 	      /* Play games to avoid marking the function as needing pic
 		 if we are being called as part of the cost-estimation
@@ -3229,7 +3230,8 @@ legitimize_pic_address (rtx orig, enum m
 	    {
 	      rtx seq;
 
-	      cfun->machine->pic_reg = gen_reg_rtx (Pmode);
+	      if (!cfun->machine->pic_reg)
+		  cfun->machine->pic_reg = gen_reg_rtx (Pmode);
 
 	      /* Play games to avoid marking the function as needing pic
 		 if we are being called as part of the cost-estimation



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111161433.pAGEXUZd052661>