[ruby-core:60878] Re: [RFC] rearrange+pack vtm and time_object structs

From: Eric Wong <normalperson@...>
Date: 2014-02-19 23:23:22 UTC
List: ruby-core #60878
Eric Wong <normalperson@yhbt.net> wrote:
> 	* configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+
> 	  use __attribute__((packed)) if available
> 	* timev.h: shrink and pack struct vtm
> 	* time.c: pack struct time_object and adjust/introduce helpers
> 
> patch: http://bogomips.org/ruby.git/patch?id=6081635e7

Btw, I'll commit this in a few days unless there are objections.
I've tested this on old gcc 4.2.1 and clang 3.3 on FreeBSD 9.2, too.

In This Thread