This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32494] New: gcc-4.3.x _32-bit_ becoming irrelevant to kernel


On Fri, 18 May 2007, Andrew Morton wrote:
> 
> gcc-4.3 appears to have cunningly converted this:

Very cunning indeed.

Considerign that gcc converted straightforward and simple code to a total 
disaster with a 64-bit divide, I'd call it a gcc bug.

> into a divide-by-1000000000 operation, so it emits a call to udivdi3 and we
> don't link.

I think the proper fix is to just tell people that version of gcc is 
broken.

                Linus


If anybody wonders where this quote came from; just google "udivdi3 gcc".

Current gcc-20070623 message:

  ld -m elf_i386 -m elf_i386  -o .tmp_vmlinux1 -T arch/i386/kernel/vmlinux.lds
arch/i386/kernel/head.o arch/i386/kernel/init_task.o  init/built-in.o
--start-group  usr/built-in.o  arch/i386/kernel/built-in.o 
arch/i386/mm/built-in.o  arch/i386/mach-default/built-in.o 
arch/i386/crypto/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o 
ipc/built-in.o  security/built-in.o  crypto/built-in.o  block/built-in.o 
lib/lib.a  arch/i386/lib/lib.a  lib/built-in.o  arch/i386/lib/built-in.o 
drivers/built-in.o  sound/built-in.o  arch/i386/pci/built-in.o 
arch/i386/power/built-in.o  net/built-in.o --end-group 
kernel/built-in.o: In function `getnstimeofday':
(.text+0x1eba5): undefined reference to `__udivdi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x1ecca): undefined reference to `__udivdi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x1f0f4): undefined reference to `__udivdi3'
make: *** [.tmp_vmlinux1] Error 1


For more details see PR31541 PR32044 PR31990


-- 
           Summary: gcc-4.3.x _32-bit_ becoming irrelevant to kernel
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: malitzke at metronets dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]