Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/external/gpl3/gcc/dist/gcc/config/i386

Module Name:    src
Committed By:   dsl
Date:           Sun Dec 30 16:13:57 UTC 2012

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/i386: driver-i386.c

Log Message:
If -march=native is specified, only enable AVX if the processor supports
  it and the OS has enabled XGETBV for application use.
It might need to also check XCR0[2] (having executed XGETBV) to check that
  the kernel actually supports saving the YMM registers, but I suspect the
  kernel might defer setting that until the first fault.
See vol 1 section 13.5 of the Intel SDM (intel_x86_325462.pdf).
Fixes toolchain/45673

To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index