This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51323] [4.6/4.7 Regression] g++ confuses this with function argument in optimized call
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Dec 2011 08:15:36 +0000
- Subject: [Bug middle-end/51323] [4.6/4.7 Regression] g++ confuses this with function argument in optimized call
- Auto-submitted: auto-generated
- References: <bug-51323-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51323
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-05 08:15:36 UTC ---
Author: jakub
Date: Mon Dec 5 08:15:23 2011
New Revision: 182000
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182000
Log:
PR middle-end/51323
PR middle-end/50074
* calls.c (internal_arg_pointer_exp_state): New variable.
(internal_arg_pointer_based_exp_1,
internal_arg_pointer_exp_scan): New functions.
(internal_arg_pointer_based_exp): New function.
(mem_overlaps_already_clobbered_arg_p): Use it.
(expand_call): Free internal_arg_pointer_exp_state.cache vector
and clear internal_arg_pointer_exp_state.scan_start.
* gcc.c-torture/execute/pr51323.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr51323.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/testsuite/ChangeLog