OSDN Git Service

2002-07-02 Chris Demetriou <cgd@broadcom.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 6a03162..245e83d 100644 (file)
@@ -1,3 +1,362 @@
+2002-07-02  Chris Demetriou  <cgd@broadcom.com>
+
+       * config.gcc (mips*el-*-*): Use tm_defines to set
+       TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
+       * config/mips/little.h: Remove.
+
+2002-07-02 Devang Patel <dpatel@apple.com>
+
+       * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
+       object as parameter. Prevent something like 'NSObject' to be
+       used as the type for a method argument.
+
+2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cpptrad.c: Update comment.
+
+2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
+       
+       * doc/cpp.texi: Update for traditional preprocessing changes.
+       * goc/cppopts.texi: Similarly.
+
+2002-07-02  Ziemowit Laski  <zlaski@apple.com>
+
+       * c-parse.in (designator): Enable designated initializers if ObjC.
+       (objcmessageexpr): Remove references to objc_receiver_context.
+       * objc/objc-act.h (objc_receiver_context): Remove decl.
+       * objc/objc-act.c (objc_receiver_context): Remove.
+       (lookup_objc_ivar): Test objc_method_context instead of
+       objc_receiver_context.
+
+Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * sh.c (print_operand, case 'N'): Allow zero vector.
+       (arith_reg_or_0_operand): Likewise.
+       (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
+       * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for 
+       IOR, XOR, PLUS and SET and take their respective constant
+       ranges into account.
+       (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
+       * sh.md (subdi3, subdi3_media): Allow zero operand.
+       (movv8qi_i+3): Only vector that is not split is the zero vector.
+       Fix operand 3 to simplify_subreg.
+       (movv2si_i): Split alternative 1.
+       (mshfhi_l_di_rev+1): New splitter.
+
+2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
+
+       PR preprocessor/7029
+       * cppinit.c (cpp_handle_option):  Suppress warnings with an
+       implicit "-w" for "-M" and "-MM".
+       * doc/cppopts.texi: Update.
+
+2002-07-01  Roger Sayle  <roger@eyesopen.com>
+
+       * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
+       identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
+       builtin_function.
+
+2002-07-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * README.Portability: Fix typos.
+
+2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR target/7177
+       * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
+       of indirections for register inside sign-extended mem part.
+
+2002-07-01  Roger Sayle  <roger@eyesopen.com>
+
+       * tree.h:  Modify builtin_function interface to take an extra
+       argument ATTRS, which is a tree representing an attribute list.
+
+       * c-decl.c (builtin_function): Accept additional parameter.
+       * objc/objc-act.c (builtin_function): Likewise.
+       * f/com.c (builtin_function): Likewise.
+       * java/decl.c (builtin_function): Likewise.
+       * ada/utils.c (builtin_function): Likewise.
+       * cp/decl.c (builtin_function): Likewise.
+       (builtin_function_1): Likewise.
+
+       * c-common.c (c_common_nodes_and_builtins): Pass an additional
+       NULL_TREE argument to builtin_function.  (builtin_function_2):
+       Likewise.
+       * cp/call.c (build_java_interface_fn_ref): Likewise.
+       * objc/objc-act.c (synth_module_prologue): Likewise.
+       * java/decl.c (java_init_decl_processing): Likewise.
+       * f/com.c (ffe_com_init_0): Likewise.
+
+       * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
+       NULL_TREE argument to builtin_function.
+       * config/arm/arm.c (def_builtin): Likewise.
+       * config/c4x/c4x.c (c4x_init_builtins): Likewise.
+       * config/i386/i386.c (def_builtin): Likewise.
+       * config/ia64/ia64.c (def_builtin): Likewise.
+       * config/rs6000/rs6000.c (def_builtin): Likewise.
+
+2002-07-01  Zack Weinberg  <zack@codesourcery.com>
+
+       * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
+       * config/mips/t-isa3264: Likewise.
+       * config/mmix/t-mmix: Likewise.
+
+2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
+
+2002-07-01  Roger Sayle  <roger@eyesopen.com>
+
+       PR opt/4046
+       * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
+       A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
+       B are truth values.
+
+2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
+
+2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
+
+       * README.Portability (Function prototypes): Give an example of
+       declaring and defining a function with no arguments.
+
+       * README.Portability (Function prototypes): Document new
+       variable-argument function macros.
+
+Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * sh.c (langhooks.h): Include.
+       (sh_init_builtins, sh_media_init_builtins): New functions.
+       (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
+       (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
+       (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
+       (builtin_description): New struct tag.
+       (signature_args, bdesc): New arrays.
+       (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
+       (print_operand): Add 'N' modifier.
+       * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
+       (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
+       (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
+       (CONST_COSTS): Add special case for SHmedia AND.
+       (PREDICATE_CODES): Add and_operand, arith_reg_dest,
+       extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
+       sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
+       target_operand can also be const or unspec.
+       * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
+       (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
+       (attribute type): Add new types.
+       (anddi3): Add splitter.
+       (movdi_const_16bit+1): Add code to handle vector constants and
+       bitmasks efficiently.
+       (shori_media): Have generator function made.
+       (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
+       (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
+       (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
+       (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
+       (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
+       (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
+       (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
+       (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
+       (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
+       (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
+       (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
+       (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
+       (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
+       (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
+       (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
+       (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
+       (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
+       (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
+       (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
+       (ftrv): Likewise.
+
+       (fpu_switch+1, fpu_switch+2): Remove constraint.
+
+2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
+
+        * tree.c (build_function_type_list): Update function comment.
+        Rename first argument to return_type.
+
+2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
+       tradcif.y and related files.
+
+2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cpptrad.c (skip_whitespace): Pass pointer to prior char.
+
+2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
+
+2002-06-30  Devang Patel  <dpatel@apple.com>
+
+       * objc/objc-act.c (finish_file): Avoid finish_objc() if
+       -fsyntax-only.
+
+Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
+                         Frank Ch. Eigler  <fche@redhat.com>
+                         Matthew Green  <mrg@redhat.com>
+                         Richard Henderson <rtl@redhat.com>
+                         Dave Hudson  <dave.hudson@ubicom.com>
+                         Jeff Johnston  <jjohnstn@redhat.com>
+                         Alan Lehotsky <apl@alum.mit.edu>
+                         Bernd Schmidt  <bernds@redhat.com>
+                         Graham Stott  <grahams@redhat.com>
+                         
+       * doc/extend.texi: Add ip2k port to description of attribute
+       naked.
+       * doc/install.texi (Specific): Add ip2k description.
+       * doc/install-old.texi (Configurations): Add ip2k to possible
+       cpu types.
+       * doc/md.texi: Document ip2k constraints.
+       * config/ip2k/crt0.S: New file.
+       * config/ip2k/ip2k-protos.h: New file.
+       * config/ip2k/ip2k.c: New file.
+       * config/ip2k/ip2k.h: New file.
+       * config/ip2k/ip2k.md: New file.
+       * config/ip2k/libgcc.S: New file.
+       * config/ip2k/t-ip2k: New file.
+
+2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * config/mmix/mmix.md ("return"): New pattern.
+       * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
+       (TARGET_USE_RETURN_INSN): New macros.
+       (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
+       (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
+       * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
+       (MMIX_POP_ARGUMENT): New macro.
+       (mmix_target_asm_function_prologue): When no epilogue is executed,
+       just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
+       (mmix_print_operand) <case '.'>: New case.
+       (mmix_print_operand_punct_valid_p): Match '.'.
+       (mmix_use_simple_return): New function.
+       * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
+       * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
+       -msingle-exit, -mno-single-exit.
+       (MMIX Options): Ditto.
+
+2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
+
+        * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
+
+2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
+
+2002-06-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * unroll.c (loop_iterations): Handle EQ loops.
+
+2002-06-29  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
+       constraint in define_expand, not splitter.
+       Formatting.
+
+2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
+
+        * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
+        build_function_type_list instead of build_function_type.
+
+        * config/ia64/ia64.c (ia64_init_builtins): Same.
+
+        * config/alpha/alpha.c (alpha_init_builtins): Same.
+
+        * config/rs6000/rs6000.c (altivec_init_builtins): Same.
+
+        * config/arm/arm.c (arm_init_builtins): Same.
+
+        * tree.h: Add build_function_type_list prototype.
+
+        * tree.c (build_function_type_list): New.
+
+2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * collect2.c (scan_prog_file): Fix typo in message.
+
+2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
+
+        * fold-cont.c: Remove unused CHARMASK.
+
+2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
+
+       PR preprocessor/7150
+       * cppmain.c (scan_translation_unit_trad): Simplify.
+       * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
+
+2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
+       Don't use CPP_PREDEFINES.
+       * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
+       Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
+       * config/i386/djgpp.h, config/i386/i386-coff.h,
+       config/i386/i386-interix.h, config/i386/i386-interix3.h,
+       config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
+       config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
+       config/i386/uwin.h: Similarly.
+
+2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+
+        * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
+       flag_inline_trees to enable inlining.
+
+2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
+
+       * configure.in (gcc_gxx_include_dir):  Change to match versioned
+       C++ headers if --enable-version-specific-runtime-libs is used.
+       * configure:  Regenerate.
+
+2002-06-28  Jan Hubicka  <jh@suse.cz>
+
+       * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
+
+2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
+
+       * combine.c (combine_simplify_rtx): Pass the mode of the
+       shift count, not the shift operation when trying to simplify
+       a shift on a SHIFT_COUNT_TRUNCATED target.
+
+2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
+       avoid the auto increment addressing modes.
+       ("*subsi3"): Likewise.
+       (split for add/sub on address): For 68HC12 push the value on 
+       the stack and do the operation with a pop.
+
+2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cpplib.c (_cpp_handle_directive): Move #define-specific
+       code to the #define handler...
+       (do_define): ...here.
+       (lex_macro_node): No longer a need to check for comments here.
+
+2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
+       * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
+       Declare.
+       * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
+       do not reorder basic blocks at the end when optimizing for size.
+
+2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.c (autoinc_mode): New function.
+       (m68hc11_make_autoinc_notes): New function.
+       (m68hc11_split_move): Be very cautious when spliting a move with
+       auto increment/decrement modes because this may result in incompatible
+       directions; add REG_INC notes to the resulting insn for CSE reg.
+
+2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
+       can be a valid address.
+
 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
 
         * config/rs6000/rs6000.c: Remove unusued variables from last