head	1.3;
access;
symbols
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2009.07.18.20.05.36;	author gerald;	state dead;
branches;
next	1.2;

1.2
date	2005.01.01.02.49.41;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2004.12.16.10.36.06;	author maho;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Remove lang/gcc-ooo which is no longer used by the OpenOffice ports and
superseded by lang/gcc43 and later.
@
text
@http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html
http://blog.janik.cz/archives/2004-11-23T22_37_37.html

--- gcc/fold-const.c.orig	Tue Jun  1 08:15:12 2004
+++ gcc/fold-const.c	Wed Nov 24 16:39:02 2004
@@@@ -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;
@


1.2
log
@Unbreak 'make patch'.

Approved by:	portmgr(kris)
@
text
@@


1.1
log
@gcc-ooo, gcc compiler for OpenOffice.org 2.0 or later
compilation. This version of gcc is as same as which
Hamburg team use to develop OpenOffice.org, applying
following fixes:

o visiblity fix
http://www.nedprod.com/programs/gccvisibility.html
o emum fix
http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html

For detail, see the announce:
http://porting.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=14280

Many thanks to: Pavel Janik <Pavel at Janik.cz>

PR:	74937
@
text
@d4 2
a5 2
--- gcc-3.4.1/gcc/fold-const.c.orig	Tue Jun  1 08:15:12 2004
+++ gcc-3.4.1/gcc/fold-const.c	Wed Nov 24 16:39:02 2004
@

