Mercurial > octave
annotate libinterp/parse-tree/module.mk @ 21023:ec532a439c6f
rework method of disabling warnings from GCC
* configure.ac: Check for GCC's #pragma GCC diagnostic feature.
* libinterp/module.mk, libinterp/corefcn/module.mk,
libinterp/parse-tree/module.mk: Eliminate separate libraries for TeX
and Octave parsers.
* oct-tex-lexer.in.ll, oct-tex-parser.in.yy, lex.ll, oct-parse.in.yy:
Use GCC #pragma GCC diagnostic feature to more selectively disable
warnings in generated code.
* libgui/module.mk (rcc-command): Use GCC #pragma GCC diagnostic
feature to more selectively disable warnings in generated code.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 31 Dec 2015 17:06:36 -0500 |
parents | 9b44691a3520 |
children | ae03a16f3343 |
rev | line source |
---|---|
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20366
diff
changeset
|
1 PARSE_TREE_INC = \ |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
2 libinterp/parse-tree/lex.h \ |
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20366
diff
changeset
|
3 libinterp/parse-tree/parse.h \ |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
4 libinterp/parse-tree/pt-all.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
5 libinterp/parse-tree/pt-arg-list.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
6 libinterp/parse-tree/pt-array-list.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
7 libinterp/parse-tree/pt-assign.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
8 libinterp/parse-tree/pt-binop.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
9 libinterp/parse-tree/pt-bp.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
10 libinterp/parse-tree/pt-cbinop.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
11 libinterp/parse-tree/pt-cell.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
12 libinterp/parse-tree/pt-check.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
13 libinterp/parse-tree/pt-classdef.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
14 libinterp/parse-tree/pt-cmd.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
15 libinterp/parse-tree/pt-colon.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
16 libinterp/parse-tree/pt-const.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
17 libinterp/parse-tree/pt-decl.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
18 libinterp/parse-tree/pt-eval.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
19 libinterp/parse-tree/pt-except.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
20 libinterp/parse-tree/pt-exp.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
21 libinterp/parse-tree/pt-fcn-handle.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
22 libinterp/parse-tree/pt-funcall.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
23 libinterp/parse-tree/pt-id.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
24 libinterp/parse-tree/pt-idx.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
25 libinterp/parse-tree/pt-jump.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
26 libinterp/parse-tree/pt-loop.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
27 libinterp/parse-tree/pt-mat.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
28 libinterp/parse-tree/pt-misc.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
29 libinterp/parse-tree/pt-pr-code.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
30 libinterp/parse-tree/pt-select.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
31 libinterp/parse-tree/pt-stmt.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
32 libinterp/parse-tree/pt-unop.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
33 libinterp/parse-tree/pt-walk.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
34 libinterp/parse-tree/pt.h \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
35 libinterp/parse-tree/token.h |
15057
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff
changeset
|
36 |
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff
changeset
|
37 PARSE_TREE_SRC = \ |
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20366
diff
changeset
|
38 libinterp/parse-tree/lex.ll \ |
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20366
diff
changeset
|
39 libinterp/parse-tree/oct-parse.yy \ |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
40 libinterp/parse-tree/pt-arg-list.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
41 libinterp/parse-tree/pt-array-list.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
42 libinterp/parse-tree/pt-assign.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
43 libinterp/parse-tree/pt-binop.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
44 libinterp/parse-tree/pt-bp.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
45 libinterp/parse-tree/pt-cbinop.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
46 libinterp/parse-tree/pt-cell.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
47 libinterp/parse-tree/pt-check.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
48 libinterp/parse-tree/pt-classdef.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
49 libinterp/parse-tree/pt-cmd.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
50 libinterp/parse-tree/pt-colon.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
51 libinterp/parse-tree/pt-const.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
52 libinterp/parse-tree/pt-decl.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
53 libinterp/parse-tree/pt-eval.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
54 libinterp/parse-tree/pt-except.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
55 libinterp/parse-tree/pt-exp.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
56 libinterp/parse-tree/pt-fcn-handle.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
57 libinterp/parse-tree/pt-funcall.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
58 libinterp/parse-tree/pt-id.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
59 libinterp/parse-tree/pt-idx.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
60 libinterp/parse-tree/pt-jump.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
61 libinterp/parse-tree/pt-loop.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
62 libinterp/parse-tree/pt-mat.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
63 libinterp/parse-tree/pt-misc.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
64 libinterp/parse-tree/pt-pr-code.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
65 libinterp/parse-tree/pt-select.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
66 libinterp/parse-tree/pt-stmt.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
67 libinterp/parse-tree/pt-unop.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
68 libinterp/parse-tree/pt.cc \ |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
69 libinterp/parse-tree/token.cc |
15057
46b19589b593
maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents:
diff
changeset
|
70 |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
71 ## Special rules for sources which must be built before rest of compilation. |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
72 |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
73 ## Don't use a pipeline to process gperf output since if gperf |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
74 ## is missing but sed is not, the exit status of the pipeline |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
75 ## will still be success and we will end up creating an empty |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
76 ## oct-gperf.h file. |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
77 libinterp/parse-tree/oct-gperf.h: libinterp/parse-tree/octave.gperf |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19775
diff
changeset
|
78 $(AM_V_GEN)rm -f $@-t $@t1 $@ && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19775
diff
changeset
|
79 $(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< > $@-t1 && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19775
diff
changeset
|
80 $(SED) 's,lookup\[,gperf_lookup[,' < $@-t1 > $@-t && \ |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19775
diff
changeset
|
81 mv $@-t $@ && \ |
15096
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
82 rm -f $@-t1 |
909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents:
15087
diff
changeset
|
83 |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
84 libinterp/parse-tree/oct-parse.h: libinterp/parse-tree/oct-parse.cc |
19879
2350fc8ba960
build: Fix build failure on missing oct-parse.h (bug #44391)
Mike Miller <mtmiller@ieee.org>
parents:
19792
diff
changeset
|
85 |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
86 libinterp/parse-tree/oct-parse.yy: libinterp/parse-tree/oct-parse.in.yy |
19792
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19775
diff
changeset
|
87 $(AM_V_GEN)$(call subst-bison-api-decls,octave_) |
16174
39096b290a2f
check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents:
15413
diff
changeset
|
88 |
16298
faaf60aa457c
use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents:
16237
diff
changeset
|
89 noinst_LTLIBRARIES += \ |
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20366
diff
changeset
|
90 libinterp/parse-tree/libparse-tree.la |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
91 |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
92 libinterp_parse_tree_libparse_tree_la_SOURCES = $(PARSE_TREE_SRC) |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
93 |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
94 libinterp_parse_tree_libparse_tree_la_CPPFLAGS = $(libinterp_liboctinterp_la_CPPFLAGS) |
15107
03381a36f70d
generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents:
15096
diff
changeset
|
95 |
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20366
diff
changeset
|
96 libinterp_parse_tree_libparse_tree_la_CFLAGS = $(AM_CFLAGS) $(WARN_CFLAGS) |
20327
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
97 |
0ce7d8303152
eliminate recursive make invocations in liboctave and libinterp directories
John W. Eaton <jwe@octave.org>
parents:
19879
diff
changeset
|
98 libinterp_parse_tree_libparse_tree_la_CXXFLAGS = $(AM_CXXFLAGS) $(WARN_CXXFLAGS) |
16298
faaf60aa457c
use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents:
16237
diff
changeset
|
99 |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20327
diff
changeset
|
100 libinterp_EXTRA_DIST += \ |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20327
diff
changeset
|
101 libinterp/parse-tree/oct-parse.in.yy \ |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20327
diff
changeset
|
102 libinterp/parse-tree/octave.gperf |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20327
diff
changeset
|
103 |