• 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
dereferencing type-punned pointer will break strict-aliasing rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dereferencing type-punned pointer will break strict-aliasing rules


  • Subject: dereferencing type-punned pointer will break strict-aliasing rules
  • From: Ulf Dunkel <email@hidden>
  • Date: Wed, 17 May 2006 16:40:46 +0200
  • Organization: invers Software

I create UB "deployment" builds of a project and get masses of warnings "dereferencing type-punned pointer will break strict-aliasing rules" then.

When I build "development native" on a PowerPC Mac, no such warning is shown.

Googling around I found that GCC sets a flag -fstrict-aliasing when -O2 is set. This seems to lead to these warnings when building for Intel Macs.

How do I tell GCC in XCode that it should use -fno-strict-aliasing?

--
Bis bald / See you soon / A bientôt / Tot ziens / Ghis revido

invers Software Vertrieb  - Inh. Ulf Dunkel
mailto:email@hidden - http://www.calamus.net

_______________________________________________
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: dereferencing type-punned pointer will break strict-aliasing rules
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: How to run an application bundle that dynamically loads a dylib
  • Next by Date: -exported_symbols_list ist ignored when building library
  • Previous by thread: Re: How to run an application bundle that dynamically loads a dylib
  • Next by thread: Re: dereferencing type-punned pointer will break strict-aliasing rules
  • Index(es):
    • Date
    • Thread