1. 29 Apr, 2002 4 commits
  2. 26 Apr, 2002 1 commit
  3. 25 Apr, 2002 3 commits
    • mips.c (mips_class_max_nregs, [...]): New functions. · d604bca3
      2002-04-24  Matt Hiller  <hiller@redhat.com>
      
      	* mips.c (mips_class_max_nregs, mips_register_move_cost): New
      	functions.
      	* mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
      	of the corresponding functions.
      	* mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
      	New prototypes.
      
      2002-04-24  Matt Hiller  <hiller@redhat.com>
      
      	* config/mips/mips.h (mips_sw_reg_names): Declare as extern.
      
      	(ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
      	(FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
      	registers, adjust comment accordingly.
      	(FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
      	reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
      	DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
      	for coprocessor registers.
      	(ADDITIONAL_REGISTER_NAMES): Include
      	ALL_COP_ADDITIONAL_REGISTER_NAMES.
      
      	(COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
      	COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
      	COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
      	COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
      	COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
      
      	(mips_char_to_class): Adjust comment to include coprocessor
      	constraint letters.
      
      	* config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
      	New functions.
      	(mips_reg_names, mips_regno_to_class): Include coprocessor
      	information.
      	(mips_sw_reg_names): Ditto, make non-static.
      	(mips_move_1word): Handle moves to and from coprocessor registers.
      	(mips_move_2words): Handle moves to and from coprocessor
      	registers.
      	(mips_class_max_nregs, mips_register_move_cost): Handle
      	coprocessor register classes.
      	(override_options): Initialize mips_char_to_class and
      	mips_hard_regno_mode_ok properly for coprocessor registers.
      
      	* config/mips/mips.md (movdi_internal, movdi_internal2,
      	movsi_internal1, movsi_internal2): Add constraint-sets for
      	coprocessor registers.
      	* testsuite/gcc.c-torture/mipscop-1.c: New testcase.
      	* testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
      	isn't mips.
      	* testsuite/gcc.c-torture/mipscop-2.c: New testcase.
      	* testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
      	isn't mips.
      	* testsuite/gcc.c-torture/mipscop-3.c: New testcase.
      	* testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
      	isn't mips.
      	* testsuite/gcc.c-torture/mipscop-4.c: New testcase.
      	* testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
      	isn't mips.
      
      	* doc/tm.texi: Document feature.
      
      From-SVN: r52765
      Matt Hiller committed
    • * doc/c-tree.texi: Fix typo in introduction. · ab5973b7
      From-SVN: r52758
      Steven Bosscher committed
  4. 23 Apr, 2002 1 commit
  5. 22 Apr, 2002 1 commit
  6. 20 Apr, 2002 1 commit
  7. 19 Apr, 2002 2 commits
  8. 18 Apr, 2002 1 commit
  9. 17 Apr, 2002 1 commit
  10. 16 Apr, 2002 1 commit
  11. 15 Apr, 2002 2 commits
    • install.texi (Installing GCC: Configuration): Clarify the only supported ways to configure gcc. · 0aa911c5
              * doc/install.texi (Installing GCC: Configuration): Clarify
              the only supported ways to configure gcc.
      
      From-SVN: r52335
      Loren J. Rittle committed
    • MAINTAINERS: Remove chill maintainers. · 07cdae91
      	* MAINTAINERS: Remove chill maintainers.
      	* Makefile.in (CHILLFLAGS): Remove.
      	(CHILL_LIB): Remove.
      	(TARGET_CONFIGDIRS): Remove libchill.
      	(CHILL_FOR_TARGET): Remove.
      	(BASE_FLAGS_TO_PASS): Don't pass CHILLFLAGS, CHILL_FOR_TARGET, or
      	CHILL_LIB.
      	(CONFIGURE_TARGET_MODULES): Remove configure-target-libchill.
      	(CHECK_TARGET_MODULES): Likewise.
      	(INSTALL_TARGET_MODULES): Likewise.
      	(CLEAN_TARGET_MODULES): Likewise.
      	(configure-target-libchill): Remove.
      	(all-target-libchill): Remove.
      	* configure.in (target_libs): Remove target-libchill.
      	Do not compute CHILL_FOR_TARGET.
      	* libchill: Remove directory.
      
      	Remove Chill front end.
      	* gcc.c (default_compilers): Remove Chill entries.
      	* ch: Remove directory.
      	* doc/frontends.texi: Remove information about Chill.
      	* doc/sourcebuild.texi: Likewise.
      	* doc/standards.texi: Likewise.
      
      	* testsuite/lib/chill.exp: Remove.
      
      	* g77.texi: Remove Chill reference.
      
      	* gcc_release (build_tarfiles): Do not build Chill tarfiles.
      	(CHILL_DIRS): Remove.
      
      From-SVN: r52327
      Mark Mitchell committed
  12. 12 Apr, 2002 1 commit
    • config.gcc (sparcv9-*-solaris2): Default to 32-bit code. · 3fc602a0
              * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
              (sparc*-*-solaris): Clean up header files.
              * configure.in (AS_SPARC64_FLAG): Error out if can't find it
              and plan on generating 64-bit code.
              * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
              * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
              * config/sparc/sol2-sld-64.h: Rename ...
              * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
              for AS_SPARC64_FLAG not defined.
              * config/sparc/sol2-gld-bi.h: New.
              * config/sparc/sol2-sld.h: Remove.
              * config/sparc/sol26-sld.h: New.
              * config/sparc/sol2.h: Tidy comments.
              * doc/install.texi: Document sparc-solaris configury changes.
      
      From-SVN: r52251
      Richard Henderson committed
  13. 11 Apr, 2002 1 commit
  14. 08 Apr, 2002 2 commits
    • re PR target/6082 (memory model wrong for FreeBSD/sparc64) · 7a31a340
      2002-04-08  David S. Miller  <davem@redhat.com>
      
      	PR target/6082
      	* config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
      
      	Make init_priority work on Sparc when using GNU ld.
      	* config/sparc/linux.h, config/sparc/linux64.h,
      	config/sparc/netbsd-elf.h, config/sparc/freebsd.h
      	(CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
      	* config/sparc/sol2-gld.h: New file to do the same.
      	* config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
      	sparc/sol2-gld.h to tm_file.
      
      	PR optimization/4328
      	* config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
      	* doc/md.texi: Document it.
      	* config/sparc/sparc.md (movdi_insn_sp64_novis,
      	movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
      	movdf_insn_v9only_vis, movdf_insn_sp64_novis,
      	movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
      	* config/sparc/sparc.c (mem_min_alignment): Fix comment.
      
      From-SVN: r52031
      David S. Miller committed
    • contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the… · b57215d9
      contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the latter also to Testers).
      
      	* doc/contrib.texi (Contributors): Add John David Anglin and Loren
      	J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
      	* doc/contrib.texi (Contributors): Add David O'Brien.
      
      From-SVN: r52024
      Gerald Pfeifer committed
  15. 07 Apr, 2002 1 commit
    • cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp. · 477cdac7
      * cppinit.c (cpp_create_reader): Initialize
      discard_comments_in_macro_exp.
      (COMMAND_LINE_OPTIONS): Add "-CC" option.
      (cpp_handle_option): Handle "-CC" option.
      * cpplex.c (save_comment): If saving a C++ comment in
      a directive, convert it to a C comment.
      (_cpp_lex_direct): Pass second comment start character to
      save_comment to indicate comment type.
      * cpplib.c (_cpp_handle_directive): If processing
      a "#define" directive and discard_comments_in_macro_exp
      is false,  re-enable saving of comments.
      (lex_macro_node): If discard_comments_in_macro_exp is false,
      discard any comments before the macro identifier.
      * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
      member.
      * cppmacro.c (cpp_get_token): If expanding a macro while
      processing a directive, discard any comments we might encounter.
      (parse_params): If discard_comments_in_macro_exp is false,
      ignore comments in the macro parameter list.
      * gcc.c (cpp_unique_options): Add "-CC" option.
      (option_map): Map "--comments-in-macros" to "-CC".
      * doc/cppopts.texi: Document "-CC" option.
      * f/lang-specs.h: Add "-CC" option.
      * testsuite/gcc.dg/cpp/maccom1.c: New test.
      * testsuite/gcc.dg/cpp/maccom2.c: New test.
      * testsuite/gcc.dg/cpp/maccom3.c: New test.
      * testsuite/gcc.dg/cpp/maccom4.c: New test.
      * testsuite/gcc.dg/cpp/maccom5.c: New test.
      * testsuite/gcc.dg/cpp/maccom6.c: New test.
      
      From-SVN: r51975
      Jason Thorpe committed
  16. 06 Apr, 2002 1 commit
  17. 04 Apr, 2002 1 commit
    • gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library… · bbd7687d
      gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker.
      
      2002-04-03  David S. Miller  <davem@redhat.com>
      
      	* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
      	library sequence passed to the linker.
      	(LINK_COMMAND_SPEC): Use it.
      	* doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
      	a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
      	* config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
      
      From-SVN: r51834
      David S. Miller committed
  18. 03 Apr, 2002 1 commit
  19. 31 Mar, 2002 1 commit
    • sparc.c: Remove all references to TARGET_EPILOGUE. · 33074e5f
              * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
              (sparc_emitting_epilogue): New.
              (leaf_label, output_return, sparc_return_peephole_ok): Remove.
              * config/sparc/sparc-protos.h: Update.
              * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
              (TARGET_SWITCHES): Update.
              * config/sparc/sparc.md (return): Remove.
              (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
              * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
              config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
              config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
              config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
              config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
              config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
              Remove MASK_EPILOGUE.
              * doc/invoke.texi: Update.
      
      From-SVN: r51626
      Richard Henderson committed
  20. 29 Mar, 2002 2 commits
  21. 28 Mar, 2002 1 commit
  22. 27 Mar, 2002 1 commit
  23. 26 Mar, 2002 3 commits
  24. 25 Mar, 2002 1 commit
    • toplev.c: Don't include setjmp.h. · 15e5ad76
      	* toplev.c: Don't include setjmp.h.  Kill float_handler_set,
      	float_handled, float_handler, float_signal, set_float_handler,
      	and do_float_handler.  Set handler for SIGFPE to crash_signal.
      	* toplev.h: Don't prototype do_float_handler.
      
      	* c-lex.c: Fold parse_float into lex_number.  Make warning
      	about portability of hex float constants more informative, and
      	don't issue it on top of a syntax error.
      	* fold-const.c: Fold const_binop_1 and fold_convert_1 into
      	their callers.
      	* real.h: Define REAL_VALUE_ABS here...
      	* simplify-rtx.c: ... not here.  Fold check_fold_consts,
      	simplify_unary_real, simplify_binary_real, and
      	simplify_binary_is2orm1 into their callers.
      	* tree.c: Fold build_real_from_int_cst_1 into caller.
      
      	* doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
      
      	* tsystem.h: Include float.h here...
      	* libgcc2.c: ... not here.
      
      java:
      	* lex.c: Change java_perform_atof to take normal parameters
      	instead of a pointer to a parameter block.  Call it directly
      	from java_lex.
      
      testsuite:
      	* gcc.dg/c90-hexfloat-1.c: Adjust error regexps.
      
      From-SVN: r51336
      Zack Weinberg committed
  25. 23 Mar, 2002 2 commits
    • [multiple changes] · d6961341
      2002-03-23  Andrew Cagney  <ac131313@redhat.com>
      
      	* doc/invoke.texi (Option Summary): Mention -Wswitch-default.
      	(Warning Options): Document -Wswitch-default.
      	* toplev.c (W_options): Add -Wswitch-default.  Update comment on
      	-Wswitch.
      	(warn_switch_default): Define variable.
      	(warn_switch): Update comment.
      	* flags.h (warn_switch_default): Declare variable.
      	(warn_switch): Update comment.
      	* stmt.c (expand_end_case): Check for and, when
      	warn_switch_no_default, warn of a missing default case.
      
      Index: f/ChangeLog
      Sat Mar 23 11:18:17 2002  Andrew Cagney  <ac131313@redhat.com>
      
      	* invoke.texi (Warning Options): Mention -Wswitch-default.
      
      Index: testsuite/ChangeLog
      2002-03-23  Andrew Cagney  <ac131313@redhat.com>
      
      	* gcc.dg/Wswitch-default.c: New test.
      
      From-SVN: r51238
      Andrew Cagney committed
    • real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE. · b216cd4a
      	* real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
      	Always make REAL_VALUE_TYPE a struct containing an array of
      	HOST_WIDE_INT, not a double.  Tidy up the code deciding how
      	big it is.  Don't declare or use union real_extract.
      
      	* emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
      	decode_rtx_const, output_constant_pool), config/a29k/a29k.c
      	(print_operand), config/arm/arm.c (output_move_double),
      	config/arm/arm.md (consttable_4, consttable_8),
      	config/romp/romp.c (output_fpops), config/s390/s390.h
      	(ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
      	(xtensa_output_literal): Don't use union real_extract.
      
      	* config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
      	(sfmode_constant_to_ulong), config/ns32k/merlin.h
      	(PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
      	config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
      	(PRINT_OPERAND): Don't use local version of union
      	real_extract.
      
      	* config/convex/convex.c (check_float_value), config/vax/vax.c
      	(vax_float_literal), config/m88k/m88k.md (divdf3),
      	config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
      	config/pdp11/pdp11.c (output_move_quad): Don't do host
      	arithmetic on target floating point quantities.
      
      	* config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
      	(output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
      
      	* fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
      	Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
      
      	* real.c (earith): Test INFINITY rather than REAL_INFINITY;
      	NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
      	INFINITY.
      	* print-rtl.c (print_rtx): Disable code which needs
      	floating-point emulator.
      	* libgcc2.c: Include float.h and use DBL_MANT_DIG,
      	FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
      	depending on HOST_FLOAT_FORMAT to be defined properly.
      
      	* ch/grant.c, cp/error.c: Always use REAL_VALUE_TO_DECIMAL;
      	don't test REAL_IS_NOT_DOUBLE.
      
      	* config/1750a/1750a.c (get_double, float_label): Delete.
      	(print_operand): Delete huge commented-out chunk.  Use
      	REAL_VALUE_TO_DECIMAL.
      	* config/1750a/1750a-protos.h: Delete prototypes of deleted
      	functions.
      	* config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
      	IEEE_FLOAT_FORMAT.
      	* config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
      	Use REAL_VALUE_TO_DECIMAL as ELF version does.
      	* config/m88k/m88k.c (real_power_of_2_operand,
      	legitimize_operand): Take the REAL_VALUE_TYPE and/or union
      	real_extract out of the union; run the input through
      	REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
      	from that into the union.
      	* config/pdp11/pdp11.c (output_move_double): Rearrange
      	parentheses to make automatic indenter happy.
      
      	* doc/tm.texi (Cross-compilation): Rename node to "Floating
      	Point" and rewrite to describe current situation.  Also adjust
      	documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
      	match code.
      	* doc/rtl.texi: Adjust cross reference.
      
      From-SVN: r51210
      Zack Weinberg committed
  26. 22 Mar, 2002 3 commits
    • c-pragma.c (maybe_apply_renaming_pragma): New. · 41c64394
              * c-pragma.c (maybe_apply_renaming_pragma): New.
              (handle_pragma_redefine_extname, pending_redefine_extname): New.
              (handle_pragma_extern_prefix, pragma_extern_prefix): New.
              (init_pragma): Register them.
              * c-pragma.h (maybe_apply_renaming_pragma): Declare.
              * c-decl.c (finish_decl): Call it.
              * cp/decl.c (cp_finish_decl): Likewise.
              * doc/extend.texi: Document the new pragmas.
      
              * config/alpha/osf.h (CPP_SUBTARGET_SPEC): Add __EXTERN_PREFIX.
              (HANDLE_PRAGMA_EXTERN_PREFIX): New.
      
              * config/i386/sol2.h (CPP_PREDEFINES): Add __PRAGMA_REDEFINE_EXTNAME.
              (HANDLE_PRAGMA_REDEFINE_EXTNAME): New.
              * config/sparc/sol2.h: Likewise.
      
              * g++.dg/other/pragma-re-1.C: New.
              * g++.dg/other/pragma-ep-1.C: New.
              * gcc.dg/pragma-re-1.c, gcc.dg/pragma-re-2.c: New.
              * gcc.dg/pragma-ep-1.c, gcc.dg/pragma-ep-2.c: New.
              * gcc.dg/pragma-ep-3.c: New.
      
      From-SVN: r51200
      Richard Henderson committed
    • cpphash.h (struct cpp_reader): Remove mls_line and mls_col. · d4e6133f
              * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
              * cpplex.c (unterminated): Delete.
              (parse_string): No string literal may extend over multiple
              lines.  Suppress the error when preprocessing assembly.
      	* cppmain.c (scan_translation_unit): Strings are single-line.
      
              * doc/cpp.texi: Update to match.
              * testsuite/gcc.dg/cpp/multiline.c: Update to match.
      
      From-SVN: r51195
      Neil Booth committed
    • cpplib.h (struct cpp_options): New member, warn_endif_labels. · 909de5da
      2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
      
      	* cpplib.h (struct cpp_options):  New member, warn_endif_labels.
      	* cppinit.c (cpp_create_reader):  On by default.
      	(cpp_handle_option):  Handle -W[no-]endif-labels.
      	(cpp_post_options):  Also enable if -pedantic.
      	* cpplib.c (do_else):  Use it.
      	(do_endif):  Likewise.
      	* doc/cppopts.texi:  Document new option.
      	* doc/invoke.texi:  Document new option.
      
      From-SVN: r51190
      Phil Edwards committed