]> gcc.gnu.org Git - gcc.git/commitdiff
frontend-passes.c (cfe_register_funcs): Return early in the case of an inline intrins...
authorMikael Morin <mikael@gcc.gnu.org>
Fri, 4 Nov 2011 00:14:58 +0000 (00:14 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Fri, 4 Nov 2011 00:14:58 +0000 (00:14 +0000)
* frontend-passes.c (cfe_register_funcs): Return early in the case
of an inline intrinsic function.
(optimize_binop_array_assignment): Skip optimization in the case of
an inline intrinsic function.

From-SVN: r180911

gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c

index ed6a4dfe2671ced09001b186ff874ebaf6aa8782..6fca42978c2b77b26cb11bad6db24ba6588a7fa9 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-04  Mikael Morin  <mikael@gcc.gnu.org>
+
+       * frontend-passes.c (cfe_register_funcs): Return early in the case
+       of an inline intrinsic function.
+       (optimize_binop_array_assignment): Skip optimization in the case of
+       an inline intrinsic function.
+
 2011-11-04  Mikael Morin  <mikael@gcc.gnu.org>
 
        * array.c (match_subscript): Skip whitespaces before setting locus.
index 5b1a644e247a18cd0e24bcf540c36b31025393c3..a19f22deac517a1d6c44eaf305b32032e29f524f 100644 (file)
@@ -203,8 +203,8 @@ cfe_register_funcs (gfc_expr **e, int *walk_subtrees ATTRIBUTE_UNUSED,
       /* Conversions are handled on the fly by the middle end,
         transpose during trans-* stages and TRANSFER by the middle end.  */
       if ((*e)->value.function.isym->id == GFC_ISYM_CONVERSION
-         || (*e)->value.function.isym->id == GFC_ISYM_TRANSPOSE
-         || (*e)->value.function.isym->id == GFC_ISYM_TRANSFER)
+         || (*e)->value.function.isym->id == GFC_ISYM_TRANSFER
+         || gfc_inline_intrinsic_function_p (*e))
        return 0;
 
       /* Don't create an array temporary for elemental functions,
@@ -567,7 +567,8 @@ optimize_binop_array_assignment (gfc_code *c, gfc_expr **rhs, bool seen_op)
           && ! (e->value.function.isym
                 && (e->value.function.isym->elemental
                     || e->ts.type != c->expr1->ts.type
-                    || e->ts.kind != c->expr1->ts.kind)))
+                    || e->ts.kind != c->expr1->ts.kind))
+          && ! gfc_inline_intrinsic_function_p (e))
     {
 
       gfc_code *n;
This page took 0.070941 seconds and 5 git commands to generate.