[gcc r15-1698] c: Error message for incorrect use of static in array declarations.

2024-06-27 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:da7976a015a4388b8ed843412c3c1c840451cf0f commit r15-1698-gda7976a015a4388b8ed843412c3c1c840451cf0f Author: Martin Uecker Date: Thu Jun 27 21:47:56 2024 +0200 c: Error message for incorrect use of static in array declarations. Add an explicit error messages wh

[gcc r15-1928] c: Fix ICE for incorrect code in comptypes_verify [PR115696]

2024-07-09 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:592a746533a278a5fd3e7b5dff004e1846ef26a4 commit r15-1928-g592a746533a278a5fd3e7b5dff004e1846ef26a4 Author: Martin Uecker Date: Sat Jun 29 15:36:18 2024 +0200 c: Fix ICE for incorrect code in comptypes_verify [PR115696] The new verification code produces an IC

[gcc r15-1929] c: Fix ICE for redeclaration of structs with different alignment [PR114727]

2024-07-09 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:7825c07bbaf503c47ecedd87e3d64be003b24f2c commit r15-1929-g7825c07bbaf503c47ecedd87e3d64be003b24f2c Author: Martin Uecker Date: Sat Jun 29 15:53:43 2024 +0200 c: Fix ICE for redeclaration of structs with different alignment [PR114727] For redeclarations of str

[gcc r15-1930] Fix test errors after r15-1394 for sizeof(int)==sizeof(long) [PR115545]

2024-07-09 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:5b46f196cdb62af0e611315ea411938d756a0ad1 commit r15-1930-g5b46f196cdb62af0e611315ea411938d756a0ad1 Author: Martin Uecker Date: Sun Jun 23 09:10:20 2024 +0200 Fix test errors after r15-1394 for sizeof(int)==sizeof(long) [PR115545] Some tests added to test the

[gcc r15-2026] c, objc: Add -Wunterminated-string-initialization

2024-07-14 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:44c9403ed1833ae71a59e84f9e37af3182be0df5 commit r15-2026-g44c9403ed1833ae71a59e84f9e37af3182be0df5 Author: Alejandro Colomar Date: Sat Jun 29 15:10:43 2024 +0200 c, objc: Add -Wunterminated-string-initialization Warn about the following: char s[

[gcc r14-9763] Fix ICE with -g and -std=c23 related to incomplete types [PR114361]

2024-04-02 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:871bb5ad2dd56343d80b6a6d269e85efdce5 commit r14-9763-g871bb5ad2dd56343d80b6a6d269e85efdce5 Author: Martin Uecker Date: Thu Mar 28 19:15:40 2024 +0100 Fix ICE with -g and -std=c23 related to incomplete types [PR114361] We did not copy TYPE_CANONICAL to

[gcc r14-9805] Revert "Fix ICE with -g and -std=c23 related to incomplete types [PR114361]"

2024-04-05 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:8057f9aa1f7e70490064de796d7a8d42d446caf8 commit r14-9805-g8057f9aa1f7e70490064de796d7a8d42d446caf8 Author: Martin Uecker Date: Fri Apr 5 12:14:56 2024 +0200 Revert "Fix ICE with -g and -std=c23 related to incomplete types [PR114361]" This reverts commit 871bb

[gcc r15-2690] c: Add support for byte arrays in C2Y

2024-08-02 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:4b9ba9cee9511930411b7b53e1333e1b6b93078d commit r15-2690-g4b9ba9cee9511930411b7b53e1333e1b6b93078d Author: Martin Uecker Date: Sun Jun 23 23:14:33 2024 +0200 c: Add support for byte arrays in C2Y To get correct aliasing behavior requires that structures and u

[gcc r15-825] c: Fix for some variably modified types not being recognized [PR114831]

2024-05-24 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:9f1798c1a93257526196a3c19828e40fb28ac551 commit r15-825-g9f1798c1a93257526196a3c19828e40fb28ac551 Author: Martin Uecker Date: Sat May 18 14:40:02 2024 +0200 c: Fix for some variably modified types not being recognized [PR114831] We did not evaluate expression

[gcc r15-912] C23: fix aliasing for structures/unions with incomplete types

2024-05-29 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:86b98d939989427ff025bcfd536ad361fcdc699c commit r15-912-g86b98d939989427ff025bcfd536ad361fcdc699c Author: Martin Uecker Date: Sat Mar 30 19:49:48 2024 +0100 C23: fix aliasing for structures/unions with incomplete types When incomplete structure/union types ar

[gcc r15-933] C: allow aliasing of compatible types derived from enumeral types [PR115157]

2024-05-30 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:867d1264fe71d4291194373d1a1c409cac97a597 commit r15-933-g867d1264fe71d4291194373d1a1c409cac97a597 Author: Martin Uecker Date: Sun May 19 23:13:22 2024 +0200 C: allow aliasing of compatible types derived from enumeral types [PR115157] Aliasing of enumeral type

[gcc r15-934] C23: allow aliasing for types derived from structs with variable size

2024-05-30 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:d2cfe8a73b3c4195a25cde28e1641ef36ebb08c1 commit r15-934-gd2cfe8a73b3c4195a25cde28e1641ef36ebb08c1 Author: Martin Uecker Date: Fri May 24 12:35:27 2024 +0200 C23: allow aliasing for types derived from structs with variable size Previously, we set the aliasing

[gcc r15-1394] c23: Fix for redeclared enumerator initialized with different type [PR115109]

2024-06-18 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:c9b96a68860bfdee49d40b4a844af7c5ef69cd12 commit r15-1394-gc9b96a68860bfdee49d40b4a844af7c5ef69cd12 Author: Martin Uecker Date: Sat May 18 22:00:04 2024 +0200 c23: Fix for redeclared enumerator initialized with different type [PR115109] c23 specifies that the

[gcc r14-10761] c: fix crash when checking for compatibility of structures [PR116726]

2024-10-09 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:4123f546d77c42287d2fcae6fb04df7b87193454 commit r14-10761-g4123f546d77c42287d2fcae6fb04df7b87193454 Author: Martin Uecker Date: Tue Sep 17 11:37:29 2024 +0200 c: fix crash when checking for compatibility of structures [PR116726] When checking for compatibilit

[gcc r15-4812] c: detect variably-modified types [PR117145, PR117245, PR100420]

2024-10-31 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:9eae9268e41463927c9383004e58708048ec379f commit r15-4812-g9eae9268e41463927c9383004e58708048ec379f Author: Martin Uecker Date: Tue Oct 22 23:25:00 2024 +0200 c: detect variably-modified types [PR117145,PR117245,PR100420] This fixes two cases where variably-mo

[gcc r15-5055] c: minor fixes related to arrays of unspecified size

2024-11-09 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:114abf075c1e28358173756042049c9992ae6572 commit r15-5055-g114abf075c1e28358173756042049c9992ae6572 Author: Martin Uecker Date: Fri Nov 1 10:15:44 2024 +0100 c: minor fixes related to arrays of unspecified size The patch for PR117145 and PR117245 also fixed PR

[gcc r15-5191] c: add Wzero-as-null-pointer-constant [PR117059]

2024-11-13 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:236c0829ee21a179c81b83f0d7f112ca23c47a4d commit r15-5191-g236c0829ee21a179c81b83f0d7f112ca23c47a4d Author: Martin Uecker Date: Sat Nov 9 10:48:52 2024 +0100 c: add Wzero-as-null-pointer-constant [PR117059] Add warnings for the use of zero as a null pointer co

[gcc r15-3745] c: fix crash when checking for compatibility of structures [PR116726]

2024-09-20 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:9227a64495d5594613604573b72422e8e3722fc5 commit r15-3745-g9227a64495d5594613604573b72422e8e3722fc5 Author: Martin Uecker Date: Tue Sep 17 11:37:29 2024 +0200 c: fix crash when checking for compatibility of structures [PR116726] When checking for compatibility

[gcc r15-5792] c: Correct type compatibility for bit-fields [PR117828]

2024-11-29 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:b6a513909793a87b62ca52da85ff3baa44f6b4b6 commit r15-5792-gb6a513909793a87b62ca52da85ff3baa44f6b4b6 Author: Martin Uecker Date: Thu Nov 28 20:06:16 2024 +0100 c: Correct type compatibility for bit-fields [PR117828] Add missing test for consistency of bit-field

[gcc r15-5425] Fix test failures for enum-alias-{1, 2, 3} on arm-eabi [PR117419]

2024-11-18 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:a3098b9a7281adef2028c2be3674094697557c2c commit r15-5425-ga3098b9a7281adef2028c2be3674094697557c2c Author: Martin Uecker Date: Tue Nov 12 18:08:17 2024 +0100 Fix test failures for enum-alias-{1,2,3} on arm-eabi [PR117419] The tests added for PR115157 fail on

[gcc r15-5470] c: fix incorrect TBAA for tagged types across translation units [PR117490]

2024-11-19 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:8b02cc9a4f2b8db48da2a3460655b062eaa147ba commit r15-5470-g8b02cc9a4f2b8db48da2a3460655b062eaa147ba Author: Martin Uecker Date: Fri Nov 8 18:46:10 2024 +0100 c: fix incorrect TBAA for tagged types across translation units [PR117490] Two different declarations

[gcc r15-5816] c: Set attributes for fields when forming a composite type [PR117806]

2024-11-29 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:1539bcd19c5928d8359722c532dfcc7a26a16dda commit r15-5816-g1539bcd19c5928d8359722c532dfcc7a26a16dda Author: Martin Uecker Date: Fri Nov 29 17:04:36 2024 +0100 c: Set attributes for fields when forming a composite type [PR117806] We need to call decl_attributes

[gcc r15-5334] c: fix ICE when forming composite type for two structures / unions [PR117548]

2024-11-16 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:d8af6c203f18b4fd736df9567926589d96f8e0b3 commit r15-5334-gd8af6c203f18b4fd736df9567926589d96f8e0b3 Author: Martin Uecker Date: Thu Nov 14 20:54:33 2024 +0100 c: fix ICE when forming composite type for two structures / unions [PR117548] When forming the compo

[gcc r15-6169] Fix type compatibility for types with flexible array member 1/2 [PR113688, PR114713, PR117724]

2024-12-12 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:1f48225a0ddfaf74a229105343b22f3086c4b8cb commit r15-6169-g1f48225a0ddfaf74a229105343b22f3086c4b8cb Author: Martin Uecker Date: Mon Dec 9 12:07:57 2024 +0100 Fix type compatibility for types with flexible array member 1/2 [PR113688,PR114713,PR117724] Allow th

[gcc r15-6170] Fix type compatibility for types with flexible array member 2/2 [PR113688, PR114713, PR117724]

2024-12-12 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:d46c7f313b5a30ee04080f249e31e12987d50aa2 commit r15-6170-gd46c7f313b5a30ee04080f249e31e12987d50aa2 Author: Martin Uecker Date: Sat Nov 23 08:04:05 2024 +0100 Fix type compatibility for types with flexible array member 2/2 [PR113688,PR114713,PR117724] For che

[gcc r15-6747] c: Restore warning for incomplete structures declared in parameter list [PR117866]

2025-01-09 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:21571cdd8355f2162910d40f2f7d2dd4046f commit r15-6747-g21571cdd8355f2162910d40f2f7d2dd4046f Author: Martin Uecker Date: Mon Jan 6 15:32:16 2025 +0100 c: Restore warning for incomplete structures declared in parameter list [PR117866] In C23 mode the wa

[gcc r15-8287] c: Fix bug in typedef redefinitions of tagged types [PR118765]

2025-03-19 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:1636e85270d918a84d57bb521c22c42abf42a47c commit r15-8287-g1636e85270d918a84d57bb521c22c42abf42a47c Author: Martin Uecker Date: Sat Mar 1 21:32:21 2025 +0100 c: Fix bug in typedef redefinitions of tagged types [PR118765] When we redefine a tagged type we incor

[gcc r15-8286] c: Fix ICE in error recovery when checking struct compatibility [PR118061]

2025-03-19 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:d9e834958e82219f836577da4ef8176aca2c7c9f commit r15-8286-gd9e834958e82219f836577da4ef8176aca2c7c9f Author: Martin Uecker Date: Sat Mar 1 17:21:25 2025 +0100 c: Fix ICE in error recovery when checking struct compatibility [PR118061] Return early when comparing

[gcc r14-11436] c: minor fixes related to arrays of unspecified size

2025-03-22 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:432f918f111498e0c3bfee5f9b2ddd8205370163 commit r14-11436-g432f918f111498e0c3bfee5f9b2ddd8205370163 Author: Martin Uecker Date: Sat Mar 22 17:05:51 2025 +0100 c: minor fixes related to arrays of unspecified size The patch for PR117145 and PR117245 also fixed

[gcc r14-11437] c: Set attributes for fields when forming a composite type [PR117806]

2025-03-22 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:a3989d8158705975ab72c9167469905cbe7d11cf commit r14-11437-ga3989d8158705975ab72c9167469905cbe7d11cf Author: Martin Uecker Date: Sat Mar 22 17:35:58 2025 +0100 c: Set attributes for fields when forming a composite type [PR117806] We need to call decl_attribute

[gcc r15-8963] c: Fix tagname confusion for typedef redefinitions [PR118765]

2025-03-27 Thread Martin Uecker via Gcc-cvs
https://gcc.gnu.org/g:accbc1b90bd942aa36ac1485a21056b774ce02df commit r15-8963-gaccbc1b90bd942aa36ac1485a21056b774ce02df Author: Martin Uecker Date: Sun Mar 16 10:54:17 2025 +0100 c: Fix tagname confusion for typedef redefinitions [PR118765] When we redefine a typedef for a tagged