aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-07-11* config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.Geoffrey Keating2-2/+5
From-SVN: r84485
2004-07-11Daily bump.GCC Administrator1-1/+1
From-SVN: r84483
2004-07-11trans-decl.c (gfc_create_module_variable): Nothing to do if symbol is in ↵Tobias Schlüter4-2/+23
common, because we ... fortran/ * trans-decl.c (gfc_create_module_variable): Nothing to do if symbol is in common, because we ... (gfc_generate_module_vars): Call gfc_trans_common. testsuite/ * gfortran.fortran-torture/execute/common_2.f90: Add check for access to common var from module. From-SVN: r84479
2004-07-11re PR fortran/16336 (ICE with common block in module)Tobias Schlüter2-0/+19
PR fortran/16336 * gfortran.fortran-torture/execute/common_2.f90: New test. From-SVN: r84478
2004-07-10trans-array.c (gfc_build_null_descriptor): New function.Paul Brook6-34/+55
* trans-array.c (gfc_build_null_descriptor): New function. (gfc_trans_static_array_pointer): Use it. * trans-array.h (gfc_build_null_descriptor): Add prototype. * trans-expr.c (gfc_conv_structure): Handle array pointers. testsuite/ * gfortran.fortran-torture/execute/der_init_5.f90: Enable more tests. From-SVN: r84477
2004-07-11re PR fortran/16336 (ICE with common block in module)Tobias Schlüter8-43/+83
PR fortran/16336 * decl.c (gfc_match_save): Use-associated common block doesn't collide. * gfortran.h (gfc_common_head): Add new field 'name'. Fix typo in comment after #endif. * match.c (gfc_get_common): Add new argument from_common, mangle name if flag is set, fill in new field in structure gfc_common_head. (match_common): Set new arg in call to gfc_get_common, use-associated common block doesn't collide. * match.h (gfc_get_common): Adapt prototype. * module.c (load_commons): Set new arg in call to gfc_get_common. * symbol.c (free_common_tree): New function. (gfc_free_namespace): Call new function. * trans-common.c (several functions): Remove argument 'name', use name from gfc_common_head instead. From-SVN: r84476
2004-07-11re PR fortran/15481 ([meta-bugs] frontend adds superfluous symbols to ↵Tobias Schlüter2-11/+3
namespaces) * trans-decl.c (generate_local_decl): Remove workaround obsoleted by fix for PR 15481. From-SVN: r84475
2004-07-10* parse.c (decode_statement): Fix matching of BLOCK DATA.Tobias Schlüter2-1/+3
From-SVN: r84474
2004-07-10contrib.texi (Contributors): Add gfortran contributors and fix a couple of ↵Steve Kargl2-3/+56
typos. * doc/contrib.texi (Contributors): Add gfortran contributors and fix a couple of typos. Co-Authored-By: James A. Morrison <phython@gcc.gnu.org> From-SVN: r84473
2004-07-10calls.c (check_sibcall_argument_overlap_1): Handle pointers to incoming args ↵Zdenek Dvorak2-1/+6
space correctly. * calls.c (check_sibcall_argument_overlap_1): Handle pointers to incoming args space correctly. From-SVN: r84472
2004-07-10pa.c (output_indirect_call): Only use %r2 as the link register in indirect ↵John David Anglin2-1/+14
calls with the long PA 2.0... * pa.c (output_indirect_call): Only use %r2 as the link register in indirect calls with the long PA 2.0 pc-relative branch. From-SVN: r84471
2004-07-10i386.c (override_options): Pick a 64-bit CPU for the default tuning if ↵Daniel Jacobowitz2-2/+25
TARGET_64BIT. * config/i386/i386.c (override_options): Pick a 64-bit CPU for the default tuning if TARGET_64BIT. From-SVN: r84470
2004-07-10builtins.c (std_gimplify_va_arg_expr): Widen align/boundary to HOST_WIDE_INT.Richard Henderson2-2/+7
* builtins.c (std_gimplify_va_arg_expr): Widen align/boundary to HOST_WIDE_INT. Fold pad-args-down arithmetic. From-SVN: r84469
2004-07-10re PR fortran/15969 (ICE and assertion failure in trans-expr.c)Tobias Schlüter2-0/+21
PR fortran/15969 * gfortran.fortran-torture/execute/der_init_5.f90: New test. From-SVN: r84466
2004-07-10re PR fortran/15969 (ICE and assertion failure in trans-expr.c)Tobias Schlüter2-7/+28
PR fortran/15969 * trans-expr.c (gfc_conv_structure): Handle initialization of scalar pointer components. From-SVN: r84464
2004-07-10re PR fortran/16336 (ICE with common block in module)Tobias Schlüter2-1/+4
PR fortran/16336 * match.c (match_common): Fix error reporting for used common. From-SVN: r84462
2004-07-10004-07-10 Bryce McKinlay <mckinlay@redhat.com>Bryce McKinlay2-3/+11
* class.c (common_enclosing_context_p): Remove statement with no side-effects. From-SVN: r84460
2004-07-10expr.c (gfc_check_pointer_assign): Verify that rank of the LHS and RHS match.Tobias Schlüter2-28/+36
* expr.c (gfc_check_pointer_assign): Verify that rank of the LHS and RHS match. Return early if the RHS is NULL(). From-SVN: r84458
2004-07-10ffixed-form-1.f: Copy from g77.dgDavid Billinghurst1-0/+11
2004-07-10 David Billinghurst (David.Billinghurst@riotinto.com) * gfortran.dg/g77/ffixed-form-1.f: Copy from g77.dg * gfortran.dg/g77/ffixed-form-2.f: Likewise * gfortran.dg/g77/ffree-form-1.f: Likewise * gfortran.dg/g77/ffree-form-2.f: Likewise * gfortran.dg/g77/ffree-form-3.f: Likewise * gfortran.dg/g77/fno-underscoring.f: Likewise * gfortran.dg/g77/funderscoring.f: Likewise * gfortran.dg/g77/pr9258.f: Likewise. Add dg-warning lines. From-SVN: r84457
2004-07-10ffixed-form-1.f: Copy from g77.dgDavid Billinghurst8-0/+89
2004-07-10 David Billinghurst (David.Billinghurst@riotinto.com) * gfortran.dg/g77/ffixed-form-1.f: Copy from g77.dg * gfortran.dg/g77/ffixed-form-2.f: Likewise * gfortran.dg/g77/ffree-form-1.f: Likewise * gfortran.dg/g77/ffree-form-2.f: Likewise * gfortran.dg/g77/ffree-form-3.f: Likewise * gfortran.dg/g77/fno-underscoring.f: Likewise * gfortran.dg/g77/funderscoring.f: Likewise * gfortran.dg/g77/pr9258.f: Likewise. Add dg-warning lines. From-SVN: r84455
2004-07-10trans-common.c: Fix whitespace issues, make variable names more readable.Tobias Schlüter2-113/+120
* trans-common.c: Fix whitespace issues, make variable names more readable. (create_common): Additionally, make loop logic more obvious. Co-Authored-By: Paul Brook <paul@codesourcery.com> From-SVN: r84453
2004-07-10* gfortran.fortran-torture/execute/module_init_1.f90: Fix test.Tobias Schlüter2-2/+6
From-SVN: r84451
2004-07-10expr.h (store_bit_field, [...]): Remove last argument.Jakub Jelinek9-52/+37
* expr.h (store_bit_field, extract_bit_field): Remove last argument. * expmed.c (store_bit_field, extract_bit_field): Remove last argument. * builtins.c (expand_builtin_signbit): Adjust callers. * optabs.c (expand_vector_binop, expand_vector_unop): Likewise. * calls.c (store_unaligned_arguments_into_pseudos): Likewise. * ifcvt.c (noce_emit_move_insn): Likewise. * stmt.c (expand_return): Likewise. * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg, store_field, expand_expr_real_1): Likewise. From-SVN: r84447
2004-07-10* builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.Richard Henderson2-6/+9
From-SVN: r84446
2004-07-10darwin.c (no_dead_strip): Add.Mike Stump2-1/+25
* config/darwin.c (no_dead_strip): Add. (HAVE_DEAD_STRIP): Add. (darwin_emit_unwind_label): Ensure that we don't dead code strip the .eh label. Radar 3668092 From-SVN: r84444
2004-07-10re PR java/8618 (call to private constructor allowed for anonymous inner class)Bryce McKinlay6-40/+125
2004-07-09 Bryce McKinlay <mckinlay@redhat.com> PR java/8618 * parse.y (create_anonymous_class): Remove 'location' argument. Use the WFL from TYPE_NAME to get line number for the decl. Fix comment. (craft_constructor): Inherit access flags for implicit constructor from the enclosing class. (create_class): Fix comment typo. (resolve_qualified_expression_name): Pass type of qualifier to not_accessible_p, not the type in which target field was found. (not_accessible_p): Handle inner classes. Expand protected qualifier-subtype check to enclosing instances, but don't apply this check to static members. Allow protected access to inner classes of a subtype. Allow private access within common enclosing context. (build_super_invocation): Get WFL line number info from current class decl. (build_incomplete_class_ref): Update for new create_anonymous_class signature. * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Use common_enclosing_instance_p. * class.c (common_enclosing_context_p): New. Determine if types share a common enclosing context, even across static contexts. (common_enclosing_instance_p): Renamed from common_enclosing_context_p. Determines if types share a common non-static enclosing instance. * java-tree.h (common_enclosing_instance_p): Declare. * jcf-write.c (get_method_access_flags): New. Surpress private flag for inner class constructors. (generate_classfile): Use get_method_access_flags. From-SVN: r84443
2004-07-10tree-ssa-loop-im.c: New file.Zdenek Dvorak19-12/+1521
* tree-ssa-loop-im.c: New file. * Makefile.in (tree-ssa-loop-im.o): Add. * cfgloop.c (superloop_at_depth): New function. * cfgloop.h (superloop_at_depth): Declare. * common.opt (ftree-lim): New flag. * expr.c (array_ref_up_bound): New function. * params.def (PARAM_LIM_EXPENSIVE): New parameter. * timevar.def (TV_LIM): New timevar. * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when computing immediate uses of a phi node. * tree-flow.h (struct tree_ann_common_d): Add aux field. (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare. * tree-optimize.c (init_tree_optimization_passes): Add pass_lim. * tree-pass.h (pass_lim): Declare. * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New functions. (pass_lim): New pass structure. * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly. * tree.c (in_array_bounds_p): New function. * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs. (in_array_bounds_p, array_ref_up_bound): Declare. * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document. * doc/passes.texi (tree-ssa-loop-im.c): Document. From-SVN: r84441
2004-07-10re PR fortran/13415 (Internal error with pointer array in common)Tobias Schlüter5-57/+86
PR fortran/13415 * trans-common.c (calculate_length): Remove ... (get_segment_info): Merge into here. Save field type. (build_field): Use saved type. (create_common, new_condition, new_segment, finish_equivalences): Use new get_segment_info. * trans-types.c: Update comment. testsuite * gfortran.dg/common_pointer_1.f90: New test. Co-Authored-By: Paul Brook <paul@codesourcery.com> From-SVN: r84439
2004-07-09tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs with prejudice.Richard Henderson2-1/+13
* tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs with prejudice. From-SVN: r84436
2004-07-09* builtins.c (expand_builtin_stpcpy): Don't modify len.Richard Henderson2-3/+7
From-SVN: r84435
2004-07-10* g++.dg/lookup/new1.C: Fix dg-excess-error syntax.Giovanni Bajo2-1/+5
From-SVN: r84433
2004-07-10flags.h: Delete redundant prototypes that are being generated in options.h ↵Kelley Cook3-510/+92
from common.opt. 2004-07-10 Kelley Cook <kcook@gcc.gnu.org> * flags.h: Delete redundant prototypes that are being generated in options.h from common.opt. * common.opt: Add in the expository comments formerly in flags.h. From-SVN: r84432
2004-07-09i386.c (init_cumulative_args): Set mmx/sse registers available for use only ↵Jan Beulich2-7/+20
when TARGET_MMX/_SSE is set... * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers available for use only when TARGET_MMX/_SSE is set, and check for variable argument function if any register count is non-zero. (function_arg): Correctly suppress repeated warnings for passing SSE vectors are arguments without SSE enabled. (ix86_function_arg_boundary): Without SSE enabled, the use of what would be SSE register modes does no longer influence the alignment. From-SVN: r84431
2004-07-09builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.Richard Henderson3-46/+70
* builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD. Always align upward to arg boundary. Use size_in_bytes/round_up. Maintain type-correctness of constants. * stor-layout.c (round_up, round_down): Special-case powers of 2. From-SVN: r84430
2004-07-09sparc.c (*_costs): Scale instruction costs by COSTS_N_INSNS.David S. Miller2-110/+117
2004-07-09 David S. Miller <davem@nuts.davemloft.net> * config/sparc/sparc.c (*_costs): Scale instruction costs by COSTS_N_INSNS. (sparc_rtx_costs): Adjust as appropriate. From-SVN: r84429
2004-07-09mm3dnow.h: New.Jan Beulich7-3/+276
* config/i386/mm3dnow.h: New. * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64. From-SVN: r84428
2004-07-09simplify-rtx.c (simplify_const_relational_operation): Only look at bounds of ↵Richard Henderson2-1/+6
scalar integers. * simplify-rtx.c (simplify_const_relational_operation): Only look at bounds of scalar integers. From-SVN: r84427
2004-07-10Daily bump.GCC Administrator1-1/+1
From-SVN: r84425
2004-07-09* config/i386/i386.md (sse2_clflush): Use correct operand for clflush.Jan Beulich2-1/+5
From-SVN: r84422
2004-07-09objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always ↵Andrew Pinski2-2/+14
referenced. 2004-07-09 Andrew Pinski <apinski@apple.com> * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced. (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and UOBJC_METACLASS_decl. From-SVN: r84419
2004-07-10class.c (interface_of_p): Check for null TYPE_BINFO.Bryce McKinlay2-1/+6
2004-07-09 Bryce McKinlay <mckinlay@redhat.com> * class.c (interface_of_p): Check for null TYPE_BINFO. From-SVN: r84418
2004-07-09c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes permissible ↵Jan Beulich5-3/+100
for unary plus. * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes permissible for unary plus. From-SVN: r84417
2004-07-09Fix for IA-64 union/long double ICE.James E Wilson4-2/+27
PR target/16364 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA, do return a parallel if hfa_mode == XFmode and mode == TImode. * gcc.c-torture/compile/20040709-1.c: New. From-SVN: r84416
2004-07-09builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.Jan Beulich5-22/+122
* builtin-types.def (BT_UINT): Rename from BT_UNSIGNED. (BT_FN_UINT): Rename from BT_FN_UNSIGNED. (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED. (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG, BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New. * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx, BUILTIN_POPCOUNTxxx): Arguments are unsigned. (BUILTIN_xxxIMAX): New. * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX, BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and BUILT_IN_PARITYIMAX. From-SVN: r84415
2004-07-09sparc.h (processor_costs): Define.David S. Miller3-312/+397
2004-07-02 David S. Miller <davem@nuts.davemloft.net> * config/sparc/sparc.h (processor_costs): Define. (sparc_costs): Declare. * config/sparc/sparc.c (cypress_costs, supersparc_costs, hypersparc_costs, sparclet_costs, ultrasparc_costs, ultrasparc3_costs): New. (sparc_override_options): Set sparc_costs as appropriate. (sparc_rtx_costs): Use sparc_costs instead of messy conditionals. From-SVN: r84414
2004-07-10re PR fortran/14077 (Data statement within a module that doesn't initialize ↵Tobias Schlüter2-0/+14
a whole array creates an error) PR fortran/14077 * gfortran.fortran-torture/execute/module_init_1.f90: New test. From-SVN: r84412
2004-07-09md.texi (Processor pipeline description): Mention that the old pipeline ↵Steven Bosscher14-296/+45
description is deprecated. * doc/md.texi (Processor pipeline description): Mention that the old pipeline description is deprecated. * config/rs6000/7450.md (automaton ppc7450): Split up, move mciu_7450 function unit to... (automaton ppc7450mciu): ...new automaton. * haifa-sched.c (insert_schedule_bubbles_p): Remove. (schedule_block): Don't consider inserting bubbles. (sched_init): Don't initialize DFA bubbles. * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): Remove. * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks. * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): Remove documentation. * stmt.c (conditional_context): Remove prototype. * tree.h (conditional_context): Remove. * tree-cfg.c (pre_insert_on_edge): Remove. * c-common.h (c_expand_asm_operands): Remove prototype. * c-typeck.c (c_expand_asm_operands): Remove. cp/ * typeck.c (c_expand_asm_operands): Remove. From-SVN: r84411
2004-07-09i386.c (classify_argument): Treat V1xx modes the same as their base modes.Jan Beulich3-41/+110
* config/i386/i386.c (classify_argument): Treat V1xx modes the same as their base modes. CTImode, TCmode, and XCmode must be passed in memory. TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode, and V8QI are class SSE. All sufficiently small remaining vector modes must be passed in one or two integer registers. (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be returned in memory. (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and __builtin_ia32_pmuludq128 have non-uniform argument and return types and must thus be handled explicitly. * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between MMX and XMM regs. (movv8qi_internal, movv4hi_internal, movv2si_internal, movv2sf_internal): Permit moving between MMX and XMM registers (since MMX areguments and return values are passed in XMM registers). (sse2_umulsidi3): Correct type and mode. From-SVN: r84410
2004-07-09* tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.Richard Henderson2-4/+8
From-SVN: r84409
2004-07-10re PR fortran/14077 (Data statement within a module that doesn't initialize ↵Tobias Schlüter2-1/+9
a whole array creates an error) PR fortran/14077 * moduele.c (mio_symbol): Don't I/O initial values unless symbol is a parameter. From-SVN: r84408