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
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
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
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?
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
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
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
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
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