9597 Want hypervisor API for FPU management (fix pragma align)

Review Request #1122 - Created June 30, 2018 and submitted

Information
Toomas Soome
illumos-gate
9597
83d9f3d...
Reviewers
general

9597 Want hypervisor API for FPU management (fix pragma align)

gcc 6 and gcc 7 are complaining:

../../intel/ia32/os/fpu.c:447:9: error: '#pragma align' must appear before the declaration of sse_initial, ignoring [-Werror]
#pragma align 16 (sse_initial)
        ^~~~~
../../intel/ia32/os/fpu.c:473:9: error: '#pragma align' must appear before the declaration of avx_initial, ignoring [-Werror]
#pragma align 64 (avx_initial)
        ^~~~~
cc1: all warnings being treated as errors

Set up the alignment with structure, so we wont depend on pragma location and can drop the lint silencers.

build with gcc 7.

Yuri Pankov
Norm Jacobs
Toomas Soome
Ken Mays
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...