[Bug c/117198] Why are there differences using -Wredundant-decls, is bug or not?

2024-10-17 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198 --- Comment #2 from hanwei (K) --- However, if only the weak attribute is declared, warning of redundant redeclaration is generated regardless of the order, and the link:https://godbolt.org/z/e5aY7zYMh

[Bug c/117198] New: Why are there differences using -Wredundant-decls, is bug or not?

2024-10-17 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117198 Bug ID: 117198 Summary: Why are there differences using -Wredundant-decls, is bug or not? Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug lto/115327] New: [ld] [lto] using ld and lto, crash while dynamic compile executable

2024-06-03 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115327 Bug ID: 115327 Summary: [ld] [lto] using ld and lto, crash while dynamic compile executable Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/114955] marco DATA_ALIGNMENT may conflict with pragma pack

2024-05-06 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114955 --- Comment #5 from hanwei (K) --- You mean the pragma pack just apply to the inner members of struct, not the first member. The align of struct (first member also) is controlled by __attribute__((aligned(...))). Right?

[Bug target/114955] marco DATA_ALIGNMENT may conflict with pragma pack

2024-05-05 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114955 --- Comment #3 from hanwei (K) --- Yeap, press return too soon. Code like: #include #pragma pack(1) char a_global[2] = {0,0}; int g_int[3] = {1, 2, 4}; char b_global[2] = {0, 0}; struct A { char c; long long a; int i; }; #prag

[Bug c/114955] New: marco DATA_ALIGNMENT may conflict with pragma pack

2024-05-05 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114955 Bug ID: 114955 Summary: marco DATA_ALIGNMENT may conflict with pragma pack Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug c/114763] Wduplicated-branches just check last else if-else case?

2024-04-18 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763 --- Comment #3 from hanwei (K) --- (In reply to Andrew Pinski from comment #1) > Note only the second case has if's 2 sides which are the same; > it is basically `a ? b : (c ? d : d)`. > > While the first case you have `a ? b : (c ? d : b)` whi

[Bug c/114763] Wduplicated-branches just check last else if-else case?

2024-04-18 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763 --- Comment #2 from hanwei (K) --- (In reply to Andrew Pinski from comment #1) > Note only the second case has if's 2 sides which are the same; > it is basically `a ? b : (c ? d : d)`. > > While the first case you have `a ? b : (c ? d : b)` whi

[Bug c/114763] New: Wduplicated-branches just check last else if-else case?

2024-04-18 Thread hanwei62 at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114763 Bug ID: 114763 Summary: Wduplicated-branches just check last else if-else case? Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Prior