This is the mail archive of the gcc-patches@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]

[tree-ssa]New fortran frontend


I've packaged up the new fortran frontend (aka g95) for inclusion into the 
tree-ssa branch.

There are two parts, the first is a tarball containing new files/directories 
for the frontend, target library and testsuite. This should be untarred 
into  the toplevel gcc source directory.
http://prdownloads.sourceforge.net/gcc-g95/gfortran.tar.bz2?download
Sorry about the annoying sourceforge download link.

The second part is the patch attached to this email. It contains changes to 
the configury system and documentation. The only real thing of note is that 
it adds the depcomp automake support script.

Bootstrapped and tested on x86 linux. Also believed to work on PPC, HP-UX, 
ia64 and alpha.

A tarball of our current development CVS is available if this is required 
for archiving purposes.
http://cvs.sourceforge.net/cvstarballs/gcc-g95-cvsroot.tar.gz

Paul Brook

2003-07-25  Paul Brook  <paul@nowt.org>

        * Makefile.def: Add libgfortran and GFORTRAN_FOR_TARGET.
        * Makefile.tmp: Ditto.
        * configure.in: Ditto.
        * depcomp: New file.
        * gcc/Makefile.in: Rename check-g95 check-gfortran.
        * gcc/gcc.c (default_compilers): Add entries for .f90 and .f95.
        * gcc/doc/frontends.texi: Document new F95 frontend.
        * gcc/doc/install.texi: Ditto.
        * gcc/doc/invoks.texi: Ditto.
        * gcc/doc/sourcebuild.texi: Ditto.
        * maintainer-scripts/gcc_release: Add gcc-fortran.
        * maintainer-scripts/snapshot-README: Ditto.
        * maintainer-scripts/snapshot-index.html: Ditto.
Index: Makefile.def
===================================================================
RCS file: /cvsroot/gcc/gcc/Makefile.def,v
retrieving revision 1.3.4.11
diff -c -3 -p -r1.3.4.11 Makefile.def
*** Makefile.def	21 Jul 2003 13:49:54 -0000	1.3.4.11
--- Makefile.def	24 Jul 2003 22:11:42 -0000
*************** target_modules = { module= libstdc++-v3;
*** 101,106 ****
--- 101,107 ----
  target_modules = { module= libmudflap; };
  target_modules = { module= newlib; };
  target_modules = { module= libf2c; };
+ target_modules = { module= libgfortran; };
  target_modules = { module= libobjc; };
  target_modules = { module= libtermcap; no_check=true; 
                     missing=mostlyclean;
*************** flags_to_pass = { flag= CXX_FOR_TARGET ;
*** 203,208 ****
--- 204,210 ----
  flags_to_pass = { flag= CXXFLAGS_FOR_TARGET ; };
  flags_to_pass = { flag= DLLTOOL_FOR_TARGET ; };
  flags_to_pass = { flag= GCJ_FOR_TARGET ; };
+ flags_to_pass = { flag= GFORTRAN_FOR_TARGET ; };
  flags_to_pass = { flag= LD_FOR_TARGET ; };
  flags_to_pass = { flag= LIBCFLAGS_FOR_TARGET ; };
  flags_to_pass = { flag= LIBCXXFLAGS_FOR_TARGET ; };
Index: Makefile.tpl
===================================================================
RCS file: /cvsroot/gcc/gcc/Makefile.tpl,v
retrieving revision 1.11.2.19
diff -c -3 -p -r1.11.2.19 Makefile.tpl
*** Makefile.tpl	23 Jul 2003 16:59:04 -0000	1.11.2.19
--- Makefile.tpl	24 Jul 2003 22:11:46 -0000
*************** USUAL_DLLTOOL_FOR_TARGET = ` \
*** 309,314 ****
--- 309,315 ----
    fi`
  
  GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
+ GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
  
  LD_FOR_TARGET=@LD_FOR_TARGET@
  USUAL_LD_FOR_TARGET = ` \
*************** configure-build-[+module+]:
*** 790,795 ****
--- 791,797 ----
  	CXX="$(CXX_FOR_BUILD)"; export CXX; \
  	CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
  	GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
+ 	GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
  	DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
  	LD="$(LD_FOR_BUILD)"; export LD; \
  	LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
*************** ELSE normal_cxx +]
*** 975,980 ****
--- 977,983 ----
  ENDIF raw_cxx +]
  	CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
  	GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
+ 	GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
  	DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
  	LD="$(LD_FOR_TARGET)"; export LD; \
  	LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
*************** configure-target-fastjar: maybe-configur
*** 1361,1366 ****
--- 1364,1370 ----
  all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
  configure-target-libf2c: $(ALL_GCC_C)
  all-target-libf2c: maybe-all-target-libiberty
+ configure-target-libgfortran: $(ALL_GCC_C)
  configure-target-libffi: $(ALL_GCC_C) 
  configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
  all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
Index: configure.in
===================================================================
RCS file: /cvsroot/gcc/gcc/configure.in,v
retrieving revision 1.161.2.28
diff -c -3 -p -r1.161.2.28 configure.in
*** configure.in	23 Jul 2003 16:59:04 -0000	1.161.2.28
--- configure.in	24 Jul 2003 22:11:50 -0000
*************** target_libraries="target-libiberty \
*** 145,150 ****
--- 145,151 ----
  		target-libstdc++-v3 \
  		target-libmudflap \
  		target-libf2c \
+ 		target-libgfortran \
  		${libgcj} \
  		target-libobjc"
  
*************** if test "${build}" != "${host}" ; then
*** 1369,1374 ****
--- 1370,1376 ----
    CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
    CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
    GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
+   GFORTRAN_FOR_TARGET=${GFORTRAN_FOR_TARGET-${target_alias}-gfortran}
    GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
    BUILD_PREFIX=${build_alias}-
    BUILD_PREFIX_1=${build_alias}-
*************** else
*** 1936,1941 ****
--- 1938,1957 ----
  fi
  GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
  
+ if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then
+   :
+ elif test -d ${srcdir}/gcc; then
+   GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
+ elif test "$host" = "$target"; then
+   GFORTRAN_FOR_TARGET='gfortran'
+ else
+   GFORTRAN_FOR_TARGET=`echo gfortran | sed -e 's/x/x/' ${program_transform_name}`
+ fi
+ case $GFORTRAN_FOR_TARGET in
+ *' $(FLAGS_FOR_TARGET)') ;;
+ *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
+ esac
+ 
  # Don't use libstdc++-v3's flags to configure/build itself.
  libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
  raw_libstdcxx_flags=' -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
*************** qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FO
*** 1975,1980 ****
--- 1991,1997 ----
  # Wrap CC_FOR_TARGET and friends, for certain types of builds.
  CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
  GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
+ GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}"
  CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
  RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
  CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
*************** AC_SUBST(GCC_FOR_TARGET)
*** 2056,2061 ****
--- 2073,2079 ----
  AC_SUBST(FLAGS_FOR_TARGET)
  AC_SUBST(CC_FOR_TARGET)
  AC_SUBST(GCJ_FOR_TARGET)
+ AC_SUBST(GFORTRAN_FOR_TARGET)
  AC_SUBST(CXX_FOR_TARGET)
  AC_SUBST(RAW_CXX_FOR_TARGET)
  AC_SUBST(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)
Index: gcc/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.903.2.102
diff -c -3 -p -r1.903.2.102 Makefile.in
*** gcc/Makefile.in	23 Jul 2003 16:59:23 -0000	1.903.2.102
--- gcc/Makefile.in	24 Jul 2003 22:11:52 -0000
*************** CHECK_TARGETS = check-gcc @check_languag
*** 3423,3429 ****
  
  check-c++ : check-g++
  check-f77 : check-g77
! check-f95 : check-g95
  check-java :
  
  check: $(CHECK_TARGETS)
--- 3423,3429 ----
  
  check-c++ : check-g++
  check-f77 : check-g77
! check-f95 : check-gfortran
  check-java :
  
  check: $(CHECK_TARGETS)
*************** check-g77: $(TESTSUITEDIR)/site.exp
*** 3478,3484 ****
  	   export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool g77 $(RUNTESTFLAGS))
  
! check-g95: $(TESTSUITEDIR)/site.exp
  	-(rootme=`${PWD}`; export rootme; \
  	srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \
  	cd $(TESTSUITEDIR); \
--- 3478,3484 ----
  	   export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool g77 $(RUNTESTFLAGS))
  
! check-gfortran: $(TESTSUITEDIR)/site.exp
  	-(rootme=`${PWD}`; export rootme; \
  	srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \
  	cd $(TESTSUITEDIR); \
*************** check-g95: $(TESTSUITEDIR)/site.exp
*** 3486,3492 ****
  	if [ -f $${rootme}/../expect/expect ] ; then  \
  	  TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \
  	  export TCL_LIBRARY ; fi ; \
! 	$(RUNTEST) --tool g95 $(RUNTESTFLAGS))
  
  check-objc: $(TESTSUITEDIR)/site.exp
  	-(rootme=`${PWD_COMMAND}`; export rootme; \
--- 3486,3492 ----
  	if [ -f $${rootme}/../expect/expect ] ; then  \
  	  TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \
  	  export TCL_LIBRARY ; fi ; \
! 	$(RUNTEST) --tool gfortran $(RUNTESTFLAGS))
  
  check-objc: $(TESTSUITEDIR)/site.exp
  	-(rootme=`${PWD_COMMAND}`; export rootme; \
Index: gcc/gcc.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.324.2.36
diff -c -3 -p -r1.324.2.36 gcc.c
*** gcc/gcc.c	23 Jul 2003 21:21:22 -0000	1.324.2.36
--- gcc/gcc.c	24 Jul 2003 22:11:56 -0000
*************** static const struct compiler default_com
*** 911,916 ****
--- 911,917 ----
    {".f", "#Fortran", 0}, {".for", "#Fortran", 0}, {".fpp", "#Fortran", 0},
    {".F", "#Fortran", 0}, {".FOR", "#Fortran", 0}, {".FPP", "#Fortran", 0},
    {".r", "#Ratfor", 0},
+   {".f90", "#Fortran 95", 0}, {".f95", "#Fortran 95", 0},
    {".p", "#Pascal", 0}, {".pas", "#Pascal", 0},
    {".java", "#Java", 0}, {".class", "#Java", 0},
    {".zip", "#Java", 0}, {".jar", "#Java", 0},
Index: gcc/doc/frontends.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/frontends.texi,v
retrieving revision 1.3
diff -c -3 -p -r1.3 frontends.texi
*** gcc/doc/frontends.texi	9 Jun 2002 22:40:14 -0000	1.3
--- gcc/doc/frontends.texi	24 Jul 2003 22:11:58 -0000
***************
*** 4,21 ****
  @c For copying conditions, see the file gcc.texi.
  
  @node G++ and GCC
! @chapter Compile C, C++, Objective-C, Ada, Fortran, Java, or treelang
  
  @cindex Objective-C
  @cindex Fortran
  @cindex Java
  @cindex Ada
  @cindex treelang
! Several versions of the compiler (C, C++, Objective-C, Ada, 
! Fortran, Java and treelang) are integrated; this is why we use the name
  ``GNU Compiler Collection''.  GCC can compile programs written in any of these
! languages.  The Ada, Fortran, Java and treelang compilers are described in
! separate manuals.
  
  @cindex GCC
  ``GCC'' is a common shorthand term for the GNU Compiler Collection.  This is both
--- 4,21 ----
  @c For copying conditions, see the file gcc.texi.
  
  @node G++ and GCC
! @chapter Compile C, C++, Objective-C, Ada, Fortran, Fortran 95, Java, or treelang
  
  @cindex Objective-C
  @cindex Fortran
  @cindex Java
  @cindex Ada
  @cindex treelang
! Several versions of the compiler (C, C++, Objective-C, Ada, Fortran,
! Fortran 95, Java and treelang) are integrated; this is why we use the name
  ``GNU Compiler Collection''.  GCC can compile programs written in any of these
! languages.  The Ada, Fortran, Fortran 95, Java and treelang compilers are
! described in separate manuals.
  
  @cindex GCC
  ``GCC'' is a common shorthand term for the GNU Compiler Collection.  This is both
Index: gcc/doc/install.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/install.texi,v
retrieving revision 1.125.2.25
diff -c -3 -p -r1.125.2.25 install.texi
*** gcc/doc/install.texi	23 Jul 2003 17:01:22 -0000	1.125.2.25
--- gcc/doc/install.texi	24 Jul 2003 22:12:01 -0000
*************** components.
*** 398,408 ****
  Please refer to our @uref{http://gcc.gnu.org/releases.html,,releases web page}
  for information on how to obtain GCC@.
  
! The full distribution includes the C, C++, Objective-C, Fortran, Java,
! and Ada (in case of GCC 3.1 and later) compilers.  The full distribution
! also includes runtime libraries for C++, Objective-C, Fortran, and Java.
! In GCC 3.0 and later versions, GNU compiler testsuites are also included
! in the full distribution.
  
  If you choose to download specific components, you must download the core
  GCC distribution plus any language specific distributions you wish to
--- 398,408 ----
  Please refer to our @uref{http://gcc.gnu.org/releases.html,,releases web page}
  for information on how to obtain GCC@.
  
! The full distribution includes the C, C++, Objective-C, Fortran, Fortran 95,
! Java, and Ada (in case of GCC 3.1 and later) compilers.  The full distribution
! also includes runtime libraries for C++, Objective-C, Fortran, Fortran 95, and
! Java.  In GCC 3.0 and later versions, GNU compiler testsuites are also
! included in the full distribution.
  
  If you choose to download specific components, you must download the core
  GCC distribution plus any language specific distributions you wish to
Index: gcc/doc/invoke.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.152.2.49
diff -c -3 -p -r1.152.2.49 invoke.texi
*** gcc/doc/invoke.texi	23 Jul 2003 17:01:22 -0000	1.152.2.49
--- gcc/doc/invoke.texi	24 Jul 2003 22:12:09 -0000
*************** preprocessor).
*** 780,785 ****
--- 780,789 ----
  Fortran source code which must be preprocessed with a RATFOR
  preprocessor (not included with GCC)@.
  
+ @item @var{file}.f90
+ @itemx @var{file}.f95
+ Fortran 90/95 source code which should not be preprocessed.
+ 
  @xref{Overall Options,,Options Controlling the Kind of Output, g77,
  Using and Porting GNU Fortran}, for more details of the handling of
  Fortran input files.
*************** objective-c  objective-c-header  objc-cp
*** 833,838 ****
--- 837,843 ----
  assembler  assembler-with-cpp
  ada
  f77  f77-cpp-input  ratfor
+ f95
  java
  treelang
  @end example
*************** The default is @option{-fzero-initialize
*** 3863,3869 ****
  @opindex fbounds-check
  For front-ends that support it, generate additional code to check that
  indices used to access arrays are within the declared range.  This is
! currently only supported by the Java and Fortran 77 front-ends, where
  this option defaults to true and false respectively.
  
  @item -fmudflap
--- 3868,3874 ----
  @opindex fbounds-check
  For front-ends that support it, generate additional code to check that
  indices used to access arrays are within the declared range.  This is
! currently only supported by the Java and Fortran front-ends, where
  this option defaults to true and false respectively.
  
  @item -fmudflap
Index: gcc/doc/sourcebuild.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/sourcebuild.texi,v
retrieving revision 1.7.2.10
diff -c -3 -p -r1.7.2.10 sourcebuild.texi
*** gcc/doc/sourcebuild.texi	23 Jul 2003 17:01:24 -0000	1.7.2.10
--- gcc/doc/sourcebuild.texi	24 Jul 2003 22:12:10 -0000
*************** Headers for the @code{libiberty} library
*** 53,58 ****
--- 53,61 ----
  @item libf2c
  The Fortran runtime library.
  
+ @item libgfortran
+ The Fortran 95 runtime library.
+ 
  @item libffi
  The @code{libffi} library, used as part of the Java runtime library.
  
Index: maintainer-scripts/gcc_release
===================================================================
RCS file: /cvsroot/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.16.2.7
diff -c -3 -p -r1.16.2.7 gcc_release
*** maintainer-scripts/gcc_release	23 Jul 2003 17:03:31 -0000	1.16.2.7
--- maintainer-scripts/gcc_release	24 Jul 2003 22:12:23 -0000
*************** build_tarfiles() {
*** 274,286 ****
    build_tarfile gcc-ada-${RELEASE} ${ADA_DIRS}
    build_tarfile gcc-g++-${RELEASE} ${CPLUSPLUS_DIRS}
    build_tarfile gcc-g77-${RELEASE} ${FORTRAN_DIRS}
    build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS}
    build_tarfile gcc-objc-${RELEASE} ${OBJECTIVEC_DIRS}
    build_tarfile gcc-testsuite-${RELEASE} ${TESTSUITE_DIRS}
     
    # The core is everything else.
    EXCLUDES=""
!   for x in ${ADA_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN_DIRS} \
  	   ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
      EXCLUDES="${EXCLUDES} --exclude $x"
    done
--- 274,287 ----
    build_tarfile gcc-ada-${RELEASE} ${ADA_DIRS}
    build_tarfile gcc-g++-${RELEASE} ${CPLUSPLUS_DIRS}
    build_tarfile gcc-g77-${RELEASE} ${FORTRAN_DIRS}
+   build_tarfile gcc-g95-${RELEASE} ${FORTRAN95_DIRS}
    build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS}
    build_tarfile gcc-objc-${RELEASE} ${OBJECTIVEC_DIRS}
    build_tarfile gcc-testsuite-${RELEASE} ${TESTSUITE_DIRS}
     
    # The core is everything else.
    EXCLUDES=""
!   for x in ${ADA_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN_DIRS} ${FORTRAN95_DIRS}\
  	   ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do
      EXCLUDES="${EXCLUDES} --exclude $x"
    done
*************** build_diffs() {
*** 303,309 ****
    old_vers=${old_file%.tar.bz2}
    old_vers=${old_vers#gcc-}
    inform "Building diffs against version $old_vers"
!   for f in gcc gcc-ada gcc-g++ gcc-g77 gcc-java gcc-objc gcc-testsuite gcc-core; do
      old_tar=${old_dir}/${f}-${old_vers}.tar.bz2
      new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.bz2
      if [ ! -e $old_tar ]; then
--- 304,310 ----
    old_vers=${old_file%.tar.bz2}
    old_vers=${old_vers#gcc-}
    inform "Building diffs against version $old_vers"
!   for f in gcc gcc-ada gcc-g++ gcc-g77 gcc-fortran gcc-java gcc-objc gcc-testsuite gcc-core; do
      old_tar=${old_dir}/${f}-${old_vers}.tar.bz2
      new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.bz2
      if [ ! -e $old_tar ]; then
*************** SOURCE_DIRECTORY=""
*** 462,467 ****
--- 463,469 ----
  ADA_DIRS="gcc/ada"
  CPLUSPLUS_DIRS="gcc/cp libstdc++-v3"
  FORTRAN_DIRS="gcc/f libf2c"
+ FORTRAN95_DIRS="gcc/fortran libgfortran"
  JAVA_DIRS="gcc/java libjava libffi fastjar zlib boehm-gc"
  OBJECTIVEC_DIRS="gcc/objc libobjc"
  TESTSUITE_DIRS="gcc/testsuite"
*************** SOURCE_DIRECTORY="${WORKING_DIRECTORY}/g
*** 611,616 ****
--- 613,619 ----
  ADA_DIRS=`adjust_dirs ${ADA_DIRS}`
  CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}`
  FORTRAN_DIRS=`adjust_dirs ${FORTRAN_DIRS}`
+ FORTRAN95_DIRS=`adjust_dirs ${FORTRAN95_DIRS}`
  JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}`
  OBJECTIVEC_DIRS=`adjust_dirs ${OBJECTIVEC_DIRS}`
  TESTSUITE_DIRS=`adjust_dirs ${TESTSUITE_DIRS}`
Index: maintainer-scripts/snapshot-README
===================================================================
RCS file: /cvsroot/gcc/gcc/maintainer-scripts/snapshot-README,v
retrieving revision 1.4.2.5
diff -c -3 -p -r1.4.2.5 snapshot-README
*** maintainer-scripts/snapshot-README	23 Jul 2003 17:03:31 -0000	1.4.2.5
--- maintainer-scripts/snapshot-README	24 Jul 2003 22:12:24 -0000
*************** You'll find:
*** 19,24 ****
--- 19,26 ----
  
    gcc-g77-@RELEASE@.tar.bz2          The F77 front end and runtime.
  
+   gcc-fortran-@RELEASE@.tar.gz       The F95 front end and runtime.
+ 
    gcc-objc-@RELEASE@.tar.bz2         The Objective-C front end and runtime.
  
    gcc-java-@RELEASE@.tar.bz2         The Java front end and runtime.
Index: maintainer-scripts/snapshot-index.html
===================================================================
RCS file: /cvsroot/gcc/gcc/maintainer-scripts/snapshot-index.html,v
retrieving revision 1.4.2.2
diff -c -3 -p -r1.4.2.2 snapshot-index.html
*** maintainer-scripts/snapshot-index.html	23 Jul 2003 17:03:31 -0000	1.4.2.2
--- maintainer-scripts/snapshot-index.html	24 Jul 2003 22:12:24 -0000
*************** how to sign up can be found on the GCC p
*** 32,37 ****
--- 32,41 ----
  	 gcc-g77</a> @TEXT_DATE@ snapshot, includes just the F77 front
  	 end and runtime.
  
+     <p> <a href="gcc-fortran-@RELEASE@.tar.bz2">
+ 	 gcc-fortran</a> @TEXT_DATE@ snapshot, includes just the F95 front
+ 	 end and runtime.
+ 
      <p> <a href="gcc-java-@RELEASE@.tar.bz2">
  	 gcc-java</a> @TEXT_DATE@ snapshot, includes just the Java
  	 front end and runtime.
*** depcomp.doesnotexist	Thu Jan  1 01:00:00 1970
--- depcomp	Thu Jul 24 00:51:35 2003
***************
*** 0 ****
--- 1,472 ----
+ #! /bin/sh
+ 
+ # depcomp - compile a program generating dependencies as side-effects
+ # Copyright 1999, 2000 Free Software Foundation, Inc.
+ 
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2, or (at your option)
+ # any later version.
+ 
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ # 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, Inc., 59 Temple Place - Suite 330, Boston, MA
+ # 02111-1307, USA.
+ 
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+ # configuration script generated by Autoconf, you may include it under
+ # the same distribution terms that you use for the rest of that program.
+ 
+ # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+ 
+ if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+   echo "depcomp: Variables source, object and depmode must be set" 1>&2
+   exit 1
+ fi
+ # `libtool' can also be set to `yes' or `no'.
+ 
+ if test -z "$depfile"; then
+    base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
+    dir=`echo "$object" | sed 's,/.*$,/,'`
+    if test "$dir" = "$object"; then
+       dir=
+    fi
+    # FIXME: should be _deps on DOS.
+    depfile="$dir.deps/$base"
+ fi
+ 
+ tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+ 
+ rm -f "$tmpdepfile"
+ 
+ # Some modes work just like other modes, but use different flags.  We
+ # parameterize here, but still list the modes in the big case below,
+ # to make depend.m4 easier to write.  Note that we *cannot* use a case
+ # here, because this file can only contain one case statement.
+ if test "$depmode" = hp; then
+   # HP compiler uses -M and no extra arg.
+   gccflag=-M
+   depmode=gcc
+ fi
+ 
+ if test "$depmode" = dashXmstdout; then
+    # This is just like dashmstdout with a different argument.
+    dashmflag=-xM
+    depmode=dashmstdout
+ fi
+ 
+ case "$depmode" in
+ gcc3)
+ ## gcc 3 implements dependency tracking that does exactly what
+ ## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
+ ## it if -MD -MP comes after the -MF stuff.  Hmm.
+   "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+     rm -f "$tmpdepfile"
+     exit $stat
+   fi
+   mv "$tmpdepfile" "$depfile"
+   ;;
+ 
+ gcc)
+ ## There are various ways to get dependency output from gcc.  Here's
+ ## why we pick this rather obscure method:
+ ## - Don't want to use -MD because we'd like the dependencies to end
+ ##   up in a subdir.  Having to rename by hand is ugly.
+ ##   (We might end up doing this anyway to support other compilers.)
+ ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+ ##   -MM, not -M (despite what the docs say).
+ ## - Using -M directly means running the compiler twice (even worse
+ ##   than renaming).
+   if test -z "$gccflag"; then
+     gccflag=-MD,
+   fi
+   "$@" -Wp,"$gccflag$tmpdepfile"
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+     rm -f "$tmpdepfile"
+     exit $stat
+   fi
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+   alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+ ## The second -e expression handles DOS-style file names with drive letters.
+   sed -e 's/^[^:]*: / /' \
+       -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+ ## This next piece of magic avoids the `deleted header file' problem.
+ ## The problem is that when a header file which appears in a .P file
+ ## is deleted, the dependency causes make to die (because there is
+ ## typically no way to rebuild the header).  We avoid this by adding
+ ## dummy dependencies for each header file.  Too bad gcc doesn't do
+ ## this for us directly.
+   tr ' ' '
+ ' < "$tmpdepfile" |
+ ## Some versions of gcc put a space before the `:'.  On the theory
+ ## that the space means something, we add a space to the output as
+ ## well.
+ ## Some versions of the HPUX 10.20 sed can't process this invocation
+ ## correctly.  Breaking it into two sed invocations is a workaround.
+     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ hp)
+   # This case exists only to let depend.m4 do its work.  It works by
+   # looking at the text of this script.  This case will never be run,
+   # since it is checked for above.
+   exit 1
+   ;;
+ 
+ sgi)
+   if test "$libtool" = yes; then
+     "$@" "-Wp,-MDupdate,$tmpdepfile"
+   else
+     "$@" -MDupdate "$tmpdepfile"
+   fi
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+     rm -f "$tmpdepfile"
+     exit $stat
+   fi
+   rm -f "$depfile"
+ 
+   if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
+     echo "$object : \\" > "$depfile"
+ 
+     # Clip off the initial element (the dependent).  Don't try to be
+     # clever and replace this with sed code, as IRIX sed won't handle
+     # lines with more than a fixed number of characters (4096 in
+     # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
+     # the IRIX cc adds comments like `#:fec' to the end of the
+     # dependency line.
+     tr ' ' '
+ ' < "$tmpdepfile" \
+     | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+     tr '
+ ' ' ' >> $depfile
+     echo >> $depfile
+ 
+     # The second pass generates a dummy entry for each header file.
+     tr ' ' '
+ ' < "$tmpdepfile" \
+    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+    >> $depfile
+   else
+     # The sourcefile does not contain any dependencies, so just
+     # store a dummy comment line, to avoid errors with the Makefile
+     # "include basename.Plo" scheme.
+     echo "#dummy" > "$depfile"
+   fi
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ aix)
+   # The C for AIX Compiler uses -M and outputs the dependencies
+   # in a .u file.  This file always lives in the current directory.
+   # Also, the AIX compiler puts `$object:' at the start of each line;
+   # $object doesn't have directory information.
+   stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
+   tmpdepfile="$stripped.u"
+   outname="$stripped.o"
+   if test "$libtool" = yes; then
+     "$@" -Wc,-M
+   else
+     "$@" -M
+   fi
+ 
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+     rm -f "$tmpdepfile"
+     exit $stat
+   fi
+ 
+   if test -f "$tmpdepfile"; then
+     # Each line is of the form `foo.o: dependent.h'.
+     # Do two passes, one to just change these to
+     # `$object: dependent.h' and one to simply `dependent.h:'.
+     sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
+     sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
+   else
+     # The sourcefile does not contain any dependencies, so just
+     # store a dummy comment line, to avoid errors with the Makefile
+     # "include basename.Plo" scheme.
+     echo "#dummy" > "$depfile"
+   fi
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ icc)
+   # Intel's C compiler understands `-MD -MF file'.  However on
+   #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+   # ICC 7.0 will fill foo.d with something like
+   #    foo.o: sub/foo.c
+   #    foo.o: sub/foo.h
+   # which is wrong.  We want:
+   #    sub/foo.o: sub/foo.c
+   #    sub/foo.o: sub/foo.h
+   #    sub/foo.c:
+   #    sub/foo.h:
+   # ICC 7.1 will output
+   #    foo.o: sub/foo.c sub/foo.h
+   # and will wrap long lines using \ :
+   #    foo.o: sub/foo.c ... \
+   #     sub/foo.h ... \
+   #     ...
+ 
+   "$@" -MD -MF "$tmpdepfile"
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+     rm -f "$tmpdepfile"
+     exit $stat
+   fi
+   rm -f "$depfile"
+   # Each line is of the form `foo.o: dependent.h',
+   # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+   # Do two passes, one to just change these to
+   # `$object: dependent.h' and one to simply `dependent.h:'.
+   sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
+   # Some versions of the HPUX 10.20 sed can't process this invocation
+   # correctly.  Breaking it into two sed invocations is a workaround.
+   sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
+     sed -e 's/$/ :/' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ tru64)
+    # The Tru64 compiler uses -MD to generate dependencies as a side
+    # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+    # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+    # dependencies in `foo.d' instead, so we check for that too.
+    # Subdirectories are respected.
+    dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+    test "x$dir" = "x$object" && dir=
+    base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ 
+    if test "$libtool" = yes; then
+       tmpdepfile1="$dir.libs/$base.lo.d"
+       tmpdepfile2="$dir.libs/$base.d"
+       "$@" -Wc,-MD
+    else
+       tmpdepfile1="$dir$base.o.d"
+       tmpdepfile2="$dir$base.d"
+       "$@" -MD
+    fi
+ 
+    stat=$?
+    if test $stat -eq 0; then :
+    else
+       rm -f "$tmpdepfile1" "$tmpdepfile2"
+       exit $stat
+    fi
+ 
+    if test -f "$tmpdepfile1"; then
+       tmpdepfile="$tmpdepfile1"
+    else
+       tmpdepfile="$tmpdepfile2"
+    fi
+    if test -f "$tmpdepfile"; then
+       sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+       # That's a space and a tab in the [].
+       sed -e 's,^.*\.[a-z]*:[ 	]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+    else
+       echo "#dummy" > "$depfile"
+    fi
+    rm -f "$tmpdepfile"
+    ;;
+ 
+ #nosideeffect)
+   # This comment above is used by automake to tell side-effect
+   # dependency tracking mechanisms from slower ones.
+ 
+ dashmstdout)
+   # Important note: in order to support this mode, a compiler *must*
+   # always write the proprocessed file to stdout, regardless of -o.
+   "$@" || exit $?
+ 
+   # Remove the call to Libtool.
+   if test "$libtool" = yes; then
+     while test $1 != '--mode=compile'; do
+       shift
+     done
+     shift
+   fi
+ 
+   # Remove `-o $object'.
+   IFS=" "
+   for arg
+   do
+     case $arg in
+     -o)
+       shift
+       ;;
+     $object)
+       shift
+       ;;
+     *)
+       set fnord "$@" "$arg"
+       shift # fnord
+       shift # $arg
+       ;;
+     esac
+   done
+ 
+   test -z "$dashmflag" && dashmflag=-M
+   # Require at least two characters before searching for `:'
+   # in the target name.  This is to cope with DOS-style filenames:
+   # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
+   "$@" $dashmflag |
+     sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile"
+   rm -f "$depfile"
+   cat < "$tmpdepfile" > "$depfile"
+   tr ' ' '
+ ' < "$tmpdepfile" | \
+ ## Some versions of the HPUX 10.20 sed can't process this invocation
+ ## correctly.  Breaking it into two sed invocations is a workaround.
+     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ dashXmstdout)
+   # This case only exists to satisfy depend.m4.  It is never actually
+   # run, as this mode is specially recognized in the preamble.
+   exit 1
+   ;;
+ 
+ makedepend)
+   "$@" || exit $?
+   # Remove any Libtool call
+   if test "$libtool" = yes; then
+     while test $1 != '--mode=compile'; do
+       shift
+     done
+     shift
+   fi
+   # X makedepend
+   shift
+   cleared=no
+   for arg in "$@"; do
+     case $cleared in
+     no)
+       set ""; shift
+       cleared=yes ;;
+     esac
+     case "$arg" in
+     -D*|-I*)
+       set fnord "$@" "$arg"; shift ;;
+     # Strip any option that makedepend may not understand.  Remove
+     # the object too, otherwise makedepend will parse it as a source file.
+     -*|$object)
+       ;;
+     *)
+       set fnord "$@" "$arg"; shift ;;
+     esac
+   done
+   obj_suffix="`echo $object | sed 's/^.*\././'`"
+   touch "$tmpdepfile"
+   ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+   rm -f "$depfile"
+   cat < "$tmpdepfile" > "$depfile"
+   sed '1,2d' "$tmpdepfile" | tr ' ' '
+ ' | \
+ ## Some versions of the HPUX 10.20 sed can't process this invocation
+ ## correctly.  Breaking it into two sed invocations is a workaround.
+     sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+   rm -f "$tmpdepfile" "$tmpdepfile".bak
+   ;;
+ 
+ cpp)
+   # Important note: in order to support this mode, a compiler *must*
+   # always write the proprocessed file to stdout.
+   "$@" || exit $?
+ 
+   # Remove the call to Libtool.
+   if test "$libtool" = yes; then
+     while test $1 != '--mode=compile'; do
+       shift
+     done
+     shift
+   fi
+ 
+   # Remove `-o $object'.
+   IFS=" "
+   for arg
+   do
+     case $arg in
+     -o)
+       shift
+       ;;
+     $object)
+       shift
+       ;;
+     *)
+       set fnord "$@" "$arg"
+       shift # fnord
+       shift # $arg
+       ;;
+     esac
+   done
+ 
+   "$@" -E |
+     sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+     sed '$ s: \\$::' > "$tmpdepfile"
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+   cat < "$tmpdepfile" >> "$depfile"
+   sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ msvisualcpp)
+   # Important note: in order to support this mode, a compiler *must*
+   # always write the proprocessed file to stdout, regardless of -o,
+   # because we must use -o when running libtool.
+   "$@" || exit $?
+   IFS=" "
+   for arg
+   do
+     case "$arg" in
+     "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ 	set fnord "$@"
+ 	shift
+ 	shift
+ 	;;
+     *)
+ 	set fnord "$@" "$arg"
+ 	shift
+ 	shift
+ 	;;
+     esac
+   done
+   "$@" -E |
+   sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
+   rm -f "$depfile"
+   echo "$object : \\" > "$depfile"
+   . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::	\1 \\:p' >> "$depfile"
+   echo "	" >> "$depfile"
+   . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+   rm -f "$tmpdepfile"
+   ;;
+ 
+ none)
+   exec "$@"
+   ;;
+ 
+ *)
+   echo "Unknown depmode $depmode" 1>&2
+   exit 1
+   ;;
+ esac
+ 
+ exit 0

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