I: pbuilder: network access will be disabled during build I: Current time: Sat May 23 18:26:14 -12 2026 I: pbuilder-time-stamp: 1779603974 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [pccts_1.33MR33-6.5.dsc] I: copying [./pccts_1.33MR33.orig.tar.gz] I: copying [./pccts_1.33MR33-6.5.debian.tar.xz] I: Extracting source dpkg-source: warning: cannot verify inline signature for ./pccts_1.33MR33-6.5.dsc: unsupported subcommand dpkg-source: info: extracting pccts in pccts-1.33MR33 dpkg-source: info: unpacking pccts_1.33MR33.orig.tar.gz dpkg-source: info: unpacking pccts_1.33MR33-6.5.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying conversion-format-3.0-quilt.patch dpkg-source: info: applying implicit-declarations.patch dpkg-source: info: applying clang.patch dpkg-source: info: applying gcc-15.patch I: using fakeroot in build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/3355367/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='arm64' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' DISTRIBUTION='unstable' HOME='/root' HOST_ARCH='arm64' IFS=' ' INVOCATION_ID='d27899934e764316932aaab39ec61040' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='3355367' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.LSAa8K7V/pbuilderrc_SgZq --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.LSAa8K7V/b1 --logfile b1/build.log pccts_1.33MR33-6.5.dsc' SUDO_GID='109' SUDO_UID='104' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' http_proxy='http://192.168.101.4:3128' I: uname -a Linux codethink03-arm64 6.1.0-33-cloud-arm64 #1 SMP Debian 6.1.133-1 (2025-04-10) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin I: user script /srv/workspace/pbuilder/3355367/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: arm64 Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 13) dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19953 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} debhelper{a} dh-autoreconf{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libdebhelper-perl{a} libelf1t64{a} libfile-stripnondeterminism-perl{a} libmagic-mgc{a} libmagic1t64{a} libpipeline1{a} libtool{a} libuchardet0{a} libunistring5{a} libxml2{a} m4{a} man-db{a} po-debconf{a} sensible-utils{a} The following packages are RECOMMENDED but will NOT be installed: curl libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx wget 0 packages upgraded, 29 newly installed, 0 to remove and 0 not upgraded. Need to get 10.9 MB of archives. After unpacking 44.7 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian unstable/main arm64 sensible-utils all 0.0.24 [24.8 kB] Get: 2 http://deb.debian.org/debian unstable/main arm64 libmagic-mgc arm64 1:5.46-5 [338 kB] Get: 3 http://deb.debian.org/debian unstable/main arm64 libmagic1t64 arm64 1:5.46-5 [103 kB] Get: 4 http://deb.debian.org/debian unstable/main arm64 file arm64 1:5.46-5 [43.7 kB] Get: 5 http://deb.debian.org/debian unstable/main arm64 gettext-base arm64 0.23.1-1 [241 kB] Get: 6 http://deb.debian.org/debian unstable/main arm64 libuchardet0 arm64 0.0.8-1+b2 [69.2 kB] Get: 7 http://deb.debian.org/debian unstable/main arm64 groff-base arm64 1.23.0-7 [1129 kB] Get: 8 http://deb.debian.org/debian unstable/main arm64 bsdextrautils arm64 2.41-4 [93.9 kB] Get: 9 http://deb.debian.org/debian unstable/main arm64 libpipeline1 arm64 1.5.8-1 [40.2 kB] Get: 10 http://deb.debian.org/debian unstable/main arm64 man-db arm64 2.13.0-1 [1404 kB] Get: 11 http://deb.debian.org/debian unstable/main arm64 m4 arm64 1.4.19-8 [285 kB] Get: 12 http://deb.debian.org/debian unstable/main arm64 autoconf all 2.72-3.1 [494 kB] Get: 13 http://deb.debian.org/debian unstable/main arm64 autotools-dev all 20240727.1 [60.2 kB] Get: 14 http://deb.debian.org/debian unstable/main arm64 automake all 1:1.17-4 [862 kB] Get: 15 http://deb.debian.org/debian unstable/main arm64 autopoint all 0.23.1-1 [770 kB] Get: 16 http://deb.debian.org/debian unstable/main arm64 libdebhelper-perl all 13.24.2 [90.9 kB] Get: 17 http://deb.debian.org/debian unstable/main arm64 libtool all 2.5.4-4 [539 kB] Get: 18 http://deb.debian.org/debian unstable/main arm64 dh-autoreconf all 20 [17.1 kB] Get: 19 http://deb.debian.org/debian unstable/main arm64 libarchive-zip-perl all 1.68-1 [104 kB] Get: 20 http://deb.debian.org/debian unstable/main arm64 libfile-stripnondeterminism-perl all 1.14.1-2 [19.7 kB] Get: 21 http://deb.debian.org/debian unstable/main arm64 dh-strip-nondeterminism all 1.14.1-2 [8620 B] Get: 22 http://deb.debian.org/debian unstable/main arm64 libelf1t64 arm64 0.192-4 [189 kB] Get: 23 http://deb.debian.org/debian unstable/main arm64 dwz arm64 0.15-1+b1 [102 kB] Get: 24 http://deb.debian.org/debian unstable/main arm64 libunistring5 arm64 1.3-2 [453 kB] Get: 25 http://deb.debian.org/debian unstable/main arm64 libxml2 arm64 2.12.7+dfsg+really2.9.14-0.4 [629 kB] Get: 26 http://deb.debian.org/debian unstable/main arm64 gettext arm64 0.23.1-1 [1610 kB] Get: 27 http://deb.debian.org/debian unstable/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 28 http://deb.debian.org/debian unstable/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 29 http://deb.debian.org/debian unstable/main arm64 debhelper all 13.24.2 [919 kB] Fetched 10.9 MB in 0s (106 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19953 files and directories currently installed.) Preparing to unpack .../00-sensible-utils_0.0.24_all.deb ... Unpacking sensible-utils (0.0.24) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../01-libmagic-mgc_1%3a5.46-5_arm64.deb ... Unpacking libmagic-mgc (1:5.46-5) ... Selecting previously unselected package libmagic1t64:arm64. Preparing to unpack .../02-libmagic1t64_1%3a5.46-5_arm64.deb ... Unpacking libmagic1t64:arm64 (1:5.46-5) ... Selecting previously unselected package file. Preparing to unpack .../03-file_1%3a5.46-5_arm64.deb ... Unpacking file (1:5.46-5) ... Selecting previously unselected package gettext-base. Preparing to unpack .../04-gettext-base_0.23.1-1_arm64.deb ... Unpacking gettext-base (0.23.1-1) ... Selecting previously unselected package libuchardet0:arm64. Preparing to unpack .../05-libuchardet0_0.0.8-1+b2_arm64.deb ... Unpacking libuchardet0:arm64 (0.0.8-1+b2) ... Selecting previously unselected package groff-base. Preparing to unpack .../06-groff-base_1.23.0-7_arm64.deb ... Unpacking groff-base (1.23.0-7) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../07-bsdextrautils_2.41-4_arm64.deb ... Unpacking bsdextrautils (2.41-4) ... Selecting previously unselected package libpipeline1:arm64. Preparing to unpack .../08-libpipeline1_1.5.8-1_arm64.deb ... Unpacking libpipeline1:arm64 (1.5.8-1) ... Selecting previously unselected package man-db. Preparing to unpack .../09-man-db_2.13.0-1_arm64.deb ... Unpacking man-db (2.13.0-1) ... Selecting previously unselected package m4. Preparing to unpack .../10-m4_1.4.19-8_arm64.deb ... Unpacking m4 (1.4.19-8) ... Selecting previously unselected package autoconf. Preparing to unpack .../11-autoconf_2.72-3.1_all.deb ... Unpacking autoconf (2.72-3.1) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../12-autotools-dev_20240727.1_all.deb ... Unpacking autotools-dev (20240727.1) ... Selecting previously unselected package automake. Preparing to unpack .../13-automake_1%3a1.17-4_all.deb ... Unpacking automake (1:1.17-4) ... Selecting previously unselected package autopoint. Preparing to unpack .../14-autopoint_0.23.1-1_all.deb ... Unpacking autopoint (0.23.1-1) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../15-libdebhelper-perl_13.24.2_all.deb ... Unpacking libdebhelper-perl (13.24.2) ... Selecting previously unselected package libtool. Preparing to unpack .../16-libtool_2.5.4-4_all.deb ... Unpacking libtool (2.5.4-4) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../17-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../18-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../19-libfile-stripnondeterminism-perl_1.14.1-2_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.1-2) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../20-dh-strip-nondeterminism_1.14.1-2_all.deb ... Unpacking dh-strip-nondeterminism (1.14.1-2) ... Selecting previously unselected package libelf1t64:arm64. Preparing to unpack .../21-libelf1t64_0.192-4_arm64.deb ... Unpacking libelf1t64:arm64 (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../22-dwz_0.15-1+b1_arm64.deb ... Unpacking dwz (0.15-1+b1) ... Selecting previously unselected package libunistring5:arm64. Preparing to unpack .../23-libunistring5_1.3-2_arm64.deb ... Unpacking libunistring5:arm64 (1.3-2) ... Selecting previously unselected package libxml2:arm64. Preparing to unpack .../24-libxml2_2.12.7+dfsg+really2.9.14-0.4_arm64.deb ... Unpacking libxml2:arm64 (2.12.7+dfsg+really2.9.14-0.4) ... Selecting previously unselected package gettext. Preparing to unpack .../25-gettext_0.23.1-1_arm64.deb ... Unpacking gettext (0.23.1-1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../26-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../27-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../28-debhelper_13.24.2_all.deb ... Unpacking debhelper (13.24.2) ... Setting up libpipeline1:arm64 (1.5.8-1) ... Setting up bsdextrautils (2.41-4) ... Setting up libmagic-mgc (1:5.46-5) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.24.2) ... Setting up libmagic1t64:arm64 (1:5.46-5) ... Setting up gettext-base (0.23.1-1) ... Setting up m4 (1.4.19-8) ... Setting up file (1:5.46-5) ... Setting up libelf1t64:arm64 (0.192-4) ... Setting up autotools-dev (20240727.1) ... Setting up libunistring5:arm64 (1.3-2) ... Setting up autopoint (0.23.1-1) ... Setting up autoconf (2.72-3.1) ... Setting up dwz (0.15-1+b1) ... Setting up sensible-utils (0.0.24) ... Setting up libuchardet0:arm64 (0.0.8-1+b2) ... Setting up libxml2:arm64 (2.12.7+dfsg+really2.9.14-0.4) ... Setting up automake (1:1.17-4) ... update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.1-2) ... Setting up gettext (0.23.1-1) ... Setting up libtool (2.5.4-4) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up dh-strip-nondeterminism (1.14.1-2) ... Setting up groff-base (1.23.0-7) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up debhelper (13.24.2) ... Processing triggers for libc-bin (2.41-7) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps Reading package lists... Building dependency tree... Reading state information... fakeroot is already the newest version (1.37.1.1-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package I: Running cd /build/reproducible-path/pccts-1.33MR33/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../pccts_1.33MR33-6.5_source.changes dpkg-buildpackage: info: source package pccts dpkg-buildpackage: info: source version 1.33MR33-6.5 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Andreas Tille dpkg-source --before-build . dpkg-buildpackage: info: host architecture arm64 debian/rules clean dh clean dh_auto_clean make -j12 clean make[1]: Entering directory '/build/reproducible-path/pccts-1.33MR33' (cd ./antlr; make -s clean) (cd ./dlg; make -s clean) (cd ./sorcerer; make -s clean) (cd ./sorcerer/lib; make -s clean) (cd ./support/genmk; make -s clean) make[1]: Leaving directory '/build/reproducible-path/pccts-1.33MR33' dh_clean debian/rules binary dh binary dh_update_autotools_config dh_autoreconf dh_auto_configure dh_auto_build make -j12 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/reproducible-path/pccts-1.33MR33' Welcome to PCCTS 1.33MR33 installation (Version 1.33 Maintenance Release #33) Released 19 April 2002 Featuring ANTLR -- ANother Tool for Language Recognition DLG -- DFA-based Lexical Analyzer Generator SORCERER -- Source-to-source translator (tree walker) http://www.antlr.org Trouble reports to tmoog@polhode.com Additional PCCTS 1.33 information at http://www.polhode.com To substitute gcc for CC to invoke compiler: make CC=gcc If there are problems with cr and lf try: unzip -a ... Making executables... (cd ./antlr; make CC="cc" COPT="-O2 -Wall -Wno-unused -g") make[2]: Entering directory '/build/reproducible-path/pccts-1.33MR33/antlr' cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o antlr.o antlr.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o scan.o scan.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o err.o err.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o bits.o bits.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o build.o build.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o fset2.o fset2.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o fset.o fset.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o gen.o gen.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o globals.o globals.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o hash.o hash.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o lex.o lex.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o main.o main.c In file included from fset2.c:44: fset2.c: In function 'tRuleRef': fset2.c:714:14: warning: passing argument 1 of 'fpTraverse[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 714 | TRAV(r, k, &rk, t); | ^ | | | Junction * {aka struct _junct *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ fset2.c:714:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 714 | TRAV(r, k, &rk, t); | ^ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ fset2.c: In function 'tAction': main.c:560:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | ^~~ main.c:560:17: note: (near initialization for 'options[0].process.process_one_arg') fset2.c:951:15: warning: passing argument 1 of 'fpTraverse[p->guardNodes->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 951 | TRAV(p->guardNodes,k,rk,t); | ~^~~~~~~~~~~~ | | | struct _junct * syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } fset2.c:951:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' 951 | TRAV(p->guardNodes,k,rk,t); | ~^~~~~~~~~~~~ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ main.c:561:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | ^~~ main.c:561:17: note: (near initialization for 'options[1].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } main.c:562:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | ^~~ main.c:562:17: note: (near initialization for 'options[2].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } main.c:563:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | ^~~ main.c:563:17: note: (near initialization for 'options[3].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } main.c:564:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | ^~~ main.c:564:17: note: (near initialization for 'options[4].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } fset2.c: In function 'VerifyAmbig': main.c:565:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | ^~~ main.c:565:17: note: (near initialization for 'options[5].process.process_one_arg') fset2.c:1259:14: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1259 | TRAV(p, LL_k, &rk, *t); | ^ | | | Junction * {aka struct _junct *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ globals.c:195:9: warning: initialization of 'struct _tree * (*)(Node *, int, set *)' {aka 'struct _tree * (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _tree * (*)()' [-Wincompatible-pointer-types] 195 | (struct _tree *(*)(...)) tJunc, | ^ globals.c:195:9: note: (near initialization for 'fpTraverse[1]') fset2.c:1259:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1259 | TRAV(p, LL_k, &rk, *t); | ^ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ globals.c:196:9: warning: initialization of 'struct _tree * (*)(Node *, int, set *)' {aka 'struct _tree * (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _tree * (*)()' [-Wincompatible-pointer-types] 196 | (struct _tree *(*)(...)) tRuleRef, | ^ globals.c:196:9: note: (near initialization for 'fpTraverse[2]') globals.c:197:9: warning: initialization of 'struct _tree * (*)(Node *, int, set *)' {aka 'struct _tree * (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _tree * (*)()' [-Wincompatible-pointer-types] 197 | (struct _tree *(*)(...)) tToken, | ^ globals.c:197:9: note: (near initialization for 'fpTraverse[3]') globals.c:198:9: warning: initialization of 'struct _tree * (*)(Node *, int, set *)' {aka 'struct _tree * (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _tree * (*)()' [-Wincompatible-pointer-types] 198 | (struct _tree *(*)(...)) tAction | ^ globals.c:198:9: note: (near initialization for 'fpTraverse[4]') globals.c:207:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] 207 | (struct _set (*)(...)) rJunc, | ^ globals.c:207:9: note: (near initialization for 'fpReach[1]') globals.c:208:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] 208 | (struct _set (*)(...)) rRuleRef, | ^ globals.c:208:9: note: (near initialization for 'fpReach[2]') globals.c:209:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] 209 | (struct _set (*)(...)) rToken, | ^ globals.c:209:9: note: (near initialization for 'fpReach[3]') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } globals.c:210:9: warning: initialization of 'struct _set (*)(Node *, int, set *)' {aka 'struct _set (*)(struct _node *, int, struct _set *)'} from incompatible pointer type 'struct _set (*)()' [-Wincompatible-pointer-types] 210 | (struct _set (*)(...)) rAction | ^ globals.c:210:9: note: (near initialization for 'fpReach[4]') fset2.c:1276:14: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1276 | TRAV(p, LL_k, &rk, *u); | ^ | | | Junction * {aka struct _junct *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ globals.c:216:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 216 | (void (*)(...)) pJunc, | ^ globals.c:216:9: note: (near initialization for 'fpPrint[1]') globals.c:217:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 217 | (void (*)(...)) pRuleRef, | ^ globals.c:217:9: note: (near initialization for 'fpPrint[2]') globals.c:218:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 218 | (void (*)(...)) pToken, | ^ globals.c:218:9: note: (near initialization for 'fpPrint[3]') globals.c:219:9: warning: initialization of 'void (*)(Node *)' {aka 'void (*)(struct _node *)'} from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 219 | (void (*)(...)) pAction | ^ globals.c:219:9: note: (near initialization for 'fpPrint[4]') fset2.c:1276:14: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1276 | TRAV(p, LL_k, &rk, *u); | ^ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ main.c:566:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | ^~~~~~~~~ main.c:566:17: note: (near initialization for 'options[6].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } main.c:567:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 567 | { "-fe", 1, pFe, "Rename err.c"}, | ^~~ main.c:567:17: note: (near initialization for 'options[7].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } main.c:568:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | ^~~~~ main.c:568:17: note: (near initialization for 'options[8].process.process_one_arg') fset2.c: In function 'computePredFromContextGuard': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } main.c:569:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | ^~~ main.c:569:17: note: (near initialization for 'options[9].process.process_one_arg') fset2.c:1625:22: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1625 | TRAV(p, hmax, &rk, t); /* MR10 was LL_k */ | ^ | | | Junction * {aka struct _junct *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ fset2.c:1625:22: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1625 | TRAV(p, hmax, &rk, t); /* MR10 was LL_k */ | ^ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } main.c:570:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 570 | { "-fm", 1, pFm, "Rename mode.h"}, | ^~~ main.c:570:17: note: (near initialization for 'options[10].process.process_one_arg') fset2.c:1640:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1640 | REACH(p, 1, &rk, scontext); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset2.c:1640:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1640 | REACH(p, 1, &rk, scontext); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } main.c:571:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 571 | { "-fr", 1, pFr, "Rename remap.h"}, | ^~~ main.c:571:17: note: (near initialization for 'options[11].process.process_one_arg') fset2.c: In function 'recomputeContextGuard': fset2.c:1685:22: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1685 | TRAV(p, pred->k, &rk, t); | ^ | | | Junction * {aka struct _junct *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } main.c:572:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | ^~~ main.c:572:17: note: (near initialization for 'options[12].process.process_one_arg') fset2.c:1685:22: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1685 | TRAV(p, pred->k, &rk, t); | ^ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ fset2.c:1696:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1696 | REACH(p, 1, &rk, scontext); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } main.c:573:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | ^~~~~ main.c:573:17: note: (near initialization for 'options[13].process.process_one_arg') fset2.c:1696:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1696 | REACH(p, 1, &rk, scontext); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset2.c: In function 'MR_traceAmbSourceKclient': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } main.c:574:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | ^~~~~ main.c:574:17: note: (near initialization for 'options[14].process.process_one_arg') fset2.c:1772:29: warning: passing argument 1 of 'fpTraverse[MR_AmbSourceSearchJ[i]->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1772 | TRAV(MR_AmbSourceSearchJ[i],maxk,&incomplete,t); | ~~~~~~~~~~~~~~~~~~~^~~ | | | Junction * {aka struct _junct *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ fset2.c:1772:29: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1772 | TRAV(MR_AmbSourceSearchJ[i],maxk,&incomplete,t); | ~~~~~~~~~~~~~~~~~~~^~~ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } In file included from fset.c:39: fset.c: In function 'rRuleRef': fset.c:347:15: warning: passing argument 1 of 'fpReach[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 347 | REACH(r, k, &rk, a); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:575:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | ^~~~~ main.c:575:17: note: (near initialization for 'options[15].process.process_one_arg') gen.c:54:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 54 | (void (*)(...)) genRuleRef, | ^ gen.c:54:9: note: (near initialization for 'C_Trans[2]') gen.c:55:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 55 | (void (*)(...)) genToken, | ^ gen.c:55:9: note: (near initialization for 'C_Trans[3]') gen.c:56:9: warning: initialization of 'void (*)()' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types] 56 | (void (*)(...)) genAction | ^ gen.c:56:9: note: (near initialization for 'C_Trans[4]') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } main.c:576:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | ^~~~~ main.c:576:17: note: (near initialization for 'options[16].process.process_one_arg') In file included from bits.c:36: bits.c: In function 'Efirst': fset2.c: In function 'MR_traceAmbSource': fset.c:347:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 347 | REACH(r, k, &rk, a); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset2.c:2020:20: warning: passing argument 1 of 'fpReach[p[i]->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 2020 | REACH(p[i],depth,&incomplete,tokensUsed); | ~^~~ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } main.c:577:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | ^~~~~ main.c:577:17: note: (near initialization for 'options[17].process.process_one_arg') fset.c: In function 'rAction': fset2.c:2020:20: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 2020 | REACH(p[i],depth,&incomplete,tokensUsed); | ~^~~ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } main.c:578:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | ^~~ main.c:578:17: note: (near initialization for 'options[18].process.process_one_arg') bits.c:224:15: warning: passing argument 1 of 'fpReach[r->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 224 | REACH(r, 1, &rk, a); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ bits.c:224:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 224 | REACH(r, 1, &rk, a); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } main.c:579:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | ^~~ main.c:579:17: note: (near initialization for 'options[19].process.process_one_arg') bits.c: In function 'DefErrSetForC1': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } main.c:580:19: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | ^~~~~ main.c:580:19: note: (near initialization for 'options[20].process.process_one_arg') cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o misc.o misc.c fset.c:448:26: warning: passing argument 1 of 'fpReach[p->guardNodes->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 448 | /* MR11 */ REACH(p->guardNodes,k,rk,a); | ~^~~~~~~~~~~~ | | | struct _junct * syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset.c:448:26: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' 448 | /* MR11 */ REACH(p->guardNodes,k,rk,a); | ~^~~~~~~~~~~~ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ hash.c: In function 'hash_get': hash.c:135:44: warning: array subscript 0 is outside array bounds of 'char[0]' [-Warray-bounds=] 135 | if ( !(table!=NULL && key!=NULL) ) *((char *) 34) = 3; | ^~~~~~~~~~~~~~ cc1: note: source object is likely at address zero main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } main.c:581:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | ^~~~ main.c:581:17: note: (near initialization for 'options[21].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } main.c:582:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | ^~~~~ main.c:582:17: note: (near initialization for 'options[22].process.process_one_arg') bits.c:576:53: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] 576 | fprintf(ErrFile, "SetWordType %s%s[%d] = {", | ~^ | | | int | %ld bits.c:582:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 582 | fprintf(ErrFile, "SetWordType zzerr%d[%d] = {", | ~^ | | | int | %ld bits.c: In function 'DefErrSetForCC1': bits.c:644:63: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] 644 | fprintf(Parser_h, "\tstatic SetWordType %s%s[%d];\n", name, suffix, | ~^ | | | int | %ld main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } bits.c:646:58: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=] 646 | fprintf(Parser_c, "SetWordType %s::%s%s[%d] = {", | ~^ | | | int | %ld main.c:583:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | ^~~~ main.c:583:17: note: (near initialization for 'options[23].process.process_one_arg') bits.c:653:59: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] 653 | fprintf(Parser_c, "SetWordType %s::err%d[%d] = {", | ~^ | | | int | %ld bits.c:657:64: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 657 | fprintf(Parser_h, "\tstatic SetWordType err%d[%d];\n", esetnum, | ~^ | | | int | %ld main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } bits.c: In function 'GenParser_c_Hdr': main.c:584:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | ^~~~~ main.c:584:17: note: (near initialization for 'options[24].process.process_one_arg') In file included from gen.c:38: gen.c: In function 'genBlk': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } main.c:585:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | ^~~~~~ main.c:585:17: note: (near initialization for 'options[25].process.process_one_arg') fset.c: In function 'First': bits.c:790:83: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Wformat=] 790 | fprintf(Parser_c, "%s(ANTLRTokenBuffer *input) : %s(input,%d,%d,%d,%d)\n", | ~^ | | | int | %ld gen.c:1559:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 1559 | TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } main.c:586:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | ^~~~ gen.c:1559:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 1559 | TRANS(q->p1); | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:586:17: note: (near initialization for 'options[26].process.process_one_arg') bits.c: In function 'GenErrHdr': gen.c:1559:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 1559 | TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ bits.c:915:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 915 | fprintf(ErrFile, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); | ~^ | | | int | %ld gen.c:1559:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 1559 | TRANS(q->p1); | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ fset.c:1498:23: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1498 | REACH(p, k, &rk, alt1->fset[k]); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } main.c:587:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 587 | { "-o", 1, pOut, OutputDirectoryOption}, | ^~~~ main.c:587:17: note: (near initialization for 'options[27].process.process_one_arg') gen.c:1644:26: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)alt->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 1644 | TRANS(alt->p1); | ~~~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ fset.c:1498:23: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1498 | REACH(p, k, &rk, alt1->fset[k]); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset.c:1529:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1529 | if (AlphaBetaTrace) MR_MaintainBackTrace=0; | ^~ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } gen.c:1644:26: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 1644 | TRANS(alt->p1); | ~~~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:588:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | ^~~~ main.c:588:17: note: (near initialization for 'options[28].process.process_one_arg') gen.c:1644:26: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)alt->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 1644 | TRANS(alt->p1); | ~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:1644:26: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 1644 | TRANS(alt->p1); | ~~~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } main.c:589:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | ^~~~~ main.c:589:17: note: (near initialization for 'options[29].process.process_one_arg') gen.c: In function 'genAction': gen.c:1978:16: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 1978 | TRANS(p->next) | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } gen.c:1978:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 1978 | TRANS(p->next) | ~^~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:590:16: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | ^~~~~ main.c:590:16: note: (near initialization for 'options[30].process.process_one_arg') fset.c:1530:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1530 | HandleAmbiguity(j, alt1, alt2, jtype); | ^~~~~~~~~~~~~~~ fset.c:1540:47: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1540 | REACH(p, k, &rk, alt1->fset[k]); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset.c:1540:47: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1540 | REACH(p, k, &rk, alt1->fset[k]); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } main.c:591:18: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | ^~~~~~~~ main.c:591:18: note: (near initialization for 'options[31].process.process_one_arg') fset.c:1542:47: warning: passing argument 1 of 'fpReach[q->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 1542 | REACH(q, k, &rk, alt2->fset[k]); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ fset.c:1542:47: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 1542 | REACH(q, k, &rk, alt2->fset[k]); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ In file included from antlr.c:25: antlr.c: In function 'zzconstr_attr': ../h/antlr.h:339:63: warning: 'a' is used uninitialized [-Wuninitialized] 339 | {Attrib a; zzcr_attr((&a),_tok,_text); return a;} \ | ^ antlr.c:36:1: note: in expansion of macro 'ANTLR_INFO' 36 | ANTLR_INFO | ^~~~~~~~~~ ../h/antlr.h:339:25: note: 'a' declared here 339 | {Attrib a; zzcr_attr((&a),_tok,_text); return a;} \ | ^ antlr.c:36:1: note: in expansion of macro 'ANTLR_INFO' 36 | ANTLR_INFO | ^~~~~~~~~~ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } main.c:592:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | ^~~~~ main.c:592:17: note: (near initialization for 'options[32].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } main.c:593:20: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | ^~~~~~~ main.c:593:20: note: (near initialization for 'options[33].process.process_one_arg') gen.c:1978:16: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 1978 | TRANS(p->next) | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:1978:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 1978 | TRANS(p->next) | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } main.c:594:18: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | ^~~~ main.c:594:18: note: (near initialization for 'options[34].process.process_one_arg') gen.c: In function 'genRuleRef': gen.c:2225:16: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2225 | TRANS(p->next) | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:2225:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2225 | TRANS(p->next) | ~^~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } main.c:595:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | ^~~ main.c:595:21: note: (near initialization for 'options[35].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } main.c:596:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | ^~~ main.c:596:21: note: (near initialization for 'options[36].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -c -o set.o ../support/set/set.c main.c:597:20: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | ^~~~~~~~ main.c:597:20: note: (near initialization for 'options[37].process.process_one_arg') gen.c:2225:16: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2225 | TRANS(p->next) | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2225:16: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2225 | TRANS(p->next) | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } main.c:599:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | ^~~~~~~~~ main.c:599:21: note: (near initialization for 'options[38].process.process_one_arg') gen.c: In function 'genToken': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } main.c:601:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | ^~~ main.c:601:17: note: (near initialization for 'options[39].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } gen.c:2663:33: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)a->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2663 | TRANS( a->next ); /* MR30 */ | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2663 | TRANS( a->next ); /* MR30 */ | ~^~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:604:17: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 604 | { "-aad" ,1,pAAd, | ^~~~ main.c:604:17: note: (near initialization for 'options[41].process.process_one_arg') gen.c:2663:33: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)a->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2663 | TRANS( a->next ); /* MR30 */ | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2663:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2663 | TRANS( a->next ); /* MR30 */ | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2666:33: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2666 | TRANS( p->next ); /* MR30 */ | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } main.c:606:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 606 | { "-info",1,pInfo, | ^~~~~ main.c:606:21: note: (near initialization for 'options[42].process.process_one_arg') main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } main.c:608:20: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 608 | { "-treport",1,pTreport, | ^~~~~~~~ main.c:608:20: note: (near initialization for 'options[43].process.process_one_arg') gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2666 | TRANS( p->next ); /* MR30 */ | ~^~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } main.c:610:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 610 | { "-newAST", 0, pNewAST, | ^~~~~~~ main.c:610:25: note: (near initialization for 'options[44].process.process_one_arg') gen.c:2666:33: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2666 | TRANS( p->next ); /* MR30 */ | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2666:33: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2666 | TRANS( p->next ); /* MR30 */ | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2686:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)p->next)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2686 | TRANS(p->next); | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:2686:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2686 | TRANS(p->next); | ~^~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } main.c:612:24: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 612 | { "-tmake", 0, ptmakeInParser, | ^~~~~~~~~~~~~~ main.c:612:24: note: (near initialization for 'options[45].process.process_one_arg') gen.c:2686:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)p->next->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2686 | TRANS(p->next); | ~^~~~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } main.c:614:19: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 614 | { "-alpha",0, pAlpha, | ^~~~~~ main.c:614:19: note: (near initialization for 'options[46].process.process_one_arg') gen.c:2686:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2686 | TRANS(p->next); | ~^~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c: In function 'genOptBlk': main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } 613 | "In C++ mode use parser's tmake method rather than \"ASTBase::tmake(...)\""}, /* MR23 */ 614 | { "-alpha",0, pAlpha, | { } main.c:616:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | ^~~~~~~~~~ main.c:616:21: note: (near initialization for 'options[47].process.process_one_arg') In file included from ../support/set/set.c:67: ../support/set/set.c: In function 'set_of': gen.c:2764:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ ../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ | ^~ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ ../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 59 | (a).n = NumWords(_max); | ^ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ gen.c:2764:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ ../support/set/set.c: In function 'set_val': ../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ ../support/set/set.h:58:68: note: format string is defined here 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ | ~^ | | | int | %ld ../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ | ^~ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ ../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 59 | (a).n = NumWords(_max); | ^ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ gen.c:2764:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2764:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2764 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } 613 | "In C++ mode use parser's tmake method rather than \"ASTBase::tmake(...)\""}, /* MR23 */ 614 | { "-alpha",0, pAlpha, | { } 615 | "Provide additional information for \"(alpha)? beta\" error messages"}, /* MR14 */ 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | { } main.c:618:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 618 | { "-nopurify",0,pNOPURIFY, | ^~~~~~~~~ main.c:618:25: note: (near initialization for 'options[48].process.process_one_arg') In file included from err.c:28: ../h/err.h: In function 'zzFAIL': ../h/err.h:217:19: warning: 'f$' may be used uninitialized [-Wmaybe-uninitialized] 217 | *miss_set = f[i-1]; | ~~~~~~~~~~^~~~~~~~ ../h/err.h:168:22: note: 'f$' was declared here 168 | SetWordType *f[1]; | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } 613 | "In C++ mode use parser's tmake method rather than \"ASTBase::tmake(...)\""}, /* MR23 */ 614 | { "-alpha",0, pAlpha, | { } 615 | "Provide additional information for \"(alpha)? beta\" error messages"}, /* MR14 */ 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | { } 617 | "EXPERIMENTAL change to (...)* and (...)+ syntax error sets"}, /* MR21 */ 618 | { "-nopurify",0,pNOPURIFY, | { } main.c:620:21: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 620 | { "-", 0, pStdin, "Read grammar from stdin" }, | ^~~~~~ main.c:620:21: note: (near initialization for 'options[49].process.process_one_arg') gen.c: In function 'genLoopBlk': gen.c:2833:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2833 | TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:2833:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2833 | TRANS(q->p1); | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } 613 | "In C++ mode use parser's tmake method rather than \"ASTBase::tmake(...)\""}, /* MR23 */ 614 | { "-alpha",0, pAlpha, | { } 615 | "Provide additional information for \"(alpha)? beta\" error messages"}, /* MR14 */ 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | { } 617 | "EXPERIMENTAL change to (...)* and (...)+ syntax error sets"}, /* MR21 */ 618 | { "-nopurify",0,pNOPURIFY, | { } 619 | "Don't use the notorious PURIFY macro (replaced by MR23 initial value syntax) to zero return arguments of rules"}, /* MR23 */ 620 | { "-", 0, pStdin, "Read grammar from stdin" }, | { } gen.c:2833:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 2833 | TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:2833:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 2833 | TRANS(q->p1); | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] 494 | Opt options[] = { | ^ ...... 560 | { "-CC", 0, pCC, "Generate C++ output (default=FALSE)"}, | { } 561 | { "-cr", 0, pCr, "Generate cross reference (default=FALSE)"}, | { } 562 | { "-ck", 1, pCk, "Set compressed lookahead depth; fast approximate lookahead"}, | { } 563 | { "-e1", 0, pE1, "Ambiguities/errors shown in low detail (default)"}, | { } 564 | { "-e2", 0, pE2, "Ambiguities/errors shown in more detail"}, | { } 565 | { "-e3", 0, pE3, "Ambiguities for k>1 grammars shown with exact tuples (not lookahead sets)"}, | { } 566 | { "-f", 1, pFileList,"Read names of grammar files from specified file"}, /* MR14 */ | { } 567 | { "-fe", 1, pFe, "Rename err.c"}, | { } 568 | { "-fh", 1, pFHdr, "Rename stdpccts.h header (turns on -gh)"}, | { } 569 | { "-fl", 1, pFl, "Rename lexical output--parser.dlg"}, | { } 570 | { "-fm", 1, pFm, "Rename mode.h"}, | { } 571 | { "-fr", 1, pFr, "Rename remap.h"}, | { } 572 | { "-ft", 1, pFt, "Rename tokens.h"}, | { } 573 | { "-ga", 0, pANSI, "Generate ANSI-compatible code (default=FALSE)"}, | { } 574 | { "-gc", 0, pCGen, "Do not generate output parser code (default=FALSE)"}, | { } 575 | { "-gd", 0, pTGen, "Generate code to trace rule invocation (default=FALSE)"}, | { } 576 | { "-ge", 0, pEGen, "Generate an error class for each non-terminal (default=FALSE)"}, | { } 577 | { "-gh", 0, pGHdr, "Generate stdpccts.h for non-ANTLR-generated-files to include"}, | { } 578 | { "-gk", 0, pDL, "Generate parsers that delay lookahead fetches until needed"}, | { } 579 | { "-gl", 0, pLI, "Generate line info about grammar actions in C parser"}, | { } 580 | { "-glms", 0, pLIms,"Like -gl but replace '\\' with '/' in #line filenames for MS C/C++ systems"}, | { } 581 | { "-gp", 1, pPre, "Prefix all generated rule functions with a string"}, | { } 582 | { "-gs", 0, pSGen, "Do not generate sets for token expression lists (default=FALSE)"}, | { } 583 | { "-gt", 0, pAst, "Generate code for Abstract-Syntax-Trees (default=FALSE)"}, | { } 584 | { "-gx", 0, pLGen, "Do not generate lexical (dlg-related) files (default=FALSE)"}, | { } 585 | { "-gxt",0, pXTGen, "Do not generate tokens.h (default=FALSE)"}, | { } 586 | { "-k", 1, pLLK, "Set full LL(k) lookahead depth (default==1)"}, | { } 587 | { "-o", 1, pOut, OutputDirectoryOption}, | { } 588 | { "-p", 0, pPrt, "Print out the grammar w/o actions (default=no)"}, | { } 589 | { "-pa", 0, pPrtA, "Print out the grammar w/o actions & w/FIRST sets (default=no)"}, | { } 590 | { "-pr",0, pPred, "no longer used; predicates employed if present"}, | { } 591 | { "-prc", 1, pPredCtx,"Turn on/off computation of context for hoisted predicates"}, | { } 592 | { "-rl", 1, pTRes, "Limit max # of tree nodes used by grammar analysis"}, | { } 593 | { "-stdout",0, pStdout, "Send grammar.c/grammar.cpp to stdout"}, /* MR6 */ | { } 594 | { "-tab", 1, pTab, "Width of tabs (1 to 8) for grammar.c/grammar.cpp files"}, /* MR6 */ | { } 595 | { "-w1", 0, pW1, "Set the warning level to 1 (default)"}, | { } 596 | { "-w2", 0, pW2, "Ambiguities yield warnings even if predicates or (...)? block"}, | { } 597 | { "-mrhoist",1,pMRhoist, /* MR9 */ | { } 598 | "Turn on/off k=1 Maintenance Release style hoisting"}, /* MR9 */ 599 | { "-mrhoistk",1,pMRhoistk, /* MR13 */ | { } 600 | "Turn on/off k>1 EXPERIMENTAL Maintenance Release style hoisting"}, /* MR13 */ 601 | { "-aa" ,1,pAA, "Ambiguity aid for a rule (rule name or line number)"}, /* MR11 */ | { } 602 | { "-aam" ,0,pAAm, | { } 603 | "Lookahead token may appear multiple times in -aa listing"}, /* MR11 */ 604 | { "-aad" ,1,pAAd, | { } 605 | "Limits exp growth of -aa listing - default=1 (max=ck value)"}, /* MR11 */ 606 | { "-info",1,pInfo, | { } 607 | "Extra info: p=pred t=tnodes f=first/follow m=monitor o=orphans 0=noop"}, /* MR11 */ 608 | { "-treport",1,pTreport, | { } 609 | "Report when tnode usage exceeds value during ambiguity resolution"}, /* MR11 */ 610 | { "-newAST", 0, pNewAST, | { } 611 | "In C++ mode use \"newAST(...)\" rather than \"new AST(...)\""}, /* MR13 */ 612 | { "-tmake", 0, ptmakeInParser, | { } 613 | "In C++ mode use parser's tmake method rather than \"ASTBase::tmake(...)\""}, /* MR23 */ 614 | { "-alpha",0, pAlpha, | { } 615 | "Provide additional information for \"(alpha)? beta\" error messages"}, /* MR14 */ 616 | { "-mrblkerr",0,pMR_BlkErr, /* MR21 */ | { } 617 | "EXPERIMENTAL change to (...)* and (...)+ syntax error sets"}, /* MR21 */ 618 | { "-nopurify",0,pNOPURIFY, | { } 619 | "Don't use the notorious PURIFY macro (replaced by MR23 initial value syntax) to zero return arguments of rules"}, /* MR23 */ 620 | { "-", 0, pStdin, "Read grammar from stdin" }, | { } 621 | { "*", 0, pFile, "" }, /* anything else is a file */ | { } main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] main.c:494:17: warning: missing braces around initializer [-Wmissing-braces] In file included from stdpccts.h:22, from main.c:37: main.c: In function 'main': main.c:820:31: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)SynDiag->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ | | | Junction * {aka struct _junct *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:820:31: note: expected 'long unsigned int' but argument is of type 'Junction *' {aka 'struct _junct *'} 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:820:31: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)SynDiag->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ | | | Junction * {aka struct _junct *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:820:31: note: expected 'long unsigned int' but argument is of type 'Junction *' {aka 'struct _junct *'} 820 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:854:31: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)SynDiag->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 854 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ | | | Junction * {aka struct _junct *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:854:31: note: expected 'long unsigned int' but argument is of type 'Junction *' {aka 'struct _junct *'} 854 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ main.c:854:31: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)SynDiag->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 854 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ | | | Junction * {aka struct _junct *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c: In function 'genLoopBegin': main.c:854:31: note: expected 'long unsigned int' but argument is of type 'Junction *' {aka 'struct _junct *'} 854 | TRANS(SynDiag); /* Translate to the target language */ | ^~~~~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ main.c:885:28: warning: passing argument 1 of 'fpPrint[SynDiag->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 885 | else PRINT(SynDiag); | ^~~~~~~ | | | Junction * {aka struct _junct *} syn.h:170:67: note: in definition of macro 'PRINT' 170 | (*(fpPrint[(p)->ntype]))( p );} | ^ main.c:885:28: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 885 | else PRINT(SynDiag); | ^~~~~~~ syn.h:170:67: note: in definition of macro 'PRINT' 170 | (*(fpPrint[(p)->ntype]))( p );} | ^ gen.c:3003:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3003:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3003:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3003:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3003 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c: In function 'genPlusBlk': gen.c:3098:24: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3098 | TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3098:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3098 | TRANS(q->p1); | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3098:24: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3098 | TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3098:24: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3098 | TRANS(q->p1); | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3139:53: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3139:53: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3139:53: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3139:53: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3139 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3212:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3212:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3212:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3212:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3212 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c: In function 'genSubBlk': gen.c:3308:45: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->end->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3308:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3308:45: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->end->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3308:45: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3308 | if (q->end->p1 != NULL) TRANS(q->end->p1); | ~~~~~~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o pred.o pred.c gen.c: In function 'genRule': gen.c:3552:24: warning: passing argument 1 of 'fpReach[q->end->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 3552 | REACH(q->end, 1, &rk, follow); | ~^~~~~ | | | struct _junct * syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ gen.c:3552:24: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'struct _junct *' 3552 | REACH(q->end, 1, &rk, follow); | ~^~~~~ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ gen.c: In function 'genJunction': gen.c:3813:37: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p1)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3813 | if ( q->p1 != NULL ) TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3813:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3813 | if ( q->p1 != NULL ) TRANS(q->p1); | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3813:37: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p1->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3813 | if ( q->p1 != NULL ) TRANS(q->p1); | ~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3813:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3813 | if ( q->p1 != NULL ) TRANS(q->p1); | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3814:37: warning: passing argument 1 of '*(fpJTrans + (sizetype)((long unsigned int)((Junction *)q->p2)->jtype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3814 | if ( q->p2 != NULL ) TRANS(q->p2); | ~^~~~ | | | Node * {aka struct _node *} syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3814:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3814 | if ( q->p2 != NULL ) TRANS(q->p2); | ~^~~~ syn.h:166:113: note: in definition of macro 'TRANS' 166 | if ( (p)->ntype == nJunction ) (*(fpJTrans[((Junction *)(p))->jtype]))( p );\ | ^ gen.c:3814:37: warning: passing argument 1 of '*(fpTrans + (sizetype)((long unsigned int)q->p2->ntype * 8))' makes integer from pointer without a cast [-Wint-conversion] 3814 | if ( q->p2 != NULL ) TRANS(q->p2); | ~^~~~ | | | Node * {aka struct _node *} syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c:3814:37: note: expected 'long unsigned int' but argument is of type 'Node *' {aka 'struct _node *'} 3814 | if ( q->p2 != NULL ) TRANS(q->p2); | ~^~~~ syn.h:167:72: note: in definition of macro 'TRANS' 167 | else (*(fpTrans[(p)->ntype]))( p );} | ^ gen.c: In function 'genHdr': gen.c:3903:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 3903 | if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ gen.c:152:50: note: in definition of macro '_gen1' 152 | #define _gen1(s,a) {fprintf(output, s,a);} | ^ gen.c:3903:50: note: format string is defined here 3903 | if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); | ~^ | | | int | %ld gen.c: In function 'genStdPCCTSIncludeFile': gen.c:4117:41: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 4117 | fprintf(f, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned)); | ~^ | | | int | %ld In file included from pred.c:34: pred.c: In function 'find_predicates': pred.c:416:54: warning: passing argument 1 of 'fpTraverse[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 416 | /* MR11 */ TRAV(p, | ^ | | | ActionNode * {aka struct _anode *} syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ pred.c:416:54: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'ActionNode *' {aka 'struct _anode *'} 416 | /* MR11 */ TRAV(p, | ^ syn.h:179:81: note: in definition of macro 'TRAV' 179 | else (a) = (*(fpTraverse[(p)->ntype]))( p, k, rk );} | ^ pred.c:446:63: warning: passing argument 1 of 'fpReach[((Junction *)p->next)->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 446 | REACH((Junction *)p->next, | ^~~~~~~~~~~~~~~~~~~ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ pred.c:446:63: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 446 | REACH((Junction *)p->next, | ^~~~~~~~~~~~~~~~~~~ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o egman.o egman.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o mrhoist.o mrhoist.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o fcache.o fcache.c In file included from mrhoist.c:33: mrhoist.c: In function 'MR_First': mrhoist.c:865:15: warning: passing argument 1 of 'fpReach[p->ntype]' from incompatible pointer type [-Wincompatible-pointer-types] 865 | REACH(p,ck,incomplete,tokensUsed); | ^ | | | Junction * {aka struct _junct *} syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ mrhoist.c:865:15: note: expected 'Node *' {aka 'struct _node *'} but argument is of type 'Junction *' {aka 'struct _junct *'} 865 | REACH(p,ck,incomplete,tokensUsed); | ^ syn.h:173:73: note: in definition of macro 'REACH' 173 | (a) = (*(fpReach[(p)->ntype]))( p, k, rk );} | ^ antlr.c: In function 'tclass': antlr.c:1394:31: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 1394 | /* MR23 */ if (p->akaString != NULL) { | ~^~~~~~~~~~~ antlr.c:1342:59: note: 'p' was declared here 1342 | char *t=NULL; TCnode *e; int go=1,tok,totok; TermEntry *p, *term, *toterm; | ^ mrhoist.c: In function 'MR_ruleNamePlusOffset': mrhoist.c:2216:5: warning: '__builtin_strncpy' specified bound 50 equals destination size [-Wstringop-truncation] 2216 | strncpy(ruleNameStatic1,n->rname,ruleNameMax); | ^ mrhoist.c:2220:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 2220 | sprintf(ruleNameStatic2,"%s/%d",ruleNameStatic1,offset+1); | ^ In file included from /usr/include/stdio.h:970, from mrhoist.c:28: In function 'sprintf', inlined from 'MR_ruleNamePlusOffset' at mrhoist.c:2220:7: /usr/include/aarch64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 61 bytes into a destination of size 60 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -o antlr antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o mv antlr ../bin/. make[2]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/antlr' antlr executable now in bin (cd ./dlg; make CC="cc" COPT="-O2 -Wall -Wno-unused -g") make[2]: Entering directory '/build/reproducible-path/pccts-1.33MR33/dlg' cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -c dlg_p.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -c dlg_a.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -c main.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o err.o err.c cc -c -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 ../support/set/set.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o support.o support.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o output.o output.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o relabel.o relabel.c cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o automata.o automata.c In file included from ../support/set/set.c:67: ../support/set/set.c: In function 'set_of': ../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ | ^~ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ ../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 59 | (a).n = NumWords(_max); | ^ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } 136 | { "-ci", 0, (WildFunc)p_case_i, "Make lexical analyzer case insensitive"}, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } 136 | { "-ci", 0, (WildFunc)p_case_i, "Make lexical analyzer case insensitive"}, | { } 137 | { "-cl", 1, (WildFunc)p_cl_name, "Rename lexer class (DLGLexer); only used for -CC"}, | { } ../support/set/set.c: In function 'set_val': main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } 136 | { "-ci", 0, (WildFunc)p_case_i, "Make lexical analyzer case insensitive"}, | { } 137 | { "-cl", 1, (WildFunc)p_cl_name, "Rename lexer class (DLGLexer); only used for -CC"}, | { } 138 | { "-cs", 0, (WildFunc)p_case_s, "Make lexical analyzer case sensitive (default)"}, | { } ../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } 136 | { "-ci", 0, (WildFunc)p_case_i, "Make lexical analyzer case insensitive"}, | { } 137 | { "-cl", 1, (WildFunc)p_cl_name, "Rename lexer class (DLGLexer); only used for -CC"}, | { } 138 | { "-cs", 0, (WildFunc)p_case_s, "Make lexical analyzer case sensitive (default)"}, | { } 139 | { "-o", 1, (WildFunc)p_outdir, OutputDirectoryOption}, | { } ../support/set/set.h:58:68: note: format string is defined here 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ | ~^ | | | int | %ld ../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ | ^~ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ ../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 59 | (a).n = NumWords(_max); | ^ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } 136 | { "-ci", 0, (WildFunc)p_case_i, "Make lexical analyzer case insensitive"}, | { } 137 | { "-cl", 1, (WildFunc)p_cl_name, "Rename lexer class (DLGLexer); only used for -CC"}, | { } 138 | { "-cs", 0, (WildFunc)p_case_s, "Make lexical analyzer case sensitive (default)"}, | { } 139 | { "-o", 1, (WildFunc)p_outdir, OutputDirectoryOption}, | { } 140 | { "-", 0, (WildFunc)p_stdio, "Use standard i/o rather than file"}, | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] 127 | Opt options[] = { | ^ 128 | { "-CC", 0, (WildFunc)p_cpp, "Generate C++ output" }, | { } 129 | { "-C0", 0, (WildFunc)p_comp0, "No compression (default)" }, | { } 130 | { "-C1", 0, (WildFunc)p_comp1, "Compression level 1" }, | { } 131 | { "-C2", 0, (WildFunc)p_comp2, "Compression level 2" }, | { } 132 | { "-ga", 0, (WildFunc)p_ansi, "Generate ansi C"}, | { } 133 | { "-Wambiguity", 0, (WildFunc)p_warn_ambig, "Warn if expressions ambiguous"}, | { } 134 | { "-m", 1, (WildFunc)p_mode_file, "Rename lexical mode output file"}, | { } 135 | { "-i", 0, (WildFunc)p_interactive, "Build interactive scanner (not valid for C++ mode)"}, | { } 136 | { "-ci", 0, (WildFunc)p_case_i, "Make lexical analyzer case insensitive"}, | { } 137 | { "-cl", 1, (WildFunc)p_cl_name, "Rename lexer class (DLGLexer); only used for -CC"}, | { } 138 | { "-cs", 0, (WildFunc)p_case_s, "Make lexical analyzer case sensitive (default)"}, | { } 139 | { "-o", 1, (WildFunc)p_outdir, OutputDirectoryOption}, | { } 140 | { "-", 0, (WildFunc)p_stdio, "Use standard i/o rather than file"}, | { } 141 | { "*", 0, (WildFunc)p_file, ""}, /* anything else is a file */ | { } main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] main.c:127:17: warning: missing braces around initializer [-Wmissing-braces] output.c: In function 'p_class_hdr': output.c:125:23: warning: '%s' directive writing up to 199 bytes into a region of size 100 [-Wformat-overflow=] 125 | sprintf(buf, "%s_h", name); | ^~ ...... 716 | return buf; | ~~~ In file included from /usr/include/stdio.h:970, from output.c:67: In function 'sprintf', inlined from 'gate_symbol' at output.c:125:2, inlined from 'p_class_hdr' at output.c:150:2: /usr/include/aarch64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 202 bytes into a destination of size 100 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ output.c: In function 'p_class_hdr': output.c:125:23: warning: '%s' directive writing up to 199 bytes into a region of size 100 [-Wformat-overflow=] 125 | sprintf(buf, "%s_h", name); | ^~ ...... 716 | return buf; | ~~~ In function 'sprintf', inlined from 'gate_symbol' at output.c:125:2, inlined from 'p_class_hdr' at output.c:151:2: /usr/include/aarch64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 202 bytes into a destination of size 100 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from err.c:23: ../h/err.h: In function 'zzFAIL': ../h/err.h:217:19: warning: 'f$' may be used uninitialized [-Wmaybe-uninitialized] 217 | *miss_set = f[i-1]; | ~~~~~~~~~~^~~~~~~~ ../h/err.h:168:22: note: 'f$' was declared here 168 | SetWordType *f[1]; | ^ cc -O2 -Wall -Wno-unused -g -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=32000 -o dlg dlg_p.o dlg_a.o main.o err.o set.o support.o output.o relabel.o automata.o mv dlg ../bin/. make[2]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/dlg' dlg executable now in bin (cd ./sorcerer; make CC="cc" COPT="-O2 -Wall -Wno-unused -g") make[2]: Entering directory '/build/reproducible-path/pccts-1.33MR33/sorcerer' make sor make[3]: Entering directory '/build/reproducible-path/pccts-1.33MR33/sorcerer' cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o sor.o sor.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o scan.o scan.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o err.o err.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o main.o main.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o globals.o globals.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o gen.o gen.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -c -o set.o ../support/set/set.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o hash.o hash.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o look.o look.c cc -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o cpp.o cpp.c In file included from ../support/set/set.c:67: ../support/set/set.c: In function 'set_of': ../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ | ^~ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ ../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 59 | (a).n = NumWords(_max); | ^ ../support/set/set.c:266:9: note: in expansion of macro 'set_new' 266 | set_new(a, b); | ^~~~~~~ ../support/set/set.c: In function 'set_val': ../support/set/set.h:58:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ ../support/set/set.h:58:68: note: format string is defined here 58 | fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \ | ~^ | | | int | %ld ../support/set/set.h:57:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 57 | if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \ | ^~ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ ../support/set/set.h:59:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 59 | (a).n = NumWords(_max); | ^ ../support/set/set.c:557:9: note: in expansion of macro 'set_new' 557 | set_new(a, strlen(s)); | ^~~~~~~ main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } main.c:281:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | ^~~~~~ main.c:281:25: note: (near initialization for 'options[1].process.process_one_arg') main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } main.c:282:30: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | ^~~~~~~~~~ main.c:282:30: note: (near initialization for 'options[2].process.process_one_arg') main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } main.c:283:33: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | ^~~~~~ main.c:283:33: note: (near initialization for 'options[3].process.process_one_arg') main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } main.c:287:33: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | ^~~~~~~ main.c:287:33: note: (near initialization for 'options[7].process.process_one_arg') main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | { } main.c:288:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 288 | { "-proto-file", 1, pProtoFile, "Put all prototypes for rule functions in this file"}, | ^~~~~~~~~~ main.c:288:25: note: (near initialization for 'options[8].process.process_one_arg') main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | { } 288 | { "-proto-file", 1, pProtoFile, "Put all prototypes for rule functions in this file"}, | { } main.c:289:25: warning: initialization of 'void (*)(char *)' from incompatible pointer type 'void (*)(char *, char *)' [-Wincompatible-pointer-types] 289 | { "-out-dir", 1, pOut, "Directory where all output files go (default=\".\")"}, | ^~~~ main.c:289:25: note: (near initialization for 'options[9].process.process_one_arg') main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | { } 288 | { "-proto-file", 1, pProtoFile, "Put all prototypes for rule functions in this file"}, | { } 289 | { "-out-dir", 1, pOut, "Directory where all output files go (default=\".\")"}, | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | { } 288 | { "-proto-file", 1, pProtoFile, "Put all prototypes for rule functions in this file"}, | { } 289 | { "-out-dir", 1, pOut, "Directory where all output files go (default=\".\")"}, | { } 290 | { "-transform", 0, pTrans, "Transformation mode; read/write to different pointers"}, | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | { } 288 | { "-proto-file", 1, pProtoFile, "Put all prototypes for rule functions in this file"}, | { } 289 | { "-out-dir", 1, pOut, "Directory where all output files go (default=\".\")"}, | { } 290 | { "-transform", 0, pTrans, "Transformation mode; read/write to different pointers"}, | { } 291 | { "-", 0, pstdin, "take input from stdin"}, | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] 264 | Opt options[] = { | ^ ...... 280 | { "-CPP", 0, pCPP, "Generate C++ output"}, | { } 281 | { "-def-tokens", 0, pDToks,"Define ref'd tokens w/unique integer (C++ interface)"}, | { } 282 | { "-def-tokens-file", 1, pDToksFile,"Define ref'd tokens w/unique integer (put in file)"}, | { } 283 | { "-funcs", 1, pFuncs,"Gen 'ANSI', 'KR', or 'both' style function headers"}, | { } 284 | { "-guts", 0, pGuts,"Print out a bunch of internal data structures"}, | { } 285 | { "-inline", 0, pInline, "Gen only actions and functions for given rules"}, | { } 286 | { "-noctor", 0, pNoCtor, "Do not generate a blank constructor"}, /* MR23 */ | { } 287 | { "-prefix", 1, pPrefix, "Prefix all globally visible symbols"}, | { } 288 | { "-proto-file", 1, pProtoFile, "Put all prototypes for rule functions in this file"}, | { } 289 | { "-out-dir", 1, pOut, "Directory where all output files go (default=\".\")"}, | { } 290 | { "-transform", 0, pTrans, "Transformation mode; read/write to different pointers"}, | { } 291 | { "-", 0, pstdin, "take input from stdin"}, | { } 292 | { "*", 0, pFile, "" }, /* anything else is a file */ | { } main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] main.c:264:17: warning: missing braces around initializer [-Wmissing-braces] hash.c: In function 'hashStat': hash.c:144:53: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 144 | if ( q != NULL ) fprintf(stderr, "[%d]", p-table); | ~^ ~~~~~~~ | | | | int long int | %ld cc -o sor -O2 -Wall -Wno-unused -g -Ih -I. -I../h -I../support/set -DZZLEXBUFSIZE=32000 sor.o scan.o err.o main.o globals.o gen.o set.o hash.o look.o cpp.o mv sor ../bin/. make[3]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/sorcerer' (cd ./lib; make CC="cc" COPT="-O2 -Wall -Wno-unused -g") make[3]: Entering directory '/build/reproducible-path/pccts-1.33MR33/sorcerer/lib' cc -O2 -Wall -Wno-unused -g -I../../h -I../h -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o astlib.o astlib.c cc -O2 -Wall -Wno-unused -g -I../../h -I../h -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o sstack.o sstack.c cc -O2 -Wall -Wno-unused -g -I../../h -I../h -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o sorlist.o sorlist.c cc -O2 -Wall -Wno-unused -g -I../../h -I../h -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o sintstack.o sintstack.c make[3]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/sorcerer/lib' make[2]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/sorcerer' sorcerer executable now in bin (cd ./support/genmk; make CC="cc" COPT="-O2 -Wall -Wno-unused -g"; mv genmk ../../bin) make[2]: Entering directory '/build/reproducible-path/pccts-1.33MR33/support/genmk' cc -O2 -Wall -Wno-unused -g -I../../h -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=incompatible-pointer-types -Wno-error=strict-prototypes -Wno-error=int-conversion -c -o genmk.o genmk.c cc -o genmk genmk.o make[2]: Leaving directory '/build/reproducible-path/pccts-1.33MR33/support/genmk' genmk executable now in bin PCCTS 1.33MR33 installation complete make[1]: Leaving directory '/build/reproducible-path/pccts-1.33MR33' dh_auto_test create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install --destdir=debian/pccts/ dh_install dh_installdocs debian/rules override_dh_installchangelogs make[1]: Entering directory '/build/reproducible-path/pccts-1.33MR33' dh_installchangelogs -k CHANGES_FROM_133.txt make[1]: Leaving directory '/build/reproducible-path/pccts-1.33MR33' dh_installexamples dh_installman dh_perl dh_link dh_strip_nondeterminism dh_compress dh_fixperms dh_missing dh_dwz -a dwz: debian/pccts/usr/bin/genmk: DWARF compression not beneficial - old size 30810 new size 31310 dwz: debian/pccts/usr/bin/antlr: DWARF compression not beneficial - old size 409178 new size 410917 dh_strip -a dh_makeshlibs -a dh_shlibdeps -a dh_installdeb dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'pccts' in '../pccts_1.33MR33-6.5_arm64.deb'. dpkg-deb: building package 'pccts-dbgsym' in '../pccts-dbgsym_1.33MR33-6.5_arm64.deb'. dpkg-genbuildinfo --build=binary -O../pccts_1.33MR33-6.5_arm64.buildinfo dpkg-genchanges --build=binary -O../pccts_1.33MR33-6.5_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/3355367 and its subdirectories I: Current time: Sat May 23 18:26:46 -12 2026 I: pbuilder-time-stamp: 1779604006