aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-04-09re PR rtl-optimization/6189 (Regression from 3.0.x: g++ -O3 generates wrong ↵Jason Merrill1-0/+24
code) PR optimization/6189 * semantics.c (genrtl_start_function): Don't free DECL_SAVED_FUNCTION_DATA for inline functions. [[Split portion of a mixed commit.]] From-SVN: r52083.2
2002-04-09re PR rtl-optimization/6189 (Regression from 3.0.x: g++ -O3 generates wrong ↵Jason Merrill2-3/+12
code) PR optimization/6189 * semantics.c (genrtl_start_function): Don't free DECL_SAVED_FUNCTION_DATA for inline functions. From-SVN: r52082
2002-04-09sparc.c (sparc_extra_constraint_check): New function, implementing ↵David S. Miller4-34/+86
EXTRA_CONSTRAINTS. 2002-04-09 David S. Miller <davem@redhat.com> * config/sparc/sparc.c (sparc_extra_constraint_check): New function, implementing EXTRA_CONSTRAINTS. For memory constraints, allow reloading pseudos. * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it. * config/sparc/sparc-protos.h: Declare it. * config/sparc/sparc.c (const64_is_2insns): Kill signed vs. unsigned comparison warning. (output_restore_regs): Mark leaf_function as unused. From-SVN: r52080
2002-04-09init.c (build_member_call): For now, don't convert to intermediate base if ↵Jason Merrill3-3/+34
it would cause an error. * init.c (build_member_call): For now, don't convert to intermediate base if it would cause an error. From-SVN: r52078
2002-04-09expr.c (is_aligning_offset): New function.Richard Kenner2-0/+62
* expr.c (is_aligning_offset): New function. (expand_expr, case COMPONENT_EXPR): Call it. From-SVN: r52077
2002-04-09Daily bump.GCC Administrator2-2/+2
From-SVN: r52064
2002-04-08Fix commit goof: s/istarget/ishost/ for hostHans-Peter Nilsson7-7/+7
From-SVN: r52047
2002-04-08980628-4.x, [...]: New, xfail cross-endian tests.Hans-Peter Nilsson8-0/+78
* g77.f-torture/execute/980628-4.x, g77.f-torture/execute/980628-5.x, g77.f-torture/execute/980628-6.x, g77.f-torture/execute/alpha2.x, g77.f-torture/execute/auto0.x, g77.f-torture/execute/auto1.x, g77.f-torture/compile/alpha1.x: New, xfail cross-endian tests. From-SVN: r52046
2002-04-08Make-lang.in (f/target.o): Depend on diagnostic.h.Hans-Peter Nilsson3-3/+52
* Make-lang.in (f/target.o): Depend on diagnostic.h. * target.c: Include diagnostic.h. (ffetarget_memcpy_): Call sorry if host and target endians are not matching. From-SVN: r52043
2002-04-08For PR libgcj/5303:Tom Tromey4-3/+162
* .cvsignore: Added rmic.1 and rmiregistry.1. * gcj.texi (Top): Link to new nodes. (Invoking rmic): New node. (Invoking rmiregistry): Likewise. * Make-lang.in (java.generated-manpages): Added rmic.1 and rmiregistry.1. (java.maintainer-clean): Likewise. ($(srcdir)/java/rmic.1): New target. ($(srcdir)/java/rmiregistry.1): Likewise. (java.install-man): Handle rmic.1 and rmiregistry.1. From-SVN: r52035
2002-04-08re PR target/6082 (memory model wrong for FreeBSD/sparc64)David S. Miller11-33/+102
2002-04-08 David S. Miller <davem@redhat.com> PR target/6082 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW Make init_priority work on Sparc when using GNU ld. * config/sparc/linux.h, config/sparc/linux64.h, config/sparc/netbsd-elf.h, config/sparc/freebsd.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine. * config/sparc/sol2-gld.h: New file to do the same. * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add sparc/sol2-gld.h to tm_file. PR optimization/4328 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'. * doc/md.texi: Document it. * config/sparc/sparc.md (movdi_insn_sp64_novis, movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis, movdf_insn_v9only_vis, movdf_insn_sp64_novis, movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers. * config/sparc/sparc.c (mem_min_alignment): Fix comment. From-SVN: r52031
2002-04-08Revert last patch from Richard Henderson.Andreas Jaeger2-35/+17
From-SVN: r52029
2002-04-08parse.y (namespace_qualifier, [...]): Add ending ';', in accordance with POSIX.Paolo Carlini2-0/+18
2002-04-08 Paolo Carlini <pcarlini@unitus.it> * parse.y (namespace_qualifier, maybe_identifier, begin_explicit_instantiation, end_explicit_instantiation, apparent_template_type, .finish_template_type, do_id, maybe_init, defarg_again, component_decl_1): Add ending ';', in accordance with POSIX. From-SVN: r52026
2002-04-08contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the ↵Gerald Pfeifer2-0/+24
latter also to Testers). * doc/contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the latter also to Testers). Update David O'Brien's entry. * doc/contrib.texi (Contributors): Add David O'Brien. From-SVN: r52024
2002-04-08gcj.texi (Invocation): Update JvAttachCurrentThread documentation.Bryce McKinlay2-9/+49
* gcj.texi (Invocation): Update JvAttachCurrentThread documentation. Add note about handling uncaught exceptions. Add an exception handler to example. From-SVN: r52022
2002-04-08Oops, commit right file.Alan Modra1-2/+2
From-SVN: r52021
2002-04-08configure.in (auto-build.h): Use target_alias and build_alias when running ↵Alan Modra3-54/+54
configure. * configure.in (auto-build.h): Use target_alias and build_alias when running configure. (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too. (gcc_cv_nm, gcc_cv_objdump): Set for build != host too. * configure: Regenerate. From-SVN: r52020
2002-04-08Daily bump.GCC Administrator2-2/+2
From-SVN: r52019
2002-04-08parse.y (resolve_qualified_expression_name): Clear "from_super" flag after ↵Bryce McKinlay2-0/+6
using it to patch CALL_EXPR. * parse.y (resolve_qualified_expression_name): Clear "from_super" flag after using it to patch CALL_EXPR. From-SVN: r52015
2002-04-08* gcj.texi (Invocation): Document CNI invocation API.Bryce McKinlay2-1/+67
From-SVN: r52012
2002-04-07config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.David S. Miller2-1/+5
2002-04-07 David S. Miller <davem@redhat.com> * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file. From-SVN: r52011
2002-04-07re PR c++/5933 (HP-UX: broken MI of virtual classes)John David Anglin2-9/+68
PR 5933 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when generating 32-bit pic code. From-SVN: r52004
2002-04-07re PR rtl-optimization/6086 (Reload misoptimizes DImode PREINC on PPC)Franz Sirl2-0/+64
2002-04-07 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> PR optimization/6086 * g++.dg/opt/preinc1.C: New test. From-SVN: r52001
2002-04-07Daily bump.GCC Administrator2-2/+2
From-SVN: r51986
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-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-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 Administrator2-2/+2
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-05* doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).Richard Henderson2-0/+8
From-SVN: r51936
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 Administrator2-2/+2
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-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