public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/14088] New: Hexfloat constants  with uppercase 0X prefix fail
@ 2004-02-09 23:41 dannysmith at gcc dot gnu dot org
  2004-02-09 23:51 ` [Bug c/14088] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: dannysmith at gcc dot gnu dot org @ 2004-02-09 23:41 UTC (permalink / raw)
  To: gcc-bugs

Uppercase 0X as heaxadecimal prefix to hex float consts cause value to be 
interpreted as  0

This fails: 

#define x1   (double)0x1p1
#define x2   (double)0X1p1

char tst[(x1 == x2) ?  1 : -1];

-- 
           Summary: Hexfloat constants  with uppercase 0X prefix fail
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dannysmith at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
  2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
@ 2004-02-09 23:51 ` pinskia at gcc dot gnu dot org
  2004-02-09 23:54 ` bangerth at dealii dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-09 23:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-09 23:51 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |c
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid, wrong-code
      Known to fail|                            |3.5.0 3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-09 23:51:42
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
  2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
  2004-02-09 23:51 ` [Bug c/14088] " pinskia at gcc dot gnu dot org
@ 2004-02-09 23:54 ` bangerth at dealii dot org
  2004-02-10  0:33 ` dannysmith at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2004-02-09 23:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-02-09 23:54 -------
Correct: 
-------------------- 
#include <stdio.h> 
 
#define x1   (double)0x1p1 
#define x2   (double)0X1p1 
 
int main () 
{ 
  printf ("%f == %f", x1, x2); 
} 
------------------------ 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc x.c 
g/x> ./a.out  
2.000000 == 0.000000 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.5.0 3.3.3                 |3.5.0 3.3.3 3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
  2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
  2004-02-09 23:51 ` [Bug c/14088] " pinskia at gcc dot gnu dot org
  2004-02-09 23:54 ` bangerth at dealii dot org
@ 2004-02-10  0:33 ` dannysmith at gcc dot gnu dot org
  2004-02-10 23:06 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: dannysmith at gcc dot gnu dot org @ 2004-02-10  0:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dannysmith at gcc dot gnu dot org  2004-02-10 00:33 -------
Patch submitted

http://gcc.gnu.org/ml/gcc-patches/2004-02/msg00875.html

Danny

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
  2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-02-10  0:33 ` dannysmith at gcc dot gnu dot org
@ 2004-02-10 23:06 ` cvs-commit at gcc dot gnu dot org
  2004-02-10 23:10 ` cvs-commit at gcc dot gnu dot org
  2004-02-10 23:13 ` dannysmith at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-10 23:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-10 23:06 -------
Subject: Bug 14088

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dannysmith@gcc.gnu.org	2004-02-10 23:06:04

Modified files:
	gcc            : ChangeLog real.c 

Log message:
	PR c/14088
	real.c (real_from_string): Look for 'X' as well as 'x' in
	hexfloat strings.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2734&r2=2.2735
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/real.c.diff?cvsroot=gcc&r1=1.137&r2=1.138



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
  2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-02-10 23:06 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-10 23:10 ` cvs-commit at gcc dot gnu dot org
  2004-02-10 23:13 ` dannysmith at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-10 23:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-10 23:10 -------
Subject: Bug 14088

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	dannysmith@gcc.gnu.org	2004-02-10 23:10:26

Modified files:
	gcc            : ChangeLog real.c 

Log message:
	PR c/14088
	real.c (real_from_string): Look for 'X' as well as 'x' in
	hexfloat strings.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.176&r2=2.2326.2.177
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/real.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.135&r2=1.135.4.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
  2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-02-10 23:10 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-10 23:13 ` dannysmith at gcc dot gnu dot org
  5 siblings, 0 replies; 8+ messages in thread
From: dannysmith at gcc dot gnu dot org @ 2004-02-10 23:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dannysmith at gcc dot gnu dot org  2004-02-10 23:12 -------
Fixed in trunk and 3.4.0 branch
Danny

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/14088] Hexfloat constants  with uppercase 0X prefix fail
       [not found] <20040209234100.14088.dannysmith@users.sourceforge.net>
@ 2004-05-17 14:22 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-17 14:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-17 00:39 -------
*** Bug 15483 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |das at FreeBSD dot ORG


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14088


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-17  0:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-09 23:41 [Bug middle-end/14088] New: Hexfloat constants with uppercase 0X prefix fail dannysmith at gcc dot gnu dot org
2004-02-09 23:51 ` [Bug c/14088] " pinskia at gcc dot gnu dot org
2004-02-09 23:54 ` bangerth at dealii dot org
2004-02-10  0:33 ` dannysmith at gcc dot gnu dot org
2004-02-10 23:06 ` cvs-commit at gcc dot gnu dot org
2004-02-10 23:10 ` cvs-commit at gcc dot gnu dot org
2004-02-10 23:13 ` dannysmith at gcc dot gnu dot org
     [not found] <20040209234100.14088.dannysmith@users.sourceforge.net>
2004-05-17 14:22 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).