public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96238] New: [i386] cpuid.h header needs include guards Date: Fri, 17 Jul 2020 23:12:31 +0000 [thread overview] Message-ID: <bug-96238-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96238 Bug ID: 96238 Summary: [i386] cpuid.h header needs include guards Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: thiago at kde dot org Target Milestone: --- $ cat x.c #include <cpuid.h> #include <cpuid.h> $ gcc -c x.c /usr/lib64/gcc/x86_64-suse-linux/10/include/cpuid.h:228:1: error: redefinition of ‘__get_cpuid_max’ 228 | __get_cpuid_max (unsigned int __ext, unsigned int *__sig) | ^~~~~~~~~~~~~~~ In file included from <command-line>:32: /usr/lib64/gcc/x86_64-suse-linux/10/include/cpuid.h:228:1: note: previous definition of ‘__get_cpuid_max’ was here 228 | __get_cpuid_max (unsigned int __ext, unsigned int *__sig) | ^~~~~~~~~~~~~~~ /usr/lib64/gcc/x86_64-suse-linux/10/include/cpuid.h:283:1: error: redefinition of ‘__get_cpuid’ 283 | __get_cpuid (unsigned int __leaf, | ^~~~~~~~~~~ /usr/lib64/gcc/x86_64-suse-linux/10/include/cpuid.h:283:1: note: previous definition of ‘__get_cpuid’ was here 283 | __get_cpuid (unsigned int __leaf, | ^~~~~~~~~~~ /usr/lib64/gcc/x86_64-suse-linux/10/include/cpuid.h:300:1: error: redefinition of ‘__get_cpuid_count’ 300 | __get_cpuid_count (unsigned int __leaf, unsigned int __subleaf, | ^~~~~~~~~~~~~~~~~ /usr/lib64/gcc/x86_64-suse-linux/10/include/cpuid.h:300:1: note: previous definition of ‘__get_cpuid_count’ was here 300 | __get_cpuid_count (unsigned int __leaf, unsigned int __subleaf, | ^~~~~~~~~~~~~~~~~
next reply other threads:[~2020-07-17 23:12 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-17 23:12 thiago at kde dot org [this message] 2020-07-18 11:55 ` [Bug target/96238] " hjl.tools at gmail dot com 2020-07-19 11:21 ` cvs-commit at gcc dot gnu.org 2020-07-19 12:26 ` hjl.tools at gmail dot com 2020-11-11 2:55 ` roland at gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-96238-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).