From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12503 invoked by alias); 23 May 2008 10:07:21 -0000 Received: (qmail 1894 invoked by uid 48); 23 May 2008 10:06:38 -0000 Date: Fri, 23 May 2008 10:07:00 -0000 Subject: [Bug fortran/36309] New: gfrotran and cc1 error X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kih at mail dot nerc-essc dot ac dot uk" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg01760.txt.bz2 When invoking gfortran to compile some fortran code with C preprocessor commands in it and using the .F file extension to ensure that the code is passed though the C pre-processor and error occurs with cc1 The command is: gfortran -c -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-underscoring -DNOUNIRAS -DNONAMELISTS -I../f77_param filterpl.F and the error is: cc1: error: unrecognized command line option "-fno-underscoring" This error did not occur when using an older gfortran version. cpp won't recognise "-fno-underscoring" but the old gfortran presumably did not pass this to cpp whereas the newer version does. I have a workround which involves invoking cpp seperately on the file excluding the "-fno-underscoring" and the compiling the output from this but it would be good to have the old functionality back. Kevin -- Summary: gfrotran and cc1 error Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kih at mail dot nerc-essc dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309