Remove strict_overflow_p flag from extract_muldiv
The strict_overflow_p flag was removed from extract_muldiv, part of deprecating -Wstrict-overflow.
The strict_overflow_p flag was removed from the extract_muldiv function. This function is involved in extracting multiplication and division operations during constant folding. Removing the flag is part of the larger effort to deprecate the -Wstrict-overflow warning. Consequently, a test case that specifically checked for -Wstrict-overflow warnings in extract_muldiv patterns was also removed.
In Details
This commit removes the strict_overflow_p flag from the extract_muldiv function within fold-const.cc. This function attempts to decompose an expression into multiplication and division components for constant folding. The removal is related to the deprecation of the -Wstrict-overflow flag, which warned about potential overflows detected during compile-time constant expression evaluation. The impact is primarily within the constant folding logic itself.
For Context
GCC optimizes code by performing constant calculations at compile time, known as constant folding. During this process, the extract_muldiv function identifies multiplication and division operations. The -Wstrict-overflow flag instructs the compiler to warn about potential integer overflows during such calculations. This commit removes the strict_overflow_p flag, which controlled overflow checking in extract_muldiv, as part of the broader effort to deprecate the -Wstrict-overflow warning.