Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 1 | Use -O1 with gcc > 6 |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 5 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 6 | diff -r 3d43b280298c lib/libucsi/endianops.h |
| 7 | --- a/lib/libucsi/endianops.h Fri Mar 21 20:26:36 2014 +0100 |
| 8 | +++ b/lib/libucsi/endianops.h Fri Jan 19 06:56:15 2018 +0000 |
| 9 | @@ -33,6 +33,9 @@ |
| 10 | #define __ucsi_packed __attribute__((packed)) |
| 11 | |
| 12 | |
| 13 | +#if __GNUC__ >= 6 + (0 >= __GNUC_MINOR__) |
| 14 | +#pragma GCC optimize ("O1") |
| 15 | +#endif |
| 16 | |
| 17 | |
| 18 | #if __BYTE_ORDER == __BIG_ENDIAN |