Re: [edk2-devel] [Patch 2/2] BaseTools: Add GCC flags to Basetool build.

2019-04-30 Thread Laszlo Ersek
On 04/30/19 13:07, Bob Feng wrote: > BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1764 > > Some compiler flags restrict the compiler from making > arbitrary decisions while handling undefined C/C++ behaviors. > Therefore they can be used to fix some issues caused by undefined behavior. > > F

[edk2-devel] [Patch 2/2] BaseTools: Add GCC flags to Basetool build.

2019-04-30 Thread Bob Feng
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1764 Some compiler flags restrict the compiler from making arbitrary decisions while handling undefined C/C++ behaviors. Therefore they can be used to fix some issues caused by undefined behavior. For example, for GCC, the following flags are avai