i386: Disable stack protector for tests allocating arrays on the stack.
Stack protection is now disabled for specific i386 tests that allocate arrays on the stack to prevent failures when stack protection is enabled by default.
Stack protection is now explicitly disabled for five i386 testsuite tests. These tests use check_function_bodies against functions that allocate arrays on the stack. With --enable-default-ssp, these tests fail because of the added stack protector code. The -fno-stack-protector option is added to the testsuite directives to disable stack protection and ensure the tests pass.
In Details
The affected test cases use check_function_bodies to verify generated assembly and allocate arrays on the stack. Adding -fno-stack-protector to the dg-options disables stack protection for these tests. This ensures the generated assembly matches the expected output when stack protection is enabled by default.
For Context
Stack protection is a security feature that helps prevent buffer overflow attacks by adding extra code to check for stack corruption. However, this extra code can change the generated assembly. check_function_bodies compares the compiler's output to expected assembly, so stack protection must be disabled in tests where the expected assembly doesn't include the stack protection code.