• 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: Jeremy Pereira <email@hidden>
  • Date: Mon, 5 May 2008 23:02:14 +0100


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)








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

  • Prev by Date: Re: Xcode 3 losing scm password
  • Next by Date: Re: Xcode 3 auto-intent driving me crazy!
  • Previous by thread: Re: typechecking
  • Next by thread: Re: typechecking
  • Index(es):
    • Date
    • Thread