This is the mail archive of the gdb-testers@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Below is an example.
The output from the example, compiled with AIX 3.2.5 native cc, is:
fun (no cast) called with 2 and -559038737
fun (cast) called with 1 and 2
whereas all other compilers I know of (including AIX 4.1 cc) produce
fun (no cast) called with 1 and 2
fun (cast) called with 1 and 2
#include <stdio.h>
extern fun (const char *, long long, long);
fun (s, arg1, arg2)
const char *s;
long long arg1;
long arg2;
{
long l = (long) arg1;
printf ("fun %s called with %ld and %ld\n", s, l, arg2);
}
main ()
{
long val = 1L;
fun ("(no cast)", val, 2L);
fun ("(cast)", (long long) val, 2L);
exit (0);
}
> Uh, excuse me? What do you mean by buggy "long long" support?
> GCC's long long support has been slightly broken until the latest releases
> but XLC's long long support should be fine.
>
> David
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de