public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/7349: ia64 function pointer :
@ 2002-10-10 17:15 janis
  0 siblings, 0 replies; 2+ messages in thread
From: janis @ 2002-10-10 17:15 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, hpc, jalby.prism.uvsq.fr, kbrifa, nobody

Synopsis: ia64 function pointer :

State-Changed-From-To: open->closed
State-Changed-By: janis
State-Changed-When: Thu Oct 10 17:15:43 2002
State-Changed-Why:
    This is not a GCC bug.  For GCC 2.96 (which is not an FSF
    release), the program works as expected if calloc is
    declared by including <stdlib.h>.  GCC 3.2, the current
    release, reports an error for an "invalid conversion
    from `int (*)(int, int)' to `const void*"; a function
    pointer on IA-64 is not a simple pointer as it is on some
    other architectures.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7349


^ permalink raw reply	[flat|nested] 2+ messages in thread

* target/7349: ia64 function pointer :
@ 2002-07-18  6:26 hpc
  0 siblings, 0 replies; 2+ messages in thread
From: hpc @ 2002-07-18  6:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jalby.prism.uvsq.fr, kbrifa


>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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-11  0:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 17:15 target/7349: ia64 function pointer : janis
  -- strict thread matches above, loose matches on Subject: below --
2002-07-18  6:26 hpc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).