PERFORCE change 31765 for review

Peter Wemm peter at FreeBSD.org
Fri May 23 22:10:55 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=31765

Change 31765 by peter at peter_hammer on 2003/05/23 22:09:56

	Stop gcc from generating some truely crack-smoking code for
	switch() jump tables.  Backported from gcc-3.3 verbatim.
	
	The original code causes massive conditional parsing in gas,
	and it explodes for complicated files.  The 3.3 version is
	identical but without making gas choke.
	
	GRRRR.

Affected files ...

.. //depot/projects/hammer/contrib/gcc/config/i386/i386.c#6 edit

Differences ...

==== //depot/projects/hammer/contrib/gcc/config/i386/i386.c#6 (text+ko) ====

@@ -6764,7 +6764,7 @@
      int value, rel;
 {
   if (TARGET_64BIT)
-    fprintf (file, "%s%s%d-.+(.-%s%d)\n",
+    fprintf (file, "%s%s%d-%s%d\n",
 	     ASM_LONG, LPREFIX, value, LPREFIX, rel);
   else if (HAVE_AS_GOTOFF_IN_DATA)
     fprintf (file, "%s%s%d at GOTOFF\n", ASM_LONG, LPREFIX, value);


More information about the p4-projects mailing list