[Vm-dev] [commit][3374] CogVm source as per VMMaker.oscog-eem.1349

Eliot Miranda eliot.miranda at gmail.com
Thu Jun 18 02:14:09 UTC 2015


Hi Ryan,

On Tue, Jun 16, 2015 at 10:45 PM, Ryan Macnak <rmacnak at gmail.com> wrote:

>
> On Sat, Jun 13, 2015 at 12:17 AM, Esteban Lorenzano <estebanlm at gmail.com>
> wrote:
>
>>
>>
>> On 13 Jun 2015, at 03:38, Ryan Macnak <rmacnak at gmail.com> wrote:
>>
>> On Fri, Jun 12, 2015 at 12:43 AM, Esteban Lorenzano <estebanlm at gmail.com>
>> wrote:
>>>
>>> extern extern sqInt superclassOf(sqInt classPointer);
>>>
>>> gcc 4.6.3 (Travis CI) also says this is an error.
>>
>> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) is okay
>> with it.
>>
>> ps: btw, I’m using clang to compile in mac since a lot of time and I do
>>> not have problems, yes I needed to tweak a flag here and there, but not
>>> much more… of course, I use “Apple LLVM version 6.0 (clang-600.0.54) (based
>>> on LLVM 3.5svn)”, so is probably not the same...
>>>
>>
>> What flags have you changed? We should adopt them or fix things so they
>> aren't needed.
>>
>>
>>
>> I’m compiling with this:
>>
>> -D_FILE_OFFSET_BITS=64 -DNDEBUG -D_GNU_SOURCE -DLSB_FIRST
>> -DHAVE_SYS_TIME_H -DHAVE_UUID_GENERATE -Wno-unused-parameter
>> -mmacosx-version-min=10.5 -DHAVE_NANOSLEEP -O3 -fomit-frame-pointer
>> -DDEBUGVM=0 -fpascal-strings -DCOGVM -Qunused-arguments -funroll-loops
>> -DDEFAULT_IMAGE_NAME="Pharo.image" -Wno-unused-value -fmessage-length=0
>> -DUSE_CORE_GRAPHICS -g0 -DBASE_HEADER_SIZE=4 -march=pentium-m
>> -DBUILD_FOR_OSX -DENABLE_FAST_BLT -fasm-blocks -Wno-unused-variable
>> -std=gnu99 -DCOGMTVM=0 -fwrapv -Wno-return-type -fno-inline-functions
>> -fno-gcse -mfpmath=sse -arch i386 -mtune=prescott -falign-functions=16
>> -DUSE_GLOBAL_STRUCT=0
>>
>> I think the only “CLANG Only” is:
>>
>> -fwrapv
>>
>
> That one fixes my VMs. Looks like it goes back to gcc 3.3, so it should be
> safe to add to all the builds.
>

You mean just adding -fwrapv fixes your VMs, or all of the above?


> But I didn't need this before. Your merge with Eliot falls within the
> range of commits where things stopped working. Are you aware of code from
> your branch that relies on signed integer overflow?
>
> Ryan
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150617/5f7331b1/attachment-0001.htm


More information about the Vm-dev mailing list