This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB 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]

Re: gdb/1458


The following reply was made to PR gdb/1458; it has been noted by GNATS.

From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: gdb/1458
Date: Mon, 15 Dec 2003 17:23:53 -0500 (EST)

 This patch works for Travis Heppe.
 
 I sent it upstream to bug-gnu-gettext@gnu.org.
 
 ===
 
 2003-12-15  Michael Chastain  <mec.gnu@mindspring.com>
 
 	* gettextP.h (SWAP): Abstain from 'inline' for non-gcc
 	compilers.
 
 Index: gettextP.h
 ===================================================================
 RCS file: /cvs/gcc/gcc/intl/gettextP.h,v
 retrieving revision 1.1
 diff -c -3 -p -r1.1 gettextP.h
 *** gettextP.h	4 Jul 2003 18:18:54 -0000	1.1
 --- gettextP.h	15 Dec 2003 21:55:43 -0000
 ***************
 *** 67,78 ****
 --- 67,92 ----
   # include <byteswap.h>
   # define SWAP(i) bswap_32 (i)
   #else
 + 
 + /* On hppa2.0w-hp-hpux11.00, the ansi c compiler /opt/ansic/bin/cc has a
 +    problem with  'static inline nls_uint32', although it accepts 'static
 +    inline unsigned int'.  The problem does not happen with
 +    hppa2.0w-hp-hpux11.11 and the ansi c compiler.
 + 
 +    A simple reliable solution is to abstain from 'inline'
 +    for non-gcc compilers.  */
 + 
 + #if defined(__GNUC__)
   static inline nls_uint32
 + #else
 + static nls_uint32
 + #endif
   SWAP (i)
        nls_uint32 i;
   {
     return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
   }
 + 
   #endif
   
   


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