aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wstrict-flex-arrays.c
diff options
context:
space:
mode:
authorBob Dubner <rdubner@symas.com>2025-04-04 13:48:58 -0400
committerRobert Dubner <rdubner@symas.com>2025-04-04 14:09:09 -0400
commite70fe5ed46ab129a8b1da961c47d3fb75b11b988 (patch)
tree13e1a560ee583623df4e0c01d7aa5169abc61727 /gcc/testsuite/c-c++-common/Wstrict-flex-arrays.c
parent0520ef274762f100c7297efc4f230fcfc6486987 (diff)
downloadgcc-e70fe5ed46ab129a8b1da961c47d3fb75b11b988.zip
gcc-e70fe5ed46ab129a8b1da961c47d3fb75b11b988.tar.gz
gcc-e70fe5ed46ab129a8b1da961c47d3fb75b11b988.tar.bz2
cobol: Eliminate cobolworx UAT errors when compiling with -Os
Testcases compiled with -Os were failing because static functions and static variables were being optimized away, because of improper data type casts, and because strict aliasing (whatever that is) was resulting in some loss of data. These changes eliminate those known problems. gcc/cobol * cobol1.cc: (cobol_langhook_post_options): Implemented in order to set flag_strict_aliasing to zero. * genapi.cc: (set_user_status): Add comment. (parser_intrinsic_subst): Expand SHOW_PARSE information. (psa_global): Change names of return-code and upsi globals, (psa_FldLiteralA): Set DECL_PRESERVE_P for FldLiteralA. * gengen.cc: (show_type): Add POINTER type. (gg_define_function_with_no_parameters): Set DECL_PRESERVE_P for COBOL- style nested programs. (gg_array_of_bytes): Fix bad cast. libgcobol * charmaps.h: Change __gg__data_return_code to 'short' type. * constants.cc: Likewise.
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wstrict-flex-arrays.c')
0 files changed, 0 insertions, 0 deletions