[Bug c/70742] Support div as a builtin

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 Andrew Pinski changed: What|Removed |Added Assignee|andres.tiraboschi@tallertec |unassigned at gcc dot gnu.org

[Bug c/70742] Support div as a builtin

2021-06-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 Andrew Pinski changed: What|Removed |Added CC||david at westcontrol dot com --- Comment

[Bug c/70742] Support div as a builtin

2019-03-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #14 from Richard Biener --- We could implement __builtin_ variants with a different ABI, returning the quotiend and remainder in a (GCC extension) _Complex int type. The library would then do #define div(a, b) ({ div_t res; _Complex

[Bug c/70742] Support div as a builtin

2018-03-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 Eric Gallager changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c/70742] Support div as a builtin

2016-04-22 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #12 from joseph at codesourcery dot com --- A script that assumes build = host = target is obviously unacceptable. You can't do any compilations for $target at all when configuring GCC, only when configuring its runtime libraries su

[Bug c/70742] Support div as a builtin

2016-04-21 Thread marcos.diaz at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #11 from Marcos Diaz --- (In reply to Daniel Gutson from comment #10) > (In reply to Marc Glisse from comment #8) > > "The div, ldiv, and lldiv functions return a structure of type div_t, > > ldiv_t, and lldiv_t, respectively, compris

[Bug c/70742] Support div as a builtin

2016-04-21 Thread daniel.gutson at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #10 from Daniel Gutson --- (In reply to Marc Glisse from comment #8) > "The div, ldiv, and lldiv functions return a structure of type div_t, > ldiv_t, and lldiv_t, respectively, comprising both the quotient and the > remainder. The st

[Bug c/70742] Support div as a builtin

2016-04-21 Thread daniel.gutson at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #9 from Daniel Gutson --- Created attachment 38323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38323&action=edit sample script to be called from the build system

[Bug c/70742] Support div as a builtin

2016-04-21 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #8 from Marc Glisse --- "The div, ldiv, and lldiv functions return a structure of type div_t, ldiv_t, and lldiv_t, respectively, comprising both the quotient and the remainder. The structures shall contain (in either order) the member

[Bug c/70742] Support div as a builtin

2016-04-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #7 from Richard Biener --- The compiler would need to provide div_t as a builtin-type. Or the standard specifies it enough so that layout issues are no worry.

[Bug c/70742] Support div as a builtin

2016-04-20 Thread daniel.gutson at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #6 from Daniel Gutson --- (In reply to Marc Glisse from comment #5) > It seems to me that the reason we don't already have div as a builtin is > that we need to know the layout of div_t. > > In a header, you don't really need inline

[Bug c/70742] Support div as a builtin

2016-04-20 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #5 from Marc Glisse --- It seems to me that the reason we don't already have div as a builtin is that we need to know the layout of div_t. In a header, you don't really need inline asm: inline div_t div(int a, int b){ div_t q; q.quot

[Bug c/70742] Support div as a builtin

2016-04-20 Thread daniel.gutson at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #4 from Daniel Gutson --- Please assign this to andres.tirabos...@tallertechnologies.com

[Bug c/70742] Support div as a builtin

2016-04-20 Thread daniel.gutson at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #3 from Daniel Gutson --- (In reply to Andrew Pinski from comment #1) > Let me reword the summary. what you want is div and ldiv and imaxdiv to be and lldiv > supported as a builtin, in that it expands correctly to do the div/mod

[Bug c/70742] Support div as a builtin

2016-04-20 Thread daniel.gutson at tallertechnologies dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 --- Comment #2 from Daniel Gutson --- (In reply to Andrew Pinski from comment #1) > Let me reword the summary. what you want is div and ldiv and imaxdiv to be > supported as a builtin, in that it expands correctly to do the div/mod > inlined. >

[Bug c/70742] Support div as a builtin

2016-04-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70742 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Status|U