aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-04-07re PR c++/5571 (crash in initialization of a static variable)Mark Mitchell8-87/+117
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
2002-04-07configure.in (alpha*-*-netbsd*): Add target.Jason Thorpe3-2/+7
* configure.in (alpha*-*-netbsd*): Add target. * configure: Regenerate. From-SVN: r51976
2002-04-07cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp.Jason Thorpe15-9/+227
* 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
2002-04-06re PR c++/4934 (Seg fault on legal code)Jason Merrill3-1/+10
PR c++/4934 * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is set before checking it. From-SVN: r51972
2002-04-06* reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.John David Anglin2-4/+5
From-SVN: r51971
2002-04-06re PR rtl-optimization/5120 (tail recursion incorrect using -O2)Mark Mitchell4-0/+147
PR opt/5120 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear RTX_UNCHANGING_P for the functions arguments when a tail call is made. From-SVN: r51969
2002-04-06toplev.c (flag_no_inline, [...]): Default to 2.Jason Merrill3-5/+16
* toplev.c (flag_no_inline, flag_really_no_inline): Default to 2. (parse_options_and_default_flags): Set them appropriately. * c-common.c (c_common_post_options): Don't set flag_really_no_inline. From-SVN: r51959
2002-04-06re PR c++/525 (Problem with Multiple Inheritance and -pedantic)Jason Merrill10-77/+76
PR c++/525 * init.c (build_member_call): Use build_scoped_ref. (resolve_offset_ref): Likewise. * call.c (build_scoped_method_call): Likewise. * tree.c (maybe_dummy_object): Kludge around current_class_type being wrong. * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm. * cp-tree.h: Adjust. * init.c (push_base_cleanups): Just use build_scoped_method_call. From-SVN: r51956
2002-04-06re PR c++/6179 (EH regression test failure for STLport-4.5.3)Jason Merrill3-6/+40
PR c++/6179 * method.c (implicitly_declare_fn): Pass unqualified type to synthesize_exception_spec. From-SVN: r51954
2002-04-06ArrayList.jva (removeRange): If toIndex == fromIndex do nothing...Mark Wielaard2-3/+12
* java/util/ArrayList.jva (removeRange): If toIndex == fromIndex do nothing, if toIndex < fromIndex throw IndexOutIfBoundsException. From-SVN: r51947
2002-04-06t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.Hans-Peter Nilsson4-27/+46
* config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here. * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious semicolon. * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size types come in by-reference. Fix typo in comment. From-SVN: r51946
2002-04-06Daily bump.GCC Administrator6-6/+6
From-SVN: r51945
2002-04-05freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.David S. Miller3-5/+25
2002-04-05 David S. Miller <davem@redhat.com> * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits. * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos, sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*, {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file. From-SVN: r51940
2002-04-06exception.cc (abort): added static modifierAdam Megacz1-0/+4
2002-04-05 Adam Megacz <adam@xwt.org> * exception.cc (abort): added static modifier From-SVN: r51938
2002-04-06exception.cc (abort): added static modifierAdam Megacz1-1/+2
2002-04-05 Adam Megacz <adam@xwt.org> * exception.cc (abort): added static modifier From-SVN: r51937
2002-04-05* doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).Richard Henderson2-0/+8
From-SVN: r51936
2002-04-05stl_algo.h (unique_copy, [...]): Doxygenate.Jonathan Wakely2-41/+151
2002-04-05 Jonathan Wakely <jw@kayari.org> * include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy, random_shuffle, partition, stable_partition, sort, stable_sort, partial_sort, partial_sort_copy, nth_element): Doxygenate. From-SVN: r51927
2002-04-052002-04-05 David S. Miller <davem@redhat.com>David S. Miller2-0/+9
* config/os/gnu-linux/bits/os_defines.h (__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc. From-SVN: r51921
2002-04-05* mklibgcc.in: Use $tmpmapfile, not tmp-$@.Jakub Jelinek2-2/+7
From-SVN: r51918
2002-04-05mips.h (ISA_HAS_BRANCHLIKELY, [...]): Disable if TARGET_MIPS16.Alexandre Oliva2-18/+23
* config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB, ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16. From-SVN: r51917
2002-04-05Fix last change: c-common.h instead of c-convert.h.Andreas Schwab3-3/+3
From-SVN: r51916
2002-04-05c-convert.c: Include c-convert.h.Andreas Schwab3-2/+9
* c-convert.c: Include c-convert.h. * Makefile.in (c-convert.o): Updated. From-SVN: r51915
2002-04-05mklibgcc.in: Use separate libgcc.map for each multilib.Jakub Jelinek3-3/+8
* mklibgcc.in: Use separate libgcc.map for each multilib. * Makefile.in (distclean): Don't remove libgcc.map here. From-SVN: r51914
2002-04-05Makefile.in (s-mlib): Handle --disable-multilib by separate genmultilib ↵Jakub Jelinek2-8/+17
invocation. * Makefile.in (s-mlib): Handle --disable-multilib by separate genmultilib invocation. From-SVN: r51912
2002-04-05Daily bump.GCC Administrator6-6/+6
From-SVN: r51910
2002-04-05mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs to avoid clash with ↵Richard Sandiford3-13/+22
Irix header file sys/ucontext.h. * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs to num_gprs for symmetry. * config/mips/mips.c: Adjust accordingly. From-SVN: r51906
2002-04-05* ChangeLog: Forgotten commit.Neil Booth1-0/+17
From-SVN: r51903
2002-04-05t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o Add rules to make null ↵Alan Modra2-1/+14
object file. * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o Add rules to make null object file. From-SVN: r51901
2002-04-05win32.h (_Jv_platform_close_on_exec): added inline modifier.Adam Megacz2-1/+7
2002-04-04 Adam Megacz <adam@xwt.org> * include/win32.h (_Jv_platform_close_on_exec): added inline modifier. From-SVN: r51899
2002-04-05Fix cut-n-paste typo.Loren J. Rittle1-1/+1
From-SVN: r51897
2002-04-05configure.host: Add case statement to support generic port properties.Loren J. Rittle2-5/+24
* configure.host: Add case statement to support generic port properties. Add *-*-freebsd* section. From-SVN: r51896
2002-04-05mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode test.Mark Wielaard3-3/+34
* mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode test. * testsuite/libjava.mauve/xfails: Remove working tests DoubleTest, FloatTest and ObjectStreamClass. Add FAIL for Introspector.jdk11 tests that depend on awt code and BufferedByteOutputStream.interrupt. From-SVN: r51893
2002-04-05cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal ↵Jim Blandy2-4/+12
parameter names. * cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter names. From-SVN: r51890
2002-04-0420020404-1.c: New test.David S. Miller2-0/+106
2002-04-04 David S. Miller <davem@redhat.com> * gcc.c-torture/execute/20020404-1.c: New test. From-SVN: r51889
2002-04-04calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.David S. Miller2-1/+11
2002-04-04 David S. Miller <davem@redhat.com> * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg. From-SVN: r51886
2002-04-04re PR inline-asm/5099 (m68k-aout/3.0.2/cc1 aborts on asm("movw ↵Richard Henderson2-12/+42
sr,%0":"=hd"(a));) 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
2002-04-04re PR rtl-optimization/6165 ([i686] stack frame freed too early)Richard Henderson2-0/+20
PR opt/6165 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict. (write_dependence_p): Likewise. From-SVN: r51882
2002-04-04c-common.c (truthvalue_conversion): Rename, update.Neil Booth29-80/+146
* 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
2002-04-04predict.c (estimate_bb_frequencies): Do frequency calculation with a ↵Richard Henderson2-2/+12
volatile temporary. * predict.c (estimate_bb_frequencies): Do frequency calculation with a volatile temporary. From-SVN: r51879
2002-04-04via gawrilow@math.tu-berlin.deBenjamin Kosnik5-20/+33
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
2002-04-04* config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.Ulrich Weigand2-0/+6
From-SVN: r51874
2002-04-04v8.S: Add unwind info.Jeff Sturm3-3/+85
* src/sparc/v8.S: Add unwind info. * src/sparc/v9.S: Likewise. From-SVN: r51873
2002-04-04re PR c++/6119 (sparc-sun-solaris2.7 gcc-3.1 extra g++ testsuite failure ↵Jakub Jelinek2-2/+8
w/-fpic|-fPIC) PR c++/6119 * final.c (final_start_function): Don't bump profile_label_no here... (final_end_function): ...but here. From-SVN: r51872
2002-04-04sparc.md (pic): New attribute.Jakub Jelinek2-10/+39
* config/sparc/sparc.md (pic): New attribute. (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9 into stack slots. (split after do_builtin_setjmp_setup): New. From-SVN: r51870
2002-04-04gcconfig.h: Add support for an unmapped memory hole between the end of the ↵Loren J. Rittle2-0/+14
initialized data... * include/private/gcconfig.h: Add support for an unmapped memory hole between the end of the initialized data segment and the start of the BSS on FreeBSD/i386. From-SVN: r51867
2002-04-04make.adb: Implement -margs, remove restriction about file name placement.Laurent Guerby4-17/+23
2002-04-04 Laurent Guerby <guerby@acm.org> * make.adb: Implement -margs, remove restriction about file name placement. * makeusg.adb: Documentation update. * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir). * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line. From-SVN: r51866
2002-04-04re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)Jakub Jelinek2-1/+7
PR c/6123 * gcc.dg/20020312-2.c: Do not declare global register variable if __PIC__ or __pic__ is defined. From-SVN: r51859
2002-04-04re PR fortran/6106 (sparc-sun-solaris2.7 gcc-3.1 extra g77 testsuite ↵Jakub Jelinek2-0/+10
failures w/-m64) PR fortran/6106 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01 change. From-SVN: r51857
2002-04-04Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value ↵Bryce McKinlay2-42/+54
when count > 40. * java/util/Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40. From-SVN: r51854
2002-04-04sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized ↵Jakub Jelinek2-0/+9
aggregates. * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates. From-SVN: r51853