This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-pg vs regparm(2) on linux
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -pg vs regparm(2) on linux
- From: Doug Evans <dje at transmeta dot com>
- Date: Sat, 24 Mar 2001 14:50:14 -0800
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.