public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/60070] New: An option to disable all floating-pont
@ 2014-02-05  4:04 hpa at zytor dot com
  2014-02-05  4:19 ` [Bug middle-end/60070] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hpa at zytor dot com @ 2014-02-05  4:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60070

            Bug ID: 60070
           Summary: An option to disable all floating-pont
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hpa at zytor dot com

In the Linux kernel, and quite possibly in other standalone/embedded
environments, the use of any floating-point state or instructions is an error.

It would be nice to have a single option to have gcc error out on any floating
point use, rather than having to chase options.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/60070] An option to disable all floating-pont
  2014-02-05  4:04 [Bug c/60070] New: An option to disable all floating-pont hpa at zytor dot com
@ 2014-02-05  4:19 ` pinskia at gcc dot gnu.org
  2014-08-04  8:32 ` thopre01 at gcc dot gnu.org
  2021-11-29  4:06 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-02-05  4:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60070

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Some targets have this option.  

Like AARCH64:
mgeneral-regs-only
Target Report RejectNegative Mask(GENERAL_REGS_ONLY)
Generate code which uses only the general registers


I rather see this as a target specific option and not a single option as it is
a target specific problem and some targets don't have floating point/vector
registers.  


Also some targets having some support for having vector/floating point in the
kernel.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/60070] An option to disable all floating-pont
  2014-02-05  4:04 [Bug c/60070] New: An option to disable all floating-pont hpa at zytor dot com
  2014-02-05  4:19 ` [Bug middle-end/60070] " pinskia at gcc dot gnu.org
@ 2014-08-04  8:32 ` thopre01 at gcc dot gnu.org
  2021-11-29  4:06 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: thopre01 at gcc dot gnu.org @ 2014-08-04  8:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60070

thopre01 at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thopre01 at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |thopre01 at gcc dot gnu.org

--- Comment #2 from thopre01 at gcc dot gnu.org ---
It seems to me that the comment from Peter Anvin rather advocates for a target
independent option to check whether float are used or not. I'm actually working
on such a patch and should have soon something to show.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/60070] An option to disable all floating-pont
  2014-02-05  4:04 [Bug c/60070] New: An option to disable all floating-pont hpa at zytor dot com
  2014-02-05  4:19 ` [Bug middle-end/60070] " pinskia at gcc dot gnu.org
  2014-08-04  8:32 ` thopre01 at gcc dot gnu.org
@ 2021-11-29  4:06 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-29  4:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60070

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
For x86_64, the option was added with PR 70738.

I don't know if this would be an useful option that is general though. Each
target will implement it differently too.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-29  4:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-05  4:04 [Bug c/60070] New: An option to disable all floating-pont hpa at zytor dot com
2014-02-05  4:19 ` [Bug middle-end/60070] " pinskia at gcc dot gnu.org
2014-08-04  8:32 ` thopre01 at gcc dot gnu.org
2021-11-29  4:06 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).