aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-01-29re PR fortran/18565 (gfortran: CONJG: false error message about standard ↵Paul Brook6-16/+106
violation) 2005-01-29 Paul Brook <paul@codesourcery.com> PR fortran/18565 * check.c (real_or_complex_check): New function. (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): New functions. * intrinsic.c (add_functions): Use new check functions. * intrinsic.h (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): Add prototypes. testsuite/ * gfortran.dg/double_complex_1.f90: New test. From-SVN: r94412
2005-01-29c-common.c (fix_string_type): Just use c_build_qualified_type to build ↵Joseph Myers9-80/+188
string type. * c-common.c (fix_string_type): Just use c_build_qualified_type to build string type. (c_build_qualified_type): Build qualified array types with TYPE_MAIN_VARIANT pointing to corresponding unqualified type. * c-decl.c (c_make_fname_decl): Build unqualified array type before qualified type. (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element type is qualified, not just if type itself is. Don't apply qualifiers to array type when declarator is processed. Apply qualifiers to field type whether or not it is an array type. Don't handle array types specially for applying qualifiers to variables. * c-typeck.c (composite_type): Build unqualified element type and array type when forming composite of array types. (common_pointer_type, comptypes, comp_target_types, type_lists_compatible_p, build_indirect_ref, build_array_ref, convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array types. (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE (args2) in variables a1 and a2. testsuite: * gcc.dg/Wwrite-strings-1.c, gcc.dg/array-quals-2.c, gcc.dg/lvalue-3.c: New tests. * gcc.dg/concat.c: Update expected messages. From-SVN: r94411
2005-01-29re PR libfortran/19595 ([4.0 only] eor does not work)Thomas Koenig2-0/+15
2005-01-29 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/19595 * io/transfer.c (data_transfer_init): eor requires advance="NO". testsuite/ * gfortran.dg/eor_1.f90: New test. From-SVN: r94410
2005-01-29re PR fortran/19589 (Regression: Error on Data assignment with LOGICAL*1)Steven G. Kargl4-0/+22
2005-01-29 Steven G. Kargl <kargls@comcast.net> PR fortran/19589 * expr.c (gfc_check_assign): Check for conformance of logical operands testsuite/ * gfortran.dg/logical_data_1.f90: New test. From-SVN: r94409
2005-01-29lang-specs.h, [...]: Update copyright.Kazu Hirata5-4/+9
* lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update copyright. From-SVN: r94408
2005-01-29cse.c (n_elements_made, [...]): Remove.Kazu Hirata2-20/+7
* cse.c (n_elements_made, max_elements_made): Remove. (insert): Don't touch n_elements_made. (cse_main): Don't touch n_elements_made or max_elements_made. From-SVN: r94407
2005-01-29re PR c++/19253 (bad error message / ICE for invalid template parameter)Mark Mitchell4-1/+20
PR c++/19253 * parser.c (cp_parser_diagnose_invalid_type_name): Commit to tentative parses. PR c++/19253 * g++.dg/template/crash33.C: New test. From-SVN: r94403
2005-01-29re PR c++/19667 (ICE on (very trivial) invalid)Mark Mitchell4-0/+26
PR c++/19667 * g++.dg/template/crash32.C: New test. PR c++/19667 * pt.c (redeclare_class_template): Robustify. From-SVN: r94402
2005-01-29Daily bump.GCC Administrator1-1/+1
From-SVN: r94399
2005-01-28re PR target/15384 (Lines witout effect in t-m68hc11-gas file)Stephane Carrez2-2/+8
PR target/15384 * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a configuration part of dp-bit.c to be lost. From-SVN: r94390
2005-01-28expmed.c (expand_mult_highpart_optab): When attempting to use a non-widening ↵Roger Sayle2-3/+23
multiplication in a wider mode... * expmed.c (expand_mult_highpart_optab): When attempting to use a non-widening multiplication in a wider mode, the operands need to be converted (zero or sign extended) to that mode. From-SVN: r94383
2005-01-28re PR middle-end/16558 (bogus missing-return warning)Ian Lance Taylor2-0/+25
PR middle-end/16558 * g++.dg/warn/Wreturn-type-2.C: New test. From-SVN: r94382
2005-01-28re PR middle-end/16558 (bogus missing-return warning)Ian Lance Taylor2-2/+17
PR middle-end/16558 PR middle-end/19583 * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls through if both operands fall through. From-SVN: r94381
2005-01-28* cse.c (fold_rtx) <PC>: Don't optimize.Kazu Hirata2-11/+5
From-SVN: r94378
2005-01-28* gcc.dg/tree-ssa/20050128-1.c: New test.Jeff Law2-0/+17
From-SVN: r94377
2005-01-28fold-const.c (fold, [...]): Optimize 0 % X.Jeff Law2-1/+7
* fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X. (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly. From-SVN: r94376
2005-01-28cse.c (cse_reg_info_free_list, [...]): Remove.Kazu Hirata2-20/+40
* cse.c (cse_reg_info_free_list, cse_reg_info_used_list, cse_reg_info_used_list_end): Remove. (cse_reg_info_list, cse_reg_info_list_free): New. (get_cse_reg_info): When allocating an instance of cse_reg_info, add it to the beginning of the cse_reg_info_list list. Remove code to maintain cse_reg_info_used_list. (new_basic_block): Reset the free list to the beginning of cse_reg_info_list. From-SVN: r94375
2005-01-28Fix date on my entry from this morning.Steven Bosscher1-1/+1
From-SVN: r94374
2005-01-28Rmove bogus line from last entry.Richard Sandiford1-1/+0
From-SVN: r94372
2005-01-28frv.c (bdesc_2arg): Remove __MDPACKH.Richard Sandiford4-2/+79
* config/frv/frv.c (bdesc_2arg): Remove __MDPACKH. (frv_init_builtins): Change its prototype to take 4 uhalf arguments. (frv_expand_mdpackh_builtin): New function. (frv_expand_builtin): Use it to expand __MDPACKH. * config/frv/media.h (__MDPACKH): Update prototype. * doc/extend.texi (__MDPACKH): Update documentation. From-SVN: r94371
2005-01-28i386.c (ix86_expand_fp_absneg_operator): Use SSE_FLOAT_MODE_P for use_sse ↵Uros Bizjak2-1/+6
computation. * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use SSE_FLOAT_MODE_P for use_sse computation. From-SVN: r94365
2005-01-28* gcc.dg/tree-ssa/20030711-2.c: Run at -O2, not -O1.Steven Bosscher2-1/+5
From-SVN: r94364
2005-01-28re PR target/19663 (LINK_GCC_C_SEQUENCE_SPEC doesn't play nice with RTEMS)Ralf Corsepius2-0/+8
2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org> PR target/19663 * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine. From-SVN: r94363
2005-01-28objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling ↵Matt Austern2-0/+6
instantiate_pending_templates. * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling instantiate_pending_templates. From-SVN: r94362
2005-01-27builtins.c (expand_builtin_copysign): New.Richard Henderson12-63/+484
* builtins.c (expand_builtin_copysign): New. (expand_builtin): Call it. * genopinit.c (optabs): Add copysign_optab. * optabs.c (init_optabs): Initialize it. (expand_copysign): New. * optabs.h (OTI_copysign, copysign_optab): New. (expand_copysign): Declare. * config/alpha/alpha.md (UNSPEC_COPYSIGN): New. (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New. * config/i386/i386.c (ix86_build_signbit_mask): Split from ... (ix86_expand_fp_absneg_operator): ... here. (ix86_split_copysign): New. * config/i386/i386-protos.h: Update. * config/i386/i386.md (UNSPEC_COPYSIGN): New. (copysignsf3, copysigndf3): New. * config/ia64/ia64.md (UNSPEC_COPYSIGN): New. (copysignsf3, ncopysignsf3): New. (copysigndf3, ncopysigndf3): New. (copysignxf3, ncopysignxf3): New. * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN. From-SVN: r94357
2005-01-27* gcc.dg/uninit-I.c: Fix typos in dg-options and dg-warning directives.Richard Henderson2-2/+6
From-SVN: r94356
2005-01-28Daily bump.GCC Administrator1-1/+1
From-SVN: r94354
2005-01-27cse.c: (find_best_addr): Don't call copy_rtx before calling fold_rtx.Arend Bayer2-15/+29
* cse.c: (find_best_addr): Don't call copy_rtx before calling fold_rtx. Save cost recomputation if fold_rtx did nothing. (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is NULL_RTX. Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu> From-SVN: r94345
2005-01-27tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register definitions ↵Jeff Law2-14/+17
of SSA_NAMEs which are not being rewritten. * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register definitions of SSA_NAMEs which are not being rewritten. (rewrite_ssa_into_ssa): Only initialize the current definition of an SSA_NAME if that SSA_NAME has been marked for rewriting. If checking is enabled, assert that SSA_NAME_AUX is clear for all SSA_NAMEs before returning. From-SVN: r94343
2005-01-27Fix a couple of typos.Eric Botcazou1-1/+1
From-SVN: r94340
2005-01-27Makefile.in: Fix a-intnam.ads from previous commit, add 2005 to copyright.Laurent GUERBY3-2/+9
2005-01-27 Laurent GUERBY <laurent@guerby.net> * Makefile.in: Fix a-intnam.ads from previous commit, add 2005 to copyright. * a-intman-rtems.ads: Renamed to... * a-intnam-rtems.ads: From-SVN: r94335
2005-01-27* gcc.dg/intmax_t-1.c: Extend dg-error to cover mips*-elf targets.Richard Sandiford2-1/+5
From-SVN: r94332
2005-01-27* gcc.dg/mips-movcc-1.c, gcc.dg/mips-movcc-2.c, gcc.dg/mips-movcc-3.c,Richard Sandiford8-2/+43
* gcc.dg/mips-nmadd-1.c, gcc.dg/mips-nmadd-2.c, gcc.dg/mips-rsqrt-1.c, * gcc.dg/mips-rsqrt-2, gcc.dg/mips-rsqrt-3.c: Add dummy asm statements to cope with cases where the multilib options override the dg-options. From-SVN: r94331
2005-01-27Per request from Eric Botcazou, fix my ChangeLog entry of 26jan2005:Stuart Hastings2-2/+6
fix relative path, move new testcase to testsuite ChangeLog. From-SVN: r94329
2005-01-27c-common.def, [...]: Update copyright.Kazu Hirata18-17/+26
* c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c, cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h, tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c, config/avr/avr.md, config/cris/aout.h, config/cris/cris.h, config/mips/iris6.h, config/sh/sh.c: Update copyright. From-SVN: r94328
2005-01-27re PR middle-end/17278 (8% C++ compile-time regression in comparison with ↵Steven Bosscher3-5/+16
3.4.1 at -O1 optimization level) PR middle-end/17278 * opts.c (decode_options): Move flag_thread_jumps from -O1 and higher to -O2 and higher. Likewise for tree PRE. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2 and better. From-SVN: r94325
2005-01-27re PR middle-end/19583 (Incorrect diagnostic: control may reach end of ↵Ian Lance Taylor3-0/+63
non-void function '...' being inlined) PR middle-end/19583 * gimple-low.c (try_catch_may_fallthru): New static function. (block_may_fallthru): Handle TRY_CATCH_EXPR. * tree-inline.c (expand_call_inline): Don't warn about reaching the end of a non-void function being inlined if the function uses a return slot. From-SVN: r94323
2005-01-27* config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.Jakub Jelinek2-5/+7
From-SVN: r94321
2005-01-27re PR c/18946 (ICE in pushdecl)Jakub Jelinek4-7/+48
PR c/18946 * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node. (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P. (implicitly_declare): Handle error_mark_node. * gcc.dg/noncompile/20050120-1.c: New test. From-SVN: r94320
2005-01-27Makefile.in: Rename GNAT RTEMS specific files.Laurent GUERBY7-4/+12
2005-01-27 Laurent GUERBY <laurent@guerby.net> * Makefile.in: Rename GNAT RTEMS specific files. * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb: Replaced by files below. * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb, s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above. From-SVN: r94319
2005-01-27re PR ada/19488 (RTEMS Ada RTS doesn't compile)Joel Sherrill4-6/+17
2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com> Laurent GUERBY <laurent@guerby.net> PR ada/19488 * 5rosinte.ads: Add No_Key constant. * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style. * gsocket.h: Do not include <sys/socket.h> with RTEMS either. Co-Authored-By: Laurent GUERBY <laurent@guerby.net> From-SVN: r94318
2005-01-27re PR c++/14329 ([4.1 only] badly formatted warnings for SRA replacements ↵Richard Henderson9-22/+98
used uninitialized) PR tree-opt/14329 * tree.h (struct tree_decl): Add debug_expr_is_from. (DECL_DEBUG_EXPR_IS_FROM): New. (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF. * dwarf2out.c (dwarf2out_var_location): Update to match. * tree-outof-ssa.c (create_temp): Likewise. * var-tracking.c (track_expr_p): Likewise. * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR. * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR. * toplev.c (default_tree_printer): Likewise. From-SVN: r94317
2005-01-27frv.c (frv_class_likely_spilled_p): Add GR8_REGS, GR9_REGS, GR89_REGS, ↵Alexandre Oliva2-0/+10
FDPIC_FPTR_REGS, FDPIC_REGS. * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS, GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS. From-SVN: r94316
2005-01-27tree.h (SWITCH_COND, [...]): Add tree checks.Steven Bosscher13-38/+65
* tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW, CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS): Add tree checks. * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE. (SWITCH_STMT_COND, SWITCH_STMT_BODY): New. * c-common.def (SWITCH_STMT): Update to match. * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor macros instead of SWITCH_EXPR ones. * c-dump.c (c_dump_tree): Likewise. * c-gimplify.c (gimplify_switch_stmt): Likewise. * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise. cp/ * decl.c (finish_case_label): Use SWITCH_STMT accessor macros instead of SWITCH_EXPR ones. * pt.c (tsubst_expr): Likewise. * semantics.c (begin_switch_stmt, finish_switch_cond, finish_switch_stmt): Likewise. doc/ * c-tree.texi (SWITCH_STMT): Update accessor macro names. From-SVN: r94315
2005-01-27unwind-dw2.c (execute_stack_op): Add missing cases for DW_OP_shl, DW_OP_shr, ↵Alan Modra2-1/+10
DW_OP_shra, DW_OP_xor. * unwind-dw2.c (execute_stack_op): Add missing cases for DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor. From-SVN: r94314
2005-01-27config.gcc (Obsolete configurations): Remove 'dummy'...Eric Botcazou2-1/+11
* config.gcc (Obsolete configurations): Remove 'dummy', add sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and sparc-*-openbsd*. From-SVN: r94313
2005-01-26re PR tree-optimization/19633 (local address incorrectly thought to escape)Diego Novillo6-20/+102
PR tree-optimization/19633 * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle CALL_EXPRs. (maybe_create_global_var): Do not create .GLOBAL_VAR if there are no call-clobbered variables. * tree-outof-ssa.c (check_replaceable): Return false for calls with side-effects. testsuite/ChangeLog PR tree-optimization/19633 * gcc.dg/pr19633.c: New test. * gcc.dg/tree-ssa/pr19633.c: New test. From-SVN: r94311
2005-01-27dbxout.c (dbxout_symbol_location): Resolve constant pool references even for ↵Ulrich Weigand4-31/+63
variables with NULL DECL_INITIAL. ChangeLog: * dbxout.c (dbxout_symbol_location): Resolve constant pool references even for variables with NULL DECL_INITIAL. testsuite/ChangeLog: * gcc.dg/20041216-1.c: New test. From-SVN: r94303
2005-01-27gimplify.c (shortcut_cond_expr): Re-compute side-effects.Stuart Hastings3-0/+42
2005-01-26 Stuart Hastings <stuart@apple.com> * gcc/gimplify.c (shortcut_cond_expr): Re-compute side-effects. * gcc/testsuite/gcc.c-torture/execute/20050125-1.c: New. From-SVN: r94300
2005-01-27trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and TREE_USED for ↵Steven Bosscher4-23/+21
all labels. * trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and TREE_USED for all labels. (gfc_trans_entry_master_switch): Use it instead of building a label by hand. * trans-io.c (add_case): Likewise. * trans-stmt.c (gfc_trans_integer_select): Likewise. From-SVN: r94299