Displaying 2 results from an estimated 2 matches for "flexible_array_member".
2015 Nov 12
3
Inexplicable ASAN report. Code generation bug?
...;
union NumericChoice
{
uint16 n_header; /* Header word */
struct NumericLong n_long; /* Long form (4-byte header) */
struct NumericShort n_short; /* Short form (2-byte header) */
};
struct NumericShort
{
uint16 n_header; /* Sign + display scale + weight */
NumericDigit n_data[FLEXIBLE_ARRAY_MEMBER]; /* Digits */
};
struct NumericLong
{
uint16 n_sign_dscale; /* Sign + display scale */
int16 n_weight; /* Weight of 1st digit */
NumericDigit n_data[FLEXIBLE_ARRAY_MEMBER]; /* Digits */
};
So it looks to me like -O2 is causing the optimizer to turn the 2-byte
read into a 4-byte read...
2013 Aug 20
3
Problem compiling 2.2.5
I'm trying to upgrade a very old sparcstation running Solaris 8 which
is running dovecot 1.x for few users. All I have for the task is good
old gcc 2.95.2. The poor sod complains because it can't compute the
sizeof(unsigned char prefix_text[]) at line 13 of log-error-buffer.c.
Can I help it by - say - putting a constant between the '[]'?
Or is it unfair? :-)
I don't think