diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-09-27 12:29:46 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-09-27 12:33:23 +0200 |
commit | b939a5cc4143908ddda4b85a848c313136ff6e0c (patch) | |
tree | 914748a369d1124f85f1b13b21e38d4527ac7824 /fixincludes/inclhack.def | |
parent | c8dfa79c9948ce09a7b4071f8059294b1972aef6 (diff) | |
download | gcc-b939a5cc4143908ddda4b85a848c313136ff6e0c.zip gcc-b939a5cc4143908ddda4b85a848c313136ff6e0c.tar.gz gcc-b939a5cc4143908ddda4b85a848c313136ff6e0c.tar.bz2 |
fixincludes: FIx up for Debian/Ubuntu includes
As reported by Tobias, my C++ _Float{16,32,64,128,32x,64x,128x} support
patch broke Debian/Ubuntu bootstraps. The problem is that there
glibc bits/floatn.h and bits/floatn-common.h isn't in /usr/include/
directly, but in a subdirectory like /usr/include/x86_64-linux-gnu/
Seems other fixinclude rules for bits/* headers use
files = bits/whatever.h, "*/bits/whatever.h";
so this patch just follows the suit.
2022-06-27 Jakub Jelinek <jakub@redhat.com>
* inclhack.def (glibc_cxx_floatn_1, glibc_cxx_floatn_2,
glibc_cxx_floatn_3): Add to files also "*/bits/floatn.h"
and "*/bits/floatn-common.h".
* fixincl.x: Regenerated.
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index a3f171a..88bf28f 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2021,7 +2021,7 @@ fix = { */ fix = { hackname = glibc_cxx_floatn_1; - files = bits/floatn.h, bits/floatn-common.h; + files = bits/floatn.h, bits/floatn-common.h, "*/bits/floatn.h", "*/bits/floatn-common.h"; select = "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n" "(([ \t]*/\\*[^\n]*\\*/\n)?" "([ \t]*#[ \t]*if[^\n]*\n)?" @@ -2059,7 +2059,7 @@ fix = { fix = { hackname = glibc_cxx_floatn_2; - files = bits/floatn.h, bits/floatn-common.h; + files = bits/floatn.h, bits/floatn-common.h, "*/bits/floatn.h", "*/bits/floatn-common.h"; select = "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n" "(([ \t]*/\\*[^\n]*\\*/\n)?" "[ \t]*typedef[ \t]+[^\n]*[ \t]+_Float(16|32|64|128)x?([ \t]+__attribute__ \\(\\(__mode__ \\(__HF__\\)\\)\\))?;)"; @@ -2077,7 +2077,7 @@ fix = { fix = { hackname = glibc_cxx_floatn_3; - files = bits/floatn.h, bits/floatn-common.h; + files = bits/floatn.h, bits/floatn-common.h, "*/bits/floatn.h", "*/bits/floatn-common.h"; select = "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n" "(([ \t]*/\\*[^\n]*\n?[^\n]*\\*/\n)?" "([ \t]*#[ \t]*if[^\n]*\n)?" |