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: "bunk at stusta dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Nov 2007 19:16: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 #31 from bunk at stusta dot de 2007-11-27 19:16 -------
(In reply to comment #29)
> This is IMHO at most a QOI issue - at Novell we mark timespec_add_ns's u64
> parameter as volatile to work around this issue. I expect upstream to adopt
> a workaround as well. Note that some targets in the kernel have parts of
> libgcc implemented, but i?86 misses at least __udivdi3.
The problem is that this is very fragile - imagine what might happen
when a frequently used struct member gets changed from int to u64.
After all, when looking at current practice, the kernel will support
being built with gcc 4.3 until 2013 or 2014.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044