Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 27 May 2004 20:58:59 +0200 From: "Gerrit P. Haase" Reply-To: "Gerrit @ cygwin" Organization: Esse keine toten Tiere Message-ID: <277403406.20040527205859@familiehaase.de> To: mathias DOT wagner AT philips DOT com CC: cygwin AT cygwin DOT com Subject: Re: GCC 3.3.1 problem with printf %Lg %Lg and -m128bit-long-double compile option In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hallo mathias, > GCC 3.3.1 has a problem when printing multiple long double variables using > printf and the -m128bit-long-double compile option on a Pentium-based > machine. Seems to be a bug in gcc, for bug reporting instructions, please see: http://gcc.gnu.org/bugs.html. > compile the code below with > gcc -m128bit-long-double test.c > and with > gcc test.c > The later will print stuff correctly in both printf statements, whereas > the former will print fine only as long as the printf statement contains a > single long double variable only, but will issue garbage when printing > more than one long double variable in the same printf statement. > #include > #include > #include > #include > int > main( int argc, char *argv[] ) > { > long double first_long_double_variable = 5.6; > long double second_long_double_variable = 9.3; > printf ("here comes a long double %Lg\n", first_long_double_variable); > printf ("here come TWO long doubles %Lg %Lg\n", > first_long_double_variable, second_long_double_variable); > } > Installation Info as copied from cygcheck.out: Please don't send cygcheck output inline an email, send it as attachment. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/