OSDN Git Service

2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 61cfc8e..fcf6420 100644 (file)
@@ -1,3 +1,290 @@
+2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
+
+       * c-pretty-print.h (struct c_pretty_print_info): Add new member.
+       (pp_initializer): New macro.
+       (pp_c_initializer): Declare.
+       * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
+       (pp_c_initializer): Define.
+       (pp_c_initializer_list): New function.
+       (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
+       VECTOR_CST, CONSTRUCTOR.
+       (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
+       IMAGPART_EXPR. 
+       (pp_c_cast_expression): Handle FLOAT_EXPR.
+       (pp_c_assignment_expression): Handle INIT_EXPR.
+       (pp_c_expression): Update.
+
+2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
+
+       * objc/objc-act.c (objc_init): Return immediately if filename
+       is NULL.
+
+2002-07-29  Eric Christopher  <echristo@redhat.com>
+
+               * config/mips/elf.h: Remove ecoff.h and gofast includes.
+        (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
+        (SDB_DEBUGGING_INFO): Undefine.
+        (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
+       (PUT_SDB_SIZE): Remove.
+       (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
+               (STARTFILE_SPEC): Add isa3264 define.
+               * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
+               * config/mips/ecoff.h: Remove. and here...
+               * config/mips/iris3.h: and here...
+               * config/mips/sni-svr4.h: and here...
+               * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
+       Add assembler -mmdebug options for non-dwarf debugging.
+       * config/mips/r3900.h: Remove debug info defines.
+               * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
+               * config/mips/isa3264.h: Ditto.
+               * config/mips/t-isa3264: Fix up for file removal and gofast configure
+               change.
+               * config/mips/t-elf: Ditto.
+               * config/mips/t-ecoff: Ditto.
+               * config/mips/t-r3900: Ditto.
+               * config/mips/t-iris5-6: Ditto.
+               * config/mips/t-isa3264: Ditto.
+               * config/mips/t-linux: Remove.
+               * config/mips/t-netbsd: Remove.
+               * config/mips/t-mips: New file.
+               * config/mips/t-gofast: Ditto.
+               * config/mips/netbsd.h: Remove unnecessary undefines.
+               * config/mips/linux.h: Remove #include of mips.h.
+               * config.gcc: Add mips.h include for elf targets. Remove tm_file
+               for ecoff. Add gofast configure option for mips.
+
+2002-07-29  Chris Demetriou  <cgd@broadcom.com>
+
+       * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
+       linker scripts use STARTUP directives consistently.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
+       on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
+       * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
+       * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
+       HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
+       will be the same.
+
+2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
+
+2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
+
+2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
+
+       * config/rs6000/rs6000.md: Move altivec patterns from here...
+
+       * config/rs6000/altivec.md: ...to here.
+
+2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
+
+2002-07-29  Richard Henderson  <rth@redhat.com>
+
+       * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
+       set_mem_attributes and add BITPOS argument.  Subtract it from
+       OFFSET when same is adjusted.
+       (set_mem_attributes): New wrapper function.
+       * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
+       remove offset adjustment hack.
+       * expr.h (set_mem_attributes_minus_bitpos): Declare.
+
+2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
+
+       * Makefile.in (C_OBJS): Include c-pretty-print.o
+       (c-pretty-print.o): Add depency rule.
+       * pretty-print.h: Add more macros.
+       * c-pretty-print.c: New file.
+       * c-pretty-print.h: Likewise.
+
+2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
+       constants to __ev64_s32__.
+       (__internal_ev_mwhgsmian): Same.
+       (__internal_ev_mwhgsmfan): Same.
+       (__internal_ev_mwhgssfan): Same.
+       (__internal_ev_mwhgumiaa): Same.
+       (__internal_ev_mwhgsmiaa): Same.
+       (__internal_ev_mwhgsmfaa): Same.
+       (__internal_ev_mwhgssfaa): Same.
+
+2002-07-29  David Edelsohn  <edelsohn@gnu.org>
+
+       * varasm.c (assemble_variable): Narrow test for uninitialized
+       without BSS target support.
+
+2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * profile.c: Add file comment describing the overall algorithm and
+       structures.
+       (struct edge_info): Add comments.
+       (struct bb_info): Add comments.
+       * basic-block.h (EDGE_*): Add comments.
+       * doc/gcov.texi (Gcov Data Files): Document bit flags.
+
+2002-07-29  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/elf.h, config/xtensa/linux.h
+       (TARGET_OS_CPP_BUILTINS): Define.
+       (CPP_PREDEFINES): Remove.
+       * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
+       (CPP_SPEC): Remove.
+
+2002-07-29  Zack Weinberg  <zack@codesourcery.com>
+
+       * gensupport.c: Include hashtab.h.
+       (insn_elision, condition_table, hash_c_test, cmp_c_test,
+       maybe_eval_c_test): New routines and data structures to
+       support insn elision.
+       (init_md_reader): Read and initialize the condition_table.
+       (read_md_rtx): Discard insn patterns whose C test is provably
+       always false.
+       * gensupport.h: Declare new functions and data structures.
+
+       * genconditions.c, dummy-conditions.c: New files.
+       * Makefile.in: Build genconditions; run it to construct
+       insn-conditions.c; build that and link it into most gen*
+       programs.
+       (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
+       (GEN): Delete, unused.
+       (STAGESTUFF): Update.
+
+       * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
+       CODE_FOR_nothing for all elided patterns.
+       (main): Tweaked to support this.
+       * genflags.c (gen_proto): Emit a static inline generator
+       function here for all elided patterns, which simply returns
+       NULL_RTX.
+       (gen_insn): Do not define HAVE_xxx for elided patterns.
+       (main): Tweaked to support this.  No need to forward-declare
+       struct rtx_def.
+       * genrecog.c: Do not bother emitting the C test if it's known
+       to be true at compile time.
+
+2002-07-29  Mike Stump  <mrs@apple.com>
+
+       * config.gcc (target_gtfiles): Initialize, as otherwise cross
+       compilers hosted on powerpc-apple-darwin6.0 won't even build.
+
+2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
+       remove clobber of LR.
+       (sibcall_insn, sibcall_value_insn): Update accordingly.
+       (sibcall_epilogue): Remove debugging comment from assembler stream.
+
+2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
+
+       * pretty-print.h: Define more macros.
+       * diagnostic.h (output_formatted_integer): Moved from...
+       * diagnostic.c: ... here.
+
+2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
+
+2002-07-28  Zack Weinberg  <zack@codesourcery.com>
+
+       * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
+       arguments.  Always use ".-symbol" as expression argument.
+       * doc/tm.texi: Update to match.  Document requirement for
+       ".size symbol, .-symbol" to be acceptable to assembler.
+
+       * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
+       config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
+       config/i386/freebsd-aout.h, config/i386/sco5.h,
+       config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
+       config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
+
+2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (gengtype-lex.c): Fix error in last change.
+
+       * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
+       backslash.
+
+       * Makefile.in (vmsdbgout.o): Depend on function.h.
+
+       * vmsdbgout.c: Include function.h.
+
+2002-07-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * prefix.c (update_path): Don't strip single `.' path components
+       unless stripping a later `..' component.  Exit loop as soon as
+       a valid path is found.
+
+2002-07-27  Roger Sayle  <roger@eyesopen.com>
+
+       * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
+       argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
+       BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
+       floating point unordered comparisons (e.g. __builtin_isgreater)
+       as const, and leave the remaining GCC_BUILTINs unchanged.
+
+       * c-decl.c (builtin_function): No need to explicitly mark
+       BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
+
+2002-07-27  Roger Sayle  <roger@eyesopen.com>
+
+       * Makefile.in: rtlanal.o now depends upon real.h.
+
+       * flags.h [flag_signaling_nans]: New flag.
+       [HONOR_SNANS]: New macro.
+
+       * toplev.c [flag_signaling_nans]: Initialize to false.
+       (f_options): Add processing for "-fsignaling-nans".
+       (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
+       (process_options): flag_signaling_nans implies flag_trapping_math.
+
+       * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
+       when -fsignaling-nans.  First step to implementing WG14's N965.
+
+       * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
+       1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
+       [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
+
+       * simplify-rtx.c (simplify_relational_operation): Conditionalize
+       transforming abs(x) < 0.0 into false on !HONOR_SNANS.
+
+       * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
+       required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
+       UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
+       -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
+       not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
+
+       * doc/invoke.texi: Document new -fsignaling-nans compiler option.
+
+2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (gengtype-lex.c): Work around a bug in flex.
+       * gengtype-lex.l (YY_USE_PROTOS): Undef.
+       (YY_DECL): Define.
+
+2002-07-27  Roger Sayle  <roger@eyesopen.com>
+
+       * doc/invoke.texi: Document that both -fno-builtin-foo and
+       -fno-builtin are supported by the g++ front-end.
+
+2002-07-27  Stan Shebs  <shebs@apple.com>
+
+       * configure.in: Rename config_gtfiles to target_gtfiles.
+       * configure: Regenerate.
+       * doc/gty.texi: Update reference.
+       * config.gcc (powerpc-*-darwin*): Set target_gtfiles
+       instead of appending to it.
+
+2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
+       vectors are split into two registers.
+       (function_arg): Same.
+
 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
        * pa.md (extv): Check predicates before emitting extv_32.
@@ -156,7 +443,7 @@ Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
 
        * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
-       complaining. 
+       complaining.
        * c-common.h (c_sizeof): Adjust definition.
        (c_alignof): Likewise.
        * c-tree.h (c_sizeof_nowarn): Now macro.
@@ -191,7 +478,7 @@ Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
        * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
        TARGET_ISEL, and TARGET_FPRS.
-       
+
        * doc/invoke.texi (RS/6000 and PowerPC Options): Document
        -mabi=spe, -mabi=no-spe, and -misel=.
 
@@ -206,7 +493,7 @@ Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
        (*ne0): Same.
        (negsf2): Change to expand and rename old pattern to *negsf2.
        (abssf2): Change to expand and rename old pattern to *abssf2.
-       
+
        New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
        fixunssfsi2.
 
@@ -323,7 +610,7 @@ Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
        (rs6000_builtins): Add SPE builtins.
 
        * testsuite/gcc.dg/ppc-spe.c: New.
-       
+
        * config/rs6000/eabispe.h: New.
 
        * config/rs6000/spe.h: New.
@@ -504,7 +791,7 @@ Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
        (LARGEST_EXPONENT_IS_NORMAL): Ditto.
        (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
        (TARGET_G_FLOAT): Default to 0 if not defined.
-       (ieeetoe): New, common routine to convert target format floats 
+       (ieeetoe): New, common routine to convert target format floats
        to internal form.
        (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
        vs. others.
@@ -704,7 +991,7 @@ Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
        * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
        * function.c (SYMBOL__MAIN): Remove definition.
        * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
-       * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.   
+       * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
        * profile.c (GCOV_INDEX_TO_BB): Remove.
        * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
        * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
@@ -747,7 +1034,7 @@ Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
 2002-07-21  Andreas Jaeger  <aj@suse.de>
 
-        * reload1.c (fixup_abnormal_edges): Remove unused variable.
+       * reload1.c (fixup_abnormal_edges): Remove unused variable.
 
 2002-07-21  Bernd Schmidt  <bernds@redhat.com>