This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Exponentiation by integral exponents
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: Paul Brook <paul at codesourcery dot com>, fortran at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Apr 2004 19:22:24 +0200
- Subject: Re: [gfortran] Exponentiation by integral exponents
- References: <408ECD52.2090709@physik.uni-muenchen.de> <200404280052.42677.paul@codesourcery.com> <408FB7BB.9090003@physik.uni-muenchen.de> <200404281505.24811.paul@codesourcery.com> <408FC362.4080008@physik.uni-muenchen.de>
Tobias Schlüter wrote:
Paul Brook wrote:
You need to remove gfor_fndecl_math_pow* and create the nodes in
gfc_init_builtin_functions, like we do for floor and round.
^ more like sin and cos :-)
This only happened to work because trans-intrinsic.c lacks a dependency
on mathbuiltins.def :-/ I'm now following your suggestion by the letter.
The dependency problem is fixed by this:
2004-04-28 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
* Make-lang.in (f95-lang.o, trans-intrinsic.o): Add missing
dependency on mathbuiltins.def
Index: Make-lang.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/fortran/Attic/Make-lang.in,v
retrieving revision 1.1.2.17
diff -u -p -r1.1.2.17 Make-lang.in
--- Make-lang.in 24 Apr 2004 11:59:16 -0000 1.1.2.17
+++ Make-lang.in 28 Apr 2004 17:18:15 -0000
@@ -281,8 +281,8 @@ GFORTRAN_TRANS_DEPS = fortran/gfortran.h
fortran/trans-stmt.h fortran/trans-types.h \
$(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_H) coretypes.h
-fortran/f95-lang.o: $(GFORTRAN_TRANS_DEPS) gt-fortran-f95-lang.h \
- gtype-fortran.h cgraph.h
+fortran/f95-lang.o: $(GFORTRAN_TRANS_DEPS) mathbuiltins.def \
+ gt-fortran-f95-lang.h gtype-fortran.h cgraph.h
fortran/convert.o: $(GFORTRAN_TRANS_DEPS)
fortran/trans.o: $(GFORTRAN_TRANS_DEPS)
fortran/trans-decl.o: $(GFORTRAN_TRANS_DEPS) gt-fortran-trans-decl.h
cgraph.h
@@ -292,7 +292,8 @@ fortran/trans-expr.o: $(GFORTRAN_TRANS_D
fortran/trans-stmt.o: $(GFORTRAN_TRANS_DEPS)
fortran/trans-io.o: $(GFORTRAN_TRANS_DEPS) gt-fortran-trans-io.h
fortran/trans-array.o: $(GFORTRAN_TRANS_DEPS)
-fortran/trans-intrinsic.o: $(GFORTRAN_TRANS_DEPS)
gt-fortran-trans-intrinsic.h
+fortran/trans-intrinsic.o: $(GFORTRAN_TRANS_DEPS) mathbuiltins.def \
+ gt-fortran-trans-intrinsic.h
fortran/dependency.o: fortran/gfortran.h fortran/dependency.h
fortran/trans-common.o: $(GFORTRAN_TRANS_DEPS) fortran/gfortran.h
fortran/data.c: $(GFORTRAN_TRANS_DEPS)