Skip to content

Commit

Permalink
xtensa: Fix PR target/78603
Browse files Browse the repository at this point in the history
2016-11-29  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
	* config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
	overhead loop start between a call and its CALL_ARG_LOCATION
	note.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242979 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jcmvbkbc committed Nov 29, 2016
1 parent 43ef330 commit ca7dda2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2016-11-29 Max Filippov <jcmvbkbc@gmail.com>

PR target/78603
* config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
overhead loop start between a call and its CALL_ARG_LOCATION
note.

2016-11-29 Waldemar Brodkorb <wbx@openadk.org>

* config/bfin/linux.h (CPP_SPEC): Define.
Expand Down
5 changes: 4 additions & 1 deletion gcc/config/xtensa/xtensa.c
Original file line number Diff line number Diff line change
Expand Up @@ -4167,7 +4167,10 @@ hwloop_optimize (hwloop_info loop)
entry_after = BB_END (entry_bb);
while (DEBUG_INSN_P (entry_after)
|| (NOTE_P (entry_after)
&& NOTE_KIND (entry_after) != NOTE_INSN_BASIC_BLOCK))
&& NOTE_KIND (entry_after) != NOTE_INSN_BASIC_BLOCK
/* Make sure we don't split a call and its corresponding
CALL_ARG_LOCATION note. */
&& NOTE_KIND (entry_after) != NOTE_INSN_CALL_ARG_LOCATION))
entry_after = PREV_INSN (entry_after);

emit_insn_after (seq, entry_after);
Expand Down

0 comments on commit ca7dda2

Please sign in to comment.