Re: [PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:51 PM, Matthias Kaehlcke wrote: > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a >

Re: [PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:51 PM, Matthias Kaehlcke wrote: > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a > power of two like

[PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Matthias Kaehlcke
DML uses the compiler option -mpreferred-stack-boundary=4 to configure a stack alignment of 16 bytes. Clang uses the option -mstack-alignment instead, which expects as parameter the alignment in bytes, and not a power of two like -mpreferred-stack-boundary. Probe for both compiler options and use

[PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-07 Thread Matthias Kaehlcke
DML uses the compiler option -mpreferred-stack-boundary=4 to configure a stack alignment of 16 bytes. Clang uses the option -mstack-alignment instead, which expects as parameter the alignment in bytes, and not a power of two like -mpreferred-stack-boundary. Probe for both compiler options and use