Hi,

you use gcc-3.4.1, right? Apply the attached patch to your gcc, rebuild gcc and recompile everything. Or just use gcc-3.4.x with x > 1.

Heiner

Dark Shadow wrote:
I have been trying to compile from source and I am having the following
problem would anyone know a fix or workaround.

Making: ../../unxlngi6.pro/bin/vcl680en-US.res
using rsc multi-res feature
rsc -presponse @/tmp/mkFq6bDm > /dev/null
f256: Error: !! 1 Error found!!
dmake: Error code 1, while making '../../unxlngi6.pro/misc/rsc_vcl'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/home/darkshadow/OOo_2.0.0rc3_src/vcl/source/src
dmake: Error code 1, while making 'build_instsetoo_native'
'---* tg_merge.mk *---'



This is not my first problem but it is the first I can't find a fix for the
other is discribed here with a fix
http://qa.openoffice.org/issues/show_bug.cgi?id=44027



--
Jens-Heiner Rechtien
[EMAIL PROTECTED]
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.322.2.11
retrieving revision 1.322.2.12
diff -u -r1.322.2.11 -r1.322.2.12
--- gcc/gcc/fold-const.c        2004/05/31 23:15:12     1.322.2.11
+++ gcc/gcc/fold-const.c        2004/07/10 18:23:53     1.322.2.12
@@ -3535,7 +3535,13 @@
       HOST_WIDE_INT hi;
       int prec;
 
-      prec = TYPE_PRECISION (etype);
+      /* For enums the comparison will be done in the underlying type,
+        so using enum's precision is wrong here.
+        Consider e.g. enum { A, B, C, D, E }, low == B and high == D.  */
+      if (TREE_CODE (etype) == ENUMERAL_TYPE)
+       prec = GET_MODE_BITSIZE (TYPE_MODE (etype));
+      else
+       prec = TYPE_PRECISION (etype);
       if (prec <= HOST_BITS_PER_WIDE_INT)
        {
          hi = 0;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to