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

Re: typechecking


  • Subject: Re: typechecking
  • From: Perry Winkel <email@hidden>
  • Date: Thu, 8 May 2008 03:37:30 +0200

thanks, nice to see it can be set so easily
when using gcc directly i do that too sometimes
but i am not an expert on the area, Xcode is a
bit similar to me, even in the codewarrior days
i just clicked away until it worked :-)

so sorry for my ignorance and stuff where do i
set this parameter once and for all, i looked 
in my project settings but could not find anything

do you have a clue for me :-)

On May 6, 2008, at 24:02 , Jeremy Pereira wrote:


On 4 May 2008, at 22:40, Perry Winkel wrote:

thank you for your response but it did not do the trick
if i do a truly 64-bit compile my addresses also become wider :-)
and this is not what i want yet.


64-Bit Transition Guide: Compiling 64-Bit Code Using GCC

-Wshorten-64-to-32



It works on my machine:

jeremyp@miranda:~ $cat foo.c
#include <stdint.h>
main()
{
int myint;
int64_t myintbig=412345678;


myint=myintbig;
return 0 ;
}

jeremyp@miranda:~ $gcc foo.c
jeremyp@miranda:~ $gcc -Wshorten-64-to-32 foo.c
foo.c: In function ‘main’:
foo.c:7: warning: implicit conversion shortens 64-bit value into a 32-bit value

jeremyp@miranda:~ $gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)








--
met vriendelijke groeten
perry winkel

http://www.perry7.nl
http://www.myspace.com/dehufters




 _______________________________________________
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: 
 >typechecking (From: email@hidden)
 >Re: typechecking (From: Chris Espinosa <email@hidden>)
 >Re: typechecking (From: Perry Winkel <email@hidden>)
 >Re: typechecking (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: Select SDK in a Makefile?
  • Next by Date: Re: Select SDK in a Makefile?
  • Previous by thread: Re: typechecking
  • Next by thread: Re: typechecking
  • Index(es):
    • Date
    • Thread