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]

[PATCH][C++] Fix PR40834: [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006


On Fri, Jul 24, 2009 at 3:20 PM, H.J. Lu<hjl.tools@gmail.com> wrote:
> On Fri, Jul 24, 2009 at 2:04 PM, Richard Guenther<rguenther@suse.de> wrote:
>>
>> This fixes an issue with my last patch to genericization. ?Walking
>> BIND_EXPRs need to include BIND_EXPR_VARs in the same way as walk_tree
>> would do it. ?Fixed by calling walk_tree again on the BIND_EXPR after
>> recording it on the stack.
>>
>> Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk?
>>
>> Thanks,
>> Richard.
>>
>> 2009-07-24 ?Richard Guenther ?<rguenther@suse.de>
>>
>> ? ? ? ?PR c++/40834
>> ? ? ? ?* cp-gimplify.c (cp_genericize_r): Properly walk the BIND_EXPR
>> ? ? ? ?vars.
>>
>
> You should include the run-time testcase in
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40834
>

Here is the fix + testcase, Tested on Linux/ia32 and Linux/Intel64. Ok
for trunk?

Thanks.


-- 
H.J.
gcc/cp/

2009-07-28  Richard Guenther  <rguenther@suse.de>

	PR c++/40834
	* cp-gimplify.c (cp_genericize_r): Properly walk the BIND_EXPR
	vars.

gcc/testsuite/

2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/40834
	* g++.dg/other/pr40834.C: New.

Attachment: gcc-pr40834-1.patch
Description: Text document


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