[Bug target/66457] gcc generates an extra "mov ??, %edx" before "call mcount" when "-pg" is enabled in cross compilation

2015-06-08 Thread leedypku at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66457 --- Comment #6 from Dangyi Liu --- (In reply to Andrew Pinski from comment #4) > Yes you don't define NO_PROFILE_COUNTERS . That is the default i386-elf > target defaults to NO_PROFILE_COUNTERS not being defined. Thank you very much!!! But I d

[Bug target/66457] gcc generates an extra "mov ??, %edx" before "call mcount" when "-pg" is enabled in cross compilation

2015-06-08 Thread leedypku at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66457 --- Comment #3 from Dangyi Liu --- This still happens on Linux. $ echo 'int main(){}' | ./i386-jos-elf-gcc -pg -m32 -S -x c -o - - main: pushl %ebp movl%esp, %ebp .LP0: movl$.LP0,%edx call_mcount

[Bug target/66457] gcc generates an extra "mov ??, %edx" before "call mcount" when "-pg" is enabled in cross compilation

2015-06-08 Thread leedypku at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66457 --- Comment #2 from Dangyi Liu --- (In reply to Andrew Pinski from comment #1) > Which compiler are you using to compile the cross compiler on Darwin? I > can't tell if you have tried a cross compiler to elf under linux either, > only the native

[Bug c/66457] New: gcc generates an extra "mov ??, %edx" before "call mcount" when "-pg" is enabled in cross compilation

2015-06-08 Thread leedypku at gmail dot com
sion: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: leedypku at gmail dot com Target Milestone: --- # On Darwin, with cross compilation, some code omitted $ echo 'i