Re: [PATCH] gdb: Fix build error on macOS

2021-10-05 Thread Enze Li
[ add bug-gnulib@gnu.org ] On 10/4/21 6:03 PM, Enze Li via Gdb-patches wrote: > PR build/28413 notes that the gdb master fails to build on macOS. > > Based on De Morgan's law, the expression > !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) > is eq

[PATCH] Fix a wrong expression

2021-10-05 Thread Enze Li
Based on De Morgan's law, the expression !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) is equal to (!defined __GNUC__ || defined __clang__ || !__OPTIMIZE). The expression above looks weird. When any one of the conditions is established, the subsequent judgment will be ignored. This pat