aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-08-19i386.c (legitimate_pic_address_disp_p): Change the strstr with $pb to a ↵Andrew Pinski2-3/+12
strcompare with "<pic base>" 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu> * config/i386/i386.c (legitimate_pic_address_disp_p): Change the strstr with $pb to a strcompare with "<pic base>" (ix86_output_addr_diff_elt): Output the real pic base. From-SVN: r70569
2003-08-19README: Describe the pch directory.Michael Ritzert2-0/+5
2003-08-19 Michael Ritzert <ritzert@t-online.de> * g++.dg/README: Describe the pch directory. From-SVN: r70568
2003-08-19re PR c++/11174 (derived class can access protected base class member ↵Kriang Lerdsuwanakij6-3/+71
function through pointer to member function) PR c++/11174 * init.c (build_offset_ref): Perform access checking for pointer to member correctly. * g++.dg/parse/access4.C: New test. * g++.dg/parse/access5.C: Likewise. * g++.old-deja/g++.jason/access17.C: Adjust error message. From-SVN: r70566
2003-08-19langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.Gabriel Dos Reis5-6/+16
* langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling. (LANG_HOOKS_INITIALIZER): Correct. * c-lang.c: Likewise. cp/ * cp-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling. From-SVN: r70561
2003-08-19cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.Jan Hubicka4-27/+43
* cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol. (cgraph_varpool_mark_needed_node): Likewise. * cgraph.h (notice_global_symbol): Declare * varasm.c (notice_global_symbol): Break out from ... (assemble_start_function): ... here; update for variables. (assemble_variable): Use notice_global_symbol. From-SVN: r70559
2003-08-19mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P...Richard Sandiford2-2/+8
* config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P, expect SFmode and DFmode arguments to be passed in FPRs, regardless of the underlying type. From-SVN: r70557
2003-08-19re PR target/11924 (mips64-linux o32 accesses to certain file-local data ↵Richard Sandiford2-9/+12
incorrectly generated) PR target/11924 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro. (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it. From-SVN: r70556
2003-08-19re PR c/11207 (ICE with negative index in array element designator)Matt Kraai4-0/+14
PR c/11207 * c-typeck.c (set_init_index): Check for negative index. (testsuite/) * gcc.dg/noncompile/20030818-1.c: New. From-SVN: r70553
2003-08-19crti.asm (_init, _fini): Add alternate code for new call0 ABI.Bob Wilson5-26/+84
* config/xtensa/crti.asm (_init, _fini): Add alternate code for new call0 ABI. * config/xtensa/crtn.asm (_init, _fini): Likewise. * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3, __umodsi3, __modsi3): Likewise. * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and $(INCLUDES). From-SVN: r70552
2003-08-19Daily bump.GCC Administrator1-1/+1
From-SVN: r70550
2003-08-18* config/rs6000/spe.md ("*nabssf2_gpr"): New.Aldy Hernandez2-0/+11
From-SVN: r70545
2003-08-18re PR c++/11957 (wrong "warning: statement has no effect")Nathan Sidwell6-20/+34
cp: PR c++/11957 * cp-tree.h (finish_stmt_expr): Add bool parameter. * init.c (finish_init_stmts): Pass true to finish_stmt_expr. Don't adjust the stmt_expr here. (build_vec_init): Use finish_stmt_expr_expr, convert result to array type. * parser.c (cp_parser_primar_expression): Adjust finish_stmt_expr call. * pt.c (tsubst_copy): Likewise. * semantics.c (finish_stmt_expr): Add parameter. testsuite: PR c++/11957 * g++.dg/warn/noeffect1.C: New test. From-SVN: r70541
2003-08-18pt.c (instantiate_class_template): Push to class's scope before tsubsting base.Nathan Sidwell5-1/+53
cp: * pt.c (instantiate_class_template): Push to class's scope before tsubsting base. testsuite: * g++.dg/template/scope2.C: New test. * g++.dg/template/error2.C: Correct dg-error From-SVN: r70540
2003-08-18apparently missing part of 2003-08-15 checkinNathan Sidwell1-3/+2
apparently missing part of 2003-08-15 checkin * decl.c (make_typename_type): Use my_friendly_assert. From-SVN: r70539
2003-08-18* gcc.c-torture/compile/mipscop*.c: Turn into compile-only tests.Richard Sandiford5-4/+8
From-SVN: r70536
2003-08-18mips.md: Quote C code in braces.Richard Sandiford2-1191/+885
* config/mips/mips.md: Quote C code in braces. Remove use of fake const0_rtx operands. Remove double backslashes. Use \;. Remove workarounds for bogus warnings. From-SVN: r70535
2003-08-18mips.md (muldf3, mulsf3): Don't call a gen_* function.Richard Sandiford2-40/+23
* config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function. (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX rather than TARGET_MIPS4300. (mulsf3_internal, mulsf3_r4300): Likewise. From-SVN: r70534
2003-08-18* config/mips/mips.md: Renumber unspecs. Clean up comments.Richard Sandiford2-150/+90
From-SVN: r70533
2003-08-18Daily bump.GCC Administrator1-1/+1
From-SVN: r70529
2003-08-17simplify-rtx.c (associative_constant_p): New function to test whether an RTX ↵Roger Sayle2-6/+129
expression is an immediate constant. * simplify-rtx.c (associative_constant_p): New function to test whether an RTX expression is an immediate constant. (simplify_associative_operation): New function to perform some reassociation optimizations of associative binary expressions. (simplify_binary_operation): Use simplify_associative_operation to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX. Floating point expressions are only reassociated when unsafe math optimizations are permitted. From-SVN: r70521
2003-08-17Convert K&R prototypes to ISO C90.Andreas Jaeger2-6/+5
From-SVN: r70516
2003-08-17alpha.md: Remove usage of PARAMS.Andreas Jaeger15-1667/+1072
* config/alpha/alpha.md: Remove usage of PARAMS. * config/i386/cygwin.h: Convert K&R prototypes to ISO C90. * config/i386/i386-interix.h: Likewise. * config/i386/winnt.c: Likewise. * config/i386/cygming.h: Likewise. * config/i386/cygwin2.c: Likewise. * config/darwin.c: Likewise. * config/darwin-c.c: Likewise. * config/darwin-protos.h: Likewise. * config/darwin.h: Likewise. * config/s390/s390-protos.h: Likewise. * config/s390/s390.c: Likewise. * config/ia64/ia64.c: Likewse * config/ia64/ia64-protos.h: Likewise. From-SVN: r70515
2003-08-17re PR c++/11702 ([unit-at-a-time] Failure to emit code for inlined function ↵Jan Hubicka2-0/+9
in space) PR C++/11702 * semantics.c (finish_id_expression): Mark all functions as used. From-SVN: r70514
2003-08-17Daily bump.GCC Administrator1-1/+1
From-SVN: r70512
2003-08-16* config/sparc/sparc.c: Convert to ISO C.Kaveh R. Ghazi2-498/+207
From-SVN: r70510
2003-08-16sparc-protos.h: Don't use the PARAMS macro.Kaveh R. Ghazi3-156/+146
* config/sparc/sparc-protos.h: Don't use the PARAMS macro. * config/sparc/sparc.c: Likewise. From-SVN: r70509
2003-08-16Remove 3.4 change list, point to gcc-3.4/changes.htmlNathan Sidwell1-88/+1
From-SVN: r70506
2003-08-16re PR c++/11512 (Spurious warning for comma-operator in templates)Nathan Sidwell8-39/+85
PR c++/11512 * stmt.c (expand_expr_stmt_value): Don't warn about any void typed expression. cp: PR c++/11512 * cvt.c (convert_to_void): Indicate which side of conditional has no effects, and rhs of comma operator. Test for no sideeffect expressions here and always build a convert expr. * init.c (expand_default_init): Convert the init to void. * typeck.c (build_x_compound_expr): Do not check for side effects here. (build_compound_expr): Do not convert lhs when building a template. testsuite: PR C++/11512 * g++.dg/template/warn1.C: New. From-SVN: r70505
2003-08-16i386.c (ix86_fntype_regparm): Rename from ...Jan Hubicka5-121/+156
* i386.c (ix86_fntype_regparm): Rename from ... (ix86_function_regparm): ... this one; add fastcall and local functions. (ix86_function_ok_for_sibcall): Update. (ix86_return_pops_args): Likewise. (init_cumulative_args): Likewise. (x86_can_output_mi_thunk): Likewise. (function_arg): Fix formating. (x86_this_parameter): Fix fastcall. (x86_output_mi_thunk): Likewise. * cgraph.c (cgraph_mark_needed_node): Do not mark functions without body as reachable; mark nested functions as needed too. (dump_cgraph): Do not output global.calls. * cgraph.h (cgraph_global_info): Kill. * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions. (record_call_1): Speedup. (cgraph_analyze_function): Break out from ...; compute inlining parameters. (cgraph_finalize_compilation_unit): ... here. (cgraph_mark_inline): Kill computation of calls. (cgraph_decide_inlining): Do not compute most of initial values. From-SVN: r70504
2003-08-16Daily bump.GCC Administrator1-1/+1
From-SVN: r70498
2003-08-15cp-tree.def (NON_DEPENDENT_EXPR): Add operand.Nathan Sidwell5-21/+25
* cp-tree.def (NON_DEPENDENT_EXPR): Add operand. * decl2.c (build_offset_ref_call_from_tree): Use build_non_dependent_expr. * error.c (dump_expr) <NON_DEPENDENT_EXPR case>: Dump the operand. * pt.c (build_non_dependent_expr): Set operand. From-SVN: r70478
2003-08-15decl2.c (mark_member_pointers): Rename to...Jan Hubicka5-16/+82
* decl2.c (mark_member_pointers): Rename to... (mark_member_pointers_and_eh_tinfos): ... this one; deal with eh tinfos (lower_function): Update call. * except.c (eh_type_info): Break out from ... (build_eh_type): ... here; tinfo is already used. (finish_eh_spec_block): Mark tinfos as used. * semantics.c (finish_handler_params): Mark tinfo as used. * cp-tree.h(eh_type_info): Declare. From-SVN: r70477
2003-08-15cp: * pt.c (instantiate_class_template): Set location before substuting bases.Nathan Sidwell7-6/+50
cp: * pt.c (instantiate_class_template): Set location before substuting bases. testsuite: * g++.dg/template/error2.C: New test. * g++.dg/lookup/using7.C: Adjust errors * g++.old-deja/g++.pt/crash36.C: Likewise. * g++.old-deja/g++.pt/derived3.C: Likewise. From-SVN: r70476
2003-08-15decl.c (make_typename_type): Use my_friendly_assert.Nathan Sidwell2-5/+8
* decl.c (make_typename_type): Use my_friendly_assert. * pt.c (tsubst_aggr_type): Rearrange context substitution. From-SVN: r70475
2003-08-15* method.c (use_thunk): Expand body directly.Jan Hubicka2-1/+5
From-SVN: r70473
2003-08-15Daily bump.GCC Administrator1-1/+1
From-SVN: r70459
2003-08-14fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy to negate ↵Roger Sayle2-5/+76
if either operand is easy to negate... * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy to negate if either operand is easy to negate, if we don't care about sign-dependent rounding. (negate_expr): Make the logic to negate a REAL_CST explicit. Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand that's easy to negate, if we don't honor sign-dependent rounding. (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to negate, and the symmetric A * -B as -A * B if A is easy to negate. (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and -C/D if B and C are cheap to negate. Add an explicit rule to optimize X/-1.0 as -X when we don't care about signaling NaNs. From-SVN: r70455
2003-08-14Makefile.in (tm_file): Rename tm_include_list.Zack Weinberg4-115/+219
* Makefile.in (tm_file): Rename tm_include_list. (tm_p_file): Rename tm_p_include_list. (build_xm_file): Rename build_xm_include_list. (host_xm_file): Rename host_xm_include_list. (xm_file): Rename xm_include_list. (xm_file_list): Add to be substituted. (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h): Update to match. (bt-load.o): Add missing dependency on $(TM_H). * configure.in: Prefix value of EXTRA_MODES_FILE with config/. For each of tm_file, tm_p_file, xm_file, host_xm_file, and build_xm_file, generate both *_file_list and *_include_list values from it. (xm_file_list was formerly not being generated.) In *_include_list, prefix the names of all headers found in $(srcdir)/config with config/. In each loop, consider only the special case files that can actually appear in that list. AC_SUBST all *_file_list and all *_include_list variables; do not AC_SUBST the plain *_file variables. * configure: Regenerate. From-SVN: r70449
2003-08-14* cfg.c (dump_edge_info): Add name of loop_exit edge flag.Zdenek Dvorak2-1/+5
From-SVN: r70442
2003-08-14pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in direct calls.John David Anglin2-59/+71
* pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in direct calls. (attr_length_call): Include it here. Improve length estimate for local calls. (output_call): Use targetm.binds_local_p. From-SVN: r70441
2003-08-14builtins.c (CASE_MATHFN): New helper macro.Kaveh R. Ghazi2-200/+42
* builtins.c (CASE_MATHFN): New helper macro. (mathfn_built_in): Simplify and sort. From-SVN: r70436
2003-08-14strcat.c: New.Kaveh R. Ghazi4-15/+40
* gcc.c-torture/execute/builtins/lib/strcat.c: New. * gcc.c-torture/execute/builtins/string-9-lib.c: New. * gcc.c-torture/execute/builtins/string-9.c: New, from string-opt-9.c. Adjust for execute/builtins framework. * gcc.c-torture/execute/string-opt-9.c: Delete. From-SVN: r70435
2003-08-14* protoize.c (substr): Delete, callers changed to `strstr'.Kaveh R. Ghazi2-26/+7
From-SVN: r70430
2003-08-14config.gcc (iq2000*-*-elf*): Don't set xm_file.Zack Weinberg3-68/+37
* config.gcc (iq2000*-*-elf*): Don't set xm_file. * config/iq2000/xm-iq2000.h: Delete file. From-SVN: r70428
2003-08-14gengtype.c (walk_type): Process a subobject before processing the pointer ↵Geoffrey Keating2-7/+13
that points to the subobject. * gengtype.c (walk_type): Process a subobject before processing the pointer that points to the subobject. From-SVN: r70427
2003-08-13regclass.c (init_reg_modes): Make non-static.Per Bothner5-8/+17
* regclass.c (init_reg_modes): Make non-static. Rename to init_reg_modes_once per new naming convention. (init_regs): Don't call init_reg_modes here. * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead. * rtl.h (init_reg_modes_once): New declaration. * toplev.c (backend_init): Call init_regs after init_emit_once. From-SVN: r70426
2003-08-14Daily bump.GCC Administrator1-1/+1
From-SVN: r70424
2003-08-14linux.h (DBX_REGISTER_NUMBER): Define so to map a special index for ↵Kaz Kojima2-0/+16
MD_FALLBACK_FRAME_STATE_FOR to itself. * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a special index for MD_FALLBACK_FRAME_STATE_FOR to itself. From-SVN: r70422
2003-08-13sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.J"orn Rennecke3-3/+12
* sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1. * sh.md (load_ra): Change insn predicate to TARGET_SH1. From-SVN: r70410
2003-08-13* gcj.texi (Invoking gij): Document -X and -?.Tom Tromey2-1/+13
From-SVN: r70406