1. 03 Sep, 2003 14 commits
    • optimize.c (optimize_function): Push/pop ggc context around the call to optimize_inline_calls. · 19a42e51
              * optimize.c (optimize_function): Push/pop ggc context around
              the call to optimize_inline_calls.
      
      From-SVN: r71034
      Richard Henderson committed
    • cgraphunit.c (visited_nodes): New static variable. · 7dff32e6
      * cgraphunit.c (visited_nodes): New static variable.
      (record_call_1): Use walk_tree with visited_nodes.
      (cgraph_create_edges): Use walk_tree with visited_nodes.
      Setup/teardown visited_nodes hashtable.
      
      From-SVN: r71033
      Jeff Sturm committed
    • toplev.c (flag_rounding_math): New global variable. · 039c3d42
      
      	* toplev.c (flag_rounding_math): New global variable.
      	(f_options): Add to the list of language independent options.
      	* flags.h (flag_rounding_math): Prototype here.
      	(HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
      	* common.opt (frounding-math): New common command line option.
      	* opts.c (common_handle_option): Handle OPT_frounding_math.
      	(set_fast_math_flags): -ffast-math clears flag_rounding_math.
      
      	* doc/invoke.texi: Document this new command line option.
      
      From-SVN: r71032
      Roger Sayle committed
    • * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment. · b689848f
      From-SVN: r71030
      Rainer Orth committed
    • Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency. · 4a46cbfb
      
      	* Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
      	* c-decl.c (finish_function):  Kill arguments, always use cgraph path.
      	* c-objc-common.c: Kill include of gt-c-objc-common.h
      	(expand_deferred_fns, deffer_fn): Kill function.
      	(deferred_fns): Kill variable.
      	(finish_cdtor): Update finish_function call.
      	(c_objc_common_finish_file): Always call cgraph code.
      	* c-parse.c: Regenerate.
      	* c-parse.y: Regenerate.
      	* c-tree.h (finish_function): Update prototype.
      
      	* objc-acct.c (build_module_descriptor, finish_method_def):
      	Update call of finish_function.
      
      	* cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
      	forward prototype.
      	(cgraph_finalize_function): In non-unit-at-a-time mode analyze the
      	function and assemble it if needed.
      	(cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
      	mode.
      	(cgraph_optimize): Likewise.
      	(cgraph_expand_function): In non-unit-at-a-time mode keep function body
      	even when it has no inline callees.
      	* c-parse.in: Update calls to finish_function.
      
      From-SVN: r71028
      Jan Hubicka committed
    • re PR libstdc++/12048 (unget does not work) · 4c620c39
      
      2003-09-03  Petur Runolfsson  <peturr02@ru.is>
      
      	PR libstdc++/12048
      	* include/ext/stdio_sync_filebuf.h
      	(stdio_sync_filebuf::_M_unget_buf): Declare it.
      	(stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
      	(stdio_sync_filebuf::uflow): Store the returned character in
      	_M_unget_buf.
      	(stdio_sync_filebuf::pbackfail): If argument is eof(), pass
      	_M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
      	(stdio_sync_filebuf<char>::xsgetn): Store last read character in
      	_M_unget_buf, if any, else eof().
      	(stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
      	_M_unget_buf, if any, else eof().
      	* testsuite/27_io/objects/char/12048.cc: Rename to...
      	* testsuite/27_io/objects/char/12048-1.cc: ...this.
      	* testsuite/27_io/objects/char/12048-2.cc: New test.
      	* testsuite/27_io/objects/char/12048-3.cc: New test.
      	* testsuite/27_io/objects/char/12048-4.cc: New test.
      	* testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
      	* testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
      	* testsuite/ext/stdio_sync_filebuf_char.cc
      	(test02, test03, test04, test05): New tests.
      	* testsuite/ext/stdio_sync_filebuf_wchar_t.cc
      	(test02, test03, test04, test05): New tests.
      
      From-SVN: r71027
      Petur Runolfsson committed
    • re PR libstdc++/12048 (unget does not work) · 149639d4
      
      2003-09-03  Petur Runolfsson  <peturr02@ru.is>
      
      	PR libstdc++/12048
      	* include/ext/stdio_sync_filebuf.h
      	(stdio_sync_filebuf::_M_unget_buf): Declare it.
      	(stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
      	(stdio_sync_filebuf::uflow): Store the returned character in
      	_M_unget_buf.
      	(stdio_sync_filebuf::pbackfail): If argument is eof(), pass
      	_M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
      	(stdio_sync_filebuf<char>::xsgetn): Store last read character in
      	_M_unget_buf, if any, else eof().
      	(stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
      	_M_unget_buf, if any, else eof().
      	* testsuite/27_io/objects/char/12048.cc: Rename to...
      	* testsuite/27_io/objects/char/12048-1.cc: ...this.
      	* testsuite/27_io/objects/char/12048-2.cc: New test.
      	* testsuite/27_io/objects/char/12048-3.cc: New test.
      	* testsuite/27_io/objects/char/12048-4.cc: New test.
      	* testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
      	* testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
      	* testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
      	* testsuite/ext/stdio_sync_filebuf_char.cc
      	(test02, test03, test04, test05): New tests.
      	* testsuite/ext/stdio_sync_filebuf_wchar_t.cc
      	(test02, test03, test04, test05): New tests.
      
      2003-09-03  Petur Runolfsson  <peturr02@ru.is>
      
      	* docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
      	stringbuf or strstreambuf. Fix typos.
      
      From-SVN: r71026
      Petur Runolfsson committed
    • decl.c (java_expand_body): New function. · 916b57ce
      * decl.c (java_expand_body): New function.
      * expr.c (build_class_init): Set DECL_IGNORED_P.
      * java-tree.h (start_complete_expand_method,
      java_expand_body): Declare.
      * jcf-parse.c (cgraph.h): Include.
      (java_parse_file): Handle flag_unit_at_a_time.
      * lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING,
      LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
      (java_estimate_num_insns): Use walk_tree_without_duplicates.
      (java_start_inlining): New function.
      * parse.h (java_finish_classes): Declare.
      * parse.y: Include cgraph.h.
      (block): Don't special-case empty block production.
      (craft_constructor): Set DECL_INLINE.
      (source_end_java_method): Handle flag_unit_at_a_time.
      Replace inline code with call to java_expand_body.
      (start_complete_expand_method): Remove static modifier.
      (java_expand_method_bodies): Patch function tree for
      class initialization and/or synchronization as needed.
      Don't begin RTL expansion yet.
      (java_expand_classes): Check flag_unit_at_a_time before
      calling finish_class.
      (java_finish_classes): New function.
      (java_complete_lhs): Ensure COMPOUND_EXPR has non-NULL type.
      (patch_assignment): Set DECL_CONTEXT on temporary variable.
      (emit_test_initialization): Set DECL_IGNORED_P.
      
      From-SVN: r71024
      Jeff Sturm committed
    • builtins.c (enum builtin_type): Delete unused enumeration. · e71d3aae
      
      	* builtins.c (enum builtin_type): Delete unused enumeration.
      	* Make-lang.in (java/builtins.o): Remove built-types.def dependency.
      
      From-SVN: r71023
      Roger Sayle committed
    • fix typo in previous delta · de1f0668
      From-SVN: r71022
      Nick Clifton committed
    • Handle TARGET_CPU_iwmmxt. · 877bcd2d
      Use #error to generate the message if TARGET_DEFAULT is not recognised.
      
      From-SVN: r71021
      Nick Clifton committed
    • mips.h (MASK_UNUSED1): Remove. · ee692410
      	* config/mips/mips.h (MASK_UNUSED1): Remove.
      	(MASK_XGOT, TARGET_XGOT): Define.
      	(TARGET_SWITCHES): Add an entry for -mxgot.
      	(ASM_SPEC): Map -mxgot to -xgot.
      	* config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
      	whether we're using a big-GOT sequences.
      	(mips_legitimize_const_move, mips_expand_call): Likewise.
      	(override_options): Revert 2003-01-09 change.
      	* doc/invoke.texi: Document -mxgot.
      
      From-SVN: r71018
      Richard Sandiford committed
    • sol2.h (NO_IMPLICIT_EXTERN_C): Define here. · 49fa0661
              * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
              * config/sparc/sol2.h: Not here.
      
      From-SVN: r71017
      Jason Merrill committed
    • Daily bump. · de38635b
      From-SVN: r71015
      GCC Administrator committed
  2. 02 Sep, 2003 17 commits
  3. 01 Sep, 2003 8 commits
    • re PR c++/12114 ([3.3.2] Uninitialized memory accessed in dtor) · 7e99327d
      	PR c++/12114
      	* g++.dg/init/ref9.C: New test.
      
      	PR c++/11972
      	* g++.dg/template/nested4.C: New test.
      
      	PR c++/12114
      	* cp-tree.h (initialize_reference): Change prototype.
      	* call.c (initialize_reference): Add cleanup parameter.
      	* decl.c (grok_reference_init): Likewise.
      	(check_initializer): Likewise.
      	(cp_finish_decl): Insert a CLEANUP_STMT if necessary.
      	(duplicate_decls): When replacing an anticipated builtin, do not
      	honor TREE_NOTHROW.
      	* typeck.c (convert_for_initialization): Correct call to
      	initialize_reference.
      
      	PR c++/11972
      	* pt.c (dependent_type_p_r): Pass only the innermost template
      	arguments to any_dependent_template_arguments_p.
      
      From-SVN: r70981
      Mark Mitchell committed
    • Makefile.in (gencheck.o): Remove build commands. · 4b09846b
      	* Makefile.in (gencheck.o): Remove build commands.
      	(dummy-conditions.o): Likewise.
      	(read-rtl.o): Likewise.
      	(gensupport.o): Likewise.
      	(genconfig$(build_exeext)): Remove rule.
      	(genconfig.o): Remove build commands.
      	(genflags$(build_exeext)): Remove rule.
      	(genflags.o): Remove build commands.
      	(gencodes$(build_exeext)): Remove rule.
      	(gencodes.o): Remove build commands.
      	(genconstants.o): Remove build commands.
      	(genemit$(build_exeext)): Remove rule.
      	(genemit.o): Remove build commands.
      	(genrecog$(build_exeext)): Remove rule.
      	(genrecog.o): Remove build commands.
      	(genextract$(build_exeext)): Remove rule.
      	(genextract.o): Remove build commands.
      	(genpeep$(build_exeext)): Remove rule.
      	(genpeep.o): Remove build commands.
      	(genattr$(build_exeext)): Remove rule.
      	(genattr.o): Remove build commands.
      	(genprognames): New variable.
      	(genprogs): Likewise.
      	(genobjs): Likewise.
      	(genprogs): New rule.
      	(genobjs): Likewise.
      	(genattrtab.o): Remove build commands.
      	(genautomata.o): Likewise.
      	(genoutput$(build_exeext)): Remove rule.
      	(genoutput.o): Remove build commands.
      	(gengenrtl.o): Likewise.
      	(genpreds.o): Likewise.
      	(gengtype.o): Likewise.
      	(genconditions.o): Likewise.
      	(gen-protos.o): Likewise.
      	(scan.o): Likewise.
      	(fix-header.o): Likewise.
      	(scan-decls.o): Likewise.
      	(check-g++): Combine with other check targets.
      	(check-gcc): Likewise.
      	(check-g77): Likewise.
      	(check-objc): Likewise.
      
      From-SVN: r70980
      Mark Mitchell committed
    • config.gcc: Remove host-specific stuff which is unused here since the introduction of... · 53b49aca
      	* config.gcc: Remove host-specific stuff which is unused here
      	since the introduction of config.host.
      
      From-SVN: r70978
      Nathanael Nerode committed
    • fragments.texi: Mention config.host. · 330532ab
      	* doc/fragments.texi: Mention config.host.
      	* doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
      	of config.build, config.host, and config.gcc.
      
      From-SVN: r70977
      Nathanael Nerode committed
    • c-decl.c (pushdecl): Don't put variables on C_TYPE_INCOMPLETE_VARS of a type unless... · 130a1080
      	* c-decl.c (pushdecl): Don't put variables on
      	C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
      	incomplete.
      
      From-SVN: r70976
      Zack Weinberg committed
    • config.host: New file. · a89ea0df
      	* config.host: New file.
      	* config.gcc: Remove some host-specific stuff and some
      	logic needed only for repeated invocation.
      	* configure.in: Use config.host.
      	* configure: Regenerate.
      
      From-SVN: r70975
      Nathanael Nerode committed
    • c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR. · 31934da7
      	* c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
      	* convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
      	* fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
      	(fold): Kill BIT_ANDTC_EXPR and label bit_and.
      	* tree.def (BIT_ANDTC_EXPR): Kill.
      
      	* error.c (dump_expr): Kill BIT_ANDTC_EXPR.
      	* lex.c (init_operators): Kill BIT_ANDTC_EXPR.
      	* pt.c (tsubst_copy): Kill BIT_ANDTC_EXPR.
      	* typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
      	(tsubst_copy_and_build): Kill BIT_ANDTC_EXPR.
      
      	* com.c (ffecom_overlap_): Kill BIT_ANDTC_EXPR.
      	(ffecom_tree_canonize_ref_): Kill BIT_ANDTC_EXPR.
      
      From-SVN: r70972
      Josef Zlomek committed
    • Daily bump. · 754c7077
      From-SVN: r70970
      GCC Administrator committed
  4. 31 Aug, 2003 1 commit