[Bug fortran/44582] New: Gfotran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
Severity: critical Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: yin at absoft dot com GCC build triplet: x86-64 GCC host triplet: x86-64 GCC target triplet: x86-64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44582

[Bug fortran/44582] Gfotran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
--- Comment #1 from yin at absoft dot com 2010-06-18 18:16 --- Created an attachment (id=20940) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20940&action=view) bug example -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44582

[Bug fortran/44582] Gfotran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
--- Comment #2 from yin at absoft dot com 2010-06-18 18:23 --- it should be 0.0 always, NOT to be chaotic number like C, because when ddx is declared, it has to be initialized to 0.0 by fortran standard. -- yin at absoft dot com changed: What|Removed

[Bug fortran/44582] gfortran generates wrong results due to wrong ABI in function with array return

2010-06-18 Thread yin at absoft dot com
--- Comment #4 from yin at absoft dot com 2010-06-18 19:00 --- O.K. I doublechecked the standard. The array declared does not need to be initialized in this case. So the return value could be any number. However, this kind of implementation should fail in a certian case. I am trying to