aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-04-28re PR target/6494 (sparc64-linux libjava testsuite failures)David S. Miller3-12/+10
2002-04-27 David S. Miller <davem@redhat.com> PR target/6494 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful of the stack bias. * config/sparc/linux.h, config/sparc/linux64.h: Don't bother including signal.h and sys/ucontext.h, not needed. From-SVN: r52872
2002-04-29varasm.c (output_constant_def): Correct test for not calling ↵Hans-Peter Nilsson2-1/+8
ENCODE_SECTION_INFO for INTEGER_CST. * varasm.c (output_constant_def): Correct test for not calling ENCODE_SECTION_INFO for INTEGER_CST. From-SVN: r52870
2002-04-28cppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as ↵Neil Booth6-102/+74
function eval_token. * cppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as function eval_token. (eval_token): New function. (_cpp_parse_expr): Read token here for improved diagnostics. Don't use op_as_text. Detect bad ':' here. (reduce): Don't detect bad ':' here. (op_as_text): Remove. * cpphash.h (_cpp_test_assertion): Change prototype. * cpplib.c (_cpp_test_assertion): Change prototype. testsuite: * gcc.dg/cpp/if-cexp.c: Add a test. From-SVN: r52866
2002-04-28ggc-common.c (ggc_mark_rtx_children_1): Rename from...Richard Henderson2-0/+44
* ggc-common.c (ggc_mark_rtx_children_1): Rename from... (ggc_mark_rtx_children): New. From-SVN: r52864
2002-04-28re PR target/6496 (Sparc backend clobbers call-return stack of UltraSparc)Jakub Jelinek2-23/+11
PR target/6496 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump after call peepholes for UltraSPARC. (call + jump 64-bit peepholes): Remove. From-SVN: r52863
2002-04-28re PR c/6497 (unrecognizable insn:l inux-2.4.19 pre7 kernel comling with ↵Franz Sirl2-23/+24
gcc-3.1 prerelease) 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> PR c/6497 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use result as temporary value. From-SVN: r52860
2002-04-28re PR c++/6396 (3.1 flow.c 583 ICE with -frename-registers)Jakub Jelinek2-1/+7
PR c++/6396 * toplev.c (rest_of_compilation): Only run regrename and copy propagation if optimizing. From-SVN: r52857
2002-04-28Argh, lost closing brace.Jakub Jelinek1-0/+1
From-SVN: r52856
2002-04-28re PR rtl-optimization/6475 (zlib miscompilation with gcc-3.1)Jakub Jelinek5-4/+198
PR optimization/6475 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo register of REGNO_DECL (i). * Makefile.in (reload1.o): Add $(TREE_H). * gcc.dg/20020426-2.c: New test. From-SVN: r52855
2002-04-28cppexp.c (lex): Update to use state.skip_eval.Neil Booth10-338/+358
* cppexp.c (lex): Update to use state.skip_eval. (struct op): Remove prio and flags members. (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS, SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove. (LEFT_ASSOC): New macro. (optab): New table of operator priorities and flags. (SHIFT): Update. (_cpp_parse_expr): Clean up logic. Return bool. Use a malloc-ed parser stack. (reduce): New; reduce the operator stack. (_cpp_expand_op_stack): Expand the operator stack as necessary. * cpphash.h (struct op): Predeclare. (struct cpp_reader): New members op_stack, op_limit. (struct lexer_state): New member skip_eval. (_cpp_parse_expr): Update. (_cpp_expand_op_stack): New. * cpplib.c (do_if): Update. * cppinit.c (cpp_create_reader): Create op stack. (cpp_destroy): And destroy it. * cpplib.h (CPP_LAST_CPP_OP): Correct. (TTYPE_TABLE): Correct. testsuite: * gcc.dg/cpp/if-mop.c: Update. * gcc.dg/cpp/if-mpar.c: Add test. * gcc.dg/cpp/if-oppr.c: Update. From-SVN: r52853
2002-04-28re PR c/6343 (attribute((weak)) not working on second declaration)Franz Sirl14-3/+432
2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> PR c/6343 * c-decl.c (duplicate_decls): Call merge_weak. * c-pragma.c (apply_pragma_weak): Warn about misuse. * output.h (merge_weak): Prototype merge_weak. * varasm.c (merge_weak): New function. (declare_weak): Make sure we don't give an error on VAR_DECLs. Mark RTL with SYMBOL_REF_WEAK. cp: * decl.c (duplicate_decls): Call merge_weak. testsuite: * gcc.dg/weak-[2-7].c: New tests. From-SVN: r52844
2002-04-28Daily bump.GCC Administrator2-2/+2
From-SVN: r52842
2002-04-27For PR java/6382:Tom Tromey2-3/+85
* parse.y (string_convert_int_cst): New function. (merge_string_cste): Use it. From-SVN: r52835
2002-04-27tree-inline.c (inlinable_function_p): Improve heuristics by using a smoother ↵Kurt Garloff4-20/+110
function to cut down allowable inlinable... * tree-inline.c (inlinable_function_p): Improve heuristics by using a smoother function to cut down allowable inlinable size. * param.def: Add parameters max-inline-insns-single, max-inline-slope, min-inline-insns that determine the exact shape of the above function. * param.h: Likewise. From-SVN: r52832
2002-04-27Daily bump.GCC Administrator2-2/+2
From-SVN: r52831
2002-04-26c-parse.in (malloced_yyss, [...]): New.Richard Henderson6-1/+127
* c-parse.in (malloced_yyss, malloced_yyvs): New. (yyoverflow): Re-add. Set them. (free_parser_stacks): New. * c-common.h: Declare it. * c-lex.c (c_common_parse_file): Call it. * parse.y (malloced_yyss, malloced_yyvs): New. (yyoverflow): Re-add. Set them. (free_parser_stacks): New. From-SVN: r52827
2002-04-26cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search.Richard Henderson2-2/+8
* cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search. From-SVN: r52826
2002-04-27re PR rtl-optimization/3700 (ISSUE_RATE not defined for mips target)Eric Christopher2-4/+31
2002-04-26 Eric Christopher <echristo@redhat.com> PR optimization/3700 * config/mips/mips.c (mips_issue_rate): Define. New function. (TARGET_SCHED_ISSUE_RATE): Use. From-SVN: r52825
2002-04-27re PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)Mark Mitchell1-1/+1
PR bootstrap/6445 * config/i386/i386.md (untyped_call): Return the value in a float register if TARGET_FLOAT_RETURNS_IN_80387, not just if TARGET_80387. From-SVN: r52824
2002-04-26re PR target/6422 (libjava failures on sparc-linux)David S. Miller2-11/+27
2002-04-25 David S. Miller <davem@redhat.com> PR target/6422 * reorg.c (optimize_skip): Do not allow exception causing instructions to be considered for delay slots. (fill_simply_delay_slots, fill_slots_from_thread): Likewise. (relax_delay_slots): Do not try to consider exception causing instructions as redundant. From-SVN: r52822
2002-04-26* gcc.dg/enum1.c: New test.Alexandre Oliva3-1/+28
From-SVN: r52815
2002-04-26c-typeck.c (build_unary_op): Invoke non_lvalue.Richard Henderson3-0/+15
* c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue. * gcc.dg/lvalue1.c: New. From-SVN: r52812
2002-04-26re PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)Mark Mitchell5-1/+30
PR bootstrap/6445 * config/i386/i386.md (untyped_call): Return the value in a float register if TARGET_FLOAT_RETURNS_IN_80387, not just if TARGET_80387. PR c++/6497 * method.c (do_build_assign_ref): Pass a derivation to build_method_call when calling base class assignment operators. PR c++/6497 * g++.dg/inherit/access2.C: New test. PR bootstrap/6445 * gcc.dg/20020426-1.c: New test. From-SVN: r52809
2002-04-26* g++.dg/abi/enum1.C: New test.Alexandre Oliva2-0/+20
From-SVN: r52804
2002-04-26tree.c (tree_int_cst_lt): Compare constants whose types differ in ↵Alexandre Oliva2-1/+19
unsigned-ness correctly. * tree.c (tree_int_cst_lt): Compare constants whose types differ in unsigned-ness correctly. From-SVN: r52802
2002-04-26pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the portable ↵John David Anglin2-0/+6
runtime model. * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the portable runtime model. From-SVN: r52800
2002-04-26c-parse.in (yyoverflow): Revert.Richard Henderson4-69/+8
* c-parse.in (yyoverflow): Revert. * parse.y (yyoverflow): Revert. From-SVN: r52794
2002-04-26rs6000.md (sCC pattern): Remove clobber and use result as temporary value.David Edelsohn2-8/+13
* config/rs6000/rs6000.md (sCC pattern): Remove clobber and use result as temporary value. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r52793
2002-04-26c-common.c (fix_string_type): Split out of ...Richard Henderson13-187/+322
* c-common.c (fix_string_type): Split out of ... (combine_strings): ... here. Take a varray, not a tree list. (c_expand_builtin_printf): Use fix_string_type. * c-common.h: Update decls. * c-parse.in (string): Remove. Update all uses to use STRING instead, and not call combine_strings. (yylexstring): New. (_yylex): Use it. * c-typeck.c (simple_asm_stmt): Don't call combine_strings. (build_asm_stmt): Likewise. * objc/objc-act.c (my_build_string): Use fix_string_type. (build_objc_string_object): Build varray for combine_strings. * parse.y (string): Remove. Update all uses to use STRING instead, and not call combine_strings. * rtti.c (tinfo_name): Use fix_string_type. * semantics.c (finish_asm_stmt): Don't call combine_strings. * spew.c (yylexstring): New. (read_token): Use it. * g++.dg/parse/concat1.C: New. * gcc.dg/concat2.c: New. From-SVN: r52790
2002-04-26* gcc.dg/c99-bool-1.c: Expect always true warning.Richard Henderson2-1/+7
From-SVN: r52787
2002-04-26Daily bump.GCC Administrator2-2/+2
From-SVN: r52786
2002-04-26linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for x86-64.Bo Thorsen2-0/+70
2002-04-26 Bo Thorsen <bo@suse.co.uk> * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for x86-64. From-SVN: r52781
2002-04-26cppexp.c (CPP_UMINUS, CPP_UPLUS): New.Neil Booth3-83/+95
* cppexp.c (CPP_UMINUS, CPP_UPLUS): New. (HAVE_NO_R_OPERAND): Remove. (HAVE_VALUE): Remove. (op_to_prio): Update. (UNARY): Don't alter flags. (_cpp_parse_expr): want_value used to indicate whether a number or unary operator is expected next. Distinguish unary and binary +/-. (op_as_text): Update for unary operators. From-SVN: r52780
2002-04-25c-parse.in (yyoverflow): New.Richard Henderson6-0/+107
* c-parse.in (yyoverflow): New. * cp/parse.y (yyoverflow): New. * g++.dg/parse/stack1.C: New. * gcc.dg/20020425-1.c: New. From-SVN: r52779
2002-04-25re PR c/2098 (compare with unsigned variable - no error reporting)Richard Henderson3-12/+20
PR c/2098 * c-common.c (shorten_compare): Simplfy conditions leading to the generation of a warning. * gcc.dg/compare6.c: New. From-SVN: r52778
2002-04-25re PR c/2035 (ICE in extract_bit_field, at expmed.c:1115)Richard Henderson2-1/+8
PR c/2035 * expmed.c (extract_bit_field): Fall through to generic code rather than aborting on subreg special case. From-SVN: r52777
2002-04-25sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL.David S. Miller2-1/+8
2002-04-25 David S. Miller <davem@redhat.com> * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL. From-SVN: r52776
2002-04-25md.texi (Machine Constraints): Add IA-64 constraints.Steve Christiansen2-0/+67
2002-04-25 Steve Christiansen <smc@us.ibm.com> * doc/md.texi (Machine Constraints): Add IA-64 constraints. From-SVN: r52774
2002-04-25c-decl.c (grokdeclarator): Remove outdated ??? note on invalid declaration ↵Eric Botcazou2-4/+5
of flexible array members. * c-decl.c (grokdeclarator): Remove outdated ??? note on invalid declaration of flexible array members. From-SVN: r52772
2002-04-26* gcc.dg/i386-memset-1.c: New test case for PR target/6456.Roger Sayle2-0/+104
From-SVN: r52771
2002-04-25* doc/invoke.texi: Document -gdwarf{,-2} vs debug level.Richard Henderson2-2/+9
From-SVN: r52769
2002-04-25s390.c (s390_emit_epilogue): Always restore registers needed by the compiler...Ulrich Weigand2-0/+13
* config/s390/s390.c (s390_emit_epilogue): Always restore registers needed by the compiler, even if they are used as global regs. From-SVN: r52768
2002-04-25mips.c (mips_class_max_nregs, [...]): New functions.Matt Hiller14-88/+753
2002-04-24 Matt Hiller <hiller@redhat.com> * mips.c (mips_class_max_nregs, mips_register_move_cost): New functions. * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls of the corresponding functions. * mips-protos.h (mips_class_max_nregs, mips_register_move_cost): New prototypes. 2002-04-24 Matt Hiller <hiller@redhat.com> * config/mips/mips.h (mips_sw_reg_names): Declare as extern. (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro. (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor registers, adjust comment accordingly. (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS, reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES, DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries for coprocessor registers. (ADDITIONAL_REGISTER_NAMES): Include ALL_COP_ADDITIONAL_REGISTER_NAMES. (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM, COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM, COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM, COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P, COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros. (mips_char_to_class): Adjust comment to include coprocessor constraint letters. * config/mips/mips.c (coprocessor_operand, coprocessor2_operand): New functions. (mips_reg_names, mips_regno_to_class): Include coprocessor information. (mips_sw_reg_names): Ditto, make non-static. (mips_move_1word): Handle moves to and from coprocessor registers. (mips_move_2words): Handle moves to and from coprocessor registers. (mips_class_max_nregs, mips_register_move_cost): Handle coprocessor register classes. (override_options): Initialize mips_char_to_class and mips_hard_regno_mode_ok properly for coprocessor registers. * config/mips/mips.md (movdi_internal, movdi_internal2, movsi_internal1, movsi_internal2): Add constraint-sets for coprocessor registers. * testsuite/gcc.c-torture/mipscop-1.c: New testcase. * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target isn't mips. * testsuite/gcc.c-torture/mipscop-2.c: New testcase. * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target isn't mips. * testsuite/gcc.c-torture/mipscop-3.c: New testcase. * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target isn't mips. * testsuite/gcc.c-torture/mipscop-4.c: New testcase. * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target isn't mips. * doc/tm.texi: Document feature. From-SVN: r52765
2002-04-25integrate.c (function_attribute_inlinable_p): Simplify.Neil Booth2-18/+15
* integrate.c (function_attribute_inlinable_p): Simplify. Check the table pointer is not NULL. From-SVN: r52763
2002-04-2520020227-1.x: New file, xfail on 64-bit targets.Kaveh R. Ghazi2-0/+26
* gcc.c-torture/execute/20020227-1.x: New file, xfail on 64-bit targets. From-SVN: r52762
2002-04-25re PR c++/5607 (No pointer adjustment in covariant return types)Jason Merrill5-2/+52
PR c++/5607 * search.c (check_final_overrider): No longer static. * class.c (update_vtable_entry_for_fn): Call it. * cp-tree.h: Adjust. From-SVN: r52760
2002-04-25* doc/c-tree.texi: Fix typo in introduction.Steven Bosscher2-1/+5
From-SVN: r52758
2002-04-25Daily bump.GCC Administrator2-2/+2
From-SVN: r52757
2002-04-25c-common.h (c_common_parse_file): Update.Neil Booth26-95/+91
* c-common.h (c_common_parse_file): Update. * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. * c-lex.c (YYDEBUG): Get from c-lex.h. (c_common_parse_file): Update. * c-lex.h (YYDEBUG, yydebug): New. * c-parse.in (YYDEBUG): Get from c-lex.h. (c_set_yydebug): Remove. * c-tree.h (c_set_yydebug): Remove. * langhooks-def.h (lhd_do_nothing_i): New. (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove. (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_do_nothing_i): New. (lhd_set_yydebug): Remove. * langhooks.h (struct lang_hooks): Update. * toplev.c (set_yydebug): New. (compile_file): Update call to parse_file hook. (decode_d_option): Update. ada: * misc.c (gnat_parse_file): Update. cp: * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. * cp-tree.h (cxx_set_yydebug): Die. * lex.c (YYDEBUG): Get from c-lex.h. (cxx_set_yydebug): Remove. * parse.y: Include c-lex.h. (YYDEBUG): Get from c-lex.h. f: * com.h (ffe_parse_file): Update. * lex.c (ffe_parse_file): Update. java: * java-tree.h (java_parse_file): Update. (java_set_yydebug): Remove. * jcf-parse.c (yydebug): Remove. (java_set_yydebug): Die. (java_parse_file): Update. * lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. objc: * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. From-SVN: r52753
2002-04-25For PR java/6425:Tom Tromey2-1/+9
* parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose EXPR_WFL_QUALIFICATION of qual_wfl. From-SVN: r52751