aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-07-09* doc/invoke.texi: Fix misspelling of "@item".Matt Kraai2-1/+5
From-SVN: r69123
2003-07-09* gcc.c-torture/compile/20030704-1.c: Add a comment.Kazu Hirata2-0/+10
From-SVN: r69122
2003-07-09i386.md: Remove an old comment about NOTICE_UPDATE_CC.Kazu Hirata2-3/+5
* config/i386/i386.md: Remove an old comment about NOTICE_UPDATE_CC. From-SVN: r69121
2003-07-09cgraph.c (cgraph_node_name): New function.Jan Hubicka7-64/+142
* cgraph.c (cgraph_node_name): New function. (dump_cgraph): Use it. * cgraph.h (cgraph_dump_file): Declare. (cgraph_node_name): Declare. * cgraphunit.c: Include timevar.h (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps. (cgraph_optimize_function): Use TV_INTEGRATION. (cgraph_mark_local_functions): reorganize dumps. (cgraph_mark_functions_to_inline_once): Likewise. (cgraph_optimize): Likewise; use timevar. * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New. * toplev.c (dump_file_index): Add DFI_cgraph. (dump_file_info): Likewise. (cgraph_dump_file): New global variable. (do_compile): Open and close cgraph dump. * invoke.texi (-d): Document new flag; renumber. From-SVN: r69120
2003-07-09re PR other/11370 (-Wunreachable-code gives false complaints)Roger Sayle5-2/+60
PR c/11370 * calls.c (emit_call_1): Don't bother popping the arguments off of the stack after a noreturn function call; The adjustment is dead. (expand_call): Likewise. * gcc.dg/Wunreachable-6.c: New testcase. * gcc.dg/Wunreachable-7.c: New testcase. From-SVN: r69119
2003-07-09expr.c (MOVE_MAX_PIECES): Move from here...Geoffrey Keating3-11/+16
* expr.c (MOVE_MAX_PIECES): Move from here... * defaults.h (MOVE_MAX_PIECES): ... to here. From-SVN: r69118
2003-07-09* Makefile.in (stage1-start): Handle an empty SUBDIRS.Matt Kraai2-1/+5
From-SVN: r69117
2003-07-09genattr.c (internal_dfa_insn_code): Don't prototype.Kaveh R. Ghazi5-25/+30
* genattr.c (internal_dfa_insn_code): Don't prototype. * genattrtab.c (attr_desc): Add `static_p' field. (expand_units): Make blockage range and ready cost functions static. (write_attr_get): Don't add extern prototypes in C file. Mark static functions as appropriate. (find_attr, make_internal_attr): Initialize static_p. * genattrtab.h (ATTR_STATIC): New macro. * genautomata.c (output_internal_reset_func): Mark output function as inline. (make_internal_dfa_insn_code_attr): Mark output function as static. From-SVN: r69116
2003-07-09genattrtab.h: Add new macros for attr `special' flags.Kaveh R. Ghazi4-24/+40
* genattrtab.h: Add new macros for attr `special' flags. * genattrtab.c (attr_desc): Reorder/resize fields better. Use attr `special' macros in all calls to make_internal_attr. * genautomata.c: Likewise. From-SVN: r69114
2003-07-09java-tree.h (DECL_NUM_STMTS): Rename to...Jan Hubicka21-45/+309
* java-tree.h (DECL_NUM_STMTS): Rename to... (DECL_ESTIMATED_INSNS): ... this. * lang.c (java_estimate_num_insns, java_estimate_num_insns_1): New static functions. (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Define. * parser.y (add_stmt_to_compound): Do not account statements. * cp-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New. * decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS. (start_function): Use DECL_ESTIMATED_INSNS. * optimize.c (maybe_clone_body): Use DECL_ESTIMATED_INSNS. * decl2.c (maybe_emit_vtables): Fix marking vtables as needed in unit-at-a-time * c-common.c (c_estimate_num_insns_1): New static function. (c_estimate_num_insns): New global function. * c-common.h (DECL_NUM_STMTS): Rename to... (DECL_ESTIMATED_INSNS): ... this. (c_estimate_num_insns): Declare. * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS. * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New. * c-semantics.c (add_stmt): Do not account statements. * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New. * langhooks.h (lang_hooks_for_tree_inlining): Add estimate_num_insns * params.def (max-inline-insns-auto, max-inline-insns-auto): set to 100. (max-inline-insns): set to 300. (min-inline-insns): set to 10. * tree-inline.c (struct inline_data): Rename inlined_stmts to inlined-insns. (INSNS_PER_STMT): Kill. (inlinable_function_p): Compute and store body size. (expand_call_inline): Likewise. (optimize_inline_calls): Likewise. From-SVN: r69113
2003-07-08partial fix for PR target/10021James E Wilson2-13/+22
partial fix for PR target/10021 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF, loop over new variable t2 instead of t. From-SVN: r69111
2003-07-09Daily bump.GCC Administrator1-1/+1
From-SVN: r69109
2003-07-08re PR bootstrap/11455 (Bootstrap failure in Cygwin)Danny Smith2-23/+20
PR bootstrap/11455 * config/i386/winnt.c: Replace use of error(), warning() with error_with_decl(), warning_with_decl(), throughout. From-SVN: r69107
2003-07-08* opts.c (wrap_help): Use unsigned int, not size_t.Neil Booth2-3/+7
From-SVN: r69106
2003-07-08* gcj.texi: CNI now expands to Compiled Native Interface.Mark Wielaard2-2/+6
From-SVN: r69103
2003-07-08m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives ↵Stephane Carrez2-1/+14
are incompatible with linker relaxation. * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are incompatible with linker relaxation. From-SVN: r69101
2003-07-08oops, left this bit outZack Weinberg1-0/+1
From-SVN: r69100
2003-07-08Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.Zack Weinberg12-6373/+46
* Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies. * fixinc/Makefile.in: Remove all references to gnu-regex.[och]. * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp. * fixinc/fixlib.h: Include xregex.h not gnu-regex.h. * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline): Escape { and } characters which are not part of range expressions. * fixinc/fixincl.x: Regenerate. From-SVN: r69099
2003-07-08re PR c/1687 (Exponential time behavior with -O -finline-functions (compile ↵Steven Bosscher4-4/+17
time regression from 3.2, 3.3)) 2003-07-08 Steven Bosscher <steven@gcc.gnu.org> PR c/1687 * tree-inline.c (find_alloca_call): Use walk_tree_without_duplicates, instead of walk_tree. (find_builtin_longjmp_call): Likewise. * c-objc-common.c (c_cannot_inline_fn): Likewise. * c-semantics.c (find_reachable_label): Likewise. From-SVN: r69097
2003-07-08re PR target/11420 ([x86_64] gcc generates invalid asm code when "-O -fPIC" ↵Jakub Jelinek6-36/+81
is used (suffix or operands invalid for `movabs')) PR c/11420 * config/i386/i386.c (ix86_check_movabs): New function. * config/i386/i386-protos.h (ix86_check_movabs): New prototype. * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative. (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions. * gcc.dg/20030708-1.c: New test. From-SVN: r69092
2003-07-08Makefile.in (install-po): Cope with empty CATALOGS.Chris Demetriou2-1/+5
2003-07-08 Chris Demetriou <cgd@broadcom.com> * Makefile.in (install-po): Cope with empty CATALOGS. From-SVN: r69091
2003-07-08elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.Richard Sandiford15-365/+227
* config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete. (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete. (SECTION_FUNCTION_TEMPLATE): Delete. * config/mips/elf.h: As for elf64.h. (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section. * config/mips/linux.h: As for elf.h * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete. * config/mips/iris6.h (EXTRA_SECTIONS): Delete. (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling of in_sdata from current_section_name and current_section_flags. * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete. * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes. (MASK_GP_OPT, TARGET_GP_OPT): Delete. (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value. (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt. (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove. * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override. (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6. (mips_classify_symbol): Use SYMBOL_REF_SMALL_P. (override_options): Remove setting of MASK_GPOPT. (mips_output_external): Use mips_in_small_data_p to check whether a symbol needs an .extern directive. Don't emit such directives for TARGET_EXPLICIT_RELOCS. (mips_declare_object): Update accordingly. (mips_select_rtx_section): Call named_section rather than SMALL_DATA_SECTION. (mips_select_section): Use default_elf_section_section for everything except .text string constants. (mips_in_small_data_p): New function. (mips_encode_section_info): Remove small data handling. (mips_unique_section): Delete. (iris6_section_type_flags): New function. * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic. From-SVN: r69090
2003-07-08Make-lang.in (f/g77.dvi): Use PWD_COMMAND.Rainer Orth4-2/+10
f: * Make-lang.in (f/g77.dvi): Use PWD_COMMAND. java: * Make-lang.in (java/gcj.dvi): Use PWD_COMMAND. From-SVN: r69089
2003-07-08re PR c++/11030 (Cannot befriend a template specialization)Kriang Lerdsuwanakij4-0/+41
PR c++/11030 * pt.c (instantiate_class_template): Don't call xref_tag to inject name when the friend class is a specialization. * g++.dg/template/friend19.C: New test. From-SVN: r69088
2003-07-08re PR target/11453 (gcc > 3.3 ICE)John David Anglin2-36/+57
PR Target/11453 * pa.md: Disparage all mtsar constraints. (extzv, extv, insv): Don't fail on length of {32|64}. From-SVN: r69087
2003-07-08system.h: Poison MAP_CHARACTER.Zack Weinberg7-166/+13
* system.h: Poison MAP_CHARACTER. * config/i370/i370-protos.h (mvs_map_char): Delete. * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete. * config/i370/i370.h (MAP_CHARACTER): Delete definition. (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER. f: * lex.c: Remove error block #ifdef MAP_CHARACTER. From-SVN: r69086
2003-07-08* toplev.c (randomize): Correct call to time().Danny Smith2-1/+5
From-SVN: r69083
2003-07-08unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and REG_EQUIV ↵Jakub Jelinek4-1/+65
notes as well. * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and REG_EQUIV notes as well. * g++.dg/opt/strength-reduce.C: New test. From-SVN: r69076
2003-07-08* doc/md.texi: Fix the description of addmodecc.Kazu Hirata2-2/+6
From-SVN: r69073
2003-07-08Makefile.tpl (configure-gcc): Depend on maybe-configure-intl.Zack Weinberg7-1950/+497
top: * Makefile.tpl (configure-gcc): Depend on maybe-configure-intl. * Makefile.in: Regenerate. config: * gettext.m4: Delete all former contents. (ZW_GNU_GETTEXT_SISTER_DIR): New macro. * progtest.m4: New file. gcc: * Makefile.in (top_builddir): Set to "..", not ".". (INTLLIBS, INTLDEPS): Delete. (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted. (LIBDEPS): Add $(LIBICONV_DEP). (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV). (INCLUDES): Replace -I../intl with @INCINTL@. ($(top_builddir)/intl/libintl.a): Delete rule. (stage2-start, stage3-start, stage4-start, stageprofile-start, stagefeedback-start): Use $$ for variable to be evaluated by shell, not make. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Delete. * aclocal.m4: sinclude ../config/progtest.m4. Add contents of lcmessage.m4 from gettext distro. * configure.in: Check for wchar.h and setlocale. Set LIBICONV_DEP to the empty string and substitute it. Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls; this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR, not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included in $LIBINTL, to avoid linking it twice. * configure, config.in: Regenerate. intl: * README: Update. * Makefile.in (INSTALL, INSTALL_DATA, MKINSTALLDIRS, mkinstalldirs, gettextsrcdir, l): Delete. (COMPILE): Add $(DEFS-$@), remove $(XCFLAGS). (HEADERS): libgnuintl.h not libgnuintl.h.in. Remove os2compat.h. (SOURCES): Remove os2compat.c. (DEFS-dcigettext.o, DEFS-localealias.o, DEFS-localcharset.o, DEFS-relocatable.o): New. (all-yes): Add config.intl. (libintl.h): Use cp, not cat. (INCLUDES): Remove -I.. (TAGS, CTAGS, ID): Word wrap. (mostlyclean, distclean): Remove junk. (config.intl): New rule. * aclocal.m4: sinclude ../config/progtest.m4 instead of including it inline. * config.intl.in: New file. * configure.in: Take out unnecessary AC_CONFIG_AUX_DIR. Take out AC_DEFINEs for LOCALEDIR, LOCALE_ALIAS_PATH, LIBDIR, INSTALLDIR. Set LIBINTL_DEP and INCINTL and AC_SUBST them. Add config.intl to AC_OUTPUT. * os2compat.c, os2compat.h: Delete, unused. From-SVN: r69071
2003-07-08mkfixinc.sh: Remove winnt support.Nathanael Nerode3-237/+5
* fixinc/mkfixinc.sh: Remove winnt support. * fixinc/fixinc.winnt: Delete with extreme prejudice. From-SVN: r69070
2003-07-08Forgotten commitNeil Booth1-0/+15
From-SVN: r69069
2003-07-08Makefile.in: Update.Neil Booth8-48/+145
* Makefile.in: Update. * c-opts.c (c_common_handle_option): opt_text now contains the '-'. * c.opt: Update documentation. * common.opt: Add some help text. * opts.c: Include intl.h. (wrap_help, print_help): New. (find_opt, handle_option, common_handle_option): opt_text now contains the '-'. Use print_help to output help. * opts.h (struct cl_option): New member "help". * opts.sh: Update to handle help text output and to prepend options with '-'. * toplev.c (display_help): Remove some help text. From-SVN: r69068
2003-07-07configure.in: Test for PowerPC mfcr field support in assembler.David Edelsohn9-17/+247
2003-07-07 David Edelsohn <edelsohn@gnu.org> Fariborz Jahanian <fjahanian@apple.com> * configure.in: Test for PowerPC mfcr field support in assembler. * config.in, configure: Regenderated. * config/rs6000/power4.md: Add mfcrf reservation. * config/rs6000/rs6000-protos.h (mfcr_operation): Declare. * config/rs6000/rs6000.c (mfcr_operation): Define. (print_operand): Add 'Q' case for mfcrf. * config/rs6000/rs6000.h (TARGET_MFCRF): New. * config/rs6000/rs6000.md (attribute "type"): Add mfcrf. (movcc_internal1): Emit optional field operand for mfcr and set "type" attribute appropriately. (mfcr SCC): Likewise. (movesi_from_cr_one): New. Co-Authored-By: Fariborz Jahanian <fjahanian@apple.com> From-SVN: r69064
2003-07-08cp-tree.h (build_scoped_method_call): Remove.Mark Mitchell18-927/+522
* cp-tree.h (build_scoped_method_call): Remove. (lookup_qualified_name): Remove parameter. (tsubst_copy_and_build): Declare. (finish_qualified_object_call_expr): Remove. (check_accessibility_of_qualified_id): New function. (finish_qualified_id_expr): Likewise. (non_reference): Likewise. (build_expr_from-tree): Remove. * call.c (non_reference): Remove. (build_scoped_method_call): Likewise. (build_method_call): Use error_operand_p. Assert that we are not processing a template. (standard_conversion): Use non_reference. * class.c (build_vtbl_entry_ref): Likewise. (build_vtbl_ref_1): Likewise. * cvt.c (build_expr_type_conversion): Use non_reference. * decl.c (lookup_qualified_name): Remove flags parameter. (grok_op_properties): Use non_reference. * decl2.c (grok_array_decl): Likewise. (build_expr_from_tree): Remove. (build_offset_ref_call_from_tree): Update comment. * error.c (parm_to_string): Call reinit_global_formatting_buffer. * except.c (prepare_eh_types): Use non_reference. (can_convert_eh): Likewise. * init.c (build_dtor_call): Avoid using build_method_call. * mangle.c (write_template_param): Remove misleading comment. * method.c (locate_copy): Use non_reference. * parser.c (cp_parser_scope_through_which_access_occurs): Remove. (cp_parser_primary_expression): Do not create SCOPE_REFs is non-dependent contexts. (cp_parser_postfix_expression): Use finish_qualified_id_expr. (cp_parser_direct_declarator): Use tsubst_copy_and_build, not build_expr_from_tree. (cp_parser_lookup_name): Adjust call to lookup_qualified_name. Use check_accessibility_of_qualified_id. * pt.c (maybe_fold_nontype_arg): Use tsubst_copy_and_build, not build_expr_from_tree. (tsubst_baselink): New function. (tsubst_qualified_id): Likewise. (tsubst_copy): Use them. Remove support for METHOD_CALL_EXPR. (tsubst_expr): Adjust call to lookup_qualified_name. (tsubst_copy_and_build): Handle SCOPE_REFs specially. Adjust handling of CALL_EXPRs. (value_dependent_expression_p): Use INTEGRAL_OR_ENUMERATION_TYPE_P. * rtti.c (get_tinfo_decl_dynamic): Use non_reference. * search.c (check_final_overrider): Likewise. * semantics.c (check_accessibility_of_qualified_id): New function. (finish_qualified_object_call_expr): Remove. * typeck.c (target_type): Use non_reference. (cxx_sizeof_or_alignof_type): Likewise. (dubious_conversion_warnings): Likewise. (convert_for_initialization): Likewise. (non_reference): New function. From-SVN: r69063
2003-07-08* config/i386/i386.md: Correct check-in of incorrect version.Roger Sayle2-4/+8
From-SVN: r69062
2003-07-08bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent ↵Kaveh R. Ghazi13-385/+409
stdio calls. gcc: * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls. * c-decl.c (c_print_identifier): Likewise. * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise. * print-rtl.c (print_rtx): Likewise. * print-tree.c (print_node_brief, print_node): Likewise. * system.h (HOST_PTR_PRINTF): Ensure we have a literal string. * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'. * config.in, configure: Regenerated. cp: * decl.c (print_binding_level, print_other_binding_stack, print_binding_stack): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls. * ptree.c (cxx_print_decl, cxx_print_binding): Likewise. From-SVN: r69061
2003-07-08re PR target/10979 (ICE in subst_stack_regs_pat with -O -ffast-math and atan2)Roger Sayle4-5/+87
PR target/10979 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3): Changed to define_expand patterns that copy operand[1] to prevent it from being clobbered before emitting an atan2?f3_1 insn. (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn patterns that actually specify the behaviour of x87's FPATAN. * gcc.dg/20030707-1.c: New testcase. From-SVN: r69060
2003-07-08Daily bump.GCC Administrator1-1/+1
From-SVN: r69058
2003-07-07rs6000.c (rs6000_output_mi_thunk): Remove bogus clearing of ↵Jakub Jelinek2-5/+20
SYMBOL_FLAG_LOCAL bit. * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus clearing of SYMBOL_FLAG_LOCAL bit. If vcall_offset fits into signed 16-bit immediate, use one instruction for both addition and load. From-SVN: r69055
2003-07-07opts.c (common_handle_option): Correct handling of the -falign- switches ↵Neil Booth2-4/+21
that do and don't take an argument. * opts.c (common_handle_option): Correct handling of the -falign- switches that do and don't take an argument. From-SVN: r69053
2003-07-07* friend.c: Convert to ISO C90 prototypes.Andreas Jaeger1-12/+6
From-SVN: r69052
2003-07-07h8300.md (pushqi1_h8300hs): Revert my patch today.Kazu Hirata2-2/+8
* config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch today. (pushhi1_h8300hs): Likewise. From-SVN: r69051
2003-07-07genextract.c: Convert remaining prototypes to ISO C90.Andreas Jaeger18-115/+86
2003-07-07 Andreas Jaeger <aj@suse.de> * genextract.c: Convert remaining prototypes to ISO C90. * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90. * fold-const.c (fold_single_bit_test): Likewise. * diagnostic.c (default_diagnostic_finalizer): Likewise. * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise. * gengtype.c (write_array): Generate ISO C90 prototypes. * genflags.c (gen_proto): Generate ISO C90 prototypes. For cp: 2003-07-07 Andreas Jaeger <aj@suse.de> * friend.c: Convert to ISO C90 prototypes. * Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output language. * cfns.h: Regenerate. * typeck.c: Convert remaining prototypes to ISO C90. * search.c: Likewise. * decl2.c (build_expr_from_tree): Convert prototype to ISO C90. * semantics.c (expand_or_defer_fn): Likewise * mangle.c (discriminator_for_string_literal): Likewise. * g++spec.c (lang_specific_driver): Likewise. * search.c (lookup_base_r): Remove unused variable. From-SVN: r69050
2003-07-07re PR rtl-optimization/11059 (empty union optimization ice)Roger Sayle4-10/+55
PR optimization/11059 * expr.c (can_store_by_pieces): Return true if length is zero. (store_by_pieces): If length is zero and endp is two, abort, othwerise, if length is zero and endp is not two, return "to". (clear_by_pieces): Do nothing if length is zero. (clear_storage): Do nothing if length is zero. (store_constructor): Simplify code when size is zero, or the target has already been cleared. This avoids emitting a blockage instruction when initializing empty structures. * g++.dg/opt/emptyunion.C: New testcase. From-SVN: r69049
2003-07-07mips-tfile.c: Convert prototypes to ISO C90.Andreas Jaeger3-359/+244
* mips-tfile.c: Convert prototypes to ISO C90. * mips-tdump.c: Convert prototypes to ISO C90. From-SVN: r69048
2003-07-07rtl.h (emit_line_note): Take a location_t.Nathan Sidwell21-81/+115
* rtl.h (emit_line_note): Take a location_t. (emit_line_note_force): Remove. (set_file_and_line_for_statement): Take a location_t. * tree.g (emit_line_note): Take a location_t. * emit-rtl.c (emit_line_note): Take a location_t. (emit_line_note_force): Remove. * function.c (init_function_start): Adjust emit_line_note call. (expand_function_end): Use force_next_line_note, not emit_line_note_force. * c-parse.in (maybe_type_qual): Adjust emit_line_note calls. * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt, genrtl_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt): Likewise. * expr.c (expand_expr): Likewise. * integrate.c (expand_inline_function): Likewise. * stmt.c (set_file_and_line_for_stmt): Take a location_t. (expand_decl_init): Adjust emit_line_note call. * ada/trans.c (build_unit_elab, set_lineno): Adjust emit_line_note calls. * cp/semantics.c: (genrtl_try_block) Adjust emit_line_note calls. * f/com.c (bison_rule_pushlevel_, bison_rule_compstmt_): Adjust emit_line_note calls. * f/ste.c (ffeste_emit_line_note_): Likewise. * java/expr.c (expand_byte_code): * treelang/treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_initial, tree_code_create_function_wrapup, tree_code_generate_return, tree_code_output_expression_statement): Adjust emit_line_note calls. From-SVN: r69047
2003-07-07Fix PR 10900.Dale Johannesen2-1/+5
From-SVN: r69045
2003-07-07i386-protos.h: Convert prototypes to ISO C90.Andreas Jaeger3-1052/+648
* config/i386/i386-protos.h: Convert prototypes to ISO C90. * config/i386/i386.c: Likewise. From-SVN: r69044
2003-07-07h8300.md: Use gen_int_mode instead of GEN_INT (trunc_int_for_mode (...)).Kazu Hirata2-5/+10
* config/h8300/h8300.md: Use gen_int_mode instead of GEN_INT (trunc_int_for_mode (...)). From-SVN: r69043