aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-05-03expr.c (expand_expr, [...]): Don't use gen_lowpart on non-integer modes.Richard Kenner2-3/+8
* expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use gen_lowpart on non-integer modes. From-SVN: r66430
2003-05-03emit-rtl.c (last_call_insn, [...]): New functions.Olivier Hainque11-95/+188
* emit-rtl.c (last_call_insn, add_function_usage_to): New functions. * rtl.h (last_call_insn, add_function_usage_to): New prototypes. * builtins.c (expand_builtin_apply): Use the new emit-rtl functions. * calls.c (emit_call_1): Likewise. (expand_call): For calls initializing constant memory, replace emission of standalone mem /u clobber with function usage entry. * expr.c (emit_block_move_via_libcall): Likewise. * cse.c (count_reg_usage, case EXPR_LIST): New case. * flow.c (propagate_one_insn): Pass entire operand of CALL_INSN_FUNCTION_USAGE to mark_used_regs. * integrate.c (try_constants): For CALL_INSNs, substitute constants within the FUNCTION_USAGE also. * loop.c (prescan_loop): Note clobbers of const mem mentioned in FUNCTION_USAGE lists. * reload1.c (replace_pseudos_in): Renamed. (reload): Use it for clobbers surviving until the end of the reload. From-SVN: r66429
2003-05-03stor-layout.c (place_field): When adjusting offset_align, use desired_align, ↵Richard Kenner2-1/+6
not DECL_ALIGN. * stor-layout.c (place_field): When adjusting offset_align, use desired_align, not DECL_ALIGN. From-SVN: r66428
2003-05-03* gcc.dg/m-un-2.c: Fix the typedef of size_t.Kazu Hirata2-1/+5
From-SVN: r66426
2003-05-03c-decl.c (pending_invalid_xref_file): Remove.Nathan Sidwell9-41/+42
* c-decl.c (pending_invalid_xref_file): Remove. (pending_invalid_xref_line): Remove. (pending_invalid_xref_location): New. (lookup_label): Use location_t and input_location directly. (lookup_tag): Likewise. (pending_xref_error): Likewise. (c_expand_body_1): Likewise. * c-common.c (x_expand_start_cond): Likewise. * c-semantics.c (genrtl_for_stmt): Likewise. (find_reachable_label): Likewise. * expr.c (expand_expr): Likewise. * integrate.c (output_inline_function): Likewise. * tree-inline.c (find_alloca_call): Likewise. (find_builtin_longjmp_call): Likewise. * gcc.c (input_filename): Make static. From-SVN: r66425
2003-05-03PR c++/9364, c++/10553, c++/10586Kriang Lerdsuwanakij5-0/+35
PR c++/9364, c++/10553, c++/10586 * decl.c (make_typename_type): Don't crash on illegal code. * g++.dg/parse/typename4.C: New test. * g++.dg/parse/typename5.C: Likewise. From-SVN: r66424
2003-05-03class.c (finish_struct): Use location_t and input_location directly.Nathan Sidwell10-98/+83
* class.c (finish_struct): Use location_t and input_location directly. * decl.c (make_label_decl): Likewise. (use_label): Likewise. * decl2.c (warn_if_unknown_interface): Likewise. (start_static_initialization_or_destruction): Likewise. (generate_ctor_or_dtor_function): Likewise. (finish_file): Likewise. * error.c (print_instantiation_full_context): Likewise. * init.c (create_temporary_var): Likewise. * method.c (synthesize_method): Likewise. * parser.c (cp_token): Likewise. (cp_lexer_set_source_position_from_token): Likewise. (cp_lexer_get_preprocessor_token): Likewise. (cp_parser_statement): Likewise. * pt.c (tsubst_friend_function): Likewise. (instantiate_class_template): Likewise. (tsubst_decl): Likewise. (tsubst): Likewise. (instantiate_decl): Likewise. * semantics.c (begin_class_definition): Likewise. (expand_body): Likewise. From-SVN: r66423
2003-05-03* ansify.c (die_unless): Revert lineno change here.Nathan Sidwell2-1/+5
From-SVN: r66422
2003-05-03* gcc.c-torture/compile/20030503-1.c: New test.Richard Sandiford2-0/+16
From-SVN: r66421
2003-05-03* config/mips/mips.md: Fix comment typo.Richard Sandiford2-1/+3
From-SVN: r66420
2003-05-03mips.c (mips_integer_op): New structure.Richard Sandiford2-10/+199
* config/mips/mips.c (mips_integer_op): New structure. (MIPS_MAX_INTEGER_OPS): Define. (mips_const_insns): Use mips_build_integer to determine the number of instructions needed to load a CONST_INT. (move_operand): Reject compound CONST_INTs. (mips_build_shift, mips_build_lower, mips_build_integer): New fns. (mips_move_integer): New fn. (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer. (mips_legitimize_move): Only legitimize constants when moving word or subword values. From-SVN: r66419
2003-05-03* Makefile.in (gcov-iov.h): Use move-if-change and a stamp.Matt Kraai2-2/+9
From-SVN: r66417
2003-05-03re PR java/10491 (gcjh should make enclosing class a "friend" of inner classes)Tom Tromey2-0/+38
PR java/10491: * gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. (handle_inner_classes): New function. From-SVN: r66416
2003-05-03re PR java/10459 (ICE with certain expressions as 3rd clause of for loop)Tom Tromey2-7/+21
PR java/10459: * parse.y (finish_for_loop): Do nothing if update expression is a EXPR_WFL_NODE wrapping nothing. (java_complete_lhs) <COMPOUND_EXPR>: Likewise. From-SVN: r66411
2003-05-03builtins.c (expand_builtin_stpcpy): Copy `arglist' before modifying it.Kaveh R. Ghazi2-2/+9
* builtins.c (expand_builtin_stpcpy): Copy `arglist' before modifying it. From-SVN: r66409
2003-05-03Daily bump.GCC Administrator1-1/+1
From-SVN: r66407
2003-05-02contrib.texi (Contributors): Add Zdenek Dvorak, Aldy Hernandez, and Kazu Hirata.Falk Hueffner2-1/+17
* doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy Hernandez, and Kazu Hirata. Update Richard Henderson. Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> From-SVN: r66405
2003-05-02rs6000.c (rs6000_attribute_table): Add 'extern' to tentative declaration.Geoffrey Keating2-1/+4
* config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern' to tentative declaration. From-SVN: r66396
2003-05-02sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.Geoffrey Keating3-38/+14
* config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete. (SYMBOL_FLAG_SMALL_V4): Delete. * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P. (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4. (rs6000_elf_in_small_data_p): Add extra section names. Add comment about TREE_PUBLIC test. From-SVN: r66393
2003-05-02c-semantics.c (genrtl_switch_stmt, [...]): Call expand_stmt on result of ↵Geoffrey Keating2-7/+13
expand_unreachable_stmt. * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call expand_stmt on result of expand_unreachable_stmt. From-SVN: r66392
2003-05-02* doc/contrib.texi (Contributors): Add Daniel Berlin.Gerald Pfeifer2-0/+8
From-SVN: r66388
2003-05-02{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease number of automata.David Edelsohn8-23/+30
* config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease number of automata. * config/rs6000/rs6000.c (symbol_ref_operand): Check SYMBOL_REF_FUNCTION_P on AIX. (current_file_function_operand): Same. * config/rs6000/rs6000.md (call,call_value): Force non-function symbol_ref into register on AIX. From-SVN: r66385
2003-05-02calls.c (struct arg_data): Move offset, slot_offset, size and alignment_pad ↵Alan Modra4-251/+264
to struct locate_and_pad_arg_data. * calls.c (struct arg_data): Move offset, slot_offset, size and alignment_pad to struct locate_and_pad_arg_data. Update all refs. (initialize_argument_information): Adjust call to locate_and_pad_parm. Delete alignment_pad var. Don't calculate slot_offset here. (emit_library_call_value_1): Delete alignment_pad, offset and size vars. Use struct locate_and_pad_arg_data instead. Adjust refs. Adjust call to locate_and_pad_parm. Don't tweak arg size for partial in-regs here. Formatting fixes. * expr.h (struct locate_and_pad_arg_data): New struct. (locate_and_pad_parm): Adjust declaration. * function.c (assign_parms): Localize vars. Use "locate" instead of other arg location vars. Don't invoke FUNCTION_ARG or FUNCTION_INCOMING_ARG unless pretend_named is different from named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before calling locate_and_pad_parm. Adjust locate_and_pad_parm call. Use slot_offset for stack home of reg parms. Correct test for parm passed in memory. Formatting fixes. (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr arg_size_ptr and alignment pad with "locate". Set slot_offset here. Correct initial_offset_ptr handling. Localize vars. Always pad locate->offset even when in_regs. From-SVN: r66383
2003-05-02Clarify the comment before the abort we hit when a translated string ↵Wolfgang Bangerth1-1/+3
contains invalid formats. From-SVN: r66381
2003-05-02* g++.dg/lookup/using5.C: Fix testcase error.Kriang Lerdsuwanakij2-1/+5
From-SVN: r66380
2003-05-02Makefile.in (TREE_H): Replace location.h with input.h.Nathan Sidwell14-99/+85
* Makefile.in (TREE_H): Replace location.h with input.h. (GTFILES) Remove location.h (gt-lists.h): Replace gt-location.h with gt-input.h * input.h (input_filename, input_line): Remove variables. (location_s, location_t): Move from location.h. (input_location): New. (input_filename, input_line): New #defines. * location.h: Remove. * tree.h: Replace location.h with input.h. (input_filename, input_line): Remove. * diagnostic.h: Replace location.h with input.h. * gcc.h (input_filename, input_filename_length): Remove declarations. * toplev.c (input_filename, input_line): Remove. (input_location): Define. (push_srcloc, pop_srcloc): Adjust. * diagnostic.c (diagnostic_report_current_module): Adjust. f: * lex.c (ffelex_file_pop_): Adjust file_stack member use. (ffelex_file_push_): Likewise. (ffelex_hash_): Likewise. java: * lex.h (input_lineno): Remove declaration. * parse-scan.y: #include input.h. (input_filename): Remove declaration. (input_location): Add definition. (input_line): Remove definition. From-SVN: r66378
2003-05-02Add xstormy16 to list of targets that has a nop instruction and hence which ↵Nick Clifton3-352/+370
can... Add xstormy16 to list of targets that has a nop instruction and hence which can be tested to see if the assembler supports the --gdwarf2 switch. From-SVN: r66374
2003-05-01mips-abi.exp (is_meabi_config): Remove, since MEABI is no longer supported.Chris Demetriou2-19/+11
2003-05-01 Chris Demetriou <cgd@broadcom.com> * gcc.dg/special/mips-abi.exp (is_meabi_config): Remove, since MEABI is no longer supported. Remove all vestiges of MEABI from the test. From-SVN: r66370
2003-05-01re PR target/8257 ([Alpha] frame pointer computation wrong on alpha ↵Falk Hueffner2-24/+31
(cross-compiler)) PR target/8257 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue, alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib): Avoid undefined shifts by making the shift operand unsigned. From-SVN: r66367
2003-05-01reload.c (find_reloads): Also check that all of a multi-reg value is in the ↵DJ Delorie2-1/+16
class. * reload.c (find_reloads): Also check that all of a multi-reg value is in the class. From-SVN: r66366
2003-05-02Daily bump.GCC Administrator1-1/+1
From-SVN: r66365
2003-05-01* scan.h (lineno): Revert the rename here.Nathan Sidwell2-1/+5
From-SVN: r66344
2003-05-01trans.c (tree_transform, [...]): Rename lineno to input_line.Nathan Sidwell2-8/+8
* trans.c (tree_transform, build_unit_elab, set_lineno): Rename lineno to input_line. From-SVN: r66343
2003-05-01darwin.c (darwin_encode_section_info): Call default_encode_section_info.Stan Shebs2-0/+11
* config/darwin.c (darwin_encode_section_info): Call default_encode_section_info. From-SVN: r66339
2003-05-01missed from my previous checkinNathan Sidwell2-0/+48
From-SVN: r66337
2003-05-01rs6000.md (define_attr "type"): Add mfjmpr.David Edelsohn15-61/+292
* config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr. (movsi_internal1): Use new mfjmpr attribute. (movhi_internal): Same. (movqi_internal): Same. (movcc_internal1): Same. (movdi_internal64): Same. * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md, power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr. * config/rs6000/40x.md: Add fpu_405. * config/rs6000/power4.md: Merge power4lsu and power4disp automata into power4misc automata. Remove extraneous parentheses. * config/rs6000/440.md: New file. * config/rs6000/rs6000.c (processor_target_table): Add 440, 440fp. Rename 405f to 405fp. (function_arg_padding): Correct formatting. (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases. From-SVN: r66336
2003-05-01input.h (lineno): Rename to ...Nathan Sidwell58-379/+450
* input.h (lineno): Rename to ... (input_line): ... here. * tree.h (lineno): Rename to ... (input_line): ... here. * scan.h (lineno): Rename to ... (input_line): ... here. * toplev.c (lineno): Rename to ... (input_line): ... here. (push_srcloc, pop_srcloc): Rename lineno to input_line. * c-common.c (c_expand_start_cond, fname_decl): Likewise. * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag, store_parm_decls, c_expand_body_1): Likewise. * c-errors.c (pedwarn_c99): Likewise. * c-format.c (status_warning): Likewise. * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise. * c-opts.c (c_common_post_options, c_common_parse_file): Likewise. * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise. * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var, gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt, genrtl_for_stmt, build_break_stmt, build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt, prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise. * coverage.c (create_coverage): Likewise. * diagnostic.c (pedwarn, sorry, error, fatal_error, internal_error, warning, diagnostic_report_current_module, inform): Likewise. * expr.c (expand_expr): Likewise. * integrate.c (expand_inline_function, output_inline_function): Likewise. * rtl-error.c (file_and_line_for_asm): Likewise. * tree-inline.c (find_alloca_call, find_builtin_longjmp_call, walk_tree): Likewise. * tree.c (make_node): Likewise. * ada, cp, f, java, objc, treelang: Likewise. ada * trans.c (build_unit_elab, set_lineno): Rename lineno to input_line. * utils.c (pushdecl, create_label_decl, begin_subprog_body, end_subprog_body): Likewise. * utils2.c (build_call_raise): Likewise. cp * class.c (finish_struct): Rename lineno to input_line. * decl.c (push_binding_level, pop_binding_level, suspend_binding_level, resume_binding_level, make_label_decl, use_label, start_function): Likewise. * decl2.c (warn_if_unknown_interface, start_static_initialization_or_destruction, generate_ctor_or_dtor_function, finish_file): Likewise. * error.c (cp_line_of, print_instantiation_full_context, print_instantiation_context): Likewise. * except.c (check_handlers_1, check_handlers): Likewise. * init.c (create_temporary_var): Likewise. * method.c (use_thunk, synthesize_method): Likewise. * parser.c (cp_lexer_set_source_position_from_token, cp_lexer_get_preprocessor_token): Likewise. * pt.c (push_tinst_level, pop_tinst_level, tsubst_friend_function, instantiate_class_template, tsubst_decl, tsubst, tsubst_expr, instantiate_decl): Likewise. * semantics.c (genrtl_try_block, finish_label_stmt, begin_class_definition, expand_body, genrtl_finish_function): Likewise. * tree.c (build_min_nt, build_min): Likewise. f * ansify.c (die_unless): Rename lineno to input_line. * com.c (ffecom_subscript_check_, ffecom_do_entry_, ffecom_gen_sfuncdef_, ffecom_start_progunit_, ffecom_sym_transform_, ffecom_sym_transform_assign_, bison_rule_pushlevel_, bison_rule_compstmt_, finish_function, store_parm_decls): Likewise. * intrin.c (ffeintrin_fulfill_generic): Likewise. * lex.c (ffelex_hash_, ffelex_include_, ffelex_next_line_, ffelex_file_fixed, ffelex_file_free): Likewise. * std.c (ffestd_exec_end): Likewise. * ste.c (ffeste_emit_line_note_, ffeste_start_block_, ffeste_start_stmt_): Likewise. * ste.h (ffeste_filelinenum, ffeste_set_line): Likewise. java * lex.h (lineno): Rename to ... (input_line): ... here * parse-scan.y (lineno): Rename to ... (input_line): ... here. (reset_report): Rename lineno to input_line. * check-init.c (check_init): Likewise. * class.c (push_class): Likewise. * decl.c (complete_start_java_method, end_java_method): Likewise. * expr.c (expand_byte_code): Likewise. * jcf-parse.c (give_name_to_class, parse_class_file): Likewise. * jcf-write.c (generate_bytecode_insns): Likewise. * lex.c (java_init_lex, java_allocate_new_line, do_java_lex): Likewise. * parse.h (YYNOT_TWICE): Likewise. * parse.y (empty_statement, expression_statement, java_pop_parser_context, java_parser_context_save_global, yyerror, register_fields, method_header, safe_layout_class, find_in_imports_on_demand, create_artificial_method, source_end_java_method, start_complete_expand_method, build_thisn_assign, java_complete_lhs, maybe_absorb_scoping_block): Likewise. objc * objc-act.c (objc_init): Rename lineno to input_line. (build_module_descriptor, build_selector_translation_table, build_protocol_template, build_method_prototype_list_template, build_category_template, build_selector_table, build_class_template, build_super_template, build_ivar_template, build_ivar_list_template, build_method_list_template, build_method_template, add_instance_variable): Likewise. treelang * tree1.c (treelang_init): Rename lineno to input_line. From-SVN: r66333
2003-05-01decl2.c (comdat_linkage): Don't externalize explicit instantiations.Mark Mitchell2-1/+6
* decl2.c (comdat_linkage): Don't externalize explicit instantiations. From-SVN: r66331
2003-05-01lex.c (ffelex_file_pop_): Rename parameter from input_filename.Nathan Sidwell2-6/+9
* lex.c (ffelex_file_pop_): Rename parameter from input_filename. (ffelex_file_push_): Likewise. From-SVN: r66330
2003-05-01re PR c++/10554 (ICE with illegal using declaration)Kriang Lerdsuwanakij4-0/+29
PR c++/10554 * decl2.c (do_class_using_decl): Check if operand 0 of SCOPE_REF is not NULL. * g++.dg/lookup/using5.C: New test. From-SVN: r66329
2003-05-01cp-tree.h (struct lang_id2): Remove.Steven Bosscher2-24/+22
* cp-tree.h (struct lang_id2): Remove. Move fields from here... (struct lang_identifier): ... to here. (LANG_ID_FIELD): Remove. (SET_LANG_ID): Remove. (IDENTIFIER_LABEL_VALUE): Adjust for new lang_identifier. (SET_IDENTIFIER_LABEL_VALUE): Likewise. (IDENTIFIER_IMPLICIT_DECL): Likewise. (SET_IDENTIFIERL_IMPLICIT_DECL): Likewise. (IDENTIFIER_ERROR_LOCUS): Likewise. (SET_IDENTIFIER_ERROR_LOCUS): Likewise. From-SVN: r66328
2003-05-01re PR ada/10546 (GCC 3.3, Ada tasking not working on Red Hat Linux 9)Laurent Guerby2-17/+22
2003-05-01 Laurent Guerby <guerby@acm.org> PR ada/10546 * 5iosinte.ads: Increase pthread_cond_t size to match recent LinuxThread and NPTL version, merge from ACT. From-SVN: r66327
2003-05-01dwarf2out.c (dwarf2out_init, [...]): Change parameter name from input_filename.Nathan Sidwell4-9/+19
* dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter name from input_filename. f: * ste.c (struct gbe_block): Rename field from input_filename. (ffeste_start_block_, ffeste_start_stmt_): Likewise. From-SVN: r66326
2003-05-01re PR c++/8772 (misleading diagnostic for template template parameter)Kriang Lerdsuwanakij4-0/+32
PR c++/8772 * pt.c (convert_template_argument): Correct diagnostic. * g++.dg/template/ttp5.C: New test. From-SVN: r66324
2003-05-01Regenerated with autoconf 2.13.Richard Sandiford1-9350/+4020
From-SVN: r66323
2003-05-01Missed commit file.Eric Christopher1-2/+2
From-SVN: r66319
2003-05-01Merge from rewrite branch.Eric Christopher15-8223/+13649
From-SVN: r66318
2003-05-01g++-dg.exp (g++-dg-test): Add "repo" option.Mark Mitchell3258-6105/+6567
* lib/g++-dg.exp (g++-dg-test): Add "repo" option. (dg-gpp-additional-sources): New function. (dg-gpp-additional-files): Likewise. * lib/g++.exp (additional_sources): New variable. (additional_files): Likewise. (g++_target_compile): Deal with them. * lib/old-dejagnu.exp: Remove. * g++.old-deja/old-deja.exp: Use dg.exp, not old-dejagnu.exp. * g++.old-deja: Revise all tests to use dg commands. From-SVN: r66317
2003-04-30* builtins.def (BUILTIN_CONSTANT_P): Mark as constant.Diego Novillo2-1/+5
From-SVN: r66316
2003-05-01tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary.Geoffrey Keating2-7/+5
* tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary. From-SVN: r66315