Append a DIR_SEPARATOR to a path specified by the -B switch, if doing so would
[official-gcc.git] / gcc / main.c
blob5fc382b915cc7f8e7658a23aab7bc6c40034ede0
1 /* main.c: defines main() for cc1, cc1plus, etc.
3 This file is part of GNU CC.
5 GNU CC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 GNU CC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNU CC; see the file COPYING. If not, write to
17 the Free Software Foundation, 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #include "ansidecl.h"
21 #include "toplev.h"
23 int main PARAMS ((int argc, char **argv));
25 /* We define main() to call toplev_main(), which is defined in toplev.c.
26 We do this in a separate file in order to allow the language front-end
27 to define a different main(), if it so desires. */
29 int
30 main (argc, argv)
31 int argc;
32 char **argv;
34 return toplev_main (argc, argv);