aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/f95-lang.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@nextmovesoftware.com>2020-08-03 13:10:45 +0100
committerRoger Sayle <roger@nextmovesoftware.com>2020-08-03 13:11:55 +0100
commitef59e1fb372c91c882784392b98c44a8550ff455 (patch)
treef92947af7835476adf21e2d2b8ed7992eb40b32b /gcc/fortran/f95-lang.c
parentd2ae6d5c053315c94143103eeae1d3cba005ad9d (diff)
downloadgcc-ef59e1fb372c91c882784392b98c44a8550ff455.zip
gcc-ef59e1fb372c91c882784392b98c44a8550ff455.tar.gz
gcc-ef59e1fb372c91c882784392b98c44a8550ff455.tar.bz2
genmatch: Avoid unused parameter warnings in generated code.
This patch silences a number of unused parameter warnings whilst compiling both generic-match.c and gimple-match.c. The problem is that multiple (polymorphic) functions are generated for generic_simplify and gimple_simplify, each handling tree codes with a specific number of children. Currently, there are no simplifications for tree codes with four or five children, leading to functions with "empty" bodies and unused function arguments. This patch detects those cases, and generates stub functions (with anonymous arguments) to silence these warnings. 2020-08-03 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog * genmatch.c (decision_tree::gen): Emit stub functions for tree code operand counts that have no simplifications. (main): Correct comment typo.
Diffstat (limited to 'gcc/fortran/f95-lang.c')
0 files changed, 0 insertions, 0 deletions