https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954
Eric Botcazou changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954
--- Comment #5 from Eric Botcazou ---
Author: ebotcazou
Date: Wed Jun 29 13:03:22 2016
New Revision: 237850
URL: https://gcc.gnu.org/viewcvs?rev=237850&root=gcc&view=rev
Log:
PR ada/48835
PR ada/61954
* gcc-interface/gigi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954
Eric Botcazou changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954
--- Comment #3 from H.J. Lu ---
s-os_lib.adb has
function Write
(FD : File_Descriptor;
A : System.Address;
N : Integer) return Integer
is
begin
return
Integer (System.CRTL.write
(Sy
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954
--- Comment #2 from H.J. Lu ---
Maybe Ada fails to tell the backend that a parameter is a pointer:
[hjl@gnu-6 tmp]$ cat p2.c
struct pointer
{
int p;
int b;
};
extern void bar (int p);
void
xxx (struct pointer p)
{
foo (p);
}
[hjl@gnu-6 t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954
--- Comment #1 from H.J. Lu ---
Ada seems to use a struct for pointers, something
like
struct pointer
{
void *p;
void *b;
};
But it fails to properly zero-extend pointers when calling
C functions:
[hjl@gnu-6 tmp]$ cat p.c
struct pointer
{