[Bug libgomp/60670] omp.h may differ between multilibs

egall at gwmail dot gwu.edu gcc-bugzilla@gcc.gnu.org
Fri Jan 9 23:22:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #9 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #2)
> > --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
> > Or the header needs to include all variants with proper #ifdef-ery
> 
> This is difficult for a header generated per multilib at build time.
>

GNU diff can can merge two C/C++ header files with the proper ifdef-ery: see:
http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#If-then-else
and also:
http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Detailed%20If-then-else

This could be done as part of the generation of the header at build time.



More information about the Gcc-bugs mailing list