public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29071]  New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
@ 2006-09-13 22:58 howarth at nitro dot med dot uc dot edu
  2006-09-13 23:00 ` [Bug c/29071] " howarth at nitro dot med dot uc dot edu
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-13 22:58 UTC (permalink / raw)
  To: gcc-bugs

When compiled at -m64 on Darwin PPC, the gcc.dg/20020919-1.c testcase
produces the following compile time errors...

20020919-1.c: In function 'foo':
20020919-1.c:76: error: asm-specifier for variable 'q' conflicts with asm
clobber list
20020919-1.c:76: error: asm-specifier for variable 'q' conflicts with asm
clobber list
20020919-1.c: In function 'foolla':
20020919-1.c:92: error: asm-specifier for variable 'll' conflicts with asm
clobber list
20020919-1.c:92: error: asm-specifier for variable 'll' conflicts with asm
clobber list
20020919-1.c: In function 'bar':
20020919-1.c:117: error: asm-specifier for variable 'q' conflicts with asm
clobber list
20020919-1.c: In function 'foobar':
20020919-1.c:144: error: asm-specifier for variable 'w' conflicts with asm
clobber list
20020919-1.c: In function 'baz':
20020919-1.c:198: error: asm-specifier for variable 'q' conflicts with asm
clobber list
20020919-1.c:198: error: asm-specifier for variable 'w' conflicts with asm
clobber list
20020919-1.c: In function 'bazlla':
20020919-1.c:225: error: asm-specifier for variable 'll' conflicts with asm
clobber list
20020919-1.c:225: error: asm-specifier for variable 'mm' conflicts with asm
clobber list
20020919-1.c: In function '_dl_stat':
20020919-1.c:247: error: asm-specifier for variable 'a' conflicts with asm
clobber list
20020919-1.c:247: error: asm-specifier for variable 'a' conflicts with asm
clobber list

gcc-4 -v 
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: ../gcc-4.2-20060913/configure --prefix=/sw
--prefix=/sw/lib/gcc4 --enable-languages=c,c++,fortran
--infodir=/sw/lib/gcc4/share/info --with-gmp=/sw --with-included-gettext
--host=powerpc-apple-darwin8 --with-libiconv-prefix=/sw
Thread model: posix
gcc version 4.2.0 20060913 (experimental)


-- 
           Summary: gcc.dg/20020919-1.c compilation test fails on powerpc-
                    apple-darwin8 at -m64
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


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


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

* [Bug c/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
@ 2006-09-13 23:00 ` howarth at nitro dot med dot uc dot edu
  2007-12-21 15:11 ` [Bug testsuite/29071] " howarth at nitro dot med dot uc dot edu
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-13 23:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2006-09-13 23:00 -------
Created an attachment (id=12253)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12253&action=view)
preprocessed file for 20020919.c generated on Darwin PPC at -m64


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
  2006-09-13 23:00 ` [Bug c/29071] " howarth at nitro dot med dot uc dot edu
@ 2007-12-21 15:11 ` howarth at nitro dot med dot uc dot edu
  2007-12-21 15:46 ` howarth at nitro dot med dot uc dot edu
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-21 15:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from howarth at nitro dot med dot uc dot edu  2007-12-21 15:11 -------
I just noticed that passing -D__powerpc64__ on the compile line for this test
at -m64 for powerpc-apple-darwin9 allows the missed clobbers seem to be
detected. Shouldn't...

# ifndef __powerpc64__
#  define REG3 "8"
#  define REG4 "9"
# endif

in the gcc.dg/20020919-1.c testcase be rewritten to also include those
definitions
when __powerpc__ and __LP64__ are both defined?


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
  2006-09-13 23:00 ` [Bug c/29071] " howarth at nitro dot med dot uc dot edu
  2007-12-21 15:11 ` [Bug testsuite/29071] " howarth at nitro dot med dot uc dot edu
@ 2007-12-21 15:46 ` howarth at nitro dot med dot uc dot edu
  2008-05-20 21:45 ` janis at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-21 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from howarth at nitro dot med dot uc dot edu  2007-12-21 15:46 -------
Wouldn't something like...

--- 20020919-1.c.org    2007-12-21 10:28:40.000000000 -0500
+++ 20020919-1.c        2007-12-21 10:44:27.000000000 -0500
@@ -41,7 +41,9 @@
        || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
 # define REG1 "6"
 # define REG2 "7"
-# ifndef __powerpc64__
+# if !defined(__powerpc64__) && !((defined (__powerpc__) || defined (__PPC__)
\
+        || defined (__ppc__) || defined (__POWERPC__) || defined (PPC) \
+        || defined (_IBMR2)) && defined(__LP64__))
 #  define REG3 "8"
 #  define REG4 "9"
 # endif

be more correct here?


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2007-12-21 15:46 ` howarth at nitro dot med dot uc dot edu
@ 2008-05-20 21:45 ` janis at gcc dot gnu dot org
  2008-06-26 21:22 ` dominiq at lps dot ens dot fr
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2008-05-20 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from janis at gcc dot gnu dot org  2008-05-20 21:45 -------
Isn't the proposal in comment #3 the same as this?

Index: gcc/testsuite/gcc.dg/20020919-1.c
===================================================================
--- gcc/testsuite/gcc.dg/20020919-1.c   (revision 135322)
+++ gcc/testsuite/gcc.dg/20020919-1.c   (working copy)
@@ -41,7 +41,7 @@ 
        || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
 # define REG1 "6"
 # define REG2 "7"
-# ifndef __powerpc64__
+# if !defined(__powerpc64__) && !defined(__LP64__)
 #  define REG3 "8"
 #  define REG4 "9"
 # endif

We already know that this part is true:

    defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
    || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (3 preceding siblings ...)
  2008-05-20 21:45 ` janis at gcc dot gnu dot org
@ 2008-06-26 21:22 ` dominiq at lps dot ens dot fr
  2008-06-26 21:29 ` dominiq at lps dot ens dot fr
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-06-26 21:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dominiq at lps dot ens dot fr  2008-06-26 21:21 -------
Could the patch in comment #4 be commited?


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (4 preceding siblings ...)
  2008-06-26 21:22 ` dominiq at lps dot ens dot fr
@ 2008-06-26 21:29 ` dominiq at lps dot ens dot fr
  2008-06-27 11:53 ` dominiq at lps dot ens dot fr
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-06-26 21:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dominiq at lps dot ens dot fr  2008-06-26 21:29 -------
Forgot to say that I also see this pr on powerpc-apple-darwin9.


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (5 preceding siblings ...)
  2008-06-26 21:29 ` dominiq at lps dot ens dot fr
@ 2008-06-27 11:53 ` dominiq at lps dot ens dot fr
  2008-12-10 20:32 ` dominiq at lps dot ens dot fr
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-06-27 11:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dominiq at lps dot ens dot fr  2008-06-27 11:53 -------
Before the patch I had:

...
                === gcc Summary for unix/-m64 ===

# of expected passes            49011
# of unexpected failures        41
# of unexpected successes       3
# of expected failures          180
# of unsupported tests          676

                === gcc Summary ===

# of expected passes            98177
# of unexpected failures        65
# of unexpected successes       7
# of expected failures          352
# of unsupported tests          1275
/opt/gcc/darwin_buildw/gcc/xgcc  version 4.4.0 [revision 137150p5] 20080626
(experimental) (GCC)

after I have:

...
                === gcc Summary for unix/-m64 ===

# of expected passes            49017
# of unexpected failures        35
# of unexpected successes       3
# of expected failures          180
# of unsupported tests          676

                === gcc Summary ===

# of expected passes            98183
# of unexpected failures        59
# of unexpected successes       7
# of expected failures          352
# of unsupported tests          1275
/opt/gcc/darwin_buildw/gcc/xgcc  version 4.4.0 [revision 137169p4] 20080627
(experimental) (GCC)


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (6 preceding siblings ...)
  2008-06-27 11:53 ` dominiq at lps dot ens dot fr
@ 2008-12-10 20:32 ` dominiq at lps dot ens dot fr
  2008-12-11 23:39 ` janis at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-12-10 20:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from dominiq at lps dot ens dot fr  2008-12-10 20:31 -------
PING! see comment #5.


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (7 preceding siblings ...)
  2008-12-10 20:32 ` dominiq at lps dot ens dot fr
@ 2008-12-11 23:39 ` janis at gcc dot gnu dot org
  2008-12-12 19:42 ` janis at gcc dot gnu dot org
  2010-08-24 10:54 ` howarth at nitro dot med dot uc dot edu
  10 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2008-12-11 23:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from janis at gcc dot gnu dot org  2008-12-11 23:38 -------
Subject: Bug 29071

Author: janis
Date: Thu Dec 11 23:37:03 2008
New Revision: 142696

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142696
Log:
        PR testsuite/29071
        * gcc.dg/20020919-1.c: Fix a preprocessor check.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/20020919-1.c


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (8 preceding siblings ...)
  2008-12-11 23:39 ` janis at gcc dot gnu dot org
@ 2008-12-12 19:42 ` janis at gcc dot gnu dot org
  2010-08-24 10:54 ` howarth at nitro dot med dot uc dot edu
  10 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2008-12-12 19:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from janis at gcc dot gnu dot org  2008-12-12 19:41 -------
There are no archived test results for powerpc64-*-darwin*, so if someone can
verify that this fixes the test, please report that here or close this PR.


-- 


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


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

* [Bug testsuite/29071] gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64
  2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
                   ` (9 preceding siblings ...)
  2008-12-12 19:42 ` janis at gcc dot gnu dot org
@ 2010-08-24 10:54 ` howarth at nitro dot med dot uc dot edu
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-24 10:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from howarth at nitro dot med dot uc dot edu  2010-08-24 10:53 -------
Fixed at r142696.


-- 

howarth at nitro dot med dot uc dot edu changed:

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


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


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

end of thread, other threads:[~2010-08-24 10:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-13 22:58 [Bug c/29071] New: gcc.dg/20020919-1.c compilation test fails on powerpc-apple-darwin8 at -m64 howarth at nitro dot med dot uc dot edu
2006-09-13 23:00 ` [Bug c/29071] " howarth at nitro dot med dot uc dot edu
2007-12-21 15:11 ` [Bug testsuite/29071] " howarth at nitro dot med dot uc dot edu
2007-12-21 15:46 ` howarth at nitro dot med dot uc dot edu
2008-05-20 21:45 ` janis at gcc dot gnu dot org
2008-06-26 21:22 ` dominiq at lps dot ens dot fr
2008-06-26 21:29 ` dominiq at lps dot ens dot fr
2008-06-27 11:53 ` dominiq at lps dot ens dot fr
2008-12-10 20:32 ` dominiq at lps dot ens dot fr
2008-12-11 23:39 ` janis at gcc dot gnu dot org
2008-12-12 19:42 ` janis at gcc dot gnu dot org
2010-08-24 10:54 ` howarth at nitro dot med dot uc dot edu

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).