This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/30678] sysmacros.h get currupt from Fixincludes with updated glibc.
- From: "bkorb at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2007 18:32:36 -0000
- Subject: [Bug bootstrap/30678] sysmacros.h get currupt from Fixincludes with updated glibc.
- References: <bug-30678-13681@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from bkorb at gnu dot org 2007-02-03 18:32 -------
I'm looking at the inclhack fix now:
> fix = {
> hackname = glibc_c99_inline_4;
> files = sys/sysmacros.h, '*/sys/sysmacros.h';
> bypass = "__STDC_VERSION__";
> c_fix = format;
> c_fix_arg = "\n#if __STDC_VERSION__ < 19901L\nextern\n#endif\n";
> c_fix_arg = "extern";
> test_text = <<-EOT
> __extension__ extern __inline unsigned int
> EOT;
> };
Unfortunately, there is no commentary about intended purpose and the current
discussion does not explain exactly what is needed. I am going to take a guess
that the __extern_inline macro will not ever need this special treatment.
Therefore, the fix should look like the following. Comments, please?
> fix = {
> hackname = glibc_c99_inline_4;
> files = sys/sysmacros.h, '*/sys/sysmacros.h';
> bypass = "__STDC_VERSION__";
> select = ' extern ';
> c_fix = format;
> c_fix_arg = "\n#if __STDC_VERSION__ < 19901L\nextern\n#endif\n";
> test_text = <<-EOT
> __extension__ extern __inline unsigned int
> EOT;
> };
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30678