public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/14877] New: skip.exp do not take function arg evaluation order into account
@ 2012-11-26  8:39 wong.kwongyuan at gmail dot com
  2012-11-26  9:18 ` [Bug testsuite/14877] " qiyao at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: wong.kwongyuan at gmail dot com @ 2012-11-26  8:39 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14877

             Bug #: 14877
           Summary: skip.exp do not take function arg evaluation order
                    into account
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: testsuite
        AssignedTo: unassigned@sourceware.org
        ReportedBy: wong.kwongyuan@gmail.com
    Classification: Unclassified


skip.exp/skip.c in gdb.base do not take function arg evaluation order into
account.

int main()
{
  return baz(foo(), bar());
}

x86 is OK, because it's evaluated from right to left, while tilegx & mips etc
are evaluated from left to right.

And I think we should not write a case which depends on specified function arg
evaluation order

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug testsuite/14877] skip.exp do not take function arg evaluation order into account
  2012-11-26  8:39 [Bug testsuite/14877] New: skip.exp do not take function arg evaluation order into account wong.kwongyuan at gmail dot com
@ 2012-11-26  9:18 ` qiyao at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: qiyao at gcc dot gnu.org @ 2012-11-26  9:18 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14877

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> 2012-11-26 09:18:16 UTC ---

> x86 is OK, because it's evaluated from right to left, while tilegx & mips etc
> are evaluated from left to right.
> 

The fail happens on tic6x as well, IIRC.

> And I think we should not write a case which depends on specified function arg
> evaluation order

Yeah, that is true.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-11-26  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-26  8:39 [Bug testsuite/14877] New: skip.exp do not take function arg evaluation order into account wong.kwongyuan at gmail dot com
2012-11-26  9:18 ` [Bug testsuite/14877] " qiyao at gcc dot gnu.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).