GCC Bugzilla – Attachment 35342 Details for
Bug 65779
[5 Regression] undefined local symbol on powerpc [regression]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
prototype patch
pr65779.diff (text/plain), 1.52 KB, created by
Alan Modra
on 2015-04-17 05:19:50 UTC
(
hide
)
Description:
prototype patch
Filename:
MIME Type:
Creator:
Alan Modra
Created:
2015-04-17 05:19:50 UTC
Size:
1.52 KB
patch
obsolete
>Index: gcc/shrink-wrap.c >=================================================================== >--- gcc/shrink-wrap.c (revision 222160) >+++ gcc/shrink-wrap.c (working copy) >@@ -182,6 +182,19 @@ live_edge_for_reg (basic_block bb, int regno, int > return live_edge; > } > >+bool >+debug_uses_reg (rtx pat, unsigned int regno) >+{ >+ subrtx_iterator::array_type array; >+ FOR_EACH_SUBRTX (iter, array, pat, NONCONST) >+ { >+ const_rtx x = *iter; >+ if (REG_P (x) && REGNO (x) == regno) >+ return true; >+ } >+ return false; >+} >+ > /* Try to move INSN from BB to a successor. Return true on success. > USES and DEFS are the set of registers that are used and defined > after INSN in BB. SPLIT_P indicates whether a live edge from BB >@@ -200,6 +213,7 @@ move_insn_for_shrink_wrap (basic_block bb, rtx_ins > unsigned int end_sregno = FIRST_PSEUDO_REGISTER; > basic_block next_block; > edge live_edge; >+ rtx_insn *dinsn; > > /* Look for a simple register assignment. We don't use single_set here > because we can't deal with any CLOBBERs, USEs, or REG_UNUSED secondary >@@ -427,6 +441,17 @@ move_insn_for_shrink_wrap (basic_block bb, rtx_ins > } > > emit_insn_after (PATTERN (insn), bb_note (bb)); >+ for (dinsn = insn; >+ dinsn && dinsn != NEXT_INSN (BB_END (bb)); >+ dinsn = NEXT_INSN (dinsn)) >+ { >+ if (DEBUG_INSN_P (dinsn) >+ && (debug_uses_reg (INSN_VAR_LOCATION_LOC (dinsn), dregno))) >+ { >+ INSN_VAR_LOCATION_LOC (dinsn) = gen_rtx_UNKNOWN_VAR_LOC (); >+ break; >+ } >+ } > delete_insn (insn); > return true; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 65779
:
35323
| 35342 |
37389