[gcc r15-208] Allow flexible array members in unions and alone in structures [PR53548]

2024-05-06 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:adb1c8a0f167c3a1f7593d75f5a10eb07a5d741a commit r15-208-gadb1c8a0f167c3a1f7593d75f5a10eb07a5d741a Author: Qing Zhao Date: Mon May 6 16:25:04 2024 + Allow flexible array members in unions and alone in structures [PR53548] The request for GCC to accept that

[gcc r15-209] C and C++ FE changes to support flexible array members in unions and alone in structures. Adjust tes

2024-05-06 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:f27fc59d9f7c735d200fda647a487850144b10eb commit r15-209-gf27fc59d9f7c735d200fda647a487850144b10eb Author: Qing Zhao Date: Mon May 6 16:26:19 2024 + C and C++ FE changes to support flexible array members in unions and alone in structures. Adjust testcases for flex

[gcc r15-210] Add testing cases for flexible array members in unions and alone in structures.

2024-05-06 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:93f6a47583f3fa8a1b66856ecb19ec28f26b2ba4 commit r15-210-g93f6a47583f3fa8a1b66856ecb19ec28f26b2ba4 Author: Qing Zhao Date: Mon May 6 16:27:09 2024 + Add testing cases for flexible array members in unions and alone in structures. PR c/53548 gcc/te

[gcc r15-211] Update the C FE routine "add_flexible_array_elts_to_size" C++ FE routine "layout_var_decl" to handle

2024-05-06 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:6634a409124a884ff66b3756568a7daae7d3c295 commit r15-211-g6634a409124a884ff66b3756568a7daae7d3c295 Author: Qing Zhao Date: Mon May 6 16:28:01 2024 + Update the C FE routine "add_flexible_array_elts_to_size" C++ FE routine "layout_var_decl" to handle the cases when

[gcc r15-3434] Explicitly document that the "counted_by" attribute is only supported in C.

2024-09-03 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:f9642ffe7814396f31203f4366f78a43a01a215c commit r15-3434-gf9642ffe7814396f31203f4366f78a43a01a215c Author: Qing Zhao Date: Tue Sep 3 19:28:23 2024 + Explicitly document that the "counted_by" attribute is only supported in C. The "counted_by" attribute cur

[gcc r13-8556] Fix SSA corruption due to widening_mul opt on conflict across an abnormal edge [PR111407]

2024-04-02 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:2d9a9488e26233eb9497722fa9ccb88258f7402c commit r13-8556-g2d9a9488e26233eb9497722fa9ccb88258f7402c Author: Qing Zhao Date: Thu Feb 29 15:07:49 2024 + Fix SSA corruption due to widening_mul opt on conflict across an abnormal edge [PR111407] This is a bug

[gcc r12-10306] Fix SSA corruption due to widening_mul opt on conflict across an abnormal edge [PR111407]

2024-04-02 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:5f23f9f141c4b52e8f4a9aadc88b8155cf1959a3 commit r12-10306-g5f23f9f141c4b52e8f4a9aadc88b8155cf1959a3 Author: Qing Zhao Date: Thu Feb 29 15:07:49 2024 + Fix SSA corruption due to widening_mul opt on conflict across an abnormal edge [PR111407] This is a bug

[gcc r11-11306] Fix SSA corruption due to widening_mul opt on conflict across an abnormal edge [PR111407]

2024-04-02 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:4de35949e462d89926a171cd1ef7b6f40a308dab commit r11-11306-g4de35949e462d89926a171cd1ef7b6f40a308dab Author: Qing Zhao Date: Mon Mar 25 14:17:56 2024 + Fix SSA corruption due to widening_mul opt on conflict across an abnormal edge [PR111407] This is a bug

[gcc r15-944] Provide counted_by attribute to flexible array member field

2024-05-31 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:f824acd0e807546a733c122ab6340f18cef88766 commit r15-944-gf824acd0e807546a733c122ab6340f18cef88766 Author: Qing Zhao Date: Tue May 28 18:30:05 2024 + Provide counted_by attribute to flexible array member field 'counted_by (COUNT)' The 'counted_by'

[gcc r15-945] Convert references with "counted_by" attributes to/from .ACCESS_WITH_SIZE.

2024-05-31 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:bb49b6e4f55891d0d8b596845118f40df6ae72a5 commit r15-945-gbb49b6e4f55891d0d8b596845118f40df6ae72a5 Author: Qing Zhao Date: Tue May 28 18:34:09 2024 + Convert references with "counted_by" attributes to/from .ACCESS_WITH_SIZE. Including the following changes

[gcc r15-946] Use the .ACCESS_WITH_SIZE in builtin object size.

2024-05-31 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:6f17933548fc34ee269e90546a590df8269cee60 commit r15-946-g6f17933548fc34ee269e90546a590df8269cee60 Author: Qing Zhao Date: Tue May 28 18:36:00 2024 + Use the .ACCESS_WITH_SIZE in builtin object size. gcc/ChangeLog: * tree-object-size.cc (a

[gcc r15-947] Use the .ACCESS_WITH_SIZE in bound sanitizer.

2024-05-31 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:3d94fee616d6132075f3292a6eafdcb7b1d3f5a5 commit r15-947-g3d94fee616d6132075f3292a6eafdcb7b1d3f5a5 Author: Qing Zhao Date: Tue May 28 18:37:14 2024 + Use the .ACCESS_WITH_SIZE in bound sanitizer. gcc/c-family/ChangeLog: * c-ubsan.cc (get_b

[gcc r15-948] Add the 6th argument to .ACCESS_WITH_SIZE

2024-05-31 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:4c5bea7def13613fba166edb23289bab446b0b48 commit r15-948-g4c5bea7def13613fba166edb23289bab446b0b48 Author: Qing Zhao Date: Tue May 28 18:39:31 2024 + Add the 6th argument to .ACCESS_WITH_SIZE to carry the TYPE of the flexible array. Such informati

[gcc r15-4122] c: ICE in build_counted_by_ref [PR116735]

2024-10-07 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:9a17e6d03c6ed53e3b2dfd2c3ff9b1066ffa97b9 commit r15-4122-g9a17e6d03c6ed53e3b2dfd2c3ff9b1066ffa97b9 Author: qing zhao Date: Mon Sep 30 18:29:29 2024 + c: ICE in build_counted_by_ref [PR116735] When handling the counted_by attribute, if the corresponding fi

[gcc r13-9072] tree-optimization/116585 - SSA corruption with split_constant_offset

2024-10-02 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:a344ba9e42224220a7279a4051a08662435b1c60 commit r13-9072-ga344ba9e42224220a7279a4051a08662435b1c60 Author: Richard Biener Date: Wed Sep 18 09:52:55 2024 +0200 tree-optimization/116585 - SSA corruption with split_constant_offset split_constant_offset when look

[gcc r14-10730] tree-optimization/116585 - SSA corruption with split_constant_offset

2024-10-02 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:e69c03971aa50fda96b3382bfded54da3d087c32 commit r14-10730-ge69c03971aa50fda96b3382bfded54da3d087c32 Author: Richard Biener Date: Wed Sep 18 09:52:55 2024 +0200 tree-optimization/116585 - SSA corruption with split_constant_offset split_constant_offset when loo

[gcc r12-10739] tree-optimization/116585 - SSA corruption with split_constant_offset

2024-10-02 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:8e5bd9b4b38f5b4fbd2a95d8f61168d9eeea97d3 commit r12-10739-g8e5bd9b4b38f5b4fbd2a95d8f61168d9eeea97d3 Author: Richard Biener Date: Wed Sep 18 09:52:55 2024 +0200 tree-optimization/116585 - SSA corruption with split_constant_offset split_constant_offset when loo

[gcc r15-4370] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-10-15 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:e7380688fa5917011c3fb85b5e06fb00f776a95d commit r15-4370-ge7380688fa5917011c3fb85b5e06fb00f776a95d Author: Qing Zhao Date: Tue Oct 15 17:55:22 2024 + Provide new GCC builtin __builtin_counted_by_ref [PR116016] With the addition of the 'counted_by' attribu

[gcc r15-9505] c: Fully fold each parameter for call to .ACCESS_WITH_SIZE [PR119717]

2025-04-15 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:727f330f9ac661339af1121fc5c9b67dd0d35872 commit r15-9505-g727f330f9ac661339af1121fc5c9b67dd0d35872 Author: Qing Zhao Date: Mon Apr 14 19:41:12 2025 + c: Fully fold each parameter for call to .ACCESS_WITH_SIZE [PR119717] C_MAYBE_CONST_EXPR is a C FE operat

[gcc r16-1017] C: Flex array in the middle via type alias is not reported [PR120353]

2025-05-30 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:f37c5f1d88c9da17f16cdb33e7c9d43e4bb5f64d commit r16-1017-gf37c5f1d88c9da17f16cdb33e7c9d43e4bb5f64d Author: Qing Zhao Date: Wed May 28 21:13:38 2025 + C: Flex array in the middle via type alias is not reported [PR120353] The root cause of the bug is: the T

[gcc r16-1018] C: Flex array in union followed by a structure field is not reported [PR120354]

2025-05-30 Thread Qing Zhao via Gcc-cvs
https://gcc.gnu.org/g:70418e6c0120cfce33ab69628602dfdadbed683a commit r16-1018-g70418e6c0120cfce33ab69628602dfdadbed683a Author: Qing Zhao Date: Thu May 29 15:59:41 2025 + C: Flex array in union followed by a structure field is not reported [PR120354] There is only one last_f