[Bug ada/61954] Ada fails to properly pass pointer arguments on x32

2016-06-29 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954 Eric Botcazou changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ada/61954] Ada fails to properly pass pointer arguments on x32

2016-06-29 Thread ebotcazou at gcc dot gnu.org
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

[Bug ada/61954] Ada fails to properly pass pointer arguments on x32

2014-08-06 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61954 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug ada/61954] Ada fails to properly pass pointer arguments on x32

2014-07-30 Thread hjl.tools at gmail dot com
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

[Bug ada/61954] Ada fails to properly pass pointer arguments on x32

2014-07-29 Thread hjl.tools at gmail dot com
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

[Bug ada/61954] Ada fails to properly pass pointer arguments on x32

2014-07-29 Thread hjl.tools at gmail dot com
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 {