aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-06-26* config/rs6000/power4.md (power4-veccomplex): Correct latency.David Edelsohn2-2/+7
From-SVN: r68516
2003-06-26configure.in (ld_vers): Portability [sed].Loren J. Rittle3-336/+364
* configure.in (ld_vers): Portability [sed]. * configure: Regenerate with autoconf213. From-SVN: r68515
2003-06-26Daily bump.GCC Administrator1-1/+1
From-SVN: r68510
2003-06-26re PR c++/10990 (Cannot convert with dynamic_cast<> to a private base class ↵Mark Mitchell7-30/+93
from within a member function) PR c++/10990 * search.c (lookup_base_r): Rely on accessible_p, rather than trying to emulate that logic here. PR c++/10990 * g++.dg/rtti/dyncast1.C: New test. * g++.dg/abi/mangle4.C: Correct base-specifier access. * g++.dg/lookup/scoped1.C: Remove XFAIL. * g++.old-deja/g++.martin/pmf1.C: Correct base-specifier access. From-SVN: r68507
2003-06-26re PR c++/10931 (valid conversion static_cast<const unsigned ↵Mark Mitchell6-86/+209
int&>(lvalue-of-type-int) is rejected) PR c++/10931 * g++.dg/expr/static_cast1.C: New test. PR c++/10931 * call.c (convert_like): Pass issue_conversion_warnings. (convert_like_with_context): Likewise. (convert_like_real): Add issue_conversion_warnings parameter. (perform_direct_initialization_if_possible): New function. * cp-tree.h (perform_direct_initialization_if_possible): Declare it. * typeck.c (check_for_casting_away_constness): New function. (build_static_cast): Rewrite. From-SVN: r68506
2003-06-25extend.texi: Document new builtin functions for Intel Prescott New Intrunctions.H.J. Lu7-10/+447
2003-06-25 H.J. Lu <hongjiu.lu@intel.com> * doc/extend.texi: Document new builtin functions for Intel Prescott New Intrunctions. * doc/invoke.texi: Document new command-line options, -mpni and -mno-pni, for Intel Prescott New Intrunctions. * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*. * config/i386/i386.c (override_options): Turn on MASK_SSE2 for -mpni. Turn on MASK_SSE for -msse2. (bdesc_2arg): Add PNI builtins with 2 args. (bdesc_1arg): Add PNI builtins with 1 arg. (ix86_init_mmx_sse_builtins): Handle PNI builtins. (ix86_expand_builtin): Likewise. * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT, MASK_TLS_DIRECT_SEG_REFS): Renumbered. (TARGET_PNI): New. (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add -mpni and -mno-pni. (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI. (ix86_builtins): Add PNI builtins. (config/i386/i386.md): Add PNI patterns. * config/i386/pmmintrin.h: New file. From-SVN: r68502
2003-06-25h8300.md (call): Fix the insn lengths.Kazu Hirata2-4/+9
* config/h8300/h8300.md (call): Fix the insn lengths. (call_value): Likewise. From-SVN: r68501
2003-06-25c-common.c (handle_used_attribute): Use mark_referenced.Jan Hubicka4-21/+37
* c-common.c (handle_used_attribute): Use mark_referenced. * varasm.c (mark_referenced): Break out from ... (assemble_name): ... here. * tree.h (mark_referenced): Declare. From-SVN: r68500
2003-06-25gccbug.in: Add PCH to list of categories.Wolfgang Bangerth2-2/+6
2003-06-25 Wolfgang Bangerth <bangerth@dealii.org> * gccbug.in: Add PCH to list of categories. From-SVN: r68497
2003-06-25cppfiles.c: Clarify comments.Martin Schaffner6-6/+14
* cppfiles.c: Clarify comments. * cpphash.h: Likewise. * cpplib.h: Likewise. * cppmacro.c: Likewise. * mkdeps.h: Likewise. From-SVN: r68496
2003-06-25c-opts.c (complain_wrong_lang, [...]): Remove.Neil Booth8-141/+114
* c-opts.c (complain_wrong_lang, write_langs): Remove. (c_common_handle_option): Complaints about wrong language are handled in opts.c now. * opts.c (complain_wrong_lang, write_langs, handle_options): New. (find_opt): Fix thinko. (handle_option): Update prototype. Complain about switches for a different front end. * opts.h (lang_names, handle_options): New. (handle_option): Remove. * opts.sh: Write out language names array. * toplev.c (parse_options_and_default_flags): Use handle_options. From-SVN: r68495
2003-06-25i386.c (MASK_SSE1): Removed.H.J. Lu3-140/+150
2003-06-25 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (MASK_SSE1): Removed. (MASK_SSE164): Removed. (MASK_SSE264): Removed. (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264 with MASK_SSE2 | MASK_64BIT. (bdesc_1arg): Likewise. (ix86_init_mmx_sse_builtins): Likewise. * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2. (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for -msse2. From-SVN: r68492
2003-06-25hwint.h (HOST_WIDE_INT_PRINT, [...]): New macros.Kaveh R. Ghazi4-43/+36
* hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros. (HOST_WIDE_INT_PRINT_DEC_SPACE, HOST_WIDE_INT_PRINT_UNSIGNED_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete. (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C, HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C. * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT. * ra-debug.c (dump_static_insn_cost): Likewise. From-SVN: r68489
2003-06-25arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead of ADJUST_FIELD_ALIGN if ↵Nick Clifton2-2/+20
IN_TARGET_LIBS. * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS. Replace occurances of '???' with 'XXX' incase they are mistaken for trigraphs. (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address does not have a register for the first operand. From-SVN: r68487
2003-06-25sh.c (sh_register_move_cost): Add case for moving between MAC_REGS.Dhananjay Deshpande2-0/+8
2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com> * config/sh/sh.c (sh_register_move_cost): Add case for moving between MAC_REGS. From-SVN: r68484
2003-06-25re PR c/10178 (ICE in tree_low_cst)Zack Weinberg6-11/+35
PR 10178 * langhooks.h (struct lang_hooks): Add no_body_blocks bool. * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false. * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS to true. * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always return 0. From-SVN: r68483
2003-06-25Makefile.in (bt-load.o): Depend on $(TM_P_H).Kaveh R. Ghazi3-1/+7
* Makefile.in (bt-load.o): Depend on $(TM_P_H). * bt-load.c: Include "tm_p.h". From-SVN: r68482
2003-06-25h8300.c (compute_mov_length): Adjust for the new optimization.Kazu Hirata3-2/+18
* config/h8300/h8300.c (compute_mov_length): Adjust for the new optimization. * config/h8300/h8300.md (*movsi_h8300): Optimize the load of an SImode constant whose upper and lower are the same. From-SVN: r68475
2003-06-25varasm.c (assemble_name): Mark needed variables even when global info is ready.Jan Hubicka2-5/+13
* varasm.c (assemble_name): Mark needed variables even when global info is ready. From-SVN: r68472
2003-06-25re PR other/11280 (Manual incorrect WRT -freorder-blocks)Jerry Quinn2-1/+7
PR other/11280 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from -freorder-functions description. From-SVN: r68470
2003-06-25Test from http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02557.htmlJosef Zlomek2-0/+13
From-SVN: r68462
2003-06-25* dwarf2out.c (gen_field_die): Return if type of decl is error mark.Josef Zlomek2-1/+9
From-SVN: r68459
2003-06-25opts.c (common_handle_option): Add missing break;s.Neil Booth4-0/+11
* opts.c (common_handle_option): Add missing break;s. f: * top.c (ffe_handle_option): Add missing break;. From-SVN: r68457
2003-06-25h8300-protos.h: Add a prototype for compute_mov_length.Kazu Hirata4-108/+284
* config/h8300/h8300-protos.h: Add a prototype for compute_mov_length. * config/h8300/h8300.c (compute_mov_length): New. * config/h8300/h8300.md (*movqi_h8300): Use it. (*movqi_h8300hs): Likewise. (movstrictqi): Likewise. (*movhi_h8300): Likewise. (*movhi_h8300hs): Likewise. (movstricthi): Likewise. (*movsi_h8300): Likewise. (*movsf_h8300): Likewise. (*movsi_h8300hs): Likewise. (*movsf_h8300hs): Likewise. From-SVN: r68454
2003-06-25jump.c (next_nondeleted_insn): Remove.Kazu Hirata3-13/+5
* jump.c (next_nondeleted_insn): Remove. * rtl.h: Remove the prototype for next_nondeleted_insn. From-SVN: r68453
2003-06-25re PR rtl-optimization/11311 (ICE with pow and large exponent)Roger Sayle4-1/+18
PR optimization/11311 * builtins.c (powi_cost): Fix typo. The number of multiplications required is the number to reduce the argument, result, plus the cost of calculating the residual, val [not n, the original value]. * gcc.c-torture/compile/20030624-1.c: New test case. From-SVN: r68452
2003-06-25* config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.Roger Sayle2-0/+9
From-SVN: r68449
2003-06-25Daily bump.GCC Administrator1-1/+1
From-SVN: r68447
2003-06-25real.h (ieee_extended_intel_96_round_53_format): New.Richard Henderson4-0/+38
* real.h (ieee_extended_intel_96_round_53_format): New. * real.c (ieee_extended_intel_96_round_53_format): New. * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it for XFmode and TFmode. From-SVN: r68445
2003-06-24re PR fortran/11299 (f771 ICE on line directive)Scott Snyder2-0/+8
2003-06-24 Scott Snyder <snyder@fnal.gov> PR fortran/11299 * com.c (ffe_init): Call push_srcloc() to ensure that input_file_stack is initialized. From-SVN: r68437
2003-06-24h8300.md (4 anonymous patterns): Give internal names.Kazu Hirata2-8/+17
* config/h8300/h8300.md (4 anonymous patterns): Give internal names. (movsi_h8300): Change the name to *movsi_h8300. (movsi_h8300hs): Change the name to *movsi_h8300hs. (movsf_h8300): Change the name to *movsf_h8300. (movsf_h8300hs): Change the name to *movsf_h8300hs. From-SVN: r68435
2003-06-24builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in src twice.Jakub Jelinek4-1/+55
* builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in src twice. * gcc.c-torture/execute/string-opt-17.c: New test. From-SVN: r68431
2003-06-24Back out these patches:J"orn Rennecke3-43/+139
2003-06-02 J"orn Rennecke <joern.rennecke@superh.com> * sh.h (OLD_ARG_MODE): New macro. (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it. (FUNCTION_ARG_1): Break out of: (FUNCTION_ARG). Use OLD_ARG_MODE. 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com> * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode of the generated register. * sh.h (FUNCTION_ARG_SCmode_WART): Define. (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and an even number of floating point regs are in use, use the same sequence of argument passing registers for SCmode as would be used for two SFmode values. * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined, swap real / imaginary parts in incoming SCmode values passed in registers. From-SVN: r68430
2003-06-24re PR target/11260 ([alpha] 'output_operand: floating constant misused' with ↵Falk Hueffner2-1/+6
sqrt(0.0) and -mcpu=ev6) PR target/11260 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution. From-SVN: r68427
2003-06-24Makefile.in (cgraph.o): Depend on output.h, not depend on tree-inline.hJan Hubicka6-11/+227
* Makefile.in (cgraph.o): Depend on output.h, not depend on tree-inline.h * cgraph.c: Do not include tree-inline.h; include output.h (known_fns): Rename to ... (known_decls): ... this one; update all uses. (cgraph_varpool_hash): New static variable. (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global variables. (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node, cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node, cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls): New functions. * cgraph.h (cgraph_varpool_node): New structure. (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare. (cgraph_varpool_node, cgraph_varpool_node_for_identifier, cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node, cgraph_varpool_asemble_pending_decls): Declare. * cgraphunit.c (record_call_1): Notice variable references. (cgraph_finalize_compilation_unit): Assemble pending variables. * toplev.c (wrapup_global_declarations): Use varpool. (compile_file): Assemble pending declarations. (rest_of_decl_compilation): Use varpool in unit-at-a-time mode. * varasm.c (assemble_name): Notice varpool references. From-SVN: r68426
2003-06-24call.c (enforce_access): Assert we get a binfo.Nathan Sidwell13-69/+108
* call.c (enforce_access): Assert we get a binfo. (build_op_delete_call): Pass a binfo to perform_or_defer_access_check. * class.c (alter_access): Likewise. * decl.c (make_typename_type): Likewise. (make_unbound_class_template): Likewise. * lex.c (do_identifier): Likewise. * method.c (hack_identifier): Likewise. * parser.c (cp_parser_lookup_name): Likewise. * search.c (lookup_member): Likewise. Move IDENTIFIER_CLASS_VALUE test. * semantics.c (finish_non_static_data_member): Likewise. (perform_or_defer_access_check): Expect a binfo. * typeck.c (comptypes): Expect types. * mangle.c (find_substitution): Don't pass a non-type to same_type_p * friend.c (make_friend_class): Likewise. * pt.c (check_default_tmpl_args): Likewise. (lookup_template_class): Likewise. From-SVN: r68424
2003-06-24re PR c++/5754 (g++ segfaults on compilation of template-enriched code)Mark Mitchell2-0/+15
PR c++/5754 * g++.dg/parse/crash6.C: New test. From-SVN: r68423
2003-06-24method.c (thunk_labelno): Move outside ifdef block to make garbage collector ↵Jan Hubicka2-1/+8
happy. * method.c (thunk_labelno): Move outside ifdef block to make garbage collector happy. From-SVN: r68419
2003-06-24langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.Jan Hubicka10-7/+40
* langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro. * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable. * varasm.c (assemble_variable): Call prepare_assemble_variable. * class.c (build_vtable): Make vtables. * cp-tree.h (DECL_VTABLE_OR_VTT_P): New macro. * decl2.c (output_vtable_inherit): Rename to ... (prepare_assemble_variable): ... this one; change interface. (maybe_emit_vtables): Do not call output_vtable_inherit. * cp-lang.c (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Define. * cp-tree.h (prepare_assemble_variable): New. From-SVN: r68418
2003-06-24method.c: add prototype for make_alias_for_thunk.Andrew Pinski2-0/+11
* method.c: add prototype for make_alias_for_thunk. (thunk_labelno, make_alias_for_thunk): only define if ASM_OUTPUT_DEF is defined. From-SVN: r68405
2003-06-24builtins.c (expand_builtin): Use expand_builtin_pow to expand calls for pow...Roger Sayle5-0/+318
* builtins.c (expand_builtin): Use expand_builtin_pow to expand calls for pow, powf, powl and their __builtin_ variants. (expand_builtin_pow): If the second argument is a constant integer and compiling with -ffast-math, use expand_powi to generate RTL if powi_cost is less than POWI_MAX_MULTS. (powi_cost): New function to return the number of multiplications necessary to evaluate an Nth power, for integer constant N. (expand_powi): New function to expand the RTL for evaluating the Nth power of a floating point value, for integer constant N. * doc/tm.texi (POWI_MAX_MULTS): Document new target macro. * gcc.dg/builtins-24.c: New test case. From-SVN: r68401
2003-06-24Daily bump.GCC Administrator1-1/+1
From-SVN: r68396
2003-06-23cgraph.c (cgraph_nodes_queue): Declare.Jan Hubicka5-66/+136
* cgraph.c (cgraph_nodes_queue): Declare. (eq_node): Take identifier as p2. (cgraph_node): Update htab_find_slot_with_hash call. (cgraph_node_for_identifier): New. (cgraph_mark_needed_node): Move here from cgraphunit.c. * cgraph.h (cgraph_nodes_queue): Declare. (cgraph_node_for_identifier): Declare. * cgraphunit.c (cgraph_finalize_function): Collect entry points here instead of in cgraph_finalize_compilation_unit; constructors and destructors are entry points. (cgraph_finalize_compilation_unit): Reorganize debug outout; examine nested functions after lowerng; call collect_functions hook. (cgraph_mark_local_functions): DECL_COMDAT functions are not local. (cgraph_finalize_compilation_unit): Do not collect entry points. * varasm.c: Include cgraph.h (assemble_name): Mark referenced identifier as needed. * cgraphunit.c (record_call_1): Use get_callee_fndecl. From-SVN: r68390
2003-06-23i386.c (x86_output_mi_thunk): Don't pass MEM to %P0, just SYMBOL_REF.Jakub Jelinek9-15/+137
* config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0, just SYMBOL_REF. * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31 mode, as it requires pic register loaded. * varasm.c (resolve_unique_section): Remove prototype. No longer static. * tree.h (resolve_unique_section): New prototype. cp/ * method.c (thunk_labelno): New variable. (make_alias_for_thunk): New function. (use_thunk): Use it if defined ASM_OUTPUT_DEF. Put the thunk into the same section as the function it is calling. Include gt-cp-method.h. * Make-lang.in (gt-cp-method.h): Depend on s-gtype. (cp/method.o): Depend on gt-cp-method.h. * config-lang.in (gtfiles): Add $(srcdir)/cp/method.c. From-SVN: r68389
2003-06-23re PR debug/9905 (Unhandled STMT_EXPR in loc_descriptor_from_tree)Andreas Schwab2-0/+7
PR debug/9905 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by recursing through first argument. From-SVN: r68379
2003-06-23decl.c (register_dtor_fn): Mark cleanup as used.Jan Hubicka4-4/+25
* decl.c (register_dtor_fn): Mark cleanup as used. * decl2.c (mark_vtable_entries): Skip nops. * rtti.c (get_tinfo_ptr): Mark tinfo as used. (build_dynamic_cast_1): Likewise. (tinfo_base_init): Likewise. (emit_tinfo_decl): Likewise. From-SVN: r68377
2003-06-23ChangeLog.1: Fix a typo.Kazu Hirata10-14/+26
* ChangeLog.1: Fix a typo. * cfgrtl.c: Fix comment typos. * dwarf2out.c: Likewise. * expmed.c: Likewise. * genrecog.c: Likewise. * jump.c: Likewise. * rtlanal.c: Likewise. * ssa-dce.c: Likewise. * toplev.c: Likewise. From-SVN: r68374
2003-06-23extend.texi: Fix typos.Kazu Hirata4-4/+10
* doc/extend.texi: Fix typos. * doc/md.texi: Likewise. * doc/tm.texi: Likewise. From-SVN: r68371
2003-06-23basic-block.h: Fix comment formatting.Kazu Hirata23-67/+92
* basic-block.h: Fix comment formatting. * bt-load.c: Likewise. * builtins.c: Likewise. * c-common.c: Likewise. * c-common.h: Likewise. * c-format.c: Likewise. * coverage.c: Likewise. * cpplib.h: Likewise. * cpppch.c: Likewise. * dbxout.c: Likewise. * diagnostic.c: Likewise. * dwarf2out.c: Likewise. * expr.c: Likewise. * fold-const.c: Likewise. * function.c: Likewise. * gcc.c: Likewise. * gcov-io.c: Likewise. * gcov-io.h: Likewise. * gcov.c: Likewise. * profile.c: Likewise. * real.h: Likewise. * sched-deps.c: Likewise. From-SVN: r68369
2003-06-23contrib.texi (Contributors): Add a note on testing and remove duplicates ↵Gerald Pfeifer2-64/+10
from testers list. * doc/contrib.texi (Contributors): Add a note on testing and remove duplicates from testers list. From-SVN: r68367