aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-06-28avr-protos.h: Replace avr_simplify_comparision_p with avr_simplify_comparison_p.Kazu Hirata3-3/+9
* config/avr/avr-protos.h: Replace avr_simplify_comparision_p with avr_simplify_comparison_p. * config/avr/avr.c: Likewise. From-SVN: r68650
2003-06-28builtins.c: Follow spelling conventions.Kazu Hirata1-0/+14
* builtins.c: Follow spelling conventions. * cgraph.c: Likewise. * cpplex.c: Likewise. * config/arm/arm.c: Likewise. * config/arm/iwmmxt.md: Likewise. * config/c4x/c4x-modes.def: Likewise. * config/c4x/c4x.c: Likewise. * config/c4x/c4x.h: Likewise. * config/c4x/c4x.md: Likewise. * config/i386/i386-interix.h: Likewise. * config/mips/mips.h: Likewise. From-SVN: r68649
2003-06-28builtins.c: Follow spelling conventions.Kazu Hirata11-16/+16
* builtins.c: Follow spelling conventions. * cgraph.c: Likewise. * cpplex.c: Likewise. * config/arm/arm.c: Likewise. * config/arm/iwmmxt.md: Likewise. * config/c4x/c4x-modes.def: Likewise. * config/c4x/c4x.c: Likewise. * config/c4x/c4x.h: Likewise. * config/c4x/c4x.md: Likewise. * config/i386/i386-interix.h: Likewise. * config/mips/mips.h: Likewise. From-SVN: r68648
2003-06-28m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate __mc68020__ on TARGET_68020.Neil Booth2-1/+7
* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate __mc68020__ on TARGET_68020. From-SVN: r68647
2003-06-28* config/h8300/h8300.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r68646
2003-06-28* c-parse.in (yylexstring): Use a location_t.Nathan Sidwell2-6/+7
From-SVN: r68645
2003-06-28error.c (print_instantiation_partial_context): Take a location_t.Nathan Sidwell2-10/+17
* error.c (print_instantiation_partial_context): Take a location_t. (print_instantiation_full_context): Adjust. (print_instantiation_context): Adjust. From-SVN: r68644
2003-06-28diagnostic.h (diagnostic_set_info): Replace file and lineno parameters with ↵Nathan Sidwell13-85/+77
a location_t. * diagnostic.h (diagnostic_set_info): Replace file and lineno parameters with a location_t. * diagnostic.c (diagnostic_set_info): Replace file and lineno parameters with a location_t. (inform, warning, pedwarn, error, sorry, fatal_error, internal_error, warning_with_decl, pedwarn_with_decl, error_with_decl): Adjust. * c-error.c (pedwarn_c99): Adjust. * c-format.c (status_warning): Adjust. * rtl-error.c (file_and_line_for_asm): Rename to ... (location_for_asm): Return a location_t. (diagnostic_for_asm): Adjust. * cp/cp-tree.h (cp_line_of, cp_file_of): Remove. * cp/error.c (cp_line_of, cp_file_of): Merge into ... (location_of): ... here. Make static, return a location_t. (cp_error_at, cp_warning_at, cp_pedwarn_at): Adjust. * testsuite/g++.old-deja/g++.robertl/eb133.C: Set expected line number. * testsuite/g++.old-deja/g++.robertl/eb133a.C: Likewise. * testsuite/g++.old-deja/g++.robertl/eb133b.C: Likewise. From-SVN: r68643
2003-06-28cpptrad.c (skip_macro_block_comment): New.Neil Booth2-1/+29
* cpptrad.c (skip_macro_block_comment): New. (copy_comment): Use it if appropriate. From-SVN: r68641
2003-06-28gcse.c (compute_ld_motion_mems): Use INSN_P instead of its definition.Kazu Hirata5-7/+18
* gcse.c (compute_ld_motion_mems): Use INSN_P instead of its definition. (store_killed_in_insn): Likewise. * print-rtl.c (print_rtx): Likewise. * config/frv/frv.c (frv_final_prescan_insn): Likewise. * config/m68hc11/m68hc11.c (dead_register_here): Likewise. (m68hc11_reassign_regs): Likewise. (m68hc11_reorg): Likewise. From-SVN: r68640
2003-06-28re PR c++/10784 (Warning about choosing custom operator over copy ↵Nathan Sidwell2-2/+7
constructor cannot be turned off (and it's useless in the first place)) PR c++/10784 * call.c (joust): Move warn_conversion check outwards. From-SVN: r68639
2003-06-28diagnostic.c (output_integer_with_precision): New macro.Gabriel Dos Reis2-105/+93
* diagnostic.c (output_integer_with_precision): New macro. (output_format): Use it. Handle more format specifiers. (output_long_decimal): Remove. (output_unsigned_decimal): Likewise. (output_long_unsigned_decimal): Likewise. (output_octal): Likewise. (output_long_octal): Likewise. (output_hexadecimal): Likewise. (output_long_hexadecimal): Likewise. (output_long_long_decimal): Likewise. From-SVN: r68638
2003-06-28* config/ia64/ia64.md: Follow recent emit_note API change.Andreas Schwab2-2/+6
From-SVN: r68637
2003-06-28c-parse.in (%union): Replace filename & lineno with location.Nathan Sidwell2-39/+36
* c-parse.in (%union): Replace filename & lineno with location. (save_filename, save_lineno): Remove. (save_location): New. (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl, nested_function, notype_nested_function, if_prefix, lineno_stmt, lineno_label, label): Adjust. From-SVN: r68636
2003-06-28Typo fix.Jakub Jelinek1-1/+1
From-SVN: r68635
2003-06-28builtins.c (c_strlen): Add only_value argument.Jakub Jelinek7-13/+127
* builtins.c (c_strlen): Add only_value argument. Handle COND_EXPR and COMPOUND_EXPR. (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar"). Adjust c_strlen callers. (expand_builtin_strcpy, expand_builtin_strncpy, expand_builtin_strcmp, expand_builtin_strncmp, expand_builtin_fputs, expand_builtin_sprintf, fold_builtin): Adjust c_strlen callers. * gcc.c-torture/execute/builtins/string-8.c: New test. * gcc.c-torture/execute/builtins/string-8-lib.c: New. * gcc.c-torture/execute/stdio-opt-1.c (main): Add new tests. * gcc.c-torture/execute/string-opt-7.c (main): Add new test. From-SVN: r68634
2003-06-28bb-reorder.c (find_traces_1_round): Do not send basic block to next round ↵Josef Zlomek2-2/+8
when we are in the last round. * bb-reorder.c (find_traces_1_round): Do not send basic block to next round when we are in the last round. From-SVN: r68633
2003-06-28Makefile.in: Update.Neil Booth6-188/+200
* Makefile.in: Update. * opts.c: Include tm_p.h. (handle_options): Make static. (decode_options): Copied from toplev.c. * opts.h (decode_options): New. * toplev.c (parse_options_and_default_flags): Move most to opts.c, some to... (general_init): ...here. (toplev_main): Use decode_options instead. * toplev.h (save_argc, save_argv): New. From-SVN: r68629
2003-06-28explow.c (find_next_ref): Remove.Kazu Hirata3-47/+5
* explow.c (find_next_ref): Remove. * rtl.h: Remove the prototype for find_next_ref. From-SVN: r68628
2003-06-28* Make-lang.in: Add missing space to comment.Matt Kraai1-1/+1
From-SVN: r68627
2003-06-28alpha.md (anonymous define_split): Adjust emit_note call to match recent API ↵Roger Sayle2-1/+6
change. * config/alpha/alpha.md (anonymous define_split): Adjust emit_note call to match recent API change. From-SVN: r68626
2003-06-27re PR other/10240 (HOST_CFLAGS in gcc/Makefile.in shouldn't include XCFLAGS)Gunther Nikl3-2/+6
PR other/10240 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host. * configure: Rebuilt. From-SVN: r68625
2003-06-28dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.Zack Weinberg7-7/+14
* dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration. f: * com.c (input_file_stack_tick): Delete redundant declaration. java: * gjavah.c (flag_jni): Make non-static. * parse-scan.y (ctxp): Make non-static. From-SVN: r68624
2003-06-27re PR target/11014 ([m68k] MIT / MOTOROLA assembly conflict)Gunther Nikl2-2/+18
PR target/11014 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly syntax for MIT / MOTOROLA. From-SVN: r68623
2003-06-28* c-format.c (check_format_string, get_constant)Zack Weinberg14-26/+49
* cfgrtl.c (rtl_split_edge): Mark the definition static, matching the forward declaration. cp: * decl.c (build_typename_type) * mangle.c (write_template_template_arg) * parser.c (cp_parser_scope_through_which_access_occurs) * pt.c (push_access_scope_real, push_access_scope, pop_access_scope) * repo.c (get_base_filename) * semantics.c (maybe_convert_cond): Mark the definition static, matching the forward declaration. java: * class.c (build_method_symbols_entry) * expr.c (get_offset_table_index) * jcf-parse.c (jcf_parse): Mark the definition static, matching the forward declaration. From-SVN: r68622
2003-06-28Daily bump.GCC Administrator1-1/+1
From-SVN: r68618
2003-06-27Patch from Gunther Nikl.Gunther Nikl2-1/+4
* unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define. From-SVN: r68616
2003-06-27re PR c++/10468 (const typeof(x) is non-const, but only in templates)Mark Mitchell4-1/+31
PR c++/10468 * pt.c (tsubst): Handle qualified TYPEOF_TYPEs correctly. PR c++/10468 * g++.dg/ext/typeof5.C: New test. From-SVN: r68615
2003-06-27mips.c (mips_build_va_list): Make padding in va_list structure explicit to ↵Chris Demetriou2-2/+15
avoid -Wpadded warnings. 2003-06-27 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.c (mips_build_va_list): Make padding in va_list structure explicit to avoid -Wpadded warnings. From-SVN: r68613
2003-06-27re PR c++/10796 (ICE (segfault) when defining an enum with two values: -1 ↵Mark Mitchell4-13/+49
and MAX_INT_64BIT) PR c++/10796 * decl.c (finish_enum): Implement DR377. * decl.c (cp_finish_decl): Don't make variables with reference type readonly while they are being initialized. PR c++/10796 * g++.dg/init/enum1.C: New test. From-SVN: r68610
2003-06-27s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.Ulrich Weigand7-96/+208
gcc/ChangeLog: * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define. * config/s390/s390.c (s390_secondary_output_reload_class): New function. * config/s390/s390-protos.h (s390_secondary_output_reload_class): Declare it. * config/s390/s390.md ("reload_outti", "reload_outdi", "reload_outdf"): New expanders. * config/s390/s390.md ("movti" + splitters): Handle non-offsettable memory operands as source. ("movdi" + splitters): Likewise. ("movdf" + splitters): Likewise. * config/s390/s390.c (s390_split_ok_p): New function. * config/s390/s390-protos.h (s390_split_ok_p): Declare it. gcc/testsuite/ChangeLog: * gcc.dg/20030627-1.c: New test. From-SVN: r68607
2003-06-27combine.c (force_to_mode): Replace the equality comparison of INTVALs with a ↵Kazu Hirata2-8/+10
pointer equality comparison. * combine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer equality comparison. (simplify_comparison): Likewise. From-SVN: r68603
2003-06-27jump.c (rtx_renumbered_equal_p): Replace an expression that is known to be 0 ↵Kazu Hirata2-3/+6
with 0. * jump.c (rtx_renumbered_equal_p): Replace an expression that is known to be 0 with 0. From-SVN: r68602
2003-06-27gcse.c (expr_equiv_p): Replace expressions that are known to be 0 with 0.Kazu Hirata2-4/+7
* gcse.c (expr_equiv_p): Replace expressions that are known to be 0 with 0. From-SVN: r68601
2003-06-27cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer ↵Kazu Hirata2-1/+6
equality comparison. * cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison. From-SVN: r68600
2003-06-27rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN are known to be ↵Kazu Hirata2-2/+5
not equivalent. * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN are known to be not equivalent. From-SVN: r68599
2003-06-27alpha.c (function_arg): Don't pass small aggregates in floating point registers.Richard Henderson4-33/+174
* config/alpha/alpha.c (function_arg): Don't pass small aggregates in floating point registers. Validate that we don't receive complex values here. Use #elif. (return_in_memory, function_value): New. (alpha_va_arg): Handle complex values as two arguments. * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory. (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value. (SPLIT_COMPLEX_ARGS): New. * config/alpha/alpha-protos.h: Update. From-SVN: r68591
2003-06-27ggc-page.c (inverse_table): Change type of mult to size_t.Ulrich Weigand2-14/+9
* ggc-page.c (inverse_table): Change type of mult to size_t. (compute_inverse): Compute inverse using size_t, not unsigned int. Compute inverse also for sizes larger than half a machine page. From-SVN: r68589
2003-06-27Remove extra bits from my previous commit.Devang Patel1-14/+0
I am sorry for the way I handled this -gused commit. From-SVN: r68587
2003-06-27toplev.c (rest_of_decl_compilation): Only varpoolize argument when called ↵Jan Hubicka2-2/+7
before cgraph_optimize. * toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before cgraph_optimize. From-SVN: r68583
2003-06-27re PR c++/11332 (Spurious error with casts in ?: expression)Mark Mitchell4-3/+22
PR c++/11332 * typeck.c (build_static_cast): Avoid returning expressions with reference type. PR c++/11332 * g++.dg/expr/static_cast2.C: New test. From-SVN: r68580
2003-06-27* config/darwin.h, config/elfos.h, config/i960/i960-coff.hZack Weinberg5-11/+17
* config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should be TARGET_ASM_FILE_START_FILE_DIRECTIVE. From-SVN: r68578
2003-06-27cgraph.c (cgraph_node, [...]): Avoid re-initializing of known_decls.Jan Hubicka2-2/+9
* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing of known_decls. From-SVN: r68573
2003-06-27defaults.h (REGISTER_MOVE_COST): Define default here.Hans-Peter Nilsson5-12/+10
* defaults.h (REGISTER_MOVE_COST): Define default here. * regclass.c: Don't define default REGISTER_MOVE_COST here. * reload.c, reload1.c: Ditto. From-SVN: r68567
2003-06-27* flags.h: Really install previous change.Richard Earnshaw2-7/+17
From-SVN: r68562
2003-06-27rtl.h (emit_note): Remove FILE parameter.Nathan Sidwell23-74/+113
* rtl.h (emit_note): Remove FILE parameter. * emit-rtl.c (emit_line_note): Adjust emit_note call. (emit_note): Remove FILE parameter. Adjust. * builtins.c (expand_builtin_expect): Adjust emit_note call. * c-semantics.c (genrtl_scope_stmt): Likewise. (expand_stmt): Likewise. * cfglayout.c (reemit_insn_block_notes): Likewise. (duplicate_insn_chain): Likewise. * except.c (expand_eh_region_start, expand_eh_region_end, sjlj_emit_function_enter): Likewise. * explow.c (probe_stack_range): Likewise. * expr.c (emit_block_move_via_loop): Likewise. * function.c (init_function_start, expand_function_start, expand_function_end, thread_prologue_and_epilogue_insns): Likewise. * integrate.c (expand_inline_function, copy_insn_list): Likewise. * reg-stack.c (compensate_edge): Likewise. * reload1.c (reload): Likewise. * rtlanal.c (hoist_insn_to_edge): Likewise. * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop, expand_loop_continue_here, expand_end_loop, expand_continue_loop, expand_exit_loop_top_cond, expand_value_return, expand_start_bindings_and_block, expand_end_bindings, expand_decl_cleanup, expand_start_case): Likewise. * unroll.c (copy_loop_body * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise. * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore, rs6000_emit_allocate_stack, rs6000_output_function_prologue, rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise. * config/sh/sh.c (sh_output_mi_thunk): Likewise. * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. * ada/misc.c (record_code_position): Likewise. From-SVN: r68561
2003-06-27c-tree.h (grokfield): Remove unused filename and line parameters.Nathan Sidwell5-123/+94
* c-tree.h (grokfield): Remove unused filename and line parameters. * c-decl.c (grokfield): Remove unused filename and line parameters. * c-parse.in (component_decl): Adjust field grokking rules, adjust grokfield calls. (component_declarator): Likewise. (component_notype_declarator): Likewise. * objc/objc-act.c (build_module_descriptor): Adjust grokfield calls. (build_protocol_template, build_method_prototype_list_template, build_method_prototype_template, build_category_template, build_selector_template, build_class_template, build_super_template, build_ivar_template, build_ivar_list_template, build_method_list_template, build_method_template, add_instance_variable): Likewise. From-SVN: r68560
2003-06-27stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be ↵Kazu Hirata2-1/+6
not equivalent. * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be not equivalent. From-SVN: r68557
2003-06-26final.c (debug_flush_symbol_queue): New function.Devang Patel9-22/+292
* final.c (debug_flush_symbol_queue): New function. (debug_queue_symbol): New function. (debug_free_queue): New function. (debug_nesting): New variable. (symbol_queue): New variable. (symbol_queue_index): Same. (symbol_queue_size): Same. * debug.h (debug_flush_symbol_queue): New. (debug_queue_symbol): New. (debug_free_queue): New. (debug_nesting): New. (symbol_queue_index): New. * dbxout.c (DBXOUT_DECR_NESTING): New macro. (DBXOUT_DECR_NESTING_AND_RETURN): New macro. (dbxout_init): Delay symbol output. (dbxout_global_decl): Save, set and reset TREE_USED bit around dbxout_symbol() call. (dbxout_begin_function): Same. (dbxout_finish): Free symbol queue. (dbxout_type): Put appropriate symbols in queue. (dbxout_symbol): Put info for symbol's type in queue. Decrement/Increment nesting counts flush symbol queue appropriately. (dbxout_parms): Increment dbxout nesting. (dbxout_reg_parms): Same. * flags.h (flag_debug_only_used_symbols): New. * toplev.c (flag_debug_only_used_symbols): New variable. (lang_independent_options): Add entries for new option -feliminate-unused-debug-symbols. * common.opt: Add entry for -feliminate-unused-debug-symbols. * opts.c (common_handle_options): Same. * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as -feliminate-unused-debug-symbols. * doc/invoke.texi (Debugging Options): Document -feliminate-unused-debug-symbols. From-SVN: r68556
2003-06-27builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to obtain the ↵Roger Sayle6-34/+60
format string instead of using... * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to obtain the format string instead of using TREE_STRING_POINTER and TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the return value is unused or the length of src is a known constant. * gcc.c-torture/execute/string-opt-16.c: Remove test for disabled sprintf(dst,"%s",src) optimization. * gcc.c-torture/execute/20030626-1.c: New test case. * gcc.c-torture/execute/20030626-2.c: New test case. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r68555