https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114542
Bug ID: 114542
Summary: -flto=4294967296 is treated the same as -flto=0 and
-flto=4294967297 is treated the same as -flto=1
instead of being invalid options
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Blocks: 44574
Target Milestone: ---
Due to the uses of atoi in opts.c, lto-wrapper.c and lto/lto.c,
`-flto=4294967297` is treated as `-flto=1`
Plus `-flto=429496729b` is treated as being allowed.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
[Bug 44574] [meta-bug] Avoid use of atoi