Re: Please help with __attribute__ weak

2005-07-26 Thread Dimitry Golubovsky
Dimitry Golubovsky wrote: > I need to declare a symbol which is weaker in the executable than in any > external static or dynamic library. > In other words, the executable provides some fallback function > implementation (in my example, for "write"). But if the link

Please help with __attribute__ weak

2005-07-26 Thread Dimitry Golubovsky
ementation */ But even though "write" is resolved, calling the __f_write_weak_alias just prints "Abort" i. e. the symbol "write" was not overridden by the library definition. What is the right way to do this? Thanks for any advice. Dimitry Golubovsky Middletown, CT

Offset and Bit Mask for Bit Fields?

2005-07-11 Thread Dimitry Golubovsky
Do there exist any means in gcc to measure offsets (of enclosing integer field) and bit mask for bit fields? If not, any chance to add them in the future? -- Dimitry Golubovsky Anywhere on the Web

Re: gcc for syntax check only (C): need to read source from stdin

2005-04-12 Thread Dimitry Golubovsky
when running > the preprocessor, which is why it lets you do that without the -x c. > > zw > -- Dimitry Golubovsky Anywhere on the Web

Re: gcc for syntax check only (C): need to read source from stdin

2005-04-12 Thread Dimitry Golubovsky
s the preprocessor, nothing else. i. e. gcc still does not want to do anything beyond preprocessing using stdin as input. On 4/12/05, Devang Patel <[EMAIL PROTECTED]> wrote: > Try -fsyntax-only -- Dimitry Golubovsky Anywhere on the Web

gcc for syntax check only (C): need to read source from stdin

2005-04-12 Thread Dimitry Golubovsky
same job as the "stock" gcc, but allowing piping its input and output? Thank you. -- Dimitry Golubovsky Anywhere on the Web