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/80645] New: [8 regression] FAIL: gfortran.dg/elemental_subroutine_3.f90 -O1 (test for excess errors)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80645

            Bug ID: 80645
           Summary: [8 regression] FAIL:
                    gfortran.dg/elemental_subroutine_3.f90   -O1  (test
                    for excess errors)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---
            Target: m68k-*-*

$ gcc/gfortran -Bgcc/ ../gcc/testsuite/gfortran.dg/elemental_subroutine_3.f90
-O -S
../gcc/testsuite/gfortran.dg/elemental_subroutine_3.f90:37:0:

    x(4:1:-1) = x((/1,3,2,4/))

Warning: ‘__builtin_memcpy’ reading 16 bytes from a region of size 12
[-Wstringop-overflow=]

From the original dump:

    parm.11.dtype = 297;
    parm.11.dim[0].lbound = 0;
    parm.11.dim[0].ubound = 3;
    parm.11.dim[0].stride = -1;
    parm.11.data = (void *) &x[3];
    parm.11.offset = 0;
....
          D.958 = (void * restrict) __builtin_malloc (16);
          data.13 = (struct mytype *) D.958;
          (void) __builtin_memcpy ((void *) data.13, parm.11.data, 16);

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