From 8a6c4d31f0d8df85604329ec04cbb4afe4f82701 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 10 May 2019 09:39:46 +0200 Subject: [PATCH] re PR pch/90326 (Using any precompiled header breaks definition of FLT_MAX) PR pch/90326 cp/ * config-lang.in (gtfiles): Remove c-family/c-lex.c, add c-family/c-cppbuiltin.c. objc/ * config-lang.in (gtfiles): Add c-family/c-format.c. objcp/ * config-lang.in (gtfiles): Don't add c-family/c-cppbuiltin.c. testsuite/ * g++.dg/pch/pr90326.C: New test. * g++.dg/pch/pr90326.Hs: New file. From-SVN: r271055 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/config-lang.in | 2 +- gcc/objc/ChangeLog | 5 +++++ gcc/objc/config-lang.in | 2 +- gcc/objcp/ChangeLog | 5 +++++ gcc/objcp/config-lang.in | 1 - gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/pch/pr90326.C | 9 +++++++++ gcc/testsuite/g++.dg/pch/pr90326.Hs | 1 + 9 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 gcc/testsuite/g++.dg/pch/pr90326.C create mode 100644 gcc/testsuite/g++.dg/pch/pr90326.Hs diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2544e48c7d2..a1c32a11059 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2019-05-10 Jakub Jelinek + + PR pch/90326 + * config-lang.in (gtfiles): Remove c-family/c-lex.c, add + c-family/c-cppbuiltin.c. + 2019-05-09 Paolo Carlini PR c++/90382 diff --git a/gcc/cp/config-lang.in b/gcc/cp/config-lang.in index beeab9bfd93..4526d1a5cb4 100644 --- a/gcc/cp/config-lang.in +++ b/gcc/cp/config-lang.in @@ -37,7 +37,7 @@ gtfiles="\ \$(srcdir)/c-family/c-pragma.h \$(srcdir)/cp/decl.h \ \$(srcdir)/cp/parser.h \ \$(srcdir)/c-family/c-common.c \$(srcdir)/c-family/c-format.c \ -\$(srcdir)/c-family/c-lex.c \$(srcdir)/c-family/c-pragma.c \ +\$(srcdir)/c-family/c-cppbuiltin.c \$(srcdir)/c-family/c-pragma.c \ \$(srcdir)/cp/call.c \$(srcdir)/cp/class.c \$(srcdir)/cp/constexpr.c \ \$(srcdir)/cp/cp-gimplify.c \ \$(srcdir)/cp/cp-lang.c \$(srcdir)/cp/cp-objcp-common.c \ diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 04eb3fe9e55..af6ac32a785 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-10 Jakub Jelinek + + PR pch/90326 + * config-lang.in (gtfiles): Add c-family/c-format.c. + 2019-04-05 Martin Liska PR translation/89936 diff --git a/gcc/objc/config-lang.in b/gcc/objc/config-lang.in index a9820493443..bb37219b99b 100644 --- a/gcc/objc/config-lang.in +++ b/gcc/objc/config-lang.in @@ -35,4 +35,4 @@ lang_requires="c" # Order is important. If you change this list, make sure you test # building without C++ as well; that is, remove the gcc/cp directory, # and build with --enable-languages=c,objc. -gtfiles="\$(srcdir)/objc/objc-map.h \$(srcdir)/c-family/c-objc.h \$(srcdir)/objc/objc-act.h \$(srcdir)/objc/objc-act.c \$(srcdir)/objc/objc-runtime-shared-support.c \$(srcdir)/objc/objc-gnu-runtime-abi-01.c \$(srcdir)/objc/objc-next-runtime-abi-01.c \$(srcdir)/objc/objc-next-runtime-abi-02.c \$(srcdir)/c/c-parser.h \$(srcdir)/c/c-parser.c \$(srcdir)/c/c-tree.h \$(srcdir)/c/c-decl.c \$(srcdir)/c/c-lang.h \$(srcdir)/c/c-objc-common.c \$(srcdir)/c-family/c-common.c \$(srcdir)/c-family/c-common.h \$(srcdir)/c-family/c-cppbuiltin.c \$(srcdir)/c-family/c-pragma.h \$(srcdir)/c-family/c-pragma.c" +gtfiles="\$(srcdir)/objc/objc-map.h \$(srcdir)/c-family/c-objc.h \$(srcdir)/objc/objc-act.h \$(srcdir)/objc/objc-act.c \$(srcdir)/objc/objc-runtime-shared-support.c \$(srcdir)/objc/objc-gnu-runtime-abi-01.c \$(srcdir)/objc/objc-next-runtime-abi-01.c \$(srcdir)/objc/objc-next-runtime-abi-02.c \$(srcdir)/c/c-parser.h \$(srcdir)/c/c-parser.c \$(srcdir)/c/c-tree.h \$(srcdir)/c/c-decl.c \$(srcdir)/c/c-lang.h \$(srcdir)/c/c-objc-common.c \$(srcdir)/c-family/c-common.c \$(srcdir)/c-family/c-common.h \$(srcdir)/c-family/c-cppbuiltin.c \$(srcdir)/c-family/c-pragma.h \$(srcdir)/c-family/c-pragma.c \$(srcdir)/c-family/c-format.c" diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog index eb8c7b8da90..02e21301ea7 100644 --- a/gcc/objcp/ChangeLog +++ b/gcc/objcp/ChangeLog @@ -1,3 +1,8 @@ +2019-05-10 Jakub Jelinek + + PR pch/90326 + * config-lang.in (gtfiles): Don't add c-family/c-cppbuiltin.c. + 2019-01-01 Jakub Jelinek Update copyright years. diff --git a/gcc/objcp/config-lang.in b/gcc/objcp/config-lang.in index 71bf986c455..6c38806be90 100644 --- a/gcc/objcp/config-lang.in +++ b/gcc/objcp/config-lang.in @@ -52,7 +52,6 @@ gtfiles="$(. $srcdir/cp/config-lang.in ; \ gtfiles="$gtfiles \ \$(srcdir)/objc/objc-act.h \ \$(srcdir)/objc/objc-map.h \ -\$(srcdir)/c-family/c-cppbuiltin.c \ \$(srcdir)/objc/objc-act.c \ \$(srcdir)/objc/objc-gnu-runtime-abi-01.c \ \$(srcdir)/objc/objc-next-runtime-abi-01.c \ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 24f09796e28..477761e203e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-05-10 Jakub Jelinek + + PR pch/90326 + * g++.dg/pch/pr90326.C: New test. + * g++.dg/pch/pr90326.Hs: New file. + 2019-05-10 Martin Liska PR middle-end/90340 diff --git a/gcc/testsuite/g++.dg/pch/pr90326.C b/gcc/testsuite/g++.dg/pch/pr90326.C new file mode 100644 index 00000000000..6b4c5e1c730 --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/pr90326.C @@ -0,0 +1,9 @@ +#include "pr90326.H" + +int main() +{ + float f = __FLT_MAX__; + if (f == 0.0) + __builtin_abort (); + return 0; +} diff --git a/gcc/testsuite/g++.dg/pch/pr90326.Hs b/gcc/testsuite/g++.dg/pch/pr90326.Hs new file mode 100644 index 00000000000..8b1a393741c --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/pr90326.Hs @@ -0,0 +1 @@ +// empty -- 2.30.2