http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52545

             Bug #: 52545
           Summary: output.h: SECTION_EXCLUDE flag clobbers
                    SECTION_MACH_DEP
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: g...@gcc.gnu.org


All section flags from SECTION_MACH_DEP on are reserved for target specific
purposes and must not be allocated/used by any other flags like
SECTION_EXCLUDE.

Otherwise, setting a machine specific section flag might lead to
unintentionally mark a section as SECTION_EXCLUDE.

This bug is explicit for the AVR target that uses these flags (4 bits) to
encode target specific address spaces.

The output.h source comment reads:

#define SECTION_MACH_DEP 0x2000000    /* subsequent bits reserved for target */

Reply via email to