pkgsrc/devel/bison/patches/patch-lib_isnan.c

16 lines
705 B
C
Raw Normal View History

based on PR pkg/49589 (pkgsrc) - Add comment on patch-lib_isnan.c (from cvs log) (upstream) - Update devel/bison 3.0.2 to 3.0.3 Thanks obache and wiz for review. --------------------------------- * Noteworthy changes in release 3.0.3 (2015-01-15) [stable] ** Bug fixes *** C++ with Variants (lalr1.cc) Problems with %destructor and '%define parse.assert' have been fixed. *** Named %union support (yacc.c, glr.c) Bison 3.0 introduced a regression on named %union such as %union foo { int ival; }; The possibility to use a name was introduced "for Yacc compatibility". It is however not required by POSIX Yacc, and its usefulness is not clear. *** %define api.value.type union with %defines (yacc.c, glr.c) The C parsers were broken when %defines was used together with "%define api.value.type union". *** Redeclarations are reported in proper order On %token FOO "foo" %printer {} "foo" %printer {} FOO bison used to report: /tmp/foo.yy:2.10-11: error: %printer redeclaration for FOO %printer {} "foo" ^^ /tmp/foo.yy:3.10-11: previous declaration %printer {} FOO ^^ Now, the "previous" declaration is always the first one. ** Documentation Bison now installs various files in its docdir (which defaults to '/usr/local/share/doc/bison'), including the three fully blown examples extracted from the documentation: - rpcalc Reverse polish calculator, a simple introductory example. - mfcalc Multi-function Calc, a calculator with memory and functions and located error messages. - calc++ a calculator in C++ using variant support and token constructors.
2015-01-22 05:57:57 +01:00
$NetBSD: patch-lib_isnan.c,v 1.4 2015/01/22 04:57:57 mef Exp $
Fix definition of NaN on VAX.
2012-03-15 08:50:21 +01:00
Update to 2.5.1: * Noteworthy changes in release 2.5.1 (2012-06-05) [stable] ** Future changes: The next major release will drop support for generating parsers in K&R C. ** yacc.c: YYBACKUP works as expected. ** glr.c improvements: *** Location support is eliminated when not requested: GLR parsers used to include location-related code even when locations were not requested, and therefore not even usable. *** __attribute__ is preserved: __attribute__ is no longer disabled when __STRICT_ANSI__ is defined (i.e., when -std is passed to GCC). ** lalr1.java: several fixes: The Java parser no longer throws ArrayIndexOutOfBoundsException if the first token leads to a syntax error. Some minor clean ups. ** Changes for C++: *** C++11 compatibility: C and C++ parsers use "nullptr" instead of "0" when __cplusplus is 201103L or higher. *** Header guards The header files such as "parser.hh", "location.hh", etc. used a constant name for preprocessor guards, for instance: #ifndef BISON_LOCATION_HH # define BISON_LOCATION_HH ... #endif // !BISON_LOCATION_HH The inclusion guard is now computed from "PREFIX/FILE-NAME", where lower case characters are converted to upper case, and series of non-alphanumerical characters are converted to an underscore. With "bison -o lang++/parser.cc", "location.hh" would now include: #ifndef YY_LANG_LOCATION_HH # define YY_LANG_LOCATION_HH ... #endif // !YY_LANG_LOCATION_HH *** C++ locations: The position and location constructors (and their initialize methods) accept new arguments for line and column. Several issues in the documentation were fixed. ** liby is no longer asking for "rpl_fprintf" on some platforms. ** Changes in the manual: *** %printer is documented The "%printer" directive, supported since at least Bison 1.50, is finally documented. The "mfcalc" example is extended to demonstrate it. For consistency with the C skeletons, the C++ parsers now also support "yyoutput" (as an alias to "debug_stream ()"). *** Several improvements have been made: The layout for grammar excerpts was changed to a more compact scheme. Named references are motivated. The description of the automaton description file (*.output) is updated to the current format. Incorrect index entries were fixed. Some other errors were fixed. ** Building bison: *** Conflicting prototypes with recent/modified Flex. Fixed build problems with the current, unreleased, version of Flex, and some modified versions of 2.5.35, which have modified function prototypes. *** Warnings during the build procedure have been eliminated. *** Several portability problems in the test suite have been fixed: This includes warnings with some compilers, unexpected behavior of tools such as diff, warning messages from the test suite itself, etc. *** The install-pdf target work properly: Running "make install-pdf" (or -dvi, -html, -info, and -ps) no longer halts in the middle of its course.
2012-06-06 09:20:35 +02:00
--- lib/isnan.c.orig 2012-03-30 07:18:32.000000000 +0000
+++ lib/isnan.c
@@ -119,7 +119,7 @@ FUNC (DOUBLE x)
2012-03-15 08:50:21 +01:00
because x may be a signaling NaN. */
Update to 2.5.1: * Noteworthy changes in release 2.5.1 (2012-06-05) [stable] ** Future changes: The next major release will drop support for generating parsers in K&R C. ** yacc.c: YYBACKUP works as expected. ** glr.c improvements: *** Location support is eliminated when not requested: GLR parsers used to include location-related code even when locations were not requested, and therefore not even usable. *** __attribute__ is preserved: __attribute__ is no longer disabled when __STRICT_ANSI__ is defined (i.e., when -std is passed to GCC). ** lalr1.java: several fixes: The Java parser no longer throws ArrayIndexOutOfBoundsException if the first token leads to a syntax error. Some minor clean ups. ** Changes for C++: *** C++11 compatibility: C and C++ parsers use "nullptr" instead of "0" when __cplusplus is 201103L or higher. *** Header guards The header files such as "parser.hh", "location.hh", etc. used a constant name for preprocessor guards, for instance: #ifndef BISON_LOCATION_HH # define BISON_LOCATION_HH ... #endif // !BISON_LOCATION_HH The inclusion guard is now computed from "PREFIX/FILE-NAME", where lower case characters are converted to upper case, and series of non-alphanumerical characters are converted to an underscore. With "bison -o lang++/parser.cc", "location.hh" would now include: #ifndef YY_LANG_LOCATION_HH # define YY_LANG_LOCATION_HH ... #endif // !YY_LANG_LOCATION_HH *** C++ locations: The position and location constructors (and their initialize methods) accept new arguments for line and column. Several issues in the documentation were fixed. ** liby is no longer asking for "rpl_fprintf" on some platforms. ** Changes in the manual: *** %printer is documented The "%printer" directive, supported since at least Bison 1.50, is finally documented. The "mfcalc" example is extended to demonstrate it. For consistency with the C skeletons, the C++ parsers now also support "yyoutput" (as an alias to "debug_stream ()"). *** Several improvements have been made: The layout for grammar excerpts was changed to a more compact scheme. Named references are motivated. The description of the automaton description file (*.output) is updated to the current format. Incorrect index entries were fixed. Some other errors were fixed. ** Building bison: *** Conflicting prototypes with recent/modified Flex. Fixed build problems with the current, unreleased, version of Flex, and some modified versions of 2.5.35, which have modified function prototypes. *** Warnings during the build procedure have been eliminated. *** Several portability problems in the test suite have been fixed: This includes warnings with some compilers, unexpected behavior of tools such as diff, warning messages from the test suite itself, etc. *** The install-pdf target work properly: Running "make install-pdf" (or -dvi, -html, -info, and -ps) no longer halts in the middle of its course.
2012-06-06 09:20:35 +02:00
# if defined __SUNPRO_C || defined __ICC || defined _MSC_VER \
|| defined __DECC || defined __TINYC__ \
- || (defined __sgi && !defined __GNUC__)
+ || (defined __sgi && !defined __GNUC__) || defined __vax__
/* The Sun C 5.0, Intel ICC 10.0, Microsoft Visual C/C++ 9.0, Compaq (ex-DEC)
6.4, and TinyCC compilers don't recognize the initializers as constant
expressions. The Compaq compiler also fails when constant-folding