OSDN Git Service

Add -mabi=n32 support.
[pf3gnuchains/gcc-fork.git] / gcc / cppmain.c
index 3213172..506ce05 100644 (file)
@@ -14,7 +14,7 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
  In other words, you are welcome to use, share and improve this program.
  You are forbidden to forbid anyone else to use, share and improve
@@ -23,8 +23,14 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 #include "cpplib.h"
 #include <stdio.h>
 
+#ifndef EMACS
+#include "config.h"
+#endif /* not EMACS */
+
 extern char *getenv ();
 
+char *progname;
+
 cpp_reader parse_in;
 cpp_options options;
 
@@ -75,13 +81,6 @@ main (argc, argv)
 
   for (;;)
     {
-#if 0
-      int ch = PARSE_GETC (&parse_in);
-      if (ch < 0)
-       break;
-      if (! opts->no_output)
-       putchar (ch);
-#else
       enum cpp_token kind;
       if (! opts->no_output)
        {
@@ -91,12 +90,11 @@ main (argc, argv)
       kind = cpp_get_token (&parse_in);
       if (kind == CPP_EOF)
        break;
-#endif
     }
 
   cpp_finish (&parse_in);
 
   if (parse_in.errors)
-    exit (FAILURE_EXIT_CODE);
+    exit (FATAL_EXIT_CODE);
   exit (SUCCESS_EXIT_CODE);
 }