public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31496]  New: FAIL: gcc.dg/builtins-20.c (test for excess errors)
@ 2007-04-06 19:07 danglin at gcc dot gnu dot org
  2007-08-25 22:24 ` [Bug middle-end/31496] " dave at hiauly1 dot hia dot nrc dot ca
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-04-06 19:07 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/builtins-20.c   -O2 -ffast-math
-fno-show-co
lumn  -lm   -o builtins-20.exe    (timeout = 300)
ld: Unsatisfied symbol "cargf" in file /var/tmp//ccKMBpML.o
ld: Unsatisfied symbol "cargl" in file /var/tmp//ccKMBpML.o
ld: Unsatisfied symbol "atan2l" in file /var/tmp//ccKMBpML.o
ld: Unsatisfied symbol "link_error" in file /var/tmp//ccKMBpML.o
4 errors.
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
ld: Unsatisfied symbol "cargf" in file /var/tmp//ccKMBpML.o
ld: Unsatisfied symbol "cargl" in file /var/tmp//ccKMBpML.o
ld: Unsatisfied symbol "atan2l" in file /var/tmp//ccKMBpML.o
ld: Unsatisfied symbol "link_error" in file /var/tmp//ccKMBpML.o
4 errors.
collect2: ld returned 1 exit status


-- 
           Summary: FAIL: gcc.dg/builtins-20.c (test for excess errors)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa*-*-hpux*
  GCC host triplet: hppa*-*-hpux*
GCC target triplet: hppa*-*-hpux*


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


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

* [Bug middle-end/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
@ 2007-08-25 22:24 ` dave at hiauly1 dot hia dot nrc dot ca
  2007-09-15 23:12 ` [Bug tree-optimization/31496] " danglin at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2007-08-25 22:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dave at hiauly1 dot hia dot nrc dot ca  2007-08-25 22:24 -------
Subject: Re:   New: FAIL: gcc.dg/builtins-20.c (test for excess errors)

test3l and test3f fail.  Attached .s file.

Dave


------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2007-08-25 22:24 -------
Created an attachment (id=14115)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14115&action=view)


-- 


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


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

* [Bug tree-optimization/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
  2007-08-25 22:24 ` [Bug middle-end/31496] " dave at hiauly1 dot hia dot nrc dot ca
@ 2007-09-15 23:12 ` danglin at gcc dot gnu dot org
  2007-09-16  0:21 ` danglin at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-09-15 23:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from danglin at gcc dot gnu dot org  2007-09-15 23:12 -------
I believe that this test started failing when mode cases were added
in the "Handle CONJ_EXPR in negate_expr_p and fold_negate_expr".  Test
doesn't fail on linux, so this has something to do with missing C99
functions. 


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ghazi at caip dot rutgers
                   |                            |dot edu


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


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

* [Bug tree-optimization/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
  2007-08-25 22:24 ` [Bug middle-end/31496] " dave at hiauly1 dot hia dot nrc dot ca
  2007-09-15 23:12 ` [Bug tree-optimization/31496] " danglin at gcc dot gnu dot org
@ 2007-09-16  0:21 ` danglin at gcc dot gnu dot org
  2007-09-16  2:03 ` danglin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-09-16  0:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from danglin at gcc dot gnu dot org  2007-09-16 00:21 -------
Sorry, comment #3 is wrong.

This change was introduced by the additions to builtins-20.c for the
carg(z) -> atan2(z.i, z.r).  There we have:

+static tree
+fold_builtin_carg(tree arglist, tree type)
+{
+  if (validate_arglist (arglist, COMPLEX_TYPE, VOID_TYPE))
+    {
+      tree atan2_fn = mathfn_built_in (type, BUILT_IN_ATAN2);
+
+      if (atan2_fn)
+        {
+         tree arg = builtin_save_expr (TREE_VALUE (arglist));
+         tree r_arg = fold_build1 (REALPART_EXPR, type, arg);
+         tree i_arg = fold_build1 (IMAGPART_EXPR, type, arg);
+         tree newarglist = tree_cons (NULL_TREE, i_arg,
+                                      build_tree_list (NULL_TREE, r_arg));
+         return build_function_call_expr (atan2_fn, newarglist);
+       }
+    }
+
+  return NULL_TREE;
+}

PA-RISC HP-UX has atan2 and atan2f, but not atan2l.  We have in
builtins.def:

DEF_C99_C90RES_BUILTIN (BUILT_IN_ATAN2F, "atan2f", BT_FN_FLOAT_FLOAT_FLOAT,
ATTR
_MATHFN_FPROUNDING_ERRNO)

and

/* Builtin that is specified by C99 and C90 reserve the name for future use.
   We can still recognize the builtin in C90 mode but we can't produce it
   implicitly.  */
#undef DEF_C99_C90RES_BUILTIN
#define DEF_C99_C90RES_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
  DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE,    \
               true, true, !flag_isoc99, ATTRS, TARGET_C99_FUNCTIONS, true)

Think we need to do something about atan2f in the backend.  However,
we don't have atan2l, so the test will have to be xfailed...


-- 


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


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

* [Bug tree-optimization/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-09-16  0:21 ` danglin at gcc dot gnu dot org
@ 2007-09-16  2:03 ` danglin at gcc dot gnu dot org
  2009-01-15 22:58 ` sje at cup dot hp dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-09-16  2:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from danglin at gcc dot gnu dot org  2007-09-16 02:03 -------
There doesn't seem to be any difference between the definitions
for DEF_C99_BUILTIN and DEF_C99_C90RES_BUILTIN.


-- 


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


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

* [Bug tree-optimization/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-09-16  2:03 ` danglin at gcc dot gnu dot org
@ 2009-01-15 22:58 ` sje at cup dot hp dot com
  2009-01-15 23:41 ` dave at hiauly1 dot hia dot nrc dot ca
  2009-01-15 23:45 ` sje at cup dot hp dot com
  6 siblings, 0 replies; 8+ messages in thread
From: sje at cup dot hp dot com @ 2009-01-15 22:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sje at cup dot hp dot com  2009-01-15 22:58 -------
It looks like this test is passing since the test was changed to include
the #ifdef HAVE_C99_RUNTIME.  It looks OK on the 4.3 branch and trunk so
I think we can close it.  Any objections?


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


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


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

* [Bug tree-optimization/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-01-15 22:58 ` sje at cup dot hp dot com
@ 2009-01-15 23:41 ` dave at hiauly1 dot hia dot nrc dot ca
  2009-01-15 23:45 ` sje at cup dot hp dot com
  6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-01-15 23:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca  2009-01-15 23:40 -------
Subject: Re:  FAIL: gcc.dg/builtins-20.c (test for excess errors)

> I think we can close it.  Any objections?

No.

Dave


-- 


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


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

* [Bug tree-optimization/31496] FAIL: gcc.dg/builtins-20.c (test for excess errors)
  2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-01-15 23:41 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-01-15 23:45 ` sje at cup dot hp dot com
  6 siblings, 0 replies; 8+ messages in thread
From: sje at cup dot hp dot com @ 2009-01-15 23:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from sje at cup dot hp dot com  2009-01-15 23:45 -------
Fixed with change to test.


-- 

sje at cup dot hp dot com changed:

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


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


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

end of thread, other threads:[~2009-01-15 23:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 19:07 [Bug middle-end/31496] New: FAIL: gcc.dg/builtins-20.c (test for excess errors) danglin at gcc dot gnu dot org
2007-08-25 22:24 ` [Bug middle-end/31496] " dave at hiauly1 dot hia dot nrc dot ca
2007-09-15 23:12 ` [Bug tree-optimization/31496] " danglin at gcc dot gnu dot org
2007-09-16  0:21 ` danglin at gcc dot gnu dot org
2007-09-16  2:03 ` danglin at gcc dot gnu dot org
2009-01-15 22:58 ` sje at cup dot hp dot com
2009-01-15 23:41 ` dave at hiauly1 dot hia dot nrc dot ca
2009-01-15 23:45 ` sje at cup dot hp dot com

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