[Bug bootstrap/30678] sysmacros.h get currupt from Fixincludes with updated glibc.
bkorb at gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 3 18:32:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list