[ARC] Rework code for profiling.
authorClaudiu Zissulescu <claziss@synopsys.com>
Fri, 16 Dec 2016 12:56:21 +0000 (13:56 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Fri, 16 Dec 2016 12:56:21 +0000 (13:56 +0100)
commite04ea1daa924a2dd211ef5e222b42c4f9e29d8e4
treea94285599d8bd451e45d16b1e609c3f8ed57acb4
parentd476b53c3651786fa283f89ad9434731f4f902e9
[ARC] Rework code for profiling.

gcc/
2016-12-16  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.h (LINK_SPEC): Tidy up.
(ENDFILE_SPEC): Likewise.
(LIB_SPEC): Likewise.
(STARTFILE_SPEC): Include gcrt0 when profiling.
(FUNCTION_PROFILER): Use __mcount.
* config/arc/arc.opt (mucb-mcount): Remove.
* doc/invoke.texi (ARC): Remove mucb-mcount doc.
* arc/arc-protos.h (arc_profile_call): Remove.
* config/arc/arc.c (write_profile_sections): Likewise.
(arc_profile_call): Likewise.
(unspec_prof_hash): Likewise.
(unspec_prof_htab_eq): Likewise.
(arc_legitimate_constant_p): Remove UNSPEC_PROF.
(arc_reorg): Remove call to write_profile_sections.
* config/arc/arc.md (call): Remove call to arc_profile_call.
(call_value): Likewise.
(sibcall): Likewise.
(sibcall_value): Likewise.
(define_constants): Remove UNSPEC_PROF.

libgcc/
* config.host (arc*-*-linux-uclibc*): Remove libgmon, crtg, and
crtgend.
(arc*-*-elf*): Likewise.
* config/arc/t-arc: Remove old gmon lib targets.
* config/arc/crtg.S: Remove.
* config/arc/crtgend.S: Likewise.
* config/arc/gmon/atomic.h: Likewise.
* config/arc/gmon/auxreg.h: Likewise.
* config/arc/gmon/dcache_linesz.S: Likewise.
* config/arc/gmon/gmon.c: Likewise.
* config/arc/gmon/machine-gmon.h: Likewise.
* config/arc/gmon/mcount.c: Likewise.
* config/arc/gmon/prof-freq-stub.S: Likewise.
* config/arc/gmon/prof-freq.c: Likewise.
* config/arc/gmon/profil.S: Likewise.
* config/arc/gmon/sys/gmon.h: Likewise.
* config/arc/gmon/sys/gmon_out.h: Likewise.
* config/arc/t-arc-newlib: Likewise.
* config/arc/t-arc700-uClibc: Renamed to t-arc-uClibc.

From-SVN: r243742
26 files changed:
gcc/ChangeLog
gcc/config/arc/arc-protos.h
gcc/config/arc/arc.c
gcc/config/arc/arc.h
gcc/config/arc/arc.md
gcc/config/arc/arc.opt
gcc/doc/invoke.texi
libgcc/ChangeLog
libgcc/config.host
libgcc/config/arc/crtg.S [deleted file]
libgcc/config/arc/crtgend.S [deleted file]
libgcc/config/arc/gmon/atomic.h [deleted file]
libgcc/config/arc/gmon/auxreg.h [deleted file]
libgcc/config/arc/gmon/dcache_linesz.S [deleted file]
libgcc/config/arc/gmon/gmon.c [deleted file]
libgcc/config/arc/gmon/machine-gmon.h [deleted file]
libgcc/config/arc/gmon/mcount.c [deleted file]
libgcc/config/arc/gmon/prof-freq-stub.S [deleted file]
libgcc/config/arc/gmon/prof-freq.c [deleted file]
libgcc/config/arc/gmon/profil.S [deleted file]
libgcc/config/arc/gmon/sys/gmon.h [deleted file]
libgcc/config/arc/gmon/sys/gmon_out.h [deleted file]
libgcc/config/arc/t-arc
libgcc/config/arc/t-arc-newlib [deleted file]
libgcc/config/arc/t-arc-uClibc [new file with mode: 0644]
libgcc/config/arc/t-arc700-uClibc [deleted file]