On my laptop with

    OS: Windows 2000
    CPU: Intel Pentium M 1500MHz
    Compiler: GCC 3.4.2 (from an old-ish MinGW)

it compiles fine and produces the same output as on your Blade 2000.

Sebastian

On Jul 18, 4:09 pm, "Dr. David Kirkby" <david.kir...@onetel.net>
wrote:
> I'd be interested what you get if you build this program, which was
> written by one of the gcc guys to try to get to the bottom of this issue
>   with mpfr not building.
>
> On the Sun T5240 ('t2') donated by Sun to the Sage project, it dumps core:
>
> kir...@t2:[~] $ ./a.out
> n=0
> n=1
> Abort (core dumped)
>
> On my own Blade 2000 it runs like this:
>
> drkir...@kestrel:[~] $ ./a.out
> n=0
> n=1
> n=2
> n=3
> n=4
> n=5
> n=6
> n=7
> n=8
> n=9
> n=10
>
> What does it do on your machine?
>
> The Sun compiler refuses to compile it.
>
> #include <stdio.h>
> typedef __SIZE_TYPE__ size_t;
> extern void *memset (void *, const void *, size_t);
> extern void abort (void);
> volatile size_t i = 0x80000000U, j = 0x80000000U;
> char buf[16];
>
> int main (void)
> {
>    int n;
>
>    for (n=0 ; n <=10;++n) {
>      printf("n=%d\n",n);
>      if (sizeof (size_t) != 4)
>        return 0;
>      buf[n] = 6;
>      memset (buf+n, 0, i + j);
>      if (buf[n] != 6)
>        abort ();
>    }
>    return 0;
>
> }
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to