diff options
author | DJ Delorie <dj@redhat.com> | 2005-04-23 17:29:07 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-04-23 17:29:07 -0400 |
commit | d4ee4d252515ac2d2bdb8ed085edc7feaf5b943d (patch) | |
tree | 754eeef62542ff45392c946c655cc40c38bd1bed /gcc/java/expr.c | |
parent | 6084512671ee4909d6428506d46d09ee1a90cbdf (diff) | |
download | gcc-d4ee4d252515ac2d2bdb8ed085edc7feaf5b943d.zip gcc-d4ee4d252515ac2d2bdb8ed085edc7feaf5b943d.tar.gz gcc-d4ee4d252515ac2d2bdb8ed085edc7feaf5b943d.tar.bz2 |
diagnostic.c (warning): Accept parameter to classify warning option.
* diagnostic.c (warning): Accept parameter to classify warning option.
(warning0): New, for when a pointer to an error() like function is needed.
* errors.c (warning): Likewise.
* errors.h (warning, warning0): Adjust prototypes.
* toplev.h (warning, warning0): Likewise.
* attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
* config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
config/darwin.c, config/darwin.h, config/h8300/h8300.c,
config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
config/rs6000/aix52.h, config/rs6000/darwin.h,
config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
config/stormy16/stormy16.c, config/v850/v850-c.c,
config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
callers.
* ada/misc.c: Adjust warning() callers.
* cp/call.c, cp/class.c, cp/cvt.c, cp/decl.c, cp/decl2.c,
cp/except.c, cp/friend.c, cp/init.c, cp/lex.c, cp/mangle.c,
cp/method.c, cp/name-lookup.c, cp/parser.c, cp/repo.c, cp/rtti.c,
cp/tree.c, cp/typeck.c, cp/typeck2.c: Adjust warning() callers.
* fortran/trans-decl.c: Adjust warning() callers.
* java/class.c, java/decl.c, java/expr.c, java/jcf-io.c,
java/jcf-parse.c, java/jv-scan.c, java/parse.y: Adjust warning()
callers.
* objc/objc-act.c: Adjust warning() callers.
* treelang/parse.y: Adjust warning() callers.
From-SVN: r98633
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index ee67c22..ae1055e 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -373,7 +373,7 @@ pop_type_0 (tree type, char **messagep) && t == object_ptr_type_node) { if (type != ptr_type_node) - warning ("need to insert runtime check for %s", + warning (0, "need to insert runtime check for %s", xstrdup (lang_printable_name (type, 0))); return type; } @@ -502,7 +502,7 @@ can_widen_reference_to (tree source_type, tree target_type) source_type, target_type); if (!quiet_flag) - warning ("assert: %s is assign compatible with %s", + warning (0, "assert: %s is assign compatible with %s", xstrdup (lang_printable_name (target_type, 0)), xstrdup (lang_printable_name (source_type, 0))); /* Punt everything to runtime. */ @@ -549,7 +549,7 @@ can_widen_reference_to (tree source_type, tree target_type) if (TYPE_DUMMY (source_type) || TYPE_DUMMY (target_type)) { if (! quiet_flag) - warning ("assert: %s is assign compatible with %s", + warning (0, "assert: %s is assign compatible with %s", xstrdup (lang_printable_name (target_type, 0)), xstrdup (lang_printable_name (source_type, 0))); return 1; @@ -2728,7 +2728,7 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index) else if (FIELD_STATIC (field_decl)) { if (!DECL_CLINIT_P (current_function_decl)) - warning ("%Jassignment to final static field %qD not in " + warning (0, "%Jassignment to final static field %qD not in " "class initializer", field_decl, field_decl); } @@ -2737,7 +2737,7 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index) tree cfndecl_name = DECL_NAME (current_function_decl); if (! DECL_CONSTRUCTOR_P (current_function_decl) && !ID_FINIT_P (cfndecl_name)) - warning ("%Jassignment to final field '%D' not in constructor", + warning (0, "%Jassignment to final field '%D' not in constructor", field_decl, field_decl); } } @@ -2927,7 +2927,7 @@ expand_byte_code (JCF *jcf, tree method) int pc = GET_u2 (linenumber_pointer); linenumber_pointer += 4; if (pc >= length) - warning ("invalid PC in line number table"); + warning (0, "invalid PC in line number table"); else { if ((instruction_bits[pc] & BCODE_HAS_LINENUMBER) != 0) @@ -2983,7 +2983,7 @@ expand_byte_code (JCF *jcf, tree method) { /* We've just reached the end of a region of dead code. */ if (extra_warnings) - warning ("unreachable bytecode from %d to before %d", + warning (0, "unreachable bytecode from %d to before %d", dead_code_index, PC); dead_code_index = -1; } @@ -3025,7 +3025,7 @@ expand_byte_code (JCF *jcf, tree method) { /* We've just reached the end of a region of dead code. */ if (extra_warnings) - warning ("unreachable bytecode from %d to the end of the method", + warning (0, "unreachable bytecode from %d to the end of the method", dead_code_index); } } |