public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64
@ 2004-12-20 19:55 pinskia at gcc dot gnu dot org
  2004-12-20 20:01 ` [Bug other/19093] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-20 19:55 UTC (permalink / raw)
  To: gcc-bugs

g++.dg/opt/max1.C still failed on both Linux/ia64 and Linux/x86_64:

http://gcc.gnu.org/ml/gcc-testresults/2004-12/msg00919.html
http://gcc.gnu.org/ml/gcc-testresults/2004-12/msg00923.html

They are both 64bit targets.

-- 
           Summary: g++.dg/opt/max1.C fails on ia64 and x86_64
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug other/19093] g++.dg/opt/max1.C fails on ia64 and x86_64
  2004-12-20 19:55 [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64 pinskia at gcc dot gnu dot org
@ 2004-12-20 20:01 ` pinskia at gcc dot gnu dot org
  2004-12-20 21:07 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-20 20:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-20 20:00 -------
Actually it is just the testcase is invalid for 64bit targets (woops, my fault since I made it).
This patch should fix the problem:
Index: g++.dg/opt/max1.C
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/opt/max1.C,v
retrieving revision 1.2
diff -u -p -r1.2 max1.C
--- g++.dg/opt/max1.C	19 Dec 2004 20:11:15 -0000	1.2
+++ g++.dg/opt/max1.C	20 Dec 2004 19:59:13 -0000
@@ -10,7 +10,7 @@ long fff[10];
 void f(long a)
 {
   int i;
-  a =  *((long*)(a+5)) >? *((long*)(a+1)); 
+  a =  *((long*)(a+1+sizeof(long))) >? *((long*)(a+1)); 
 
   for(i=0;i<10;i++)
    fff[i] = a;


I will apply it to all the branches where this is effected, 3.3, 3.4, and the mainline when I get home later 
today.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
          Component|middle-end                  |other
     Ever Confirmed|                            |1
           Keywords|wrong-code                  |
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-20 20:00:59
               date|                            |
   Target Milestone|---                         |3.3.6


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


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

* [Bug other/19093] g++.dg/opt/max1.C fails on ia64 and x86_64
  2004-12-20 19:55 [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64 pinskia at gcc dot gnu dot org
  2004-12-20 20:01 ` [Bug other/19093] " pinskia at gcc dot gnu dot org
@ 2004-12-20 21:07 ` cvs-commit at gcc dot gnu dot org
  2004-12-20 21:09 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-20 21:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-20 21:07 -------
Subject: Bug 19093

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-12-20 21:07:14

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/opt: max1.C 

Log message:
	2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR other/19093
	* g++.dg/opt/max1.C: Fix for 64bit targets.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4786&r2=1.4787
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/max1.C.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


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


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

* [Bug other/19093] g++.dg/opt/max1.C fails on ia64 and x86_64
  2004-12-20 19:55 [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64 pinskia at gcc dot gnu dot org
  2004-12-20 20:01 ` [Bug other/19093] " pinskia at gcc dot gnu dot org
  2004-12-20 21:07 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-20 21:09 ` cvs-commit at gcc dot gnu dot org
  2004-12-20 21:12 ` pinskia at gcc dot gnu dot org
  2004-12-20 21:12 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-20 21:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-20 21:09 -------
Subject: Bug 19093

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	pinskia@gcc.gnu.org	2004-12-20 21:09:37

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/opt: max1.C 

Log message:
	2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR other/19093
	* g++.dg/opt/max1.C: Fix for 64bit targets.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.333&r2=1.3389.2.334
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/max1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1.2.1&r2=1.1.2.2



-- 


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


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

* [Bug other/19093] g++.dg/opt/max1.C fails on ia64 and x86_64
  2004-12-20 19:55 [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64 pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-20 21:09 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-20 21:12 ` pinskia at gcc dot gnu dot org
  2004-12-20 21:12 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-20 21:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-20 21:12 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug other/19093] g++.dg/opt/max1.C fails on ia64 and x86_64
  2004-12-20 19:55 [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64 pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-12-20 21:12 ` pinskia at gcc dot gnu dot org
@ 2004-12-20 21:12 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-20 21:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-20 21:12 -------
Subject: Bug 19093

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	pinskia@gcc.gnu.org	2004-12-20 21:12:34

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/opt: max1.C 

Log message:
	2004-12-20  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR other/19093
	* g++.dg/opt/max1.C: Fix for 64bit targets.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.391&r2=1.2261.2.392
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/max1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2.2.1&r2=1.2.2.2



-- 


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


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

end of thread, other threads:[~2004-12-20 21:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-20 19:55 [Bug middle-end/19093] New: g++.dg/opt/max1.C fails on ia64 and x86_64 pinskia at gcc dot gnu dot org
2004-12-20 20:01 ` [Bug other/19093] " pinskia at gcc dot gnu dot org
2004-12-20 21:07 ` cvs-commit at gcc dot gnu dot org
2004-12-20 21:09 ` cvs-commit at gcc dot gnu dot org
2004-12-20 21:12 ` pinskia at gcc dot gnu dot org
2004-12-20 21:12 ` cvs-commit 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).