Don't use '-' in option string to getopt().
authorGeorge Koehler <xkernigh@netscape.net>
Mon, 30 Oct 2017 02:00:43 +0000 (22:00 -0400)
committerGeorge Koehler <xkernigh@netscape.net>
Mon, 30 Oct 2017 03:25:07 +0000 (23:25 -0400)
commit50a7031007698590494e87b65f398672d978bd19
treec025bbcf03b7c7d10ac77e42a90eec49e09238b7
parent59b3c105632a6067998ad36631b3eba9b2165219
Don't use '-' in option string to getopt().

@dram reported a build failure in FreeBSD at
https://github.com/davidgiven/ack/issues/1#issuecomment-273668299

Linux manual for getopt(3) says:
> If the first character of optstring is '-', then each nonoption
> argv-element is handled as if it were the argument of an option with
> character code 1....
>
> The use of '+' and '-' in optstring is a GNU extension.

GNU/Linux and OpenBSD handle '-' in this special way, but FreeBSD
seems not to.  If '-' is not special, then em_ego can't find its input
file, so the build must fail.  This commit stops using '-' in both
em_b and em_ego, but doesn't change mcg.

Also fix em_ego -O3 to not act like -O4.
lang/b/compiler/b0.c
util/ego/em_ego/em_ego.c