public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96238] New: [i386] cpuid.h header needs include guards
@ 2020-07-17 23:12 thiago at kde dot org
  2020-07-18 11:55 ` [Bug target/96238] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: thiago at kde dot org @ 2020-07-17 23:12 UTC (permalink / raw)
  To: gcc-bugs

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,
      | ^~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-11  2:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 23:12 [Bug target/96238] New: [i386] cpuid.h header needs include guards thiago at kde dot org
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

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).