[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #7 from Martin Liška --- Created attachment 41233 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41233&action=edit Another test-case There's another test-case which is sensible to -O, which causes an inlining to happen and afte

[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #6 from Martin Liška --- Thanks both. Better error than a strange behavior. Well, would it worth for somehow more explicitly document that clobbering stack pointer is a wrong think/invalid?

[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #5 from Jakub Jelinek --- I think we have other PRs that ICE or do bad things if "esp"/"rsp" is clobbered in inline-asm, e.g. PR80367 recently.

[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #4 from Uroš Bizjak --- (In reply to Martin Liška from comment #3) > (In reply to Uroš Bizjak from comment #2) > > You should not clobber esp. > > Works for me, thanks. Can you please explain me why it makes problem? Is it > because

[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #3 from Martin Liška --- (In reply to Uroš Bizjak from comment #2) > You should not clobber esp. Works for me, thanks. Can you please explain me why it makes problem? Is it because not enough registers or?

[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #2 from Uroš Bizjak --- You should not clobber esp.

[Bug inline-asm/80470] Can't compile wait4 implementation on i586 target

2017-04-20 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80470 --- Comment #1 from Martin Liška --- Created attachment 41232 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41232&action=edit test-case