http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50077

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-09 
21:45:19 UTC ---
I have tested the  -mcmodel=large option on some simple C tests and I got the
same kind of failures.
So -mcmodel=large seems broken on x86_64-apple-darwin10 (gcc 4.4.6, 4.5.3, and
4.6.2).

gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

gives for

[macbook] f90/bug% cat sin.c
#include <stdio.h>
#include <math.h>

unsigned int ta;

main ()
{
  double result;
  for (ta = 1; ta <= 8000000; ta++)
    {
      result = sin(ta * 3.14159);
    }
  printf("result = \t%.13e\n", result);
}

sin.c:1: sorry, unimplemented: code model large not supported in PIC mode
sin.c:1: error: code model 'large' not supported in the 64 bit mode

Reply via email to