This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38239] [4.9, 5, 6 regression] The function mcount in gmon.o changes register ecx
- From: "ro at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Mar 2016 11:25:11 +0000
- Subject: [Bug target/38239] [4.9, 5, 6 regression] The function mcount in gmon.o changes register ecx
- Auto-submitted: auto-generated
- References: <bug-38239-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38239
--- Comment #8 from Rainer Orth <ro at gcc dot gnu.org> ---
Author: ro
Date: Mon Mar 21 11:24:40 2016
New Revision: 234366
URL: https://gcc.gnu.org/viewcvs?rev=234366&root=gcc&view=rev
Log:
Save call-clobbered registers in _mcount on 32-bit Solaris/x86 (PR
target/38239)
Backport from mainline
2016-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/38239
* config/gmon-sol2.c [__i386__] (_mcount): Save and restore
call-clobbered registers.
(internal_mcount): Remove __i386__ handling.
Modified:
branches/gcc-4_9-branch/libgcc/ChangeLog
branches/gcc-4_9-branch/libgcc/config/gmon-sol2.c