aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-09-12darwin.c (machopic_select_rtx_section): Use const_data_section for things ↵Geoffrey Keating2-0/+10
that might require relocation. * config/darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation. From-SVN: r71345
2003-09-12re PR bootstrap/12264 (Mainline faield to bootstrap)H.J. Lu2-1/+7
PR bootstrap/12264 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree. From-SVN: r71343
2003-09-12elf.h (ASM_SPEC): Remove no-density option.Bob Wilson5-265/+59
* config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat. * config/xtensa/linux.h (ASM_SPEC): Likewise. * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian, -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16, -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext, -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div, -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros and redefine corresponding TARGET_* macros with constants from the xtensa-config.h header. * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention for the options listed above. From-SVN: r71339
2003-09-12Use ISO C90 prototypes.Dale Johannesen5-956/+530
From-SVN: r71336
2003-09-12* loop.c: Move comments describing BIV's and GIV's to top of fileChris Lattner2-10/+14
From-SVN: r71333
2003-09-12re PR rtl-optimization/8967 (Making class data members `const' pessimizes code)Roger Sayle4-22/+44
PR optimization/8967 * alias.c (write_dependence_p): Modify to take an additional constp argument that controls whether the UNCHANGING_RTX_P flags are used. (anti_dependence, output_dependence): Adjust write_dependence_p callers to pass this additional argument, to return the same result. (unchanging_anti_dependence): New variant of anti_dependence that ignores the UNCHANGING_RTX_P property on memory references. * rtl.h (unchaning_anti_dependence): Prototype here. * flow.c (init_propagate_block): Place fake constant mem writes on the mem_set_list so that dead writes to const variables are deleted. (insn_dead_p): Change anti_dependence to unchanging_anti_dependence. (mark_used_regs): Likewise. From-SVN: r71332
2003-09-12mcore-protos.h (mcore_r15_operand_p): Declare.Richard Sandiford5-324/+108
* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare. (mcore_secondary_reload_class): Declare. (mcore_output_inline_const_forced): Remove. * config/mcore/mcore.md (movsi): Remove the code that forced non-inlineable constants into a register if the target was r15 or the stack pointer. Remove constant restrictions from the main define_insn. Remove r <- I, r <- M and r <- N alternatives in favor of an r <- P alternative. Remove fallback define_insn for reload. (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload define_insn. Use mcore_output_move in the remaining define_insn. Adjust condition and constraints in the way as for movsi. (movdi): Always split unacceptable constants into two. Use simplify_gen_subreg instead of operand_subword{,_force}. * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove. (mcore_output_move): Support HImode and QImode moves as well. (mcore_m15_operand_p): New function. (mcore_reload_class): Use it to detect cases where LRW_REGS are better. (mcore_secondary_reload_class): New function. * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in terms of mcore_secondary_reload_class. From-SVN: r71330
2003-09-11* c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.Mike Stump2-4/+6
From-SVN: r71328
2003-09-12Daily bump.GCC Administrator1-1/+1
From-SVN: r71325
2003-09-11builtins.c (fold_builtin_logarithm): if N can't be truncated to MODE exactly...Kaveh R. Ghazi2-5/+14
* builtins.c (fold_builtin_logarithm): if N can't be truncated to MODE exactly, then only convert logN(N) -> 1.0 if flag_unsafe_math_optimizations is set. From-SVN: r71322
2003-09-11builtins.c (builtin_dconsts_init, [...]): Delete.Kaveh R. Ghazi4-28/+19
* builtins.c (builtin_dconsts_init, dconstpi, dconste, init_builtin_dconsts): Delete. * emit-rtl.c (dconstpi, dconste): Define. (init_emit_once): Initialize dconstpi & dconste. * real.h (dconstpi, dconste): Declare. From-SVN: r71320
2003-09-11* decl2.c (var_finalized_p): Swap arms of conditional.David Edelsohn2-2/+6
From-SVN: r71319
2003-09-11Capitalize my name in an old ChangeLog entry.Bernardo Innocenti1-1/+1
From-SVN: r71310
2003-09-11re PR c++/11788 (missing implicit instantiation of static member function)Nathan Sidwell5-47/+121
cp: PR c++/11788 * typeck.c (build_address): If it is a function, mark it used. (build_unary_op): Do not lose object's side-effects when taking address of static member function. * class.c (resolve_address_of_overloaded_function): Use tsubst_flags_t parameter. Only expect overload sets. Adjust. (instantiate_type): Adjust flags passing. Do not lose object's side-effects when taking address of static member function. testsuite: PR c++/11788 * g++.dg/overload/addr1.C: New test. From-SVN: r71304
2003-09-11re PR fortran/11522 (g77 dwarf-2 ICE in add_abstract_origin_attribute)Alexandre Oliva2-4/+14
PR fortran/11522 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function for ultimate origin even if block is abstract. From-SVN: r71301
2003-09-11combine.c (combine_simplify_rtx): Move several NOT and NEG optimizations ↵Roger Sayle3-98/+113
from here... * combine.c (combine_simplify_rtx): Move several NOT and NEG optimizations from here... * simplify-rtx.c (simplify_unary_operation): to here. Recursively simplify expressions using simplify_gen_*ary instead of gen_rtx_*. From-SVN: r71300
2003-09-11cgraphunit.c (cgraph_finalize_function): Add nested arg.Richard Henderson8-23/+48
* cgraphunit.c (cgraph_finalize_function): Add nested arg. Tweek tests for function already generated. (cgraph_expand_function): Don't double announce in !unit-at-a-time. * cgraph.h (cgraph_finalize_function): Update for extra arg. * c-decl.c (finish_function): Likewise. * semantics.c (expand_or_defer_fn): Update for new cgraph_finalize_function argument. * parse.y (source_end_java_method): Update for new cgraph_finalize_function argument. From-SVN: r71298
2003-09-10* c-decl.c (poplevel): Eliminate use of |= in function_body assignment.Joe Buck2-1/+6
From-SVN: r71297
2003-09-10* decl2.c (cxx_callgraph_analyze_expr): Mark argument unused.Richard Henderson2-1/+5
From-SVN: r71296
2003-09-10real.c: Update URL to VAX floating point docs.Jerry Quinn2-2/+7
* real.c: Update URL to VAX floating point docs. (decode_vax_d): Extract 8 exponent bits instead of 7. From-SVN: r71294
2003-09-11* gcc.dg/20030909-1.c: New test.Ian Lance Taylor2-0/+9
From-SVN: r71293
2003-09-11combine.c (force_to_mode): Set fuller_mask based only on mask, not op_mode.Ian Lance Taylor2-7/+10
* combine.c (force_to_mode): Set fuller_mask based only on mask, not op_mode. From-SVN: r71292
2003-09-11Daily bump.GCC Administrator1-1/+1
From-SVN: r71287
2003-09-10decl2.c (var_finalized_p): New.Jan Hubicka2-9/+19
* decl2.c (var_finalized_p): New. (maybe_emit_vtables, write_out_vars, finish_file): Use it. From-SVN: r71284
2003-09-10c-objc-common.c (c_cannot_inline_tree_fn): Warn on why function is not ↵Jan Hubicka3-178/+184
inlinable; do not check the body. * c-objc-common.c (c_cannot_inline_tree_fn): Warn on why function is not inlinable; do not check the body. (inline_forbidden_p): Move to... * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings; deal with alloca, longjmp. (inline_forbidden_p): New static function. (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1, find_builtin_longjmp_call): Kill. From-SVN: r71283
2003-09-10cgraph.h (struct cgraph_node): Rename lowered to analyzed.Richard Henderson10-70/+115
* cgraph.h (struct cgraph_node): Rename lowered to analyzed. * cgraphunit.c: Update to match. (record_call_1): Rearrange. Call lang hook for language nodes. (cgraph_analyze_function): Don't call lower_function. * langhooks.h (struct lang_hooks_for_callgraph): Replace lower_function with analyze_expr. * langhooks-def.h: Update to match. * langhooks.c (lhd_callgraph_analyze_expr): New. * decl2.c (cxx_callgraph_analyze_expr): New, from corpse of mark_member_pointers. (lower_function): Remove. * cp-tree.h: Update to match. * cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): New. (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Remove. From-SVN: r71277
2003-09-10re PR target/11965 (invalid assembler code for a shift << 32 operation)Eric Botcazou5-6/+69
PR target/11965 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against constants greater than 63. * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect against constants greater than 31. (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against constants greater than 63. From-SVN: r71266
2003-09-09cgraphunit.c (cgraph_finalize_function): Remove unused argument.Richard Henderson8-5/+18
* cgraphunit.c (cgraph_finalize_function): Remove unused argument. * cgraph.h (cgraph_finalize_function): Update. * c-decl.c (finish_function): Update. cp/ * semantics.c (expand_or_defer_fn): Update call to cgraph_finalize_function. java/ * parse.y (source_end_java_method): Update call to cgraph_finalize_function. From-SVN: r71263
2003-09-09semantics.c (expand_or_defer_fn): Use cgraph_finalize_function always.Richard Henderson1-0/+3
* semantics.c (expand_or_defer_fn): Use cgraph_finalize_function always. From-SVN: r71262
2003-09-09decl2.c (finish_file): Avoid out-of-bounds array reference during memmove.Richard Henderson3-60/+15
* decl2.c (finish_file): Avoid out-of-bounds array reference during memmove. From-SVN: r71261
2003-09-09darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.Devang Patel5-2/+26
gcc * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker. * doc/invoke.texi: Document new Darwin linker option -nofixprebinding. testsuite * gcc.dg/darwin-ld-6.c: New test. From-SVN: r71259
2003-09-10Daily bump.GCC Administrator1-1/+1
From-SVN: r71257
2003-09-10configure.in: Change usage of 'head' to 'sed 1q'.Eric Christopher3-47/+52
2003-09-09 Eric Christopher <echristo@redhat.com> * configure.in: Change usage of 'head' to 'sed 1q'. * configure: Regenerate. From-SVN: r71255
2003-09-09except.c: Include cgraph.h.Richard Henderson5-44/+45
* except.c: Include cgraph.h. (output_function_exception_table): Invoke cgraph_varpool_mark_needed_node. * Makefile.in (except.o): Update. * decl2.c (mark_member_pointers): Rename from mark_member_pointers_and_eh_handlers and don't check eh handlers. From-SVN: r71254
2003-09-09Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS and use it ↵Kelley Cook2-16/+22
throughout. * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS and use it throughout. From-SVN: r71253
2003-09-09builtins.c (real_dconstp, [...]): New, split out from fold_builtin.Kaveh R. Ghazi7-106/+481
* builtins.c (real_dconstp, fold_builtin_logarithm, fold_builtin_exponent): New, split out from fold_builtin. Also generalize to add log2, log10, exp2 and exp10/pow10 equivalents. * emit-rtl.c (dconst3, dconst10, dconstthird): New. (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu of hardcoded array size. * fold-const.c (fold): Add cases for exp2, exp10 and pow10. (tree_expr_nonnegative_p): Likewise. * real.h (dconst3, dconst10, dconstthird): New. testsuite: * gcc.dg/torture/builtin-explog-1.c: New testcase. From-SVN: r71252
2003-09-09cgraphunit.c (cgraph_finalize_function): Fix handling of extern inline ↵Jan Hubicka2-18/+33
functions. * cgraphunit.c (cgraph_finalize_function): Fix handling of extern inline functions. (cgraph_finalize_compilation_unit): Fix crash when dealing with lost DECL_SAVED_TREE. From-SVN: r71245
2003-09-09builtins.c (fold_builtin_cabs): Protect the complex argument against ↵Roger Sayle2-0/+7
multiple evaluation when... * builtins.c (fold_builtin_cabs): Protect the complex argument against multiple evaluation when optimizing cabs* into sqrt*. From-SVN: r71242
2003-09-09* varasm.c (notice_global_symbol): Properly deal with weak symbols.Jan Hubicka2-4/+8
From-SVN: r71236
2003-09-09Revert change from yesterday due to parallel make issues.Kelley Cook2-17/+20
From-SVN: r71235
2003-09-09re PR bootstrap/12168 (ICE (bus error) in set_mem_attributes_minus_bitpos)Christian Ehrhardt2-0/+6
PR bootstrap/12168 * method.c (use_thunk): Clear DECL_RTL of copied nodes. From-SVN: r71234
2003-09-09coff.h (REGISTER_NAMES): Add fake register `argptr'Bernardo Innocenti9-113/+302
* config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr' * config/m68k/hp320.h (REGISTER_NAMES): Likewise. * config/m68k/linux.h (REGISTER_NAMES): Likewise. * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise. * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise. * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype. * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end. (m68k_compute_frame_layout): New function. (m68k_initial_elimination_offset): New function. (m68k_output_function_prologue): ColdFire-specific movem handling. (m68k_output_function_epilogue): Likewise. * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg. (ARG_POINTER_REGNUM): Add new definition. (INITIAL_FRAME_POINTER_OFFSET): Remove macro. (ELIMINABLE_REGS): Define new macro, like in ix86 back-end. (CAN_ELIMINATE): Likewise. (INITIAL_ELIMINATION_OFFSET): Likewise. Co-Authored-By: Peter Barada <peter@baradas.org> From-SVN: r71231
2003-09-09m68k.c (m68k_output_function_prologue): Simplify by removing redundant ↵Bernardo Innocenti2-25/+18
variable cfa_store_offset. * config/m68k/m68k.c (m68k_output_function_prologue): Simplify by removing redundant variable cfa_store_offset. From-SVN: r71230
2003-09-09Fix thinko in last patch.Mark Mitchell1-14/+8
From-SVN: r71228
2003-09-09langhooks-def.h (lhd_register_builtin_type): New function.Mark Mitchell14-6/+166
* langhooks-def.h (lhd_register_builtin_type): New function. (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update. * langhooks.h (lang_hooks_for_types): Add register_builtin_type. * langhooks.c (lhd_register_builtin_type): New function. * c-common.h (c_register_builtin_type): Declare. * c-common.c (c_register_builtin_type): New function. * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to c_register_builtin_type. * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg, __float80, and __float128 macros. * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg, __float80, and __float128 types. * cp-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to c_register_builtin_type. * gcc.dg/ia64-types1.c: New test. * gcc.dg/ia64-types2.c: Likewise. From-SVN: r71227
2003-09-09builtin-types.def ↵Kaveh R. Ghazi7-26/+213
(BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE, [...]): New. * builtin-types.def (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE, BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE, BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New. * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH, BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL, BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN, BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF, BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN, BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF, BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF, BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL, BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW, BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH, BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT, BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF, BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL): New. * doc/extend.texi: Document new builtins. testsuite: * gcc.dg/builtins-1.c: Add more _Complex tests. * gcc.dg/torture/builtin-attr-1.c: Likewise. From-SVN: r71226
2003-09-09builtins-1.c: Test existing _Complex functions.Kaveh R. Ghazi3-0/+90
* gcc.dg/builtins-1.c: Test existing _Complex functions. * gcc.dg/torture/builtin-attr-1.c: Likewise. From-SVN: r71225
2003-09-09cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated finalization.Jan Hubicka3-15/+87
* cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated finalization. * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested functions, check for COMDAT. (cgraph_assemble_pending_functions): Break out from... (cgraph_finalize_function): ... here; allow redefinig of extern inline functions. (record_call_1): Record function references only in non-unit-at-a-time mode. (cgraph_analyze_function): Reset current_function_decl. (cgraph_finalize_compilation_unit): Assemble pending functions. From-SVN: r71221
2003-09-09Daily bump.GCC Administrator1-1/+1
From-SVN: r71219
2003-09-08mklibgcc.in (libcc.a): Depend on stmp-dirs.Mark Mitchell2-3/+15
* mklibgcc.in (libcc.a): Depend on stmp-dirs. (libgov.a): Likewise. (libgcc_eh.a): Likewise. From-SVN: r71217