[Bug other/52545] New: output.h: SECTION_EXCLUDE flag clobbers SECTION_MACH_DEP

gjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 9 19:14:00 GMT 2012


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: unassigned@gcc.gnu.org
        ReportedBy: gjl@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 */



More information about the Gcc-bugs mailing list