cc1: warnings being treated as errors
/mnt/svn/gcc-trunk/gcc/fold-const.c: In function 'fold_checksum_tree':
/mnt/svn/gcc-trunk/gcc/fold-const.c:14249:3: error: new qualifiers in middle of
multi-level non-const cast are unsafe
make[3]: *** [fold-const.o] Error 1
make[3]: Leaving directory `/root/build-156693-x86-lto-checking-fold/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/root/build-156693-x86-lto-checking-fold'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/root/build-156693-x86-lto-checking-fold'
make: *** [all] Error 2

The offending line is:
  slot = (const void **) htab_find_slot (ht, expr, INSERT);

With htab_find_slot() declared as:
extern void ** htab_find_slot (htab_t, const void *, enum insert_option);

The situation is like:
void fold_checksum_tree(void)
{
        extern void **htab_find_slot(void);
        const void **slot = (const void **)htab_find_slot();
}


-- 
           Summary: bootstrap with --enable-checking=fold fails
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz


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

Reply via email to