Does sysroot-suffix.h need to be installed?

2016-02-17 Thread David Howells
Does sysroot-suffix.h need to be installed even when it's empty?  Does
anything outside of gcc actually use it?  Can it be left out or given a blank
line?  I notice that not all targets produce such a file.

The reason I ask is that rpmlint gives an error on empty files, and
sysroot-suffix.h is empty at least for m68k.

David




Do macro_list and fixinc.sh need to be installed?

2016-02-17 Thread David Howells
Hi,

Do the macro_list and fixinc.sh files need to be installed?  Does anything
outside of gcc actually use them?  If macro_list is a zero length file, can it
be left out of the installation (fixinc.sh seems to test for its presence
before trying to use it) or given a blank line?

The reason I ask is that rpmlint gives an error on empty files, and macro_list
is empty at least for h8300 and sh64.

David


Re: Compilers and RCU readers: Once more unto the breach!

2015-05-20 Thread David Howells
Paul E. McKenney  wrote:

> Ah, I was assuming between x and z.  David, what was your intent?  ;-)

Clarification.

David


Re: Compilers and RCU readers: Once more unto the breach!

2015-05-20 Thread David Howells
Paul E. McKenney  wrote:

> I was thinking of "y" as a simple variable, but if it is something more
> complex, then the compiler could do this, right?
> 
>   char *x;
> 
>   y;
>   x = z;

Yeah.  I presume it has to maintain the ordering, though.

David


Re: Compilers and RCU readers: Once more unto the breach!

2015-05-20 Thread David Howells
Paul E. McKenney  wrote:

> > Additionally, what about the following code?
> > 
> >   char *x = y ? z : z;
> > 
> > Does that extend a dependency chain from z to x? If so, I can imagine a
> > CPU breaking that in practice.
> 
> I am not seeing this.  I would expect the compiler to optimize to
> something like this:
> 
>   char *x = z;

Why?  What if y has a potential side-effect (say it makes a function call)?

David