summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-24 08:47:19 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-24 10:54:11 -0700
commit9037eb213339b72b2ad6f927b301f1730ff0cb16 (patch)
tree9d6748fa31d02f2a9c67ffb2f0aa7e38538117c2 /ChangeLog
parentd8469e2264e8da1f78174caf25780a8fe5ccac05 (diff)
downloadgcc-hjl/pr82699.tar.gz
i386: Insert ENDBR before the profiling counter callhjl/pr82699
ENDBR must be the first instruction of a function. This patch queues ENDBR if we need to put the profiling counter call before the prologue and generate ENDBR before the profiling counter call. gcc/ PR target/82699 * config/i386/i386.c (rest_of_insert_endbranch): Set endbr_queued_at_entrance to true and don't insert ENDBR if x86_function_profiler will be called. (x86_function_profiler): Insert ENDBR if endbr_queued_at_entrance is true. * config/i386/i386.h (machine_function): Add endbr_queued_at_entrance. gcc/testsuite/ PR target/82699 * gcc.target/i386/pr82699-1.c: New file. * gcc.target/i386/pr82699-2.c: Likewise. * gcc.target/i386/pr82699-3.c: Likewise. * gcc.target/i386/pr82699-4.c: Likewise. * gcc.target/i386/pr82699-5.c: Likewise. * gcc.target/i386/pr82699-6.c: Likewise.
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions