This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/21982] New: stratcliff.c: error: assuming signed overflow does not occur with -O3


https://sourceware.org/bugzilla/show_bug.cgi?id=21982

            Bug ID: 21982
           Summary: stratcliff.c: error: assuming signed overflow does not
                    occur with -O3
           Product: glibc
           Version: 2.27
            Status: NEW
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

With gcc 7 and -O3, I got

stratcliff.c: In function ‘do_test’:
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: error: assuming signed overflow does not occur when assuming that (X - c)
<= X is always true [-Werror=strict-overflow]
cc1: all warnings being treated as errors

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]