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 fortran/51250] [4.7 Regression] Bug with SUM(,dim,mask)


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |burnus at gcc dot gnu.org
   Target Milestone|---                         |4.7.0

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-21 07:46:46 UTC ---
Workaround: -Os  (optimize for code size)

I would assume that it is due to Mikael's scalarizer patch set (Rev. 180842 to
Rev. 180922), cf. http://gcc.gnu.org/ml/fortran/2011-11/msg00046.html

Similar issue exists for PRODUCT, which is not surprising as they mostly share
the same code path.

(The expr->shape is correctly set in iresolve.c - but only if the shape and dim
is known at compile time, thus not in this case.)

(I couldn't quickly find the right spot in trans*.c)


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