public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32494]  New: gcc-4.3.x _32-bit_ becoming irrelevant to kernel
@ 2007-06-25 12:12 malitzke at metronets dot com
  2007-06-25 12:16 ` [Bug c/32494] " pinskia at gcc dot gnu dot org
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: malitzke at metronets dot com @ 2007-06-25 12:12 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2007-06-30  0:31 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-25 12:12 [Bug c/32494] New: gcc-4.3.x _32-bit_ becoming irrelevant to kernel malitzke at metronets dot com
2007-06-25 12:16 ` [Bug c/32494] " pinskia at gcc dot gnu dot org
2007-06-25 12:33 ` pinskia at gcc dot gnu dot org
2007-06-25 12:35 ` malitzke at metronets dot com
2007-06-25 12:37 ` pinskia at gcc dot gnu dot org
2007-06-25 12:50 ` malitzke at metronets dot com
2007-06-25 12:53 ` rguenth at gcc dot gnu dot org
2007-06-25 12:54 ` pinskia at gcc dot gnu dot org
2007-06-25 13:03 ` malitzke at metronets dot com
2007-06-25 13:07 ` pinskia at gcc dot gnu dot org
2007-06-25 17:01 ` malitzke at metronets dot com
2007-06-25 17:12 ` pinskia at gcc dot gnu dot org
2007-06-28  3:53 ` malitzke at metronets dot com
2007-06-28 19:06 ` pinskia at gcc dot gnu dot org
2007-06-29 21:14 ` malitzke at metronets dot com
2007-06-29 21:20 ` pinskia at gcc dot gnu dot org
2007-06-29 21:42 ` malitzke at metronets dot com
2007-06-29 21:45 ` pinskia at gcc dot gnu dot org
2007-06-29 22:19 ` malitzke at metronets dot com
2007-06-29 22:34 ` schwab at suse dot de
2007-06-29 23:53 ` malitzke at metronets dot com
2007-06-29 23:55 ` pinskia at gcc dot gnu dot org
2007-06-29 23:57 ` pinskia at gcc dot gnu dot org
2007-06-30  0:18 ` malitzke at metronets dot com
2007-06-30  0:22 ` malitzke at metronets dot com
2007-06-30  0:30 ` pinskia at gcc dot gnu dot org
2007-06-30  0:31 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).