aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-09-23jcf-write.c (generate_bytecode_insns): Optimize binary operations with equal ↵Roger Sayle2-2/+7
operands without side-effects. * jcf-write.c (generate_bytecode_insns): Optimize binary operations with equal operands without side-effects. From-SVN: r71684
2003-09-23cp-tree.h (scope_kind): Add new enumerator.Gabriel Dos Reis5-115/+146
* cp-tree.h (scope_kind): Add new enumerator. (keep_next_level): Change parameter type to bool. (begin_scope): Change prototype. (pushlevel): Remove declaration. * decl.c (push_binding_level): Fold in begin_scope. Remove. (struct cp_binding_level): Remove tag_tranparent field. Make keep of bitsize one. (keep_next_level_flag): Make a bool. (cxx_scope_descriptor): Update scope names table (make_cxx_scope): Fold in begin_scope. Remove.. (namespace_scope_ht_size): New function. (begin_scope): Change prototype. Return a scope. Tidy. (kept_level_p): Update. (pushlevel): Remove. (maybe_push_cleanup_level): Simplify. (poplevel): Update for sk_cleanup and keep change. (print_binding_level): Likewise. (initial_push_namespace_scope): Fold in begin_scope. Remove. (push_namespace): Update. (pushtag): Likewise. (lookup_tag): Likewise. (lookup_name_current_level): Likewise. (lookup_type_current_level): Likewise. (cxx_init_decl_processing): Likewise. (start_function): Likewise. (begin_function_body): Likewise. (start_method): Likewise. * pt.c (push_inline_template_parms_recursive): Likewise. (begin_template_parm_list): Likewise. (begin_specialization): Likewise. * semantics.c (do_pushlevel): Likewise. (begin_compound_stmt): Likewise. (begin_stmt_expr): Likewise. From-SVN: r71683
2003-09-22c-common.c (c_common_signed_or_unsigned_type): Examine mode, not precision.Richard Henderson3-11/+51
* c-common.c (c_common_signed_or_unsigned_type): Examine mode, not precision. * g++.dg/opt/enum1.C: New. From-SVN: r71677
2003-09-23decl.c (java_init_decl_processing): Don't emit otable decls if ↵Jeff Sturm2-10/+19
flag_indirect_dispatch is not set. * decl.c (java_init_decl_processing): Don't emit otable decls if flag_indirect_dispatch is not set. From-SVN: r71674
2003-09-22rs6000.c (altivec_in_gprs_p): Rename to ...David Edelsohn5-164/+194
* config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ... (gpr_or_gpr_p): Change to bool. (rs6000_split_altivec_in_gprs): Rename to ... (rs6000_split_multireg_move): Add support for update addressing. * config/rs6000/rs6000-protos.h: Same. * config/rs6000/altivec.md: Same. * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for multiple GPRs. (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition. (movti_power): Use new splitter for multiple GPRs. (movti_string): Same. (movti_ppc64): Same. Co-Authored-By: Hartmut Penner <hpenner@de.ibm.com> From-SVN: r71673
2003-09-23Daily bump.GCC Administrator1-1/+1
From-SVN: r71671
2003-09-22xtensa-protos.h: Convert to ISO C90.Bob Wilson3-344/+223
* config/xtensa/xtensa-protos.h: Convert to ISO C90. * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes. From-SVN: r71669
2003-09-22mn10300.md: Revert 2003-09-17's patch.Alexandre Oliva2-12/+52
* config/mn10300/mn10300.md: Revert 2003-09-17's patch. (andsi3): Set attr cc to set_zn when using shifts or adds. From-SVN: r71663
2003-09-22* doc/contrib.texi: Add Peter Barada, Paul Dale and myself.Bernardo Innocenti2-0/+16
From-SVN: r71660
2003-09-22m68k.h (MASK_RTD, [...]): Resurrect -mrtd option.Bernardo Innocenti2-3/+29
* config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS): Resurrect -mrtd option. From-SVN: r71658
2003-09-22re PR target/12281 (not emiting function which is static and marked as inline)Andrew Pinski4-2/+23
2003-09-21 Andrew Pinski <pinskia@physics.uc.edu> PR target/12281 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call mark_referenced instead of setting TREE_SYMBOL_REFERENCED. 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu> PR target/12281 * gcc.c-torture/compile/20030921-1.c: New test. From-SVN: r71648
2003-09-22re PR target/9786 (Ice in fixup_abnormal_edges with -fnon-call-exceptions -O2)Eric Botcazou4-3/+80
PR target/9786 * reg-stack.c (convert_regs_1): Purge possible dead eh edges after potential deletion of trapping insn. Avoids later ICE from call to fixup_abnormal_edges. (convert_regs_2): Stack the current block successors before processing this block, that is, before the potential deletion of dead edges by convert_regs_1, because these edges have been used to initialize the predecessors count. From-SVN: r71644
2003-09-22* real.c: Fix several nits in the head comment.Eric Botcazou2-9/+13
From-SVN: r71642
2003-09-21Revert DECL_SOURCE_LOCATION -> TREE_LOCUS change.Richard Henderson52-172/+201
From-SVN: r71641
2003-09-22Daily bump.GCC Administrator1-1/+1
From-SVN: r71638
2003-09-21tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.Richard Henderson52-171/+210
* tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const. (TREE_FILENAME, TREE_LINENO): Likewise. (set_tree_locus, copy_tree_locus, set_tree_file_line): New. (TREE_LOCUS_SET_P): New. * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c, diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c, print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c, tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c, config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match. ada/ * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and change to const. cp/ * class.c, cp-tree.h, decl.c, decl2.c, error.c, init.c, method.c, optimize.c, pt.c, semantics.c, tree.c: Update for DECL_SOURCE_LOCATION rename and change to const. f/ * com.c, ste.c: Update for DECL_SOURCE_LOCATION rename and change to const. java/ * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, resource.c: Update for DECL_SOURCE_LOCATION rename and change to const. treelang/ * treetree.c: Update for DECL_SOURCE_LOCATION rename and change to const. From-SVN: r71636
2003-09-21* config/vax/vax-protos.h: Convert to ISO C90.Nathanael Nerode2-6/+7
From-SVN: r71632
2003-09-21* config/vax/vax.c: Convert to ISO C90.Nathanael Nerode2-40/+28
From-SVN: r71631
2003-09-21news.texi: Update with fixed PR's.Toon Moene2-1/+9
2003-09-21 Toon Moene <toon@moene.indiv.nluug.nl> * news.texi: Update with fixed PR's. From-SVN: r71629
2003-09-21re PR target/12353 (ICE in copyprop_hardreg_forward_1)Graham Stott2-1/+6
PR target/12353 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint. From-SVN: r71627
2003-09-21g77.texi: Remove ancient part about debugging COMMON and EQUIVALENCE not ↵George Helffrich2-7/+5
correctly. 2003-09-21 George Helffrich <bugzilla@w170.uklinux.net> * g77.texi: Remove ancient part about debugging COMMON and EQUIVALENCE not correctly. From-SVN: r71623
2003-09-21re PR target/12301 (corruption in exception path, exception in returned ↵Eric Botcazou4-0/+63
expression) PR target/12301 * reorg.c (stop_search_p): Return 1 for insns that can throw internally. From-SVN: r71620
2003-09-20c-format.c (gcc_diag_char_table): Add %J.Richard Henderson36-475/+411
* c-format.c (gcc_diag_char_table): Add %J. (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise. (check_format_types): Fix wanted_type name lookup. (init_dynamic_diag_info): Setup %J. * diagnostic.c (text_specifies_location): Implement %J. * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c, dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c, tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c, config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics. * tree-inline.c: Include intl.h (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason. * Makefile.in (tree-inline.o): Update. cp/ * decl.c, decl2.c, pt.c: Use %J in diagnostics. java/ * check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics. testsuite/ * gcc.dg/format/gcc_diag-1.c: Add tests for %J. From-SVN: r71619
2003-09-21i386.c (ix86_expand_carry_flag_compare): Fix transformation of a>=0 into ↵Roger Sayle4-3/+27
(unsigned)a<0x80000000. * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix transformation of a>=0 into (unsigned)a<0x80000000. * gcc.c-torture/execute/20030920-1.c: New test case. From-SVN: r71618
2003-09-20* config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.Andrew Pinski2-1/+5
From-SVN: r71617
2003-09-21Daily bump.GCC Administrator1-1/+1
From-SVN: r71615
2003-09-20(top level)Nathanael Nerode2-1/+2
(top level) * Makefile.tpl: Don't pass (unused) DLLTOOL or WINDRES to gcc. * Makefile.in: Regenerate. (gcc) * Makefile.in: Don't set (unused) DLLTOOL. From-SVN: r71609
2003-09-20t-linux, [...]: Remove obsolete references to ENQUIRE.Nathanael Nerode4-11/+5
* config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi: Remove obsolete references to ENQUIRE. From-SVN: r71608
2003-09-20apparently managed not to commit the crucial part of c++/12332Nathan Sidwell1-2/+7
From-SVN: r71607
2003-09-20* g++.dg/rtti/typeid3.C: Correct expected error message.Kriang Lerdsuwanakij2-2/+6
From-SVN: r71606
2003-09-20re PR c++/157 (Duplicate error message for invalid elaborated type specifier)Kriang Lerdsuwanakij4-0/+59
PR c++/157 * parser.c (cp_parser_direct_declarator): Clear parser->num_template_parameter_lists when parsing function parameters. (cp_parser_constructor_declarator_p): Likewise. * g++.dg/parse/crash12.C: New test. From-SVN: r71605
2003-09-20Daily bump.GCC Administrator1-1/+1
From-SVN: r71595
2003-09-19mixed-struct-check.h: New.Janis Johnson16-0/+1065
2003-09-19 Janis Johnson <janis187@us.ibm.com> * gcc.dg/compat/mixed-struct-check.h: New. * gcc.dg/compat/mixed-struct-defs.h: New. * gcc.dg/compat/mixed-struct-init.h: New. * gcc.dg/compat/struct-by-value-19_main.c: New. * gcc.dg/compat/struct-by-value-19_x.c: New. * gcc.dg/compat/struct-by-value-19_y.c: New. * gcc.dg/compat/struct-by-value-20_main.c: New. * gcc.dg/compat/struct-by-value-20_x.c: New. * gcc.dg/compat/struct-by-value-20_y.c: New. * gcc.dg/compat/struct-return-19_main.c: New. * gcc.dg/compat/struct-return-19_x.c: New. * gcc.dg/compat/struct-return-19_y.c: New. * gcc.dg/compat/struct-return-20_main.c: New. * gcc.dg/compat/struct-return-20_x.c: New. * gcc.dg/compat/struct-return-20_y.c: New. From-SVN: r71591
2003-09-19configure.in: Remove --with-elf, which doesn't work.Nathanael Nerode4-318/+301
* configure.in: Remove --with-elf, which doesn't work. * configure: Regenerate. * config.gcc: Remove references to $elf, which does nothing. From-SVN: r71588
2003-09-19xm-vsta.h: Remove xm-file believed useless.Nathanael Nerode4-13/+6
* config/i386/xm-vsta.h: Remove xm-file believed useless. * config.build (i386-vsta): Remove reference to it. * config.host (i386-vsta): Remove reference to it. From-SVN: r71587
2003-09-19install.texi: Document the multiple testsuite options.Phil Edwards2-2/+76
2003-09-19 Phil Edwards <phil@codesourcery.com> * doc/install.texi: Document the multiple testsuite options. From-SVN: r71582
2003-09-19install.texi (Specific): Add the specific versions of GCC where support for ↵Gerald Pfeifer2-3/+9
FreeBSD 1... * doc/install.texi (Specific): Add the specific versions of GCC where support for FreeBSD 1, HP-UX version 9 and older, and AIX version 3 and older was discontinued. From-SVN: r71581
2003-09-19t-m68kbare, t-rtems: Change 68681 to 68881.Joel Sherrill3-2/+7
2003-09-19 Joel Sherrill <joel@oarcorp.com> * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to 68881. From-SVN: r71580
2003-09-19m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines for -m68030, -m68020-60 ↵Bernardo Innocenti3-143/+140
and -m68020-40. * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines for -m68030, -m68020-60 and -m68020-40. * config/m68k/m68k.h (TARGET_68030): New target flag. * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM, TARGET_REGPARM): Remove. * config/m68k/m68k.h: Regroup and renumber target flags. * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations. * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0. * config/m68k/m68k.h (FUNCTION_ARG): Likewise. * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise. * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros. From-SVN: r71577
2003-09-19array11.C: Change unsigned to __SIZE_TYPE__ so that it will not complain on ↵Andrew Pinski2-2/+9
LP64 targets. * g++.dg/init/array11.C: Change unsigned to __SIZE_TYPE__ so that it will not complain on LP64 targets. From-SVN: r71575
2003-09-19re PR c++/495 (ICE in in lookup_template_class, at cp/pt.c:3961)Kriang Lerdsuwanakij4-0/+40
PR c++/495 * pt.c (tsubst_friend_class): Only use innermost template arguments for the injected friend class template. * g++.dg/template/friend24.C: New test. From-SVN: r71574
2003-09-19t-rtems: New.Ralf Corsepius3-2/+12
2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * config/mips/t-rtems: New. * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems. From-SVN: r71570
2003-09-19t-rtems: New.Ralf Corsepius3-1/+12
2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * config/mips/t-rtems: New. * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems. From-SVN: r71569
2003-09-19* cgraph.c: Fix typo in debugging output.Kelley Cook2-1/+5
From-SVN: r71567
2003-09-19fix PR numberNathan Sidwell3-3/+3
From-SVN: r71564
2003-09-19re PR libstdc++/12232 (Incorrect handling of openmode argument in ↵Nathan Sidwell3-0/+27
filebuf::seekoff and seekpos) cp: PR c++/12232 * pt.c (instantiate_class_template): Increment processing_template_decl around the tsubst of a template member function. testsuite: PR c++/12232 * g++.dg/template/memtmpl2.C: New test. From-SVN: r71563
2003-09-19re PR target/12166 (Profiled programs crash if PROFDIR is set)T. Papadopoulo2-0/+10
PR target/12166 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1. Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr> From-SVN: r71559
2003-09-19decl.c (cxx_scope_descriptor): Fix thinko.Gabriel Dos Reis2-1/+9
* decl.c (cxx_scope_descriptor): Fix thinko. (struct cp_binding_level): Adjust type of binding_depth field. From-SVN: r71557
2003-09-18c-ppoutput.c (print): Use fileline typedef for field 'line'.Mike Stump3-18/+24
* c-ppoutput.c (print): Use fileline typedef for field 'line'. (print_line, maybe_print_line, cb_define, cb_undef, cb_include, cb_ident, cb_def_pragma): Use fileline typedef. * cpphash.h (struct cpp_reader): Likewise for field out.first_line. From-SVN: r71554
2003-09-19Daily bump.GCC Administrator1-1/+1
From-SVN: r71552