RE: [PATCH] Disable -fuse-caller-save when -pg is active

2014-12-18 Thread Radovan Obradovic
Patch has been tested with DejaGnu gcc test suite on mips32r2 cross compiler and bootstrapped and tested on x86_64 native compiler. Radovan From: Jeff Law [l...@redhat.com] Sent: Monday, November 17, 2014 1:18 PM To: Radovan Obradovic; gcc-patches

RE: [PATCH] Disable -fuse-caller-save when -pg is active

2014-11-14 Thread Radovan Obradovic
Thank you for the quick reply. > Please repost after updating to test HAVE_prologue and HAVE_epilogue and > adding a testcase. I have managed to reproduce the problem on the small test case on mips32, but the test is architecture independent and should probably fail on many other ports without

[PATCH] Disable -fuse-caller-save when -pg is active

2014-11-13 Thread Radovan Obradovic
A problem is detected with building Linux kernel on MIPS platform when both -fuse-caller-save and -pg options are present. The reason for this is that -fuse-caller-save relies on the analysis of RTL code, but when profiling is active (with -pg option) the code is instrumented by adding a call to m