1. 07 Apr, 2002 3 commits
    • re PR c++/5571 (crash in initialization of a static variable) · 0154eaa8
      	PR c++/5571
      	* stor-layout.c (layout_decl): Reset the RTL for the decl.
      
      	* class.c (layout_class_type): Remember incomplete static
      	variables.
      	(finish_struct_1): Call complete_vars, not
      	hack_incomplete_structures.
      	* cp-tree.h (hack_incomplete_structures): Rename to ...
      	(complete_vars): ... this.
      	(struct saved_scope): Remove incomplete.
      	(namespace_scope_incomplete): Remove.
      	* decl.c (struct binding_level): Remove incomplete.
      	(incomplete_vars): New variable.
      	(mark_binding_level): Don't mark incomplete.
      	(print_binding_level): Don't print it.
      	(mark_saved_scope): Don't mark incomplete.
      	(pushdecl): Use maybe_register_incopmlete_var.
      	(cxx_init_decl_processing): Register incomplete_vars for GC.
      	(start_decl_1): Clarify error message.
      	(hack_incomplete_vars): Remove.
      	(maybe_register_incomplete_var): New function.
      	(complete_vars): Likewise.
      
      	* g++.dg/opt/static2.C: New test.
      
      From-SVN: r51978
      Mark Mitchell committed
    • configure.in (alpha*-*-netbsd*): Add target. · da00eaab
      * configure.in (alpha*-*-netbsd*): Add target.
      * configure: Regenerate.
      
      From-SVN: r51976
      Jason Thorpe committed
    • cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp. · 477cdac7
      * cppinit.c (cpp_create_reader): Initialize
      discard_comments_in_macro_exp.
      (COMMAND_LINE_OPTIONS): Add "-CC" option.
      (cpp_handle_option): Handle "-CC" option.
      * cpplex.c (save_comment): If saving a C++ comment in
      a directive, convert it to a C comment.
      (_cpp_lex_direct): Pass second comment start character to
      save_comment to indicate comment type.
      * cpplib.c (_cpp_handle_directive): If processing
      a "#define" directive and discard_comments_in_macro_exp
      is false,  re-enable saving of comments.
      (lex_macro_node): If discard_comments_in_macro_exp is false,
      discard any comments before the macro identifier.
      * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
      member.
      * cppmacro.c (cpp_get_token): If expanding a macro while
      processing a directive, discard any comments we might encounter.
      (parse_params): If discard_comments_in_macro_exp is false,
      ignore comments in the macro parameter list.
      * gcc.c (cpp_unique_options): Add "-CC" option.
      (option_map): Map "--comments-in-macros" to "-CC".
      * doc/cppopts.texi: Document "-CC" option.
      * f/lang-specs.h: Add "-CC" option.
      * testsuite/gcc.dg/cpp/maccom1.c: New test.
      * testsuite/gcc.dg/cpp/maccom2.c: New test.
      * testsuite/gcc.dg/cpp/maccom3.c: New test.
      * testsuite/gcc.dg/cpp/maccom4.c: New test.
      * testsuite/gcc.dg/cpp/maccom5.c: New test.
      * testsuite/gcc.dg/cpp/maccom6.c: New test.
      
      From-SVN: r51975
      Jason Thorpe committed
  2. 06 Apr, 2002 13 commits
  3. 05 Apr, 2002 17 commits
  4. 04 Apr, 2002 7 commits
    • 20020404-1.c: New test. · 3ca5f444
      2002-04-04  David S. Miller  <davem@redhat.com>
      
      	* gcc.c-torture/execute/20020404-1.c: New test.
      
      From-SVN: r51889
      David S. Miller committed
    • calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg. · aa7634dd
      2002-04-04  David S. Miller  <davem@redhat.com>
      
      	* calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
      
      From-SVN: r51886
      David S. Miller committed
    • re PR inline-asm/5099 (m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));) · ecc114f7
              PR middle-end/5099
              * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
              Support copies into and out of memory.  Don't accept allows_reg
              and allows_mem as gospel.
      
      From-SVN: r51884
      Richard Henderson committed
    • re PR rtl-optimization/6165 ([i686] stack frame freed too early) · c4484b8f
              PR opt/6165
              * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
              (write_dependence_p): Likewise.
      
      From-SVN: r51882
      Richard Henderson committed
    • c-common.c (truthvalue_conversion): Rename, update. · 78ef5b89
      	* c-common.c (truthvalue_conversion): Rename, update.
      	* c-common.h (c_common_truthvalue_conversion): New.
      	* c-convert.c (convert): Update.
      	* c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
      	* c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
      	* c-typeck.c (build_binary_op, build_unary_op,
      	build_conditional_expr): Update.
      	* fold-const.c (constant_boolean_node, fold): Use langhook.
      	* langhooks-def.h (LANGHOOK_INITIALIZER): Update.
      	* langhooks.h (struct lang_hooks): New hook.
      	* stmt.c (expand_decl_cleanup): Use langhook.
      	* tree.h (truthvalue_conversion): Remove.
      ada:
      	* gigi.h (truthvalue_conversion): Rename.
      	* misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
      	* trans.c (tree_transform): Update.
      	* utils2.c (truthvalue_conversion): Rename, update.
      	(build_binary_op, build_unary_op): Update.
      cp:
      	* cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
      	* cvt.c: Update comment.
      	* init.c (expand_cleanup_for_base): Update.
      	* semantics.c (finish_parenthesized_expr): Update.
      	* typeck.c (cp_truthvalue_conversion): Update.
      f:
      	* com.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
      	(truthvalue_conversion): Rename.  Update.  Make static.
      	(ffecom_truth_value): Update.
      java:
      	* expr.c (truthvalue_conversion): Rename.  Update.
      	(expand_compare): Update.
      	* java-tree.h (java_truthvalue_conversion): New.
      	* lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
      objc:
      	* objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
      
      From-SVN: r51880
      Neil Booth committed
    • predict.c (estimate_bb_frequencies): Do frequency calculation with a volatile temporary. · 39002160
              * predict.c (estimate_bb_frequencies): Do frequency calculation
              with a volatile temporary.
      
      From-SVN: r51879
      Richard Henderson committed
    • via gawrilow@math.tu-berlin.de · 677b3ae3
      
      2002-04-04  Benjamin Kosnik  <bkoz@redhat.com>
      
      	libstdc++/3457
      	via gawrilow@math.tu-berlin.de
      	* acinclude.m4 (version_specific_libs): Fix combo usage with
      	--with-gxx-include-dir.
      	* aclocal.m4: Regenerate.
      	* configure: Same.
      
      From-SVN: r51875
      Benjamin Kosnik committed