2006-01-17 Eric Christopher <echristo@apple.com>
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jan 2006 00:15:37 +0000 (00:15 +0000)
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Jan 2006 00:15:37 +0000 (00:15 +0000)
        * call.c (convert_like_real): When issuing conversion
        warnings, depend on OPT_Wconversion.
        * cvt.c (build_expr_type_conversion): Ditto.

2006-01-17  Eric Christopher  <echristo@apple.com>

        * g++.old-deja/g++.warn/impint.C: Add -Wconversion.
        * g++.old-deja/g++.warn/impint2.C: Ditto.
        * g++.old-deja/g++.other/null1.C: Ditto.
        * g++.dg/warn/conv2.C: Ditto.
        * g++.dg/warn/conv4.C: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109847 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/conv2.C
gcc/testsuite/g++.dg/warn/conv4.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/null1.C
gcc/testsuite/g++.old-deja/g++.warn/impint.C
gcc/testsuite/g++.old-deja/g++.warn/impint2.C

index 1f26299..da860eb 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-17  Eric Christopher  <echristo@apple.com>
+
+       * call.c (convert_like_real): When issuing conversion
+       warnings, depend on OPT_Wconversion.
+       * cvt.c (build_expr_type_conversion): Ditto.
+
 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
 
        * name-lookup.c (lookup_namespace_name): Remove.
@@ -90,7 +96,7 @@
        c_lex_return_raw_strings.
        (cp_lexer_get_preprocessor_token): Always initialize keyword
        and pragma_kind fields.  Handle CPP_PRAGMA.
-       (cp_lexer_consume_token): Don't allow CPP_PRAGMA_EOL when 
+       (cp_lexer_consume_token): Don't allow CPP_PRAGMA_EOL when
        in_pragma is set.
        (cp_lexer_handle_pragma): Remove.  Update callers to cp_parser_pragma.
        (cp_lexer_print_token) <CPP_PRAGMA>: Don't print as a string.
        PR c++/25492
        * name-lookup.c (push_class_level_binding): When a derived class
        provides a type binding, eliminate any type binding from a base
-       class. 
+       class.
 
        PR c++/25625
        * repo.c (repo_emit_p): Always instantiate static data members
        * cxx-pretty-print.c (pp_cxx_constant): New.  Print
        string-literal in parens if input program says so.
        (pp_cxx_primary_expression): Hand off constant printing to
-       pp_cxx_constant. 
+       pp_cxx_constant.
        (pp_cxx_pretty_printer_init): Set pp->c_base.constant.
-       (pp_cxx_expression): Use pp_cxx_constant for literals. 
+       (pp_cxx_expression): Use pp_cxx_constant for literals.
        * error.c (dump_expr): Use pp_constant for literals.
 
 2005-12-29  Nathan Sidwell  <nathan@codesourcery.com>
        PR c++/25439
        * decl.c (grokdeclarator): Remove dead code.
        * ptree.c (cxx_print_xnode): Handle BASELINK.
-       * parser.c (make_id_declarator): Add sfk parameter.  
+       * parser.c (make_id_declarator): Add sfk parameter.
        (cp_parser_direct_declarator): Do not pass TYPE_DECLs to
        make_id_declarator.
        (cp_parser_declarator_id): Simplify BASELINKs here.
        * decl.c (use_eh_spec_block): New function.
        (store_parm_decls): Use it.
        (finish_function): Likewise.
-       
+
 2005-12-19  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/24278
        PR c++/24915
        * class.c (add_method): Do not treat templates as identical unless
        their return types are the same.
-       
+
 2005-12-12  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/25300
 
 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
 
-       PR c++/25337 
+       PR c++/25337
        * pt.c (tsubst_copy_and_build): Permit dependent types for the
        object in a class member access expression.
 
        methods of Java classes
 
 2005-12-08  Théodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
-       
+
        * call.c (build_conditional_expr): Print types in error messages.
-       
+
 2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        * expr.c (cxx_expand_expr): Call gcc_unreachable instead of abort.
 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of
-       ggc_realloc. 
+       ggc_realloc.
        (cp_parser_template_argument_list): Use XRESIZEVEC instead of
-       xrealloc. 
+       xrealloc.
        * class.c (pushclass): Likewise.
 
 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
        (cp_parser_template_argument_list): Use XNEWVEC, nto xmalloc.
        (cp_parser_sizeof_operand): Likewise.
        * repo.c (open_repo_file, open_repo_file): Likewise.
-       
+
 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * parser.c (cp_parser_make_typename_type): Call make_typename_type
 2005-11-30  Jason Merrill  <jason@redhat.com>
 
        PR c++/21123
-       * cp-gimplify.c (cp_genericize_r): Don't dereference invisible reference 
+       * cp-gimplify.c (cp_genericize_r): Don't dereference invisible reference
        parms in a thunk.
 
 2005-11-30  Ben Elliston  <bje@au.ibm.com>
 
        PR c++/21667
        * typeck.c (build_array_ref): Avoid code duplicate.  Use common
-       C/C++ diagnostic function warn_array_subscript_with_type_char. 
+       C/C++ diagnostic function warn_array_subscript_with_type_char.
 
 2005-11-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        PR c++/8355
        * decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
        set_decl_namespace.
-       * name-lookup.c (set_decl_namespace): 
+       * name-lookup.c (set_decl_namespace):
 
 2005-11-18  Mike Stump  <mrs@apple.com>
 
        * parser.c (cp_token): Add ambiguous_p.
        (cp_lexer_get_preprocessor_token): Set it.
        (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
-       when a qualified name uses an invalid scope. 
+       when a qualified name uses an invalid scope.
        (cp_parser_primary_expression): Print ambiguous candidates.
        (cp_parser_type_parameter): Adjust comment to reflect new
        parameter name for cp_parser_lookup_name.
        when a lookup is ambiguous.
        (cp_parser_lookup_name_simple): Adjust comment to reflect new
        parameter name for cp_parser_lookup_name.
-       
+
 2005-11-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/24780
 2005-11-08  Jason Merrill  <jason@redhat.com>
 
        PR c++/21123
-       * method.c (use_thunk): Use build_cplus_new instead of 
+       * method.c (use_thunk): Use build_cplus_new instead of
        force_target_expr.
 
 2005-11-06  Jason Merrill  <jason@redhat.com>
        (build_base_field): Adjust call.
        (layout_class_type): Likewise.  Maintain
        sizeof_biggest_empty_class.
-       
+
 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
 
        * decl2.c, init.c, typeck.c: Fix comment typos.
 
        PR c++/24569
        * pt.c (instantiate_decl): Use cp_finish_decl, not
-       finish_static_data_member_decl. 
+       finish_static_data_member_decl.
 
 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * decl.c (start_decl): Check that the decl is an
        error_mark_node before getting the type.
        Remove the check for the decl's type being an
-       error_mark_node.  
+       error_mark_node.
 
 2005-10-21  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/24260
        * parser.c (cp_parser_init_declarator): Pass attributes to
-       grokfield. 
+       grokfield.
 
 2005-10-20  Mark Mitchell  <mark@codesourcery.com>
 
 
        PR c++/22173
        * typeck.c (check_template_keyword): Fix thinko.
-               
+
 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR c++/23959
        build_qualified_name.
        (cp_parser_id_expression): Default *template_p to
        template_keyword_p.  Check for invalid uses of the template
-       keyword.  
+       keyword.
        (cp_parser_postfix_expression): Eliminate special handling for
        qualified names.  Adjust call to cp_parser_primary_expression.
        (cp_parser_postfix_dot_deref_expression): Adjust call to
        (cp_parser_template_argument): Adjust use of
        cp_parser_primary_expression.  Remove call to
        finish_qualified_id_expr.
-       (cp_parser_lookup_name): Use build_qualified_name. 
+       (cp_parser_lookup_name): Use build_qualified_name.
        * pt.c (tsubst): Use build_qualified_name.
        (tsubst_qualified_id): Likewise.  Adjust call to
        finish_qualified_id_expr.
        (tsubst_copy): Use build_qualified_name.
        (tsubst_copy_and_build): Adjusts call to finish_id_expression and
-       finish_class_member_access_expr. 
+       finish_class_member_access_expr.
        * semantics.c (finish_non_static_data_member): Use
        build_qualified_name.
        (finish_qualified_id_expr): Add template_p and template_arg_p
-       parameters. 
+       parameters.
        (finish_id_expression): Remove qualifiying_class parameter.  Add
        template_p, done, address_p, and template_arg_p.  Use
        build_qualified_name.  Adjust calls to
-       finish_class_member_acess_expr.  
+       finish_class_member_acess_expr.
        * tree.c (build_qualified_name): New function.
        * typeck.c (check_template_keyword): New function.
        (finish_class_member_access_expr): Add template_p argument.  Check
        * call.c (build_new_method_call): Correct pretty-printing of
        destructor names.
        * pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an
-       identifier. 
+       identifier.
 
        PR c++/23694
        * decl.c (start_method): Return error_mark_node for errors.
 
        PR c++/24052
        * error.c (dump_expr): Pass LABEL_DECL to dump_decl.  Print
-       an ADDR_EXPR of a LABEL_DECL as &&. 
+       an ADDR_EXPR of a LABEL_DECL as &&.
 
 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
 
        treat forward declarations of classes as templates just because
        we're processing_template_decl.
        * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INFO for friend
-       functions. 
+       functions.
 
 2005-09-26  Jason Merrill  <jason@redhat.com>
 
        PR c++/16171
        * mangle.c (find_substitution): Do not use special substitutions
        for identifiers not in std::.
-       
+
 2005-09-13  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/23839
 
        PR c++/23842
        * pt.c (tsubst_default_argument): Do treat default argument
-       expressions as occurring in the context of the function called. 
+       expressions as occurring in the context of the function called.
 
 2005-09-12  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/8271
         * pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
        explicitly.
-       
+
 2005-08-12  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR c++/21799
 2005-07-27  Devang Patel  <dpatel@apple.com>
 
        * name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit.
-       
+
 2005-07-25  Ian Lance Taylor  <ian@airs.com>
 
        * ptree.c (cxx_print_identifier): Print a leading space if the
        * semantics.c (perform_koenig_lookup): For dependent calls, just
        return the set of functions we've found so far. Later, it will be
        augmented by those found through argument-dependent lookup.
-       * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing 
+       * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing
        the optimization that skips namespaces where the functions were
        originally found.
 
        * cp-tree.h (comp_ptr_ttypes_const): Declare.
        * typeck.c (comp_ptr_ttypes_const): Give it external linkage.
        Return bool.
-       
+
 2005-07-12  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
            Nathan Sidwell  <nathan@codesourcery.com>
 
        * cp-tree (init_shadowed_var_for_decl): Add prototype.
 
 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
-       
+
        * Make-lang.in: Add gt-cp-lang.h.
-       (cp-lang.o): Ditto.     
+       (cp-lang.o): Ditto.
        * class.c (create_vtable_ptr): Stop setting DECL_ASSEMBLER_NAME on
        the field.
        * config-lang.in: Add cp-lang.c to gtfiles.
        * decl.c (duplicate_decls): Update for new/updated structures.
        (poplevel): Use SET_DECL_SHADOWED_FOR_VAR.
        * decl2.c (start_static_initialization_or_destruction): Deal with
-       priority. 
+       priority.
        * pt.c (tsubst_decl): Check TS_DECL_WRTL before doing
        SET_DECL_RTL.
        * tree.c (handle_init_priority_attribute): Handle priority.
        * Makefile.in (class.o, decl2.o): Adjust dependencies.
        * class.c: Include tree-dump.h.
        * decl2.c: Include tree-dump.h.
-       
+
 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * dump.c: Use dump_string_field.
        typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
        or cp_pedwarn_at.  Mark up some diagnostic strings with N_.
 
-2005-06-30  Daniel Berlin  <dberlin@dberlin.org> 
-       
+2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
+
        * decl.c (require_complete_types_for_parms): Call relayout_decl
        instead of layout_decl.
 
        PR middle-end/17544
        * decl.c (finish_function): Fix comment.  Annotate the compiler
        generated return with the current file name and line 0.
-
index 014a826..67d368c 100644 (file)
@@ -1204,7 +1204,7 @@ reference_binding (tree rto, tree rfrom, tree expr, int flags)
   if (related_p && !at_least_as_qualified_p (to, from))
     return NULL;
 
-  conv = implicit_conversion (to, from, expr, /*c_cast_p=*/false, 
+  conv = implicit_conversion (to, from, expr, /*c_cast_p=*/false,
                              flags);
   if (!conv)
     return NULL;
@@ -1393,7 +1393,7 @@ add_function_candidate (struct z_candidate **candidates,
              parmtype = build_pointer_type (parmtype);
            }
 
-         t = implicit_conversion (parmtype, argtype, arg, 
+         t = implicit_conversion (parmtype, argtype, arg,
                                   /*c_cast_p=*/false, flags);
        }
       else
@@ -1472,7 +1472,7 @@ add_conv_candidate (struct z_candidate **candidates, tree fn, tree obj,
       else if (parmnode == void_list_node)
        break;
       else if (parmnode)
-       t = implicit_conversion (TREE_VALUE (parmnode), argtype, arg, 
+       t = implicit_conversion (TREE_VALUE (parmnode), argtype, arg,
                                 /*c_cast_p=*/false, flags);
       else
        {
@@ -1527,7 +1527,7 @@ build_builtin_candidate (struct z_candidate **candidates, tree fnname,
       if (! args[i])
        break;
 
-      t = implicit_conversion (types[i], argtypes[i], args[i], 
+      t = implicit_conversion (types[i], argtypes[i], args[i],
                               /*c_cast_p=*/false, flags);
       if (! t)
        {
@@ -1545,7 +1545,7 @@ build_builtin_candidate (struct z_candidate **candidates, tree fnname,
     {
       convs[2] = convs[1];
       convs[1] = convs[0];
-      t = implicit_conversion (boolean_type_node, argtypes[2], args[2], 
+      t = implicit_conversion (boolean_type_node, argtypes[2], args[2],
                               /*c_cast_p=*/false, flags);
       if (t)
        convs[0] = t;
@@ -2605,7 +2605,7 @@ build_user_type_conversion_1 (tree totype, tree expr, int flags)
              conversion *ics
                = implicit_conversion (totype,
                                       TREE_TYPE (TREE_TYPE (cand->fn)),
-                                      0, 
+                                      0,
                                       /*c_cast_p=*/false, convflags);
 
              cand->second_conv = ics;
@@ -4201,10 +4201,10 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
       if (ARITHMETIC_TYPE_P (t) && expr == null_node)
        {
          if (fn)
-           warning (0, "passing NULL to non-pointer argument %P of %qD",
+           warning (OPT_Wconversion, "passing NULL to non-pointer argument %P of %qD",
                     argnum, fn);
          else
-           warning (0, "converting to non-pointer type %qT from NULL", t);
+           warning (OPT_Wconversion, "converting to non-pointer type %qT from NULL", t);
        }
 
       /* Warn about assigning a floating-point type to an integer type.  */
@@ -4212,10 +4212,10 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
          && TREE_CODE (t) == INTEGER_TYPE)
        {
          if (fn)
-           warning (0, "passing %qT for argument %P to %qD",
+           warning (OPT_Wconversion, "passing %qT for argument %P to %qD",
                     TREE_TYPE (expr), argnum, fn);
          else
-           warning (0, "converting to %qT from %qT", t, TREE_TYPE (expr));
+           warning (OPT_Wconversion, "converting to %qT from %qT", t, TREE_TYPE (expr));
        }
     }
 
@@ -5273,7 +5273,7 @@ build_new_method_call (tree instance, tree fns, tree args,
   orig_fns = fns;
   orig_args = args;
 
-  /* Dismantle the baselink to collect all the information we need.  */  
+  /* Dismantle the baselink to collect all the information we need.  */
   if (!conversion_path)
     conversion_path = BASELINK_BINFO (fns);
   access_binfo = BASELINK_ACCESS_BINFO (fns);
@@ -6302,7 +6302,7 @@ can_convert_arg (tree to, tree from, tree arg, int flags)
   /* Get the high-water mark for the CONVERSION_OBSTACK.  */
   p = conversion_obstack_alloc (0);
 
-  t  = implicit_conversion (to, from, arg, /*c_cast_p=*/false, 
+  t  = implicit_conversion (to, from, arg, /*c_cast_p=*/false,
                            flags);
   ok_p = (t && !t->bad_p);
 
index ea3c496..119ba18 100644 (file)
@@ -1058,7 +1058,7 @@ build_expr_type_conversion (int desires, tree expr, bool complain)
   if (expr == null_node
       && (desires & WANT_INT)
       && !(desires & WANT_NULL))
-    warning (0, "converting NULL to non-pointer type");
+    warning (OPT_Wconversion, "converting NULL to non-pointer type");
 
   basetype = TREE_TYPE (expr);
 
index ffb7e7b..150f899 100644 (file)
@@ -1,3 +1,11 @@
+2006-01-17  Eric Christopher  <echristo@apple.com>
+
+       * g++.old-deja/g++.warn/impint.C: Add -Wconversion.
+       * g++.old-deja/g++.warn/impint2.C: Ditto.
+       * g++.old-deja/g++.other/null1.C: Ditto.
+       * g++.dg/warn/conv2.C: Ditto.
+       * g++.dg/warn/conv4.C: New file.
+
 2006-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * g++.dg/abi/mangle25.C: Fix dg-do line, add a closing brace.
@@ -90,7 +98,7 @@
 
 2006-01-16  Ben Elliston  <bje@au.ibm.com>
 
-       * gcc.dg/dfp/dfp.exp: Correct FSF address. 
+       * gcc.dg/dfp/dfp.exp: Correct FSF address.
        * gcc.misc-tests/dectest.exp: Ditto.
 
 2006-01-15  Ian Lance Taylor  <ian@airs.com>
        gcc.dg/dfp/operator-unary.c, gcc.dg/dfp/altivec-types.c,
        gcc.dg/dfp/cast.c, gcc.dg/dfp/typespec.c,
        gcc.dg/dfp/wtr-conversion-1.c: New tests.
-       
+
 2006-01-11  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/25734
        * gcc.dg/torture/pr25706-1.c: New test.
 
 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
-        
+
         PR tree-optimization/23109
         PR tree-optimization/23948
         PR tree-optimization/24123
 2005-12-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * g++.dg/rtti/tinfo1.C: Scan for ".global" also.
-       
+
        PR testsuite/25442
        * gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c,
        gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC.
index e346600..4dfeb86 100644 (file)
@@ -1,3 +1,4 @@
 // PR c++/13932
+// { dg-options "-Wconversion" }
 
 int i = 1.; // { dg-warning "converting" }
diff --git a/gcc/testsuite/g++.dg/warn/conv4.C b/gcc/testsuite/g++.dg/warn/conv4.C
new file mode 100644 (file)
index 0000000..a15ef8b
--- /dev/null
@@ -0,0 +1,22 @@
+// { dg-do compile }
+
+// This file should compile cleanly by default and not warn on the conversions.
+int func1(int i)
+{
+  return i;
+}
+
+int main()
+{
+  float f;
+  long l;
+  unsigned long ul;
+
+  f = 1.5f;
+
+  l = f;
+  ul = -1;
+  func1(f);
+
+  return 0;
+}
index f4e97b9..536f759 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do link  }
+// { dg-options "-Wconversion" }
 
 #include <cstddef>
 
index 96c8fbe..1c7f0eb 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do assemble  }
-
+// { dg-options "-Wconversion" }
 // Copyright (C) 2000 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 24 Feb 2000 <nathan@codesourcery.com>
 
@@ -37,21 +37,20 @@ void fn ()
 
   int k1 = 3.5;     // { dg-warning "" } double to int
   int k2 = 3.5f;    // { dg-warning "" } float to int
-  
+
   j1 = 3.5;         // { dg-warning "" } double to int
   j2 = 3.5f;        // { dg-warning "" } float to int
-  
+
   foo (3.5);        // { dg-warning "" } double to int
   foo (3.5f);       // { dg-warning "" } float to int
-  
+
   wibble (3.5);     // { dg-warning "" } double to int
   wibble (3.5f);    // { dg-warning "" } float to int
   wibble (1, 3.5);  // { dg-warning "" } double to int
   wibble (1, 3.5f); // { dg-warning "" } float to int
   wibble (3.5, 1);  // { dg-warning "" } double to int
   wibble (3.5f, 1); // { dg-warning "" } float to int
-  
+
   punk ();          // { dg-warning "" } double to int
   rock (1);         // { dg-warning "" } double to int
 }
-
index 1690319..d5fbc55 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-options "-Wconversion" }
 
 // Copyright (C) 2000 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 6 Mar 2000 <nathan@codesourcery.com>
@@ -31,15 +32,15 @@ void fn ()
   int j2 (3.5f);    // { dg-warning "" } float to int
 
   int k2 = 3.5f;    // { dg-warning "" } float to int
-  
+
   j2 = 3.5f;        // { dg-warning "" } float to int
-  
+
   foo (3.5f);       // { dg-warning "" } float to int
-  
+
   wibble (3.5f);    // { dg-warning "" } float to int
   wibble (1, 3.5f); // { dg-warning "" } float to int
   wibble (3.5f, 1); // { dg-warning "" } float to int
-  
+
   punk ();          // { dg-warning "" } float to int
   rock (1);         // { dg-warning "" } float to int
 }
@@ -56,13 +57,13 @@ void foo ()
   int j2 (-1);
 
   int k2 = -1;
-  
+
   j2 = -1;
-  
+
   foo (-1);
-  
-  wibble (-1);   
+
+  wibble (-1);
   wibble (1, -1);
   wibble (-1, 1);
-  
+
 }