From: bernhardheld Date: Tue, 25 Sep 2001 19:50:33 +0000 (+0000) Subject: "Fix" of compiler crash X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=9b4669d9f07c2e7d49e266e15b0478d64445e337;p=fw%2Fsdcc "Fix" of compiler crash git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1312 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 3573c6bb..4016c5c5 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -502,7 +502,7 @@ processFile (char *s) { werror (E_FILE_OPEN_ERR, s); exit (1); - } + } /* copy the file name into the buffer */ strcpy (buffer, s); @@ -1266,10 +1266,14 @@ preProcess (char **envp) setMainValue ("cppextraopts", join(preArgv)); if (!preProcOnly) - preOutName = strdup (tmpnam (NULL)); - - setMainValue ("cppoutfilename", preOutName); + { + preOutName = strdup (tmpnam (NULL)); + setMainValue ("cppoutfilename", preOutName); + } + else + setMainValue ("cppoutfilename", "notexistent_fixme"); // Fix me! + if (options.verbose) printf ("sdcc: Calling preprocessor...\n");