[Bug c++/14710] Warning about useless casts

2018-02-21 Thread bje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14710

Ben Elliston  changed:

   What|Removed |Added

 CC||bje at gcc dot gnu.org

--- Comment #13 from Ben Elliston  ---
Is there a reason this option doesn't extend to the C frontend?  The same
problem with useless static_casts occurs with conventional C casts, too.

[Bug c/84510] New: C front-end does not utilise -Wuseless-cast

2018-02-22 Thread bje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84510

Bug ID: 84510
   Summary: C front-end does not utilise -Wuseless-cast
   Product: gcc
   Version: 5.4.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: bje at gcc dot gnu.org
  Target Milestone: ---

The -Wuseless-cast option only applies to C++ and Objective C. It would also be
useful in the C front-end, particularly for finding 'do nothing' casts and
casts of literals, which the compiler can do itself by inferring the type of
the literal.

[Bug testsuite/70719] the libjava testsuite does not work with dejagnu 1.6

2016-04-19 Thread bje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70719

Ben Elliston  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||bje at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #1 from Ben Elliston  ---
Fixed with:

 PR testsuite/70719
* testsuite/lib/libjava.exp (libjava_arguments): Use 'file
normalize' rather than the defunct DejaGnu 'absolute' proc.