[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-31 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 --- Comment #7 from H.J. Lu --- (In reply to Anatol from comment #6) > > I don't believe compiler needs to do all that. > > I might miss something, could you please share why? > > The check for FXSAVE can be a compile time: if compiled for

[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-30 Thread anatol.pomozov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 --- Comment #6 from Anatol --- > I don't believe compiler needs to do all that. I might miss something, could you please share why? The check for FXSAVE can be a compile time: if compiled for Pentium II tune or later then use FXSAVE otherwise

[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 --- Comment #5 from H.J. Lu --- (In reply to Anatol from comment #4) > > you need to save the complete vector state > > It is a good point. Would it make sense for compiler to do it? Instead of > forcing users to track if SSE registers are used

[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-21 Thread anatol.pomozov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 --- Comment #4 from Anatol --- > you need to save the complete vector state It is a good point. Would it make sense for compiler to do it? Instead of forcing users to track if SSE registers are used and doing xsave/xrstor manually?

[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-16 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 --- Comment #3 from H.J. Lu --- (In reply to Anatol from comment #2) > Theoretically it is possible to do things like this manually. Track > functions x86 extensions usage and save registers accordingly. But I would > love to see a more

[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-16 Thread anatol.pomozov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 --- Comment #2 from Anatol --- Theoretically it is possible to do things like this manually. Track functions x86 extensions usage and save registers accordingly. But I would love to see a more automated and less error-prone way to do it. Similar

[Bug target/81709] __attribute__((interrupt)) should handle SSE registers

2017-08-07 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81709 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---