Bug 114542 - -flto=4294967296 is treated the same as -flto=0 and -flto=4294967297 is treated the same as -flto=1 instead of being invalid options
Summary: -flto=4294967296 is treated the same as -flto=0 and -flto=4294967297 is treat...
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: accepts-invalid
Depends on:
Blocks: 44574
  Show dependency treegraph
 
Reported: 2024-04-01 05:05 UTC by Andrew Pinski
Modified: 2024-04-01 05:05 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2024-04-01 05:05:30 UTC
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.