This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/30678] sysmacros.h get currupt from Fixincludes with updated glibc.



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


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