OSDN Git Service

PR c/15749
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 00d5577..5d10d0f 100644 (file)
@@ -1,3 +1,169 @@
+2004-05-31  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       PR c/15749
+       * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
+       misuses of structures with flexible array members if
+       in_system_header.
+
+2004-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR target/15693
+       * config/sparc/sparc.c (compare_operand): New predicate.
+       * config/sparc/sparc.h (PREDICATE_CODES): Add it.
+       * config/sparc/sparc.md (cmpsi expander): Use it.  If the first
+       operand is a ZERO_EXTRACT and the second operand is not zero,
+       force the former to a register.
+       (cmpdi expander): Likewise.
+
+2004-05-31  Geoffrey Keating  <geoffk@apple.com>
+
+       * gengtype-lex.l: Catch stray GTY markers in the files gengtype
+       looks at.
+       * alias.c (alias_invariant_size): Make alias_invariant_size
+       static, fix GTY marker.
+
+2004-05-31  Kazu Hirata  <kazu@cs.umass.edu>
+
+       PR tree-optimization/15743.
+       * builtins.c (fold_builtin_1): Fold index() and rindex().
+
+2004-05-31  Roger Sayle  <roger@eyesopen.com>
+
+       PR middle-end/15069
+       * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
+       into "X < 0" (where C is the signbit) if X's type is a full mode.
+
+2004-05-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa.md: Disable the peephole2 patterns that generate indexed
+       floating-point stores when indexing is disabled.
+
+2004-05-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * c-pretty-print.c (pp_c_left_bracket): Make a function.
+       (pp_c_right_bracket): Likewise.
+       (pp_c_star): Likewise.
+       (pp_c_ampersand): Define.
+       * c-pretty-print.h (pp_c_left_bracket): Declare.
+       (pp_c_right_bracket): Likewise.
+       (pp_c_star): Likewise.
+       (pp_c_ampersand): Likewise.
+
+2004-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * config/sol2.h (__enable_execute_stack): ANSIfy function
+       definition.
+
+2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * c-incpath.c (add_path): Canonicalize paths to use '/' if
+       HAVE_DOS_BASED_FILESYSTEM.
+
+2004-05-31  Steven Bosscher  <stevenb@suse.de>
+
+       * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
+       Only look at case labels if the immediate dominator is also
+       the only predecessor.  Don't look for more case labels if the
+       first seen is a case range.
+
+2004-05-31  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * builtins.c: Add a prototype for fold_builtin_strchr().
+
+2004-05-31  Paolo Bonzini  <bonzini@gnu.org>
+
+       Revert this patch:
+       2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
+
+       * combine.c (gen_binary): Remove.
+       (known_cond, simplify_shift_const
+       find_split_point, combine_simplify_rtx,
+       simplify_if_then_else, simplify_set,
+       simplify_logical, expand_field_assignment,
+       extract_left_shift, force_to_mode,
+       if_then_else_cond, apply_distributive_law,
+       simplify_and_const_int, simplify_shift_const,
+       gen_lowpart_for_combine, simplify_comparison,
+       reversed_comparison): Replace with
+       simplify_gen_binary, simplify_gen_relational or
+       distribute_and_simplify_rtx.
+       (distribute_and_simplify_rtx): New function.
+
+2004-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
+       when generating PIC code.
+
+2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * c-decl.c (c_expand_body_1): Remove and fold back into ...
+       (c_expand_body): here.
+       (c_expand_decl): Move to ...
+       * c-common.c (c_expand_decl): Here and remove check for nested
+       functions.
+       * c-common.h (c_expand_decl): Add prototype.
+       * c-tree.h (c_expand_decl): Remove.
+
+2004-05-30  Roger Sayle  <roger@eyesopen.com>
+
+       * fold-const.c (combine_comparisons, optimize_bit_field_compare,
+       range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
+       fold_mathfn_compare, fold_inf_compare, fold,
+       fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
+       Use constant_boolean_node where appropriate.  Don't bother using
+       fold_convert on the second argument to omit_one_operand.
+
+2004-05-30  Roger Sayle  <roger@eyesopen.com>
+
+       * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
+       CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
+       ROUND_MOD_EXPR, EXACT_DIV_EXPR.  Improve documentation of
+       TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
+       Add missing (but documented) tree nodes to the index.
+
+2004-05-30  Steven Bosscher  <stevenb@suse.de>
+
+       PR tree-optimization/14819
+       * builtins.c (fold_builtin_strchr): New.
+       (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
+       with fold_builtin_strchr().
+
+2004-05-30  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
+       c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
+       expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
+       passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
+       tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
+       tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
+       tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
+       tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
+       tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
+       formatting.
+
+2004-05-30  Steven Bosscher  <stevenb@suse.de>
+
+       * gimplify.c (sort_case_labels): New.  Split out from...
+       (gimplify_switch_expr): ...here.  Use it.
+       * tree-eh.c (lower_try_finally_switch): Sort the labels of
+       the SWITCH_EXPR created here before leaving the function.
+       * tree.c (sort_case_labels): Add prototype.
+
+2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
+       of BOOLEAN_TYPE.
+
+2004-05-30  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
+       ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
+       fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
+       modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
+       tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
+       tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
+       comment typos.  Follow spelling conventions.
+
 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
 
        * gengtype-yacc.y: Add NESTED_PTR token.
 
        * cfgbuild.c (control_flow_insn_p):  Notice noreturn call
 
-2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
+2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
 
        * combine.c (gen_binary): Remove.
        (known_cond, simplify_shift_const