This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32044] [4.3 regression] udivdi3 counterproductive, unwarranted use
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2008 04:43:34 -0000
- Subject: [Bug middle-end/32044] [4.3 regression] udivdi3 counterproductive, unwarranted use
- References: <bug-32044-11706@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #39 from mark at codesourcery dot com 2008-01-04 04:43 -------
Subject: Re: [4.3 regression] udivdi3 counterproductive,
unwarranted use
fche at redhat dot com wrote:
>> Downgrading to P4. We seem to have consensus that this is [not] a GCC wrong-code
>> bug.
>
> Yeah, it seems to be a mistaken expectation of -ffreestanding not to
> call libgcc. Maybe a new option to that effect would help?
I don't think there's a practical, platform-independent way for GCC to
avoid calling libgcc. On some platforms, it has to do that for pretty
basic operations. I think we just need to accept that the libgcc API is
part of what's required by the compiler; you could imagine that it is
"as-if" weak definitions of these functions were emitted in every
assembly file by the compiler itself.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044