This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/30729] [4.1/4.2 Regression] value computed is not used warning with unused result of va_arg



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-03-09 23:20 -------
Subject: Bug 30729

Author: pinskia
Date: Fri Mar  9 23:20:28 2007
New Revision: 122769

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122769
Log:
2007-03-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/30729
        * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
        effects unknown to this function, return early.

2007-03-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/30729
        * gcc.dg/Wunused-value-2.c: New testcase.


Added:
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/Wunused-value-2.c
      - copied unchanged from r122027,
trunk/gcc/testsuite/gcc.dg/Wunused-value-2.c
Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/stmt.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]