• 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
copying structs - PPC/Intel different results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copying structs - PPC/Intel different results


  • Subject: copying structs - PPC/Intel different results
  • From: Marc Poirier <email@hidden>
  • Date: Wed, 28 Jun 2006 08:14:21 -0400

Given this example:

struct Thingy {
	int a;
	int b;
	int c;
};
const Thingy kFirstThingy = { 1, 2, 3 };
const Thingy kSecondThingy = kFirstThingy;

When compiling with GCC 4.0.1 for PPC code, the three values of kSecondThingy are 1, 2, 3. But when compiling with GCC 4.0.1 for Intel code, the three values of kSecondThingy are 0, 0, 0.

I'm unsure, is one of these a bug? If so, which? I would tend to think the Intel results are wrong, though maybe I'm doing something I shouldn't be doing, I'm not sure...
_______________________________________________
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
  • Follow-Ups:
    • Re: copying structs - PPC/Intel different results
      • From: Shaun Wexler <email@hidden>
    • Re: copying structs - PPC/Intel different results
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Objective-C++ Exceptions (was: PICT control problems)
  • Next by Date: Remote debugging issues
  • Previous by thread: Re: breakpoints don't work
  • Next by thread: Re: copying structs - PPC/Intel different results
  • Index(es):
    • Date
    • Thread