public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/66630] New: Missing ubsan/ftrapv error
@ 2015-06-22 16:46 mpolacek at gcc dot gnu.org
  2015-06-22 16:53 ` [Bug middle-end/66630] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-06-22 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66630
           Summary: Missing ubsan/ftrapv error
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

int
main (void)
{
  int i = -__INT_MAX__ - 1;
  int j = -i - 1;
  return j;
}

$ xgcc -fsanitize=undefined a.c; ./a.out

says nothing :(.  We should report the overflow when computing -i.


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

end of thread, other threads:[~2024-04-03  4:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 16:46 [Bug middle-end/66630] New: Missing ubsan/ftrapv error mpolacek at gcc dot gnu.org
2015-06-22 16:53 ` [Bug middle-end/66630] " pinskia at gcc dot gnu.org
2015-06-22 16:55 ` mpolacek at gcc dot gnu.org
2015-06-23  8:22 ` rguenth at gcc dot gnu.org
2021-07-19 22:54 ` pinskia at gcc dot gnu.org
2024-04-03  4:59 ` 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).