This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[csl-hpux-branch]: Mangle long double correctly


Hi
I've installed this patch which mangles long double in an hpux conformant
way.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2003-11-30  Nathan Sidwell  <nathan@codesourcery.com>

	* mangle.c (write_builtin_type): Mangle long double correctly for
	HPUX.

Index: cp/mangle.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/mangle.c,v
retrieving revision 1.88
diff -c -3 -p -r1.88 mangle.c
*** cp/mangle.c	22 Oct 2003 02:08:45 -0000	1.88
--- cp/mangle.c	30 Nov 2003 16:11:45 -0000
***************
*************** write_builtin_type (tree type)
*** 1653,1659 ****
  	       || type == java_double_type_node)
  	write_char ('d');
        else if (type == long_double_type_node)
! 	write_char ('e');
        else
  	abort ();
        break;
--- 1655,1662 ----
  	       || type == java_double_type_node)
  	write_char ('d');
        else if (type == long_double_type_node)
! 	/* HPUX uses 'g' for long double.  */
! 	write_char ('g');
        else
  	abort ();
        break;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]