This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC -On optimization passes: flag and doc issues
- From: Joerg Wunsch <j at uriah dot heep dot sax dot de>
- To: Richard Earnshaw <rearnsha at arm dot com>, Andreas Schwab <schwab at suse dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 1 May 2007 09:07:21 +0200
- Subject: Re: GCC -On optimization passes: flag and doc issues
- References: <000301c7813b$47b2eb30$140412ac@cso.atmel.com> <m3tzveod7b.fsf@localhost.localdomain> <20070417222634.GF82697@uriah.heep.sax.de> <m3d522oc2z.fsf@localhost.localdomain> <20070425212223.GU90930@uriah.heep.sax.de> <m3ejm89jwm.fsf@localhost.localdomain> <20070427203149.GD90930@uriah.heep.sax.de> <571f6b510704271338w72f8f286w3b26da9e8120c25e@mail.gmail.com> <20070427205109.GE90930@uriah.heep.sax.de> <1177925975.9391.47.camel@pc960.cambridge.arm.com>
- Reply-to: Joerg Wunsch <joerg_wunsch at uriah dot heep dot sax dot de>
As Richard Earnshaw wrote:
> There's no need to hack everything up. As long as you have bash
> installed on your machine, it's straight-forward to run CSiBE on
> *BSD machines: simply invoke the makefiles with SHELL=.../bash.
That's what I did, but it doesn't help for the non-standard usage of
/usr/bin/time (-f option). They even explicitly used /usr/bin/time
rather than bash's builtin.
As Andreas Schwab wrote:
> > ...: simply invoke the makefiles with SHELL=.../bash.
> Or (pd)?ksh, for that matter.
Did you try? Maybe my version of pdksh is just too old, but it
doesn't grok that $((I--)) construct either.
OK, just installed ksh93, it appearently understands it.
Still, I don't see a real need for this in CSiBE as it would be simple
to replace it by the standard Posix arithmetics syntax, or even more
portably by the use of expr(1). The time -f thing is a bit harder to
do (in particular given that bash's time(1) builtin behaves different
that the Posix time(1)).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)