This is the mail archive of the gcc-bugs@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]

-pg vs regparm(2) on linux


target = i386-linux

Am I correct in saying -pg and the regparm attribute don't mix
well together (in current sources)?

Studying gcc-2.95.2, the setup for the call to mcount clobbers edx
(the second parameter reg), and I'm guessing mcount isn't guaranteed
to not clobber edx.  The parameter registers should be saved before
the call to mcount but that's not happening.


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