target/7349: ia64 function pointer :

hpc@prism.uvsq.fr hpc@prism.uvsq.fr
Thu Jul 18 06:27:00 GMT 2002


>Number:         7349
>Category:       target
>Synopsis:       ia64 function pointer :
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 18 06:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Henri-Pierre Charles
>Release:        gcc version 2.96
>Organization:
>Environment:
Linux malraux 2.4.18 #2 SMP Tue Jul 9 11:28:20 CEST 2002 ia64 unknown
>Description:
The generated code for the program is not correct.It seem that without -O the third call are not correct.

This code compiler correctly on Solaris/sparc, 
FreeBSD/i386, linux/i386.
>How-To-Repeat:
Compile & execute without -O on an ia64 platform
>Fix:
None actually
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="TestBug.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="TestBug.c"

I2luY2x1ZGUgPHN0cmluZy5oPgojaW5jbHVkZSA8c3RkaW8uaD4KCnR5cGVkZWYgIGludCAoKnBm
aWlpKShpbnQsIGludCk7CgppbnQgYWRkKGludCBhLCBpbnQgYikKewogIHJldHVybiBhK2I7Cn0g
LyogYWRkICovCgppbnQgYmlkb24oaW50IGEsIGludCBiKQp7Cn0gLyogYWRkICovCgppbnQgbWFp
bihpbnQgYXJnYywgY2hhciAqIGFyZ3ZbXSkKewogIGNoYXIgY29kZUJ1ZmZlcjFbMTAyNF07CiAg
Y2hhciAqY29kZUJ1ZmZlcjIgPSAoY2hhciAqKSBjYWxsb2MgKDEwMjQsIDEpOwogIHBmaWlpIG15
RnVuY3Rpb247CiAgKHZvaWQpIHByaW50ZigiJWQgJWRcbiIsIDYsIGFkZCAoNiwgMzYpKTsKICBi
Y29weSAoYWRkLCBjb2RlQnVmZmVyMSwgMTAyNCk7CiAgbXlGdW5jdGlvbiA9IChwZmlpaSkgY29k
ZUJ1ZmZlcjE7CiAgKHZvaWQpIHByaW50ZigiJWQgJWRcbiIsIDcsIG15RnVuY3Rpb24oNywgMzUp
KTsKICBiY29weSAoYWRkLCBjb2RlQnVmZmVyMiwgMTAyNCk7CiAgbXlGdW5jdGlvbiA9IChwZmlp
aSkgY29kZUJ1ZmZlcjI7CiAgKHZvaWQpIHByaW50ZigiJWQgJWRcbiIsIDgsIG15RnVuY3Rpb24o
OCwgMzQpKTsKICBmcmVlIChjb2RlQnVmZmVyMik7CiAgcmV0dXJuIDA7Cn0K



More information about the Gcc-bugs mailing list