Commit Graph

40024 Commits

Author SHA1 Message Date
Chris Sears
00cc944db9 interpret.cc (ARRAYBOUNDSCHECK): New macro.
2002-01-08  Chris Sears  <cbsears_sf@yahoo.com>

	* interpret.cc (ARRAYBOUNDSCHECK): New macro.
	(continue1) [insn_iaload, insn_laload, insn_faload, insn_daload,
	insn_aaload, insn_baload, insn_caload, insn_saload, insn_iastore,
	insn_lastore, insn_fastore, insn_dastore, insn_aastore,
	insn_bastore, insn_castore, insn_sastore]: Use it.
	(continue1) [insn_arraylength]: Check for null array.

From-SVN: r48652
2002-01-08 19:07:46 +00:00
Zack Weinberg
0d24f4d131 Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or except.h.
* Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
	except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
	(cppinit.o): Depend on except.h.
	(gencheck.h, options.h, specs.h, s-gencheck, s-options,
	s-specs): New rules.

	* configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
	Don't create specs.h/options.h/gencheck.h here.  Remove
	unnecessary variable settings from last argument of AC_OUTPUT.
	* config.in, configure: Regenerate.
	* intl.c: Hardcode package name as "gcc".

	* cppinit.c: Include except.h.
	(builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
	appropriate.
	* unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
	Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
	(!)USING_SJLJ_EXCEPTIONS.
	* doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.

From-SVN: r48651
2002-01-08 19:03:20 +00:00
Joseph Myers
ed722f66dd tm.texi (ASM_OUTPUT_EH_REGION_BEG, [...]): Remove documentation of obsolete macros.
* doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
	ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
	OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
	documentation of obsolete macros.
	* system.h: Poison these macros.
	* config/d30v/d30v.h, config/ns32k/encore.h,
	config/stormy16/stormy16.h: Remove definitions and commented out
	definitions of obsolete macros.

From-SVN: r48650
2002-01-08 18:16:25 +00:00
Nicola Pero
31e5e29ab3 Removed spurious warnings when compiling Objective-C
From-SVN: r48649
2002-01-08 18:03:56 +00:00
Nicola Pero
c18736ac11 Remove spurious warnings of the like '__objc_class_ref_NSObject defined but
not used'

From-SVN: r48648
2002-01-08 18:03:11 +00:00
H.J. Lu
c9f115ad25 special.exp: Add -I${srcdir}/../../libobjc for header files.
2002-01-08  H.J. Lu <hjl@gnu.org>

	* objc.dg/special/special.exp: Add -I${srcdir}/../../libobjc
	for header files.

From-SVN: r48647
2002-01-08 09:35:09 -08:00
Andreas Jaeger
b78237cdee Remove erroneous checkin on wrong branch.
From-SVN: r48646
2002-01-08 17:51:38 +01:00
Andreas Jaeger
90f0738469 * gcse.c (gcse_main): Disable store_motion until it gets fixed.
From-SVN: r48645
2002-01-08 17:44:45 +01:00
Ulrich Weigand
bc1fa59ccd linux.h (ASM_OUTPUT_LABELREF): Remove.
* config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
	* config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
	to insn adjusting stack/frame pointer.
	* config/s390/s390.md (reload_la_64, reload_la_31): Do not
	accept operands that cause the insn to be non-splittable.

From-SVN: r48643
2002-01-08 13:11:23 +00:00
Geoffrey Keating
acd8ea2ae0 altivec-4.c: Make the 'char' entries signed also for consistency.
* gcc.dg/altivec-4.c: Make the 'char' entries signed also for
	consistency.

From-SVN: r48641
2002-01-08 10:32:57 +00:00
Graham Stott
426b490f88 * search.c (SET_BINFO_ACCESS): Add parenthesis.
From-SVN: r48640
2002-01-08 10:23:01 +00:00
Graham Stott
18e314ada8 pt.c (ccat): Uppercase macro parameter.
* pt.c (ccat): Uppercase macro parameter.
        (cat): Likewise

From-SVN: r48639
2002-01-08 10:22:28 +00:00
Graham Stott
ff0b0e4c4e mangle.c (MANGLE_TRACE): Add parenthesis.
* mangle.c (MANGLE_TRACE): Add parenthesis.
        (MANGLE_TRACE_TREE): Likewise.
        (write_signed_number): Likewise.
        (write_unsigned_number): Likewise.

From-SVN: r48638
2002-01-08 10:21:56 +00:00
Graham Stott
84b4a6f866 Remove change log entries for error.c
From-SVN: r48637
2002-01-08 10:21:17 +00:00
Graham Stott
75ac8dec77 decl.c (BINDING_LEVEL): Add parenthesis.
* decl.c (BINDING_LEVEL): Add parenthesis.
        (DEF_OPERATOR): Likewise.

From-SVN: r48636
2002-01-08 10:19:10 +00:00
Graham Stott
12f50451ab class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and whitespace.
* class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
        whitespace.
        (VTT_MARKED_BINFO_P): Likewise.

From-SVN: r48635
2002-01-08 10:18:40 +00:00
Graham Stott
f11f20b0f5 call.c (convert_like): Add parenthesis and wrap.
* call.c (convert_like): Add parenthesis and wrap.
        (convert_like_with_context): Likewise.
        (ICS_RANK): Whitespace.
        (NEED_TEMPORARY_P): Remove parenthesis.

From-SVN: r48634
2002-01-08 10:18:06 +00:00
Graham Stott
9180074778 xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
* xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
        (PALLOC): Uppercase macro parameter and whitespace.
        (SALLOC): Uppercase macro parameter.
        (SFREE): Uppercase macros parameter, add parenthese and
        whitespace.
        (STREQL): Uppercase macro parameter and whitespace.
        (STRNEQ): Likewise.
        (STRLSS): Likewise.
        (STRLEQ): Likewise.
        (STRGTR): Likewise.
        (STRGEQ): Likewise.

From-SVN: r48633
2002-01-08 10:17:21 +00:00
Graham Stott
a8086abfa0 c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
* c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
        (C_TYPE_FIELDS_VOLATILE): Likewise.
        (C_TYPE_BEING_DEFINED): Likewise.
        (C_IS_RESERVED_WORD): Likewise.
        (C_TYPE_VARIABLE_SIZE): Likewise.
        (C_DECL_VARIABLE_SIZE): Likewise.
        (C_MISSING_PROTOTYPE_WARNED): Likewise.
        (C_SET_EXP_ORIGINAL_CODE): Likewise.
        (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
        parenthesis.
        (C_DECL_ANTICIPATED): Likewise.
        (c_build_type_variant): Add parenthesis.

From-SVN: r48632
2002-01-08 10:03:10 +00:00
Joseph Myers
3f595aa14c re PR other/704 (--help and --version)
* gcc.c (option_map): Remove --version.
	(process_command): Handle -fversion following the GNU Coding
	Standards.  Partially addresses PR other/704.

f:
	* g77spec.c (lookup_option): Handle -fversion.
	(lang_specific_driver): Update copyright date in --version output.

From-SVN: r48631
2002-01-08 10:00:27 +00:00
Graham Stott
5bc5a8f9b7 * combine.c (combine_instructions): Fix typo.
From-SVN: r48630
2002-01-08 09:57:48 +00:00
Graham Stott
16ec4ebf00 * debug.h: Use "tree" and "rtx" throughout.
From-SVN: r48629
2002-01-08 09:54:39 +00:00
Gerald Pfeifer
489406028d invoke.texi: Markup g77 as @command.
* invoke.texi: Markup g77 as @command.  Remove reference to
	http://gcc.gnu.org/thanks.html.

From-SVN: r48628
2002-01-08 09:28:24 +00:00
GCC Administrator
bc68137d2a Daily bump.
From-SVN: r48626
2002-01-08 08:16:21 +00:00
Nick Clifton
4b69f385ca If a symbol ref is in the constant pool, use the pool's version of the symbol instead.
From-SVN: r48625
2002-01-08 06:52:57 +00:00
Richard Henderson
57d1019b98 regrename.c (find_oldest_value_reg): Ignore the value chain if the original register was copied in a mode with a...
* regrename.c (find_oldest_value_reg): Ignore the value chain if
        the original register was copied in a mode with a fewer number of
        hard registers than the desired mode.
        (copyprop_hardreg_forward_1): Likewise.
        (debug_value_data): Fix loop test.
        * toplev.c (parse_options_and_default_flags): Reenable
        -fcprop-registers at -O1.

From-SVN: r48624
2002-01-07 22:13:34 -08:00
Aldy Hernandez
70ec0b9b9f * testsuite/gcc.dg/altivec-4.c: Test altivec predicates.
From-SVN: r48623
2002-01-08 04:52:36 +00:00
Aldy Hernandez
fa066a2379 002-01-07 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
        (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.

        * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
        predicates.

        * config/rs6000/rs6000.md: Add altivec predicate patterns.

From-SVN: r48622
2002-01-08 04:50:33 +00:00
John David Anglin
8f949e7e12 pa.c (FUNC_BEGIN_PROLOG_LABEL, [...]): Define.
* pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
	(pa_output_function_prologue): Output local label at the beginning of
	the prologue when profiling.
	(hppa_profile_hook): Use the local label rather than the function label.
	* pa.h (PROFILE_BEFORE_PROLOGUE): Define.

From-SVN: r48621
2002-01-08 03:02:47 +00:00
Aldy Hernandez
c62f2db548 rs6000.c (bdesc_2arg): Add altivec predicates.
2002-01-07  Aldy Hernandez  <aldyh@redhat.com>

        * rs6000.c (bdesc_2arg): Add altivec predicates.

        * rs6000.c (print_operand): Remove extra space.
        (altivec_expand_unop_builtin): Fix thinko.
        (altivec_expand_binop_builtin): Same.
        (altivec_expand_ternop_builtin): Same.
        (altivec_expand_builtin): Same.

From-SVN: r48620
2002-01-08 01:13:36 +00:00
Richard Henderson
b5235ba76c * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
From-SVN: r48618
2002-01-07 16:37:34 -08:00
Jason Merrill
7d8ac2930b * unwind-dw2.c (execute_cfa_program): Use < again.
From-SVN: r48617
2002-01-07 17:41:42 -05:00
Jason Merrill
1b64d74774 add -mno-accumulate-outgoing-args on x86
From-SVN: r48616
2002-01-07 17:40:52 -05:00
Jakub Jelinek
571a03b876 * predict.c (combine_predictions_for_insn): Avoid division by zero.
From-SVN: r48615
2002-01-07 22:15:12 +01:00
Jakub Jelinek
2e9513841e simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
* simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
	Don't allow -1 - x -> ~x simplifications in the first pass.

	* gcc.c-torture/execute/20020107-1.c: New test.

From-SVN: r48614
2002-01-07 22:13:25 +01:00
Jason Merrill
15eb1e433c decl2.c (coerce_new_type): Downgrade error for size_t mismatch to pedwarn.
* decl2.c (coerce_new_type): Downgrade error for size_t mismatch
        to pedwarn.

        * method.c (make_thunk): If !flag_weak, give the thunk the
        function's linkage.
        (use_thunk): Here, too.

From-SVN: r48613
2002-01-07 15:52:32 -05:00
Aldy Hernandez
20e2671303 rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid arguments.
2002-01-07  Aldy Hernandez  <aldyh@redhat.com>

        * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
        arguments.
        (altivec_expand_binop_builtin): Same.
        (altivec_expand_unop_builtin): Same.
        (print_operand): Fix typo.
        (bdesc_1arg): Add vupk* variants.

        * rs6000.h (rs6000_builtins): Add vupk* enums.

        * rs6000.md: Add altivec_vupk* variants.

From-SVN: r48611
2002-01-07 20:43:18 +00:00
Joseph Myers
4dd57c1806 gcc.texi, [...]: Update copyright and last update dates.
* doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
	doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
	and last update dates.

From-SVN: r48610
2002-01-07 19:03:37 +00:00
Benjamin Kosnik
f2e12550ca Makefile.am (mkinstalldirs): Add.
2002-01-07  Benjamin Kosnik  <bkoz@redhat.com>
 	    Craig Rodrigues  <rodrigc@mediaone.net>

	libstdc++/5174
	* po/Makefile.am (mkinstalldirs): Add.
	* po/Makefile.in: Regenerate.

From-SVN: r48609
2002-01-07 18:57:06 +00:00
Janis Johnson
0341c5d2c0 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
From-SVN: r48608
2002-01-07 18:45:11 +00:00
Marek Michalkiewicz
c7f3e0b01f avr.c (avr_mcu_types): Add new MCU types.
* config/avr/avr.c (avr_mcu_types): Add new MCU types.
	* config/avr/avr.h (CPP_SPEC): Likewise.
	(LINK_SPEC): Likewise.
	(CRT_BINUTILS_SPECS): Likewise.
	* config/avr/t-avr (MULTILIB_MATCHES): Likewise.
	* doc/invoke.texi (AVR Options): Document them.

From-SVN: r48604
2002-01-07 15:04:35 +00:00
Jan Hubicka
6ba4d630f6 unroll.c (copy_loop_body): Always properly update JUMP_LABEL and LABEL_NUSES.
* unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
	LABEL_NUSES.

From-SVN: r48600
2002-01-07 11:00:39 +00:00
Graham Stott
b34c06e332 errors.c: Update copyright date.
* errors.c: Update copyright date.
        (print_scope_operator): Add parenthesis.
        (print_left_paren): Likewise.
        (print_right_paren): Likewise.
        (print_left_bracket): Likewise.
        (print_right_bracket): Likewise.
        (print_template_argument_list_start): Likewise.
        (print_template_argument_list_end): Likewise.
        (print_non_consecutive_character): Likewise.
        (print_tree_identifier): Likewise.
        (print_identifier): Likewise.
        (NEXT_CODE): Uppercase macro parameter.
        (ident_fndecl): Delete unused.
        (GLOBAL_THING): Likewise.

From-SVN: r48599
2002-01-07 09:11:11 +00:00
Graham Stott
d9a5f1807c i386.h: Update copyright date.
* config/i386/i386.h: Update copyright date.
        (HALF_PIC_PTR): Add parenthesis.
        (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
        (CONSTANT_ALIGNMENT): Add parenthesis.
        (DATA_ALIGNMENT): Likewise.
        (LOCAL_ALIGNMENT): Likewise.
        (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
        (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
        (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
        (HARD_REGNO_NREGS): Add paranethesis.
        (VALID_SSE_REG_MODE): Whitespace.
        (VALID_MMX_REG_MODE): Whitespace.
        (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
        (ix86_hard_regno_mode_ok): Add parenthesis.
        (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
        (RETURN_IN_MEMORY): Whitespace.
        (N_REG_CLASSES): Add parenthesis.
        (INTEGER_CLASS_P): Add parenthesis and wrap.
        (FLOAT_CLASS_P): Likewise.
        (SSE_CLASS_P): Likewise.
        (MMX_CLASS_P): Likewise.
        (MAYBE_INTEGER_CLASS_P): Likewise.
        (MAYBE_FLOAT_CLASS_P): Likewise.
        (MAYBE_SSE_CLASS_P): Likewise.
        (MAYBE_MMX_CLASS_P): Likewise.
        (Q_CLASS_P): Likewise.
        (REGNO_REG_CLASS): Add parenthesis.
        (GENERAL_REGNO_P): Uppercase macro parameter.
        (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
        (FP_REGNO_P): Likewise.
        (ANY_FP_REGNO_P): Uppercase macro parameter.
        (SSE_REGNO_P): Likewise.
        (SSE_REGNO): Likewise.
        (SSE_REG_P): Likewise.
        (SSE_FLOAT_MODE_P): Likewise.
        (MMX_REGNO_P): Likewise.
        (MMX_REG_P):Likewise.
        (STACK_REG_P): Likewise.
        (NON_STACK_REG_P): Likewise.
        (STACK_TOP_P): Likewise.
        (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
        (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
        (SECONDARY_MEMORY_NEEDED): Likewise.
        (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
        (MD_ASM_CLOBBERS): Whitespace and wrap.
        (MUST_PASS_IN_STACK): Whitespace and wrap.
        (RETURN_POPS_ARGS): Add parenthesis.
        (INIT_CUMULATIVE_ARGS): Likewise.
        (FUNCTION_ARG): Likewise.
        (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
        (SETUP_INCOMING_VARARGS): Likewise.
        (BUILD_VA_LIST_TYPE):  Add parenthesis.
        (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
        parenthsis.
        (EXPAND_BUILTIN_VA_ARG): Likewise.
        (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
        (INITIALIZE_TRAMPOLINE): Add parenthesis.
        (INITIAL_ELIMINATION_OFFSET): Likewise.
        (REGNO_OK_FOR_INDEX_P): Add parenthesis.
        (REGNO_OK_FOR_BASE_P): Likewise.
        (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
        (REGNO_OK_FOR_DIREG_P): Likewise.
        (REG_OK_FOR_INDEX_P): Whitespace.
        (REG_OK_FOR_BASE_P): Whitespace.
        (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
        parenthesis.
        (FIND_BASE_TERM): Fix typo.
        (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
        (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
        (SYMBOLIC_CONST; Whitespace.
        (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
        (ENCODE_SECTION_INFO): Whitespace.
        (FINALIZE_PIC): Remove do { ... } while (0).
        (PROMOTE_MODE): Wrap in do { ... } while (0).
        (CONST_COSTS): Whitespace.
        (RTX_COSTS): Add paramethesis, whitespace and wrap.
        (REGISTER_MOVE_COST): Add parenthesis.
        (MEMORY_MOVE_COST): Likewise.
        (EXTRA_CC_MODES): Whitespace.
        (SELECT_CC_MODE): Add parenthesis and whitespace.
        (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
        (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
        (ASM_OUTPUT_LABEL): Add paranethesis.
        (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
        (ASM_OUTPUT_REG_POP): Likewise.
        (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
        (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.

From-SVN: r48598
2002-01-07 09:06:00 +00:00
Graham Stott
07933f7233 i386.c: Update copyright.
* config/i386/i386.c: Update copyright.
        (CHECK_STACK_LIMIT): Add parenthesis.
        (AT_BP): Uppercase macro parameter.
        (x86_64_int_parameter_registers): Constify.
        (x86_64_int_return_registers): Likewise.
        (ix86_compare_op0): Use rtx.
        (construct_container): Constify INTREG parameter.
        (function_arg): Use rtx.

From-SVN: r48597
2002-01-07 08:52:56 +00:00
Graham Stott
0b4d32c964 diagnostic.h: Update copyright date.
* diagnostic.h: Update copyright date.
	(output_buffer_state): Add perenthesis.
	(output_buffer_format_args): Likewise.

From-SVN: r48596
2002-01-07 08:50:07 +00:00
Graham Stott
6253d571fa combine.c (combine_instructions): Replace XEXP (links, 0) with link.
* combine.c (combine_instructions): Replace XEXP (links, 0)
        with link.

From-SVN: r48595
2002-01-07 08:46:27 +00:00
GCC Administrator
c7941bcc1b Daily bump.
From-SVN: r48593
2002-01-07 08:16:13 +00:00
H.J. Lu
68f3f6f1a4 cfgcleanup.c (thread_jump): Fix 2 typos.
2002-01-06  H.J. Lu <hjl@gnu.org>

	* cfgcleanup.c (thread_jump): Fix 2 typos.

From-SVN: r48592
2002-01-06 18:14:30 -08:00
Aldy Hernandez
480f7f3a6b config.gcc: Add support for --enable-altivec.
2002-02-06  Aldy Hernandez  <aldyh@redhat.com>

        * config.gcc: Add support for --enable-altivec.

From-SVN: r48591
2002-01-07 01:30:10 +00:00