Added testcase for tree-optimization/125153.
Added a new testcase (gcc.dg/torture/pr125153.c) for PR tree-optimization/125153 to verify the fix from a reverted commit.
A new testcase, gcc.dg/torture/pr125153.c, has been added to verify the fix for PR tree-optimization/125153. The PR was addressed by reverting r16-303, and this testcase ensures the issue remains resolved.
In Details
This commit adds a testcase for a previously fixed issue in the tree-optimization pass. The fix involved reverting a specific revision (r16-303). The new testcase, gcc.dg/torture/pr125153.c, acts as a regression test to prevent the reintroduction of the bug. The tree-optimization pass is a crucial part of GCC that aims to improve the generated code by applying various transformations on the intermediate representation.
For Context
Compiler development involves continuous testing to ensure that bug fixes remain effective and that new changes don't reintroduce old problems. This commit adds a new test case to specifically check for a previously resolved issue in GCC's tree optimization component. This new test will help to prevent regressions, where a previously fixed bug reappears in later versions of the compiler.