[PATCH] Add header guard to several header files.

Kito Cheng kito.cheng@gmail.com
Thu Sep 18 16:24:00 GMT 2014


Hi Joseph:

Here is updated patch and ChangeLog,

However I don't have commit write yet, can you help me to commit it? thanks

btw, I has already signed FSF agreement:)


2014-09-19  Kito Cheng  <kito@0xlab.org>

    except.h: Fix header guard.
    addresses.h: Add missing header guard.
    cfghooks.h: Likewise.
    collect-utils.h: Likewise.
    collect2-aix.h: Likewise.
    conditions.h: Likewise.
    cselib.h: Likewise.
    dwarf2asm.h: Likewise.
    graphds.h: Likewise.
    graphite-scop-detection.h: Likewise.
    gsyms.h: Likewise.
    hw-doloop.h: Likewise.
    incpath.h: Likewise.
    ipa-inline.h: Likewise.
    ipa-ref.h: Likewise.
    ira-int.h: Likewise.
    ira.h: Likewise.
    lra-int.h: Likewise.
    lra.h: Likewise.
    lto-section-names.h: Likewise.
    read-md.h: Likewise.
    reload.h: Likewise.
    rtl-error.h: Likewise.
    sdbout.h: Likewise.
    targhooks.h: Likewise.
    tree-affine.h: Likewise.
    xcoff.h: Likewise.
    xcoffout.h: Likewise.

> OK except for the changes to target-def.h and target-hooks-macros.h.
> (Those aren't exactly normal headers that could reasonably be included
> more than once in a source file; they have dependencies on where they get
> included and what's defined before/after inclusion.  So while I suspect
> the include guards would not cause any problems in those headers, it's not
> obvious they're desirable either.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-header-guard-to-several-header-files.patch
Type: text/x-patch
Size: 19577 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140918/30c33d3e/attachment.bin>


More information about the Gcc-patches mailing list