Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9392c110
Commit
9392c110
authored
Feb 12, 1993
by
John Hassey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reposition_prologue_and_epilogue_notes): Allow
for zero length prologue and epilogue list. From-SVN: r3465
parent
f3acae4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
48 deletions
+54
-48
gcc/function.c
+54
-48
No files found.
gcc/function.c
View file @
9392c110
...
...
@@ -4750,30 +4750,33 @@ reposition_prologue_and_epilogue_notes (f)
reorg has run. */
for
(
len
=
0
;
prologue
[
len
];
len
++
)
;
for
(
insn
=
f
;
insn
;
insn
=
NEXT_INSN
(
insn
))
if
(
GET_CODE
(
insn
)
==
NOTE
)
{
if
(
NOTE_LINE_NUMBER
(
insn
)
==
NOTE_INSN_PROLOGUE_END
)
note
=
insn
;
}
else
if
((
len
-=
contains
(
insn
,
prologue
))
==
0
)
{
/* Find the prologue-end note if we haven't already, and
move it to just after the last prologue insn. */
if
(
note
==
0
)
for
(
note
=
insn
;
note
=
NEXT_INSN
(
note
);)
if
(
GET_CODE
(
note
)
==
NOTE
&&
NOTE_LINE_NUMBER
(
note
)
==
NOTE_INSN_PROLOGUE_END
)
break
;
next
=
NEXT_INSN
(
note
);
prev
=
PREV_INSN
(
note
);
if
(
prev
)
NEXT_INSN
(
prev
)
=
next
;
if
(
next
)
PREV_INSN
(
next
)
=
prev
;
add_insn_after
(
note
,
insn
);
break
;
}
for
(
insn
=
f
;
len
&&
insn
;
insn
=
NEXT_INSN
(
insn
))
{
if
(
GET_CODE
(
insn
)
==
NOTE
)
{
if
(
NOTE_LINE_NUMBER
(
insn
)
==
NOTE_INSN_PROLOGUE_END
)
note
=
insn
;
}
else
if
((
len
-=
contains
(
insn
,
prologue
))
==
0
)
{
/* Find the prologue-end note if we haven't already, and
move it to just after the last prologue insn. */
if
(
note
==
0
)
{
for
(
note
=
insn
;
note
=
NEXT_INSN
(
note
);)
if
(
GET_CODE
(
note
)
==
NOTE
&&
NOTE_LINE_NUMBER
(
note
)
==
NOTE_INSN_PROLOGUE_END
)
break
;
}
next
=
NEXT_INSN
(
note
);
prev
=
PREV_INSN
(
note
);
if
(
prev
)
NEXT_INSN
(
prev
)
=
next
;
if
(
next
)
PREV_INSN
(
next
)
=
prev
;
add_insn_after
(
note
,
insn
);
}
}
}
if
(
epilogue
)
...
...
@@ -4785,30 +4788,33 @@ reposition_prologue_and_epilogue_notes (f)
reorg has run. */
for
(
len
=
0
;
epilogue
[
len
];
len
++
)
;
for
(
insn
=
get_last_insn
();
insn
;
insn
=
PREV_INSN
(
insn
))
if
(
GET_CODE
(
insn
)
==
NOTE
)
{
if
(
NOTE_LINE_NUMBER
(
insn
)
==
NOTE_INSN_EPILOGUE_BEG
)
note
=
insn
;
}
else
if
((
len
-=
contains
(
insn
,
epilogue
))
==
0
)
{
/* Find the epilogue-begin note if we haven't already, and
move it to just before the first epilogue insn. */
if
(
note
==
0
)
for
(
note
=
insn
;
note
=
PREV_INSN
(
note
);)
if
(
GET_CODE
(
note
)
==
NOTE
&&
NOTE_LINE_NUMBER
(
note
)
==
NOTE_INSN_EPILOGUE_BEG
)
break
;
next
=
NEXT_INSN
(
note
);
prev
=
PREV_INSN
(
note
);
if
(
prev
)
NEXT_INSN
(
prev
)
=
next
;
if
(
next
)
PREV_INSN
(
next
)
=
prev
;
add_insn_after
(
note
,
PREV_INSN
(
insn
));
break
;
}
for
(
insn
=
get_last_insn
();
len
&&
insn
;
insn
=
PREV_INSN
(
insn
))
{
if
(
GET_CODE
(
insn
)
==
NOTE
)
{
if
(
NOTE_LINE_NUMBER
(
insn
)
==
NOTE_INSN_EPILOGUE_BEG
)
note
=
insn
;
}
else
if
((
len
-=
contains
(
insn
,
epilogue
))
==
0
)
{
/* Find the epilogue-begin note if we haven't already, and
move it to just before the first epilogue insn. */
if
(
note
==
0
)
{
for
(
note
=
insn
;
note
=
PREV_INSN
(
note
);)
if
(
GET_CODE
(
note
)
==
NOTE
&&
NOTE_LINE_NUMBER
(
note
)
==
NOTE_INSN_EPILOGUE_BEG
)
break
;
}
next
=
NEXT_INSN
(
note
);
prev
=
PREV_INSN
(
note
);
if
(
prev
)
NEXT_INSN
(
prev
)
=
next
;
if
(
next
)
PREV_INSN
(
next
)
=
prev
;
add_insn_after
(
note
,
PREV_INSN
(
insn
));
}
}
}
}
#endif
/* HAVE_prologue or HAVE_epilogue */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment