#define NO_PROFILE_COUNTERS as we don't need them. Otherwise both the
code to emit profile counters and the FUNCTION_PROFILER macro in this file emit/define the same label. For gcc 2.95.3 it used to work because FUNCTION_PROFILER used local numeric labels instead of using LABELNO, so it caused no conflict. This makes -pg code compilable.
This commit is contained in:
parent
9b7d071bab
commit
cb445c2c44
|
@ -96,6 +96,11 @@ Boston, MA 02111-1307, USA. */
|
|||
(TARGET_CPU_DEFAULT | USERMODE_BIT | TARGET_ENDIAN_DEFAULT)
|
||||
|
||||
|
||||
/* Output assembler code to FILE to call the profiler. */
|
||||
|
||||
#undef NO_PROFILE_COUNTERS
|
||||
#define NO_PROFILE_COUNTERS
|
||||
|
||||
#undef FUNCTION_PROFILER
|
||||
#define FUNCTION_PROFILER(STREAM,LABELNO) \
|
||||
do \
|
||||
|
|
Loading…
Reference in New Issue