Hi, I got an internal compiler error while compiling a source file. I was not able to reproduce the bug on a smaller source file. I only notice that the error occurs when I add an __asm__ volatile ("movl %0,%%eax"::"m"(get_segment_base_address(*entry))); but not at the line of this addition. On gcc 3.x adding this statement produce a normal warning of indirectly addressable input. (entry is an array of uint8_t[8])
Here is the output of gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13) Command line that triggers the bug: /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -fpreprocessed ldt.i -quiet -dumpbase ldt.c -mtune=i686 -auxbase-strip mm/ldt.o -O2 -Wall -Wstrict-aliasing=2 -std=gnu99 -version -fomit-frame-pointer -ffreestanding -o ldt.s GNU C version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13) (i486-linux-gnu) compiled by GNU C version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13). GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62590 Compiler executable checksum: 87670b01f6c8def5369835011f9cd001 Compiler output: mm/ldt.c: In function 'ldt_add_entry': mm/ldt.c:149: internal compiler error: in bitmap_first_set_bit, at bitmap.c:535 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. Preprocessed source stored into /tmp/ccgHytIr.out file, please attach this to your bugreport. make[1]: *** [mm/ldt.o] Error 1 make[1]: Leaving directory `/divers/work/ExAmour/kernel/src/arch/i386' make: *** [install_exAmour] Error 2 Have a great day. -- Rémy SAISSY -- Summary: Internal compiler error while adding __asm__ statement Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: remy dot saissy at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119