This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: Fix PR 68491, __get_cpuid with 0 level breaks on early 486


Hello!

> I've been asked to send the patch against trunk here.

I have fixed the PR in a slightly different way.

2017-05-01  Uros Bizjak  <ubizjak@gmail.com>

    PR target/68491
    * config/i386/cpuid.h (__get_cpuid): Always return 0 when
    __get_cpuid_max returns 0.
    (__get_cpuid_count): Ditto.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN, and will port to release branches in a
couple of days.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]