From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zack Weinberg" To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c/3076: gcc 2.96 (or 3.0) -ANSI does not work right Date: Thu, 07 Jun 2001 16:36:00 -0000 Message-id: <20010607233601.8654.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00267.html List-Id: The following reply was made to PR c/3076; it has been noted by GNATS. From: "Zack Weinberg" To: tony_hsu@amdahl.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: c/3076: gcc 2.96 (or 3.0) -ANSI does not work right Date: Thu, 7 Jun 2001 16:34:35 -0700 On Thu, Jun 07, 2001 at 05:55:18PM -0000, tony_hsu@amdahl.com wrote: > >Synopsis: gcc 2.96 (or 3.0) -ANSI does not work right ... > $ gcc -ANSI t.c > > Under 2.96 + RedHat7.0 + Intel PIII > Internal error: Segmentation fault (program cpp0) > > Under CodeSourcery's OnLine TestCompilation > : missing '(' after predicate GCC's command line options are case sensitive. The option you are trying to use is spelled -ansi; however, we encourage the use of the -std option instead (-std=c89 for the 1989 C standard, -std=c99 for the 1999 revision). -ANSI is interpreted as a use of the -A option with an invalid argument. "missing '(' after predicate" is a correct, although unhelpful, error message. Red Hat's 2.96 crashes because of a bug that was fixed a long time ago in the official source tree. GCC 3.0 (as you saw from the online test compilation form) will not crash. 2.95.x also does not crash. You should report this crash to Red Hat; we cannot fix bugs in their version of the compiler. [Could someone please close this bug report? I do not have GNATS write privileges.] zw