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: [4.3 Regression] __builtin_strcpy doesn't work with -fstack-protector


Richard Guenther wrote:
> On Mon, Jan 19, 2009 at 9:29 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>> Hi,
>>
>> Gcc 4.3 may not set memory size correctly on x86 when inlining string
>> functions.  As the result, scheduler may move insns around and
>> generate wrong code.  This backport works for me.  OK for 4.3?
> 
> Please make sure this does not cause PR38868 to regress.

I don't think so; the cause of PR38868 is that better canonicalization
of trees causes more MEM_EXPRs to appear, which are wrong due to an
RTL-level bug similar to the one HJ is fixing here.

Even if so, we have a patch for PR38868 and you may try backport it as well.

Paolo


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