This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] hppa: Fix conflict between -pg and -mlong-call options


The attached patch fixes an oversight in hppa_profile_hook. We need to mark the SYMBOL_REF for _mcount as a function label. When the -mlong-call option is used, the call to _mcount is converted to an indirect call. In that case, we need the function pointer to point to a procedure label which points to a function descriptor. This is necessary to correctly load the PIC register. Marking
the SYMBOL_REF causes this to happen.

Tested on hppa-unknown-linux-gnu with no regressions.  Committed to trunk.

This bug caused a build error for gcl. Thanks to Camm Maguire for debugging the problem.

Dave

--
John David Anglin  dave.anglin@bell.net

Attachment: pa.c.d
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]