• 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: Odd GCC Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd GCC Behavior


  • Subject: Re: Odd GCC Behavior
  • From: Eli Bach <email@hidden>
  • Date: Mon, 30 Jun 2008 12:44:49 -0700


On Jun 30, 2008, at 11:32 AM, J. Aaron Pendergrass wrote:

I'm certainly not trying to get anyone to do my work, merely pointing out what seemed like a peculiar implementation
and potential source of cross-platform incompatibilities, and perhaps to gain some insight into exactly what decisions
led to this piece of behavior.

Others have comments on why it may result in significantly different code for different platforms [heck, may even different optimization levels]. Just switching from ggc 3.3 to gcc 4.0 on PowerPC could make it work differently [only in a less noticeable way].


I would argue it's a feature/benefit that it works differently as often as possible, as I would automatically classify using undefined compiler behavior as a serious bug.

Wouldn't it be best for your code base that all use of undefined behavior be removed as soon as possible. The more different it works hopefully makes the problem more apparent.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Odd GCC Behavior
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Odd GCC Behavior (From: "J. Aaron Pendergrass" <email@hidden>)
 >Re: Odd GCC Behavior (From: Jim Jagielski <email@hidden>)
 >Re: Odd GCC Behavior (From: "J. Aaron Pendergrass" <email@hidden>)
 >Re: Odd GCC Behavior (From: "Clark Cox" <email@hidden>)
 >Re: Odd GCC Behavior (From: "J. Aaron Pendergrass" <email@hidden>)
 >Re: Odd GCC Behavior (From: Steve Sisak <email@hidden>)
 >Re: Odd GCC Behavior (From: "J. Aaron Pendergrass" <email@hidden>)

  • Prev by Date: Re: Odd GCC Behavior
  • Next by Date: Re: Odd GCC Behavior
  • Previous by thread: Re: Odd GCC Behavior
  • Next by thread: Re: Odd GCC Behavior
  • Index(es):
    • Date
    • Thread