This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/23861] New: Build failure due to "-pipe" not working with .F90 and .F95 files


Bootstrapping with Fortran enabled fails for 4.0.1 if "-pipe" is included 
among flags passed through to library builds.  It used to work for 4.0.0.  
The reason is "libgfortran/intrinsics/f2c_specifics.F90", which is new to 
4.0.1, and the "%|" operator used in the specs 
("gcc/fortran/lang-specs.h") which does not expect numeric characters:

 /home/macro/src/redhat/BUILD/gcc-4.0.1/obj/gcc/gfortran 
-B/home/macro/src/redhat/BUILD/gcc-4.0.1/obj/gcc/ -B/usr/i386-linux/bin/ 
-B/usr/i386-linux/lib/ -isystem /usr/i386-linux/include -isystem 
/usr/i386-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../libgfortran -I. 
-iquote../../../libgfortran/io -Wall -fno-repack-arrays -fno-underscoring 
-pipe -O2 -fomit-frame-pointer -mtune=i486 -c 
../../../libgfortran/intrinsics/f2c_specifics.F90  -fPIC -o 
.libs/f2c_specifics.o
cc1: warning: command line option "-fno-repack-arrays" is valid for F95 
but not for C
cc1: warning: command line option "-fno-underscoring" is valid for F95 
but not for C
f951: error: unrecognized command line option "-95"

 The following patch fixes the problem for me -- digits should be safe to 
accept in file names, shouldn't they?

2005-08-22  Maciej W. Rozycki  <macro@linux-mips.org>

	* gcc.c (do_spec_1): Accept numeric characters in file name 
	suffixes.

 Tested successfully in a native bootstrap for "i386-linux-gnu" for GCC 
4.0.1.  Inspection of sources shows it is needed for HEAD as well.

-- 
           Summary: Build failure due to "-pipe" not working with .F90 and
                    .F95 files
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: macro at linux-mips dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23861


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]