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]

fortran/5837: bug in loop unrolling



>Number:         5837
>Category:       fortran
>Synopsis:       bug in loop unrolling
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 05 05:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Valera.Veryazov@teokem.lu.se
>Release:        3.0.4
>Organization:
>Environment:
Linux Mandrake 8.1. GCC/G77 compiled from the source code.
>Description:
The code (see attachment) produces a Segnematation fault,
if flags " -O  -funroll-loops" are used.

Change of parameter to 12, 16 gives a correct result.
Also, a change of declaration Character *64 to, say,
Character*45 produces a funny number instead 0.

Removing -unroll-loops flag or using unrolling by hands
also 'fix' the problem.

>How-To-Repeat:
just compile the code with -O  -funroll-loops flags.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.f"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.f"

YyAgICAgZzc3ICAtTyAgLWZ1bnJvbGwtbG9vcHMgICBtYWluLmYKICAgICAgcHJvZ3JhbSBtYWlu
CiAgICAgIFBhcmFtZXRlciAobiA9IDExKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIAogICAgICBDb21tb24gL1RULyBNTQogICAgICBDaGFyYWN0ZXIqNjQgRmxkKG4pLFN0YXQo
bikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAKICAgICAgQ29tbW9uIC9USU1DLyBGbGQsU3RhdCAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgCioKICAgICAgTU09MAogICAgICBkbyBpPTEsbgogICAgICAgIEZs
ZChpKT0nICcKICAgICAgICBTdGF0KGkpPScgJwogICAgICBlbmQgZG8KICAgICAgd3JpdGUoKiwq
KSBNTQogICAgICBlbmQK


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