public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/107204] New: gcc/config/sh/divtab-sh4.cc: 2 * possible float conversion overflow
@ 2022-10-10 20:01 dcb314 at hotmail dot com
  2022-10-10 20:43 ` [Bug target/107204] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: dcb314 at hotmail dot com @ 2022-10-10 20:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107204
           Summary: gcc/config/sh/divtab-sh4.cc: 2 * possible float
                    conversion overflow
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.
trunk.git/gcc/config/sh/divtab-sh4.cc:75:34: warning: Undefined behaviour:
float (5.72662e+09) to integer conversion overflow. [floatConversionOverflow]

Source code is

      printf ("\t.long\t0x%X\n", (unsigned) r);

2.

trunk.git/gcc/config/sh/divtab-sh4-300.cc:67:34: warning: Undefined behaviour:
float (8.58993e+09) to integer conversion overflow. [floatConversionOverflow]

Duplicate.

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

* [Bug target/107204] gcc/config/sh/divtab-sh4.cc: 2 * possible float conversion overflow
  2022-10-10 20:01 [Bug target/107204] New: gcc/config/sh/divtab-sh4.cc: 2 * possible float conversion overflow dcb314 at hotmail dot com
@ 2022-10-10 20:43 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-10 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh this code is not used directly.
The table after it is generated is copied into libgcc/config/sh/lib1funcs.S .

So I doubt anyone has ran this code recently (since 2006 when it was added).

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

end of thread, other threads:[~2022-10-10 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10 20:01 [Bug target/107204] New: gcc/config/sh/divtab-sh4.cc: 2 * possible float conversion overflow dcb314 at hotmail dot com
2022-10-10 20:43 ` [Bug target/107204] " 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).