aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
Commit message (Collapse)AuthorAgeFilesLines
* SunOS: silence some warningsDan Cross2025-07-251-1/+1
| | | | | | Give `-Wformat=0` on illumos/Solaris so that the build does not complain about `execlp` not having a sentinel (it's nil). Also fix an integer size issue when casting to a void pointer.
* all: remove need for `-fcommon`Dan Cross2025-07-251-2/+2
| | | | | | | | | | Use `extern` where appropriate so that we can remove `-fcommon` on macOS and others. On macOS, `-fcommon` generates a number of linker warnings. I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD and illumos. I am not in a position to test on AIX or other more esoteric platforms, however.
* config: add $egrepDan Cross2025-07-231-2/+3
| | | | | | | | | | | Introduce a new variable set in $PLAN9/config: $egrep, which is conditionally set to either `egrep` or `grep -E`, based on platform, and use this when we want to invoke `egrep`. This works around the endless warnings from GNU grep stating that `egrep` is deprecated in favor of `grep -E`, when run on e.g. Linux.
* 9c: change -std=c17 to -stc=c11 based on feedback in \#716erentar2025-07-221-1/+1
|
* 9c: Explicitly set c standard as newer changes in c23 break compilationerentar2025-07-221-0/+1
|
* 9c: "-Wdeprecated-pragma" is only present in clang and is absent from gccerentar2025-07-221-1/+0
|
* all: quiet macOS build againRuss Cox2024-06-151-0/+5
|
* 9l: refactor the warning-silencing mechanics to match that of 9cIgor Burago2023-12-181-6/+6
|
* bin/9c, bin/9l: Re-enable optimization on AIX.Ben Huntsman2021-08-301-2/+2
|
* 9c: drop PLAN9PORT_ASANRuss Cox2020-12-301-9/+0
| | | | It is no longer special.
* all: remove $OBJTYPE from buildRuss Cox2020-12-301-12/+2
| | | | | | | Now that we assume pthreads, the only assembly left is in libmp and libsec. We only ever added assembly for 386. The portable C code is fine for plan9port.
* 9c: use -fcommon for clangRuss Cox2020-12-301-0/+1
| | | | Fixes #469.
* 9c, 9l: updates for macOS arm64.Anthony Sorace2020-09-271-0/+4
|
* 9c: fix tabRuss Cox2020-05-181-1/+1
|
* 9c, 9l: accept CC9FLAGS from configRuss Cox2020-05-171-11/+23
| | | | | | | | | | Also, if CC9FLAGS includes -fsanitize=address (ASAN), predefine PLAN9PORT_ASAN for use by programs that need to know (mainly libthread). The 9c script used to have a variable called ngflags, which was ccflags except -g (ng stood for "no g"), but nothing needs it split out anymore, so simplify to just ccflags.
* all: update build scripts to fix AIX XL/C compatibilityBen Huntsman2020-05-071-1/+18
|
* 9c: added explicit -fcommon to gcc defaults.sean2020-04-301-0/+1
| | | | | | | Version 10 of gcc enforces -fno-common which breaks a lot of things. This fix reverts to the pre-10 behaviour. The real fix is to clean up stray redefinitions which should be declarations.
* all: remove Linux 2.4 vs 2.6 detectionRuss Cox2020-01-191-11/+3
| | | | | Linux 2.4 is dead. (The libthread code hasn't worked for Linux 2.4 for a long time.)
* all: fix or silence various gcc warningsRuss Cox2020-01-121-0/+4
| | | | | As usual, gcc finds some real problems but also reports a ton of noise. Fix the problems and quiet the noise.
* 9c: Fix case patterns for DragonFly and other BSDsMartin Kühl2020-01-071-2/+2
| | | | | | | | | | | | | POSIX does not support grouping in case item patterns. Installing with a strict POSIX shell fails with: /usr/local/plan9/bin/9c: line 82: syntax error near unexpected token `(' /usr/local/plan9/bin/9c: line 82: `*(DragonFly|BSD)*gcc*) usegcc ;;' This change expands the patterns to work around the limitation. See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10 (and search for case_clause)
* INSTALL, 9c, 9l: improve handling of *BSD (#302)Leonid Bobrov2020-01-071-3/+2
|
* 9c, 9l: use $TMPDIR if available (#272)Jason Felice2019-11-111-1/+1
| | | | NixOS sandboxed builds (at least on Mac) don't have access to /tmp, and this should be better POSIX.
* all: fix or silence all INSTALL warnings on macOSRuss Cox2017-01-061-3/+3
| | | | | | | | Should be a clean build now. Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067 Reviewed-on: https://plan9port-review.googlesource.com/2781 Reviewed-by: Russ Cox <rsc@swtch.com>
* fix clang 3.4 warnings and ignore uninteresting onesDavid du Colombier2014-10-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | fixed warnings: src/cmd/fossil/disk.c:37:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:38:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:39:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:40:13: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:41:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/libndb/ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body] ignored warnings: src/cmd/acid/dbg.y:393:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/lex/parser.y:886:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/units.y:1003:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/libregexp/regcomp.c:19:16: warning: variable 'reprog' is not needed and will not be emitted [-Wunneeded-internal-declaration] LGTM=rsc R=rsc https://codereview.appspot.com/158250043
* all: DragonFly port.Shenghou Ma2014-02-271-1/+1
| | | | | | | | Fix compilation problems, libdraw still doesn't work right yet. LGTM=rsc R=rsc https://codereview.appspot.com/67820046
* 9c: support clang on MacRuss Cox2012-10-211-0/+11
| | | | | R=rsc http://codereview.appspot.com/6744055
* 9c: add more clang warning silencers, use signed charsRuss Cox2012-10-201-2/+7
| | | | | R=rsc http://codereview.appspot.com/6741053
* build: OS X 64-bit buildRuss Cox2011-08-021-0/+2
| | | | | R=rsc http://codereview.appspot.com/4838047
* SunOS fixes (thanks Aram Hăvărneanu)Russ Cox2011-05-171-1/+1
| | | | | R=rsc, rsc http://codereview.appspot.com/4271084
* 9c, 9l: allow CC9=clangNikolai Saoukh2010-02-221-13/+51
| | | | | | R=rsc CC=codebot http://codereview.appspot.com/217045
* INSTALL: fix build on Snow LeopardRuss Cox2009-09-111-2/+2
| | | | http://codereview.appspot.com/116073
* mergeRuss Cox2009-07-141-0/+3
|
* 9c: another gcc, another useless warningRuss Cox2008-12-061-1/+1
|
* 9c: grep away Apple SetCursor/InitCursor warningsRuss Cox2008-07-091-1/+4
|
* mergeRuss Cox2008-05-311-1/+1
|
* define __Linux24__ for mount-Linux.c in vbackuprsc2006-05-051-0/+3
|
* no more pedantryrsc2006-04-041-2/+0
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-1/+3
|
* undorsc2006-03-201-1/+0
|
* update lucidarsc2006-03-201-0/+1
|
* adapt to gcc error messagesrsc2006-02-141-1/+1
|
* Make install less chatty, more useful.rsc2005-11-281-1/+1
|
* shut up openbsdrsc2005-11-271-1/+1
|
* errors to stderrrsc2005-07-221-1/+7
|
* do not process stdout, to play nice with ccachersc2005-07-221-1/+1
|
* add uniqrsc2005-03-181-1/+4
|
* even more quieting of gccrsc2005-03-181-2/+2
|
* even quieter gccrsc2005-02-161-1/+1
|
* initial stab at ipsorsc2005-02-131-1/+1
|
* silence gcc chatterrsc2005-02-121-0/+1
|