Skip to content

Conversation

th-otto
Copy link
Contributor

@th-otto th-otto commented Oct 4, 2017

Fix some include files to prevent them from ending up in the include-fixed directory when compiling gcc.

There are still some files ending up there:

  • bits/string2.h, due to the definition of strncpy (gcc wants it to be defined just as __builtin_strncpy)
  • math.h, due to the definition of exception for c++, although it is protected and uses the same mechanism as seen in recent glibc header
  • sys/syslog.h, due to the definition of __BSD_VA_LIST

The output from the fixincludes run is:
Fixing directory /usr/m68k-atari-mint/sys-root/usr/include into /home/sebilla/mintstd/mint7-build/gcc/include-fixed
Applying glibc_c99_inline_3 to bits/string2.h
Applying glibc_strncpy to bits/string2.h
Fixed: bits/string2.h
Applying machine_ansi_h_va_list to sys/syslog.h
Fixed: sys/syslog.h
Applying glibc_stdint to stdint.h
Applying sysv68_string to string.h
Applying sun_malloc to malloc.h
Applying math_exception to math.h
Fixed: math.h
Cleaning up unneeded directories:
fixincludes is done

The patterns that are searched for are defined in ../gcc-src/fixincludes/inclhack.def

include-fixed directory when compiling gcc
@mikrosk mikrosk changed the title Fix some include files to prevent them from ending up in the Exclude some include files from include-fixed directory Oct 15, 2017
@th-otto th-otto closed this May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant