[Bug middle-end/19920] [4.0 Regression] build broken on several targets due to recent 'DC' type update to libgcc2

corsepiu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 16 19:14:00 GMT 2005


------- Additional Comments From corsepiu at gcc dot gnu dot org  2005-02-16 15:15 -------
(In reply to comment #15)
> > From: corsepiu at gcc dot gnu dot org <gcc-bugzilla@gcc.gnu.org>
> > While building, I noticed warnings from math code in newlib, I haven't
> > noticed before. I am not sure whether these warnings had been present
> > before or not and if these are related to this patch.
> 
> Like ...?

Here's one (target: h8300-rtems4.7):
../../../../../../gcc-4.0.0/newlib/libm/math/ef_remainder.c:49: warning: left
shift count >= width of type

There are dozens of similar warnings in my build-log.
Having a look into newlib shows all of these warnings to be related to
sizeof(int) vs. sizeof(long) vs. sizeof(void*), not to float/double.
I know newlib, is partially broken, in assuming
sizeof(int)==sizeof(long)==sizeof(void*)==32bit, but ...

... I have several local patches to newlib applied, which are supposed to fix
them. So, unless something has changed these sizes, I probably didn't work
carefully enough.

-- 


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



More information about the Gcc-bugs mailing list