• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Internal compiler error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internal compiler error


  • Subject: Re: Internal compiler error
  • From: Scott Tooker <email@hidden>
  • Date: Tue, 30 Nov 2004 12:52:42 -0800

My guess is that you are running into a bug in the CW asm support in gcc 3.3. I'd move up to Xcode 1.5 and see if the problem reproduces. If it does, please file a bug.

Scott

On Nov 28, 2004, at 1:21 AM, Tomas Zahradnicky wrote:


Hi,

I'm moving my scientific project to Xcode from CW and am unable to move my fast square root assembly code. I always get:

  sqrt.c: In function `SQRTBISEC':
  sqrt.c:0: internal compiler error: in emit_move_insn, at expr.c:3156
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://developer.apple.com/bugreporter> for instructions.


My function is:

  static asm double SQRT(register double d)
  {
   // low table address
      lis         r3,ha16(TABLE)
      addi        r3,r3,lo16(TABLE)

      ...

      blr
  }

The gcc command line is:

  gcc sqrt.c -o sqrt -fasm-blocks -g



What am I doing wrong? I still have Xcode tools 1.2 and gcc version 3.3 20030304 (Apple Computer, Inc. build 1640) since I've heard that Xcode 1.5 update is buggy.

Do I have to update to 1.5 or make my square root .s file?

Thanks,

  Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Internal compiler error (From: Tomas Zahradnicky <email@hidden>)

  • Prev by Date: Re: Toggle front window?
  • Next by Date: Re: ultra mega ok newbie question
  • Previous by thread: Internal compiler error
  • Next by thread: codewarrior importing problem
  • Index(es):
    • Date
    • Thread