aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-10-09decl.c (java_init_decl_processing): Declare signers field.Tom Tromey3-0/+7
* decl.c (java_init_decl_processing): Declare signers field. * class.c (make_class_data): Set signers field. From-SVN: r72270
2003-10-09config.gcc: Remove redundant thread_file setting clauses for various ↵Nathanael Nerode2-11/+5
*-*-linux* targets. * config.gcc: Remove redundant thread_file setting clauses for various *-*-linux* targets. From-SVN: r72269
2003-10-09* config/h8300/h8300.md (define_asm_attributes): New.Kazu Hirata2-0/+10
From-SVN: r72264
2003-10-09optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note to the ↵Roger Sayle2-58/+55
comparison... * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note to the comparison, as emit_libcall_block calls copy_rtx on equiv. From-SVN: r72262
2003-10-09haifa-sched.c (ok_for_early_schedule): New function.Dorit Naishlos12-3/+514
* haifa-sched.c (ok_for_early_schedule): New function. (early_queue_to_ready): New function. (schedule_block): Allow early removal of insns from Q. (schedule_insn): Update INSN_TICK in case of premature issue. * common.opt (sched_stalled_insns): New flag. (sched_stalled_insns_dep): New flag. * flags.h: Same above flags. * opts.c: Same as above. * toplev.c: Same as above. * target.h (targetm.sched.is_costly_dependence): New hook. * target-def.h: Same as above. * config/rs6000/rs6000.h: (rs6000_sched_costly_dep): Support new flag -msched-costly-dep. (DEFAULT_SCHED_COSTLY_DEP): Define. * config/rs6000/rs6000.c: (rs6000_is_costly_dependence): New function. (is_load_insn, is_store_insn): New functions. (is_load_insn1, is_store_insn1, is_mem_ref): New functions. * doc/invoke.texi (-fsched-stalled-insns-dep) (-fsched-stalled-insns, -msched-costly-dep): Document options. * doc/tm.texi (is_costly_dependence): Define new scheduler target hook. From-SVN: r72261
2003-10-09re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))Jason Merrill1-0/+7
PR c++/6392 * cp/tree.c (build_cplus_array_type): Handle all quals the same. (cp_build_qualified_type_real): Look through arrays first. * c-common.c (c_build_qualified_type): Look through arrays first. (c_apply_type_quals_to_decl): Look through arrays. From-SVN: r72260
2003-10-09re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))Jason Merrill4-70/+87
PR c++/6392 * cp/tree.c (build_cplus_array_type): Handle all quals the same. (cp_build_qualified_type_real): Look through arrays first. * c-common.c (c_build_qualified_type): Look through arrays first. (c_apply_type_quals_to_decl): Look through arrays. * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for types with constructors. From-SVN: r72259
2003-10-09tweak whitespaceJason Merrill1-2/+2
From-SVN: r72256
2003-10-09stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here.Jason Merrill10-14/+50
* stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here. (expand_asm_operands): Not here. (parse_input_constraint): No longer static. * tree.h: Declare it. * coverage.c (build_ctr_info_value): Use build_decl to make a VAR_DECL. (create_coverage): Likewise. java/ * parse.y (patch_assignment): Use make_node to create a BLOCK. * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a POINTER_TYPE. cp/ * tree.c (build_cplus_new): Use build_decl to create a VAR_DECL. (build_target_expr_with_type): Likewise. * pt.c (instantiate_class_template): Sanity check that our enclosing class has been instantiated. From-SVN: r72255
2003-10-09t-linux (SHLIB_LINK): Override to use a linker script libgcc_s.so.Kaz Kojima2-0/+26
* config/sh/t-linux (SHLIB_LINK): Override to use a linker script libgcc_s.so. (SHLIB_INSTALL): Likewise. From-SVN: r72254
2003-10-09install.texi: Remove reference to removed 'pthreads' thread option.Nathanael Nerode2-4/+5
* doc/install.texi: Remove reference to removed 'pthreads' thread option. From-SVN: r72253
2003-10-09Daily bump.GCC Administrator1-1/+1
From-SVN: r72250
2003-10-08rs6000.md ("abssi2_isel"): Add early clobber to operand 2.Aldy Hernandez2-1/+6
2003-10-08 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to operand 2. From-SVN: r72247
2003-10-08config.gcc: Don't accept --enable-threads=pthreads.Nathanael Nerode4-15/+24
* config.gcc: Don't accept --enable-threads=pthreads. Clean up related case statements. * configure.in: Don't accept --enable-threads=pthreads, decosf1, mach, or os2 (none of which work anyway). Alphabetize supported thread files in case clause. * configure: Regenerate. From-SVN: r72244
2003-10-08function.c (pad_to_arg_alignment): Move 'boundary_in_bytes' definition to ↵Geoffrey Keating2-2/+6
above SPARC_STACK_BOUNDARY_HACK. * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes' definition to above SPARC_STACK_BOUNDARY_HACK. From-SVN: r72241
2003-10-08c-pretty-print.c (pp_c_postfix_expression): Fix thinko.Jason Merrill2-1/+6
* c-pretty-print.c (pp_c_postfix_expression) <COMPOUND_LITERAL_EXPR>: Fix thinko. From-SVN: r72236
2003-10-08* mklibgcc.in: Don't hide undefined or typeless symbols.Rainer Orth2-1/+7
From-SVN: r72235
2003-10-08re PR rtl-optimization/12142 (-fnon-call-exceptions generates incorrect code)John David Anglin3-36/+48
PR optimization/12142 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the uses of the register in the SET_SRC. Remove unnecessary argument. * pa.c (legitimize_pic_address): Before reload, use a scratch register for the intermediate result in loading the address of a SYMBOL_REF. Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn which loads the SYMBOL_REF address. From-SVN: r72234
2003-10-08re PR bootstrap/12490 (buffer overflow in scan-decls.c)Timo Kokkonen2-1/+17
PR bootstrap/12490 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant to define the size of the extern_C_braces array. Set it to 200. (scan_decls): Abort when extern_C_braces_length is out-of-bounds. Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr> From-SVN: r72224
2003-10-08Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand a space after ↵Carlo Wood2-1/+7
the -o option. * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand a space after the -o option. flex 2.5.31 understands both, with and without the space. Removed that space. From-SVN: r72223
2003-10-08mips.c (mips_frame_info): Add cprestore_size field.Richard Sandiford2-16/+33
* config/mips/mips.c (mips_frame_info): Add cprestore_size field. (compute_frame_size): Initialize it. Remove the .cprestore slot from args_size. (mips_output_function_prologue): Simplify accordingly. (mips_debugger_offset): Change the mips16 frame pointer offset from current_function_outgoing_args to cfun->machine->frame.args_size. (mips_initial_elimination_offset): Likewise. (mips_expand_prologue): Likewise. (mips_expand_epilogue): Likewise. From-SVN: r72222
2003-10-08mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.Richard Sandiford3-9/+24
* config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint. (EXTRA_MEMORY_CONSTRAINT): Define. (CAN_ELIMINATE): Remove lwu workaround. * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too. Use a 'W' constraint for the source operand. From-SVN: r72221
2003-10-08genopinit.c (main): Output code to declare undefined variables.Kazu Hirata2-0/+10
* genopinit.c (main): Output code to declare undefined variables. From-SVN: r72220
2003-10-08Fix pathname in last delta.Richard Sandiford1-1/+1
From-SVN: r72219
2003-10-08* testsuite/gcc.c-torture/compile/mipscop-[1-4].c: Disable for mips16.Richard Sandiford5-0/+12
From-SVN: r72218
2003-10-08error2.C: New test.Giovanni Bajo2-0/+14
2003-10-08 Giovanni Bajo <giovannibajo@libero.it> * g++.dg/parse/error2.C: New test. From-SVN: r72216
2003-10-08cp_tree.h: Added TFF_NO_FUNCTION_ARGUMENTS.Giovanni Bajo3-4/+15
* cp_tree.h: Added TFF_NO_FUNCTION_ARGUMENTS. * error.c (dump_function_decl): Use it to skip the dump of the arguments. (dump_expr): When dumping a declaration found within an expression, always set TFF_NO_FUNCTION_ARGUMENTS in the flags. From-SVN: r72215
2003-10-08Daily bump.GCC Administrator1-1/+1
From-SVN: r72213
2003-10-08re PR c++/11097 (using template operator is broken)Giovanni Bajo3-1/+26
PR c++/11097 * g++.dg/other/error5.C: Modify the error message. * g++.dg/lookup/using8.C: New test. From-SVN: r72211
2003-10-07gengtype-lex.l: Remove -Wtraditional cruft.Kelley Cook3-7/+6
2003-10-07 Kelley Cook <kcook@gcc.gnu.org> * gengtype-lex.l: Remove -Wtraditional cruft. * Makefile.in (gengtype-lex.c): Likewise. From-SVN: r72210
2003-10-07Remove accidentally committed piece of patch.Geoffrey Keating1-91/+76
From-SVN: r72209
2003-10-08re PR c++/11097 (using template operator is broken)Giovanni Bajo2-0/+8
PR c++/11097 * pt.c (tsubst_decl): Substitute also the DECL_NAME node of USING_DECL. From-SVN: r72208
2003-10-07* cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.Zdenek Dvorak2-10/+18
From-SVN: r72207
2003-10-07re PR c++/12519 (ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761)Jason Merrill3-1/+28
PR c++/12519 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if it isn't a decl. From-SVN: r72206
2003-10-07re PR bootstrap/12173 (IRIX 6 O32 (with as) bootstrap failure due to gcc -g ↵Alexandre Oliva2-1/+7
-E warning) 2003-10-07 Alexandre Oliva <aoliva@redhat.com> * gcc.c (cpp_options): Only pass -fworking-directory for -g* if not overridden. Fixes PR bootstrap/12173. From-SVN: r72201
2003-10-07errors.c: Don't include coretypes.h or tm.h.Zack Weinberg3-24/+25
* errors.c: Don't include coretypes.h or tm.h. (trim_filename): Use IS_DIR_SEPARATOR. * Makefile.in: Update dependencies of errors.o and $(BUILD_PREFIX_1)errors.o. From-SVN: r72200
2003-10-07function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account ↵Geoffrey Keating9-92/+267
when aligning arguments. 2003-10-07 Geoffrey Keating <geoffk@apple.com> * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into account when aligning arguments. * calls.c (STACK_POINTER_OFFSET): Move default from here ... * defaults.h (STACK_POINTER_OFFSET): ... to here. * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS. (SPARC_STACK_BOUNDARY_HACK): Define. * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems, arrange for vector parameters to varargs functions to be passed in both memory and GPRs when appropriate. (rs6000_va_arg): Vector arguments passed in memory are 16-byte aligned. Index: testsuite/ChangeLog 2003-10-07 Geoffrey Keating <geoffk@apple.com> * gcc.dg/darwin-abi-2.c: New file. * gcc.c-torture/execute/va-arg-24.c: New file. From-SVN: r72199
2003-10-07Correct ChangeLog entry for last changeGeoffrey Keating1-22/+28
From-SVN: r72198
2003-10-07hooks.c (hook_bool_tree_true): New.Geoffrey Keating8-89/+141
* hooks.c (hook_bool_tree_true): New. (hook_rtx_tree_int_null): New. (hook_rtx_rtx_null): Use NULL, not 0. * hooks.h: Add 'extern' to everything. (hook_bool_tree_true): New. (hook_rtx_tree_int_null): New. * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New. * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New. * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove prototype. * config/rs6000/rs6000.c (rs6000_return_in_memory): New. (setup_incoming_varargs): Prototype. (TARGET_PROMOTE_FUNCTION_ARGS): Define. (TARGET_PROMOTE_FUNCTION_RETURN): Define. (TARGET_STRUCT_VALUE_RTX): Define. (TARGET_RETURN_IN_MEMORY): Define. (TARGET_SETUP_INCOMING_VARARGS): Define. (TARGET_STRICT_ARGUMENT_NAMING): Define. (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define. (init_cumulative_args): Use rs6000_return_in_memory. (setup_incoming_varargs): Make 'static'. * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete. (PROMOTE_FUNCTION_RETURN): Delete. (STRUCT_VALUE): Delete. (RETURN_IN_MEMORY): Delete. (SETUP_INCOMING_VARARGS): Delete. From-SVN: r72197
2003-10-07spec10.C: Set exit value to zero on success.Bob Wilson2-5/+10
* g++.dg/template/spec10.C: Set exit value to zero on success. Fix indentation. From-SVN: r72195
2003-10-07invoke.texi (Warning Options): Simplify and clarify the descriptions of ↵Gerald Pfeifer2-6/+11
-Wnonnull and -Winit-self. * doc/invoke.texi (Warning Options): Simplify and clarify the descriptions of -Wnonnull and -Winit-self. From-SVN: r72194
2003-10-07optabs.c (init_intraclass_conv_libfuncs): Fix order of array indicees for ↵Richard Earnshaw2-2/+7
floating-point conversersion libcalls. * optabs.c (init_intraclass_conv_libfuncs): Fix order of array indicees for floating-point conversersion libcalls. From-SVN: r72193
2003-10-07Makefile.in: Add more comments separating large conceptually separate sections.Nathanael Nerode2-0/+9
* Makefile.in: Add more comments separating large conceptually separate sections. From-SVN: r72192
2003-10-07configure.in: Clean up thread file logic.Nathanael Nerode3-275/+278
* configure.in: Clean up thread file logic. * configure: Regenerate. From-SVN: r72191
2003-10-07cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.Danny Smith3-6/+28
* config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define. (switch_to_section): Handle in_readonly_data. * config/i386/winnt.c (i386_pe_asm_named_section): Handle readonly data. From-SVN: r72189
2003-10-07arm.md (cmpsi2_addneg): New ARM pattern.Richard Earnshaw5-0/+176
* arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate it. (cbranchne_decr1): New Thumb pattern. * arm.c (arm_addimm_operand): New insn predicate. * arm-protos.h: Add a prototype for it. * arm.h (PREDICATE_CODES): Add it. From-SVN: r72188
2003-10-07sched-int.h (sched_info): New field sched_max_insns_priority.Dorit Naishlos8-7/+141
* sched-int.h (sched_info): New field sched_max_insns_priority. * sched-rgn.c (init_ready_list): Add invocations to targetm.sched.adjust_priority. (sched_max_insns_priority): Init new field. * sched-ebb.c (sched_max_insns_priority): Init new field. * haifa-sched.c (set_priorities): Set sched_info->sched_max_insns_priority. * config/rs6000/rs6000.h: (rs6000_sched_restricted_insns_priority_str): Support new flag -mprioritize-restricted-insns. (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define. * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New function. (rs6000_adjust_priority): Change priority of restricted insns, using above new function and new flag. * doc/invoke.texi (-mprioritize-restricted-insns): Document new option. From-SVN: r72186
2003-10-07expr.c (cmpstr_optab, [...]): New.Zack Weinberg5-87/+78
* expr.c (cmpstr_optab, cmpmem_optab): New. * genopinit.c: Initialize them. * optabs.h: Declare them. * optabs.c (init_optabs): Clear them. (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find block memory compare insns, not conditional chains. Restructure the fallback generation of a call to memcmp/bcmp for better readability. From-SVN: r72185
2003-10-07re PR c++/10147 (Confusing error message for invalid template function argument)Mark Mitchell11-11/+75
PR c++/10147 * call.c (initialize_reference): Tweak error message. PR c++/12337 * init.c (build_new_1): Make sure that the expression returned is not an lvalue. PR c++/12344, c++/12236, c++/8656 * decl.c (start_function): Do not ignore attributes embedded in a function declarator. PR c++/12337 * g++.dg/init/new9.C: New test. PR c++/12334, c++/12236, c++/8656 * g++.dg/ext/attrib8.C: New test. From-SVN: r72183
2003-10-07mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.Richard Sandiford3-478/+310
* config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro. (mips_save_restore_fn): New typedef. (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove. (mips_set_frame_expr, mips_frame_set): Move above prologue code. (save_restore_insns): Remove, replacing with... (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns. (mips_save_reg, mips_restore_reg): New function. (mips_expand_prologue, mips_expand_epilogue): Rework. * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove. (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros. (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros. From-SVN: r72182