This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 sanitizer/81281] [6/7/8 Regression] UBSAN: false positive, dropped promotion to long type.


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Before that rev we had

int a = (int) (((((unsigned int) ll - (unsigned int) ci) - (unsigned int) i) +
((((unsigned int) ci - (unsigned int) ll) + (unsigned int) i) - (unsigned int)
ci)) + 2270794745);

and now just

int a = -2024172551(OVF) - (int) ci;

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