[gfortran] Exponentiation by integral exponents

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Apr 28 17:55:00 GMT 2004


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)



More information about the Gcc-patches mailing list