This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
What does " test ... || gcc ..." mean?
- From: "Luker Lu" <LLu at galaxycn dot wh dot uni-stuttgart dot de>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 6 Dec 2001 16:57:36 +0100
- Subject: What does " test ... || gcc ..." mean?
- References: <Pine.LNX.4.30.0112060810550.27655-100000@sol.galaxy.acm.jhu.edu> <015701c17e6b$9844f120$7add18ac@amr.corp.intel.com>
Hi all,
I want to understand the source code of gcc so I am studying the build
process at first. In the process of "make bootstrap", the following command
appears:
test x"no" != xyes || \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../source/libiberty/../include
../../source/libiberty/argv.c -o pic/argv.o
I know what "test" and "gcc" are, but can't understand the whole command.
Could someone explain me what it does? What does this "||" between test and
gcc mean?
thanks in advance!
Luker Lu