aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-01-03c-decl.c (grokdeclarator): Give zero-length arrays size zero.Richard Henderson10-51/+134
* c-decl.c (grokdeclarator): Give zero-length arrays size zero. Remove dead code. * c-typeck.c (push_init_level): Move checks for flexible array members and zero length arrays ... (pop_init_level): ... here. Silently discard empty initializations. Remove dead code. * varasm.c (output_constructor): Update for sizeof change to zero-length arrays. * extend.texi (Zero Length): Clarify semantics. * gcc.dg/940510-1.c: Update expected error wording. * gcc.dg/array-2.c, gcc.dg/array-3.c, gcc.dg/array-4.c: New. From-SVN: r38678
2001-01-03configure.in (tm.h): Include isns-codes.h last.Alexandre Oliva3-255/+275
* configure.in (tm.h): Include isns-codes.h last. * configure: Rebuilt. From-SVN: r38677
2001-01-03alpha.md (addvsi3, addvdi3): New.Richard Henderson2-0/+102
* config/alpha/alpha.md (addvsi3, addvdi3): New. (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New. From-SVN: r38676
2001-01-03Update the second copyright notice. Point to it from the first.Alexandre Oliva1-1/+4
From-SVN: r38675
2001-01-03tradcpp.c (main): Make sure finclude() is called with a valid indepth value ↵Franz Sirl2-1/+8
while handling -include. 2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * tradcpp.c (main): Make sure finclude() is called with a valid indepth value while handling -include. From-SVN: r38674
2001-01-03gencodes.c (output_predicate_decls): New function.Alexandre Oliva6-7/+55
* gencodes.c (output_predicate_decls): New function. (main): Call it. * machmode.h (GET_MODE_MASK): Arrange for it to be defined even if it is not the first time machmode.h is #included. * config/sh/sh.c (fpul_operand): Declare MODE argument. * tm.texi (PREDICATE_CODES): Document predicate declarations. * gcc.texi (Copyright): Added 2001. From-SVN: r38673
2001-01-03c-common.c (c_common_lang_init): New function.Joseph Myers7-8/+44
* c-common.c (c_common_lang_init): New function. Warn if format warning options which only have effects when used with -Wformat are used without -Wformat. * c-common.h (c_common_lang_init): Declare. * c-lang.c (lang_init): Call c_common_lang_init. * objc/objc-act.c (lang_init): Call c_common_lang_init. cp: * lex.c (lang_init): Call c_common_lang_init. From-SVN: r38672
2001-01-03configure.in: Check for the mktemp command.Joseph Myers4-175/+246
* configure.in: Check for the mktemp command. * configure: Regenerate. * gccbug.in: Use a separate temporary file $TEMP0 for one use of $TEMP. Create temporary files with mktemp, if available at configure time; otherwise use set -C. Remove temporary files before exit. From-SVN: r38671
2001-01-03texi2pod.pl: Handle @option and @env.Joseph Myers6-385/+501
contrib: * texi2pod.pl: Handle @option and @env. gcc: * configure.in: Require at least texinfo 4.0. Check for whether Pod::Man is sufficiently recent to regenerate GCC manpages. * configure: Regenerate. * Makefile.in (TEXI2POD): Call perl explicitly rather than relying on #!. (GENERATED_MANPAGES): Define. (generated-manpages): New target. Depend on cpp.1 as well as gcov.1. (install-man): Depend on $(GENERATED_MANPAGES) (defined by configure to generated-manpages or empty) rather than on the manpages directly. Remove execute permission from installed gcov.1 as well as cpp.1. * cpp.1, gcov.1: Regenerate. From-SVN: r38668
2001-01-03target-supports.exp (check_alias_available): Modified to indicate aliases ↵Jeffrey Oldham2-2/+12
not supported if only weak aliases are supported. 2001-01-03 Jeffrey Oldham <oldham@codesourcery.com> * lib/target-supports.exp (check_alias_available): Modified to indicate aliases not supported if only weak aliases are supported. From-SVN: r38667
2001-01-03update copyrightsKaveh Ghazi2-2/+2
From-SVN: r38665
2001-01-03builtins.c (expand_builtin_strncmp): Use host_integerp and tree_low_cst.Kaveh R. Ghazi4-34/+130
* builtins.c (expand_builtin_strncmp): Use host_integerp and tree_low_cst. Allow using cmpstrsi in more cases. testsuite: * gcc.c-torture/execute/string-opt-8.c: Add more testcases. Turn on cmpstrsi checks for __pj__ and __i370__. From-SVN: r38664
2001-01-03sparc.h (RETURN_IN_MEMORY): Return 0 for variable sized types.Richard Kenner2-1/+6
* config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable sized types. From-SVN: r38662
2001-01-03search.c (lookup_fnfields_here): Remove.Nathan Sidwell4-30/+45
cp: * search.c (lookup_fnfields_here): Remove. (look_for_overrides_r): Use lookup_fnfields_1. Ignore functions from using declarations. testsuite: * g++.old-deja/g++.other/virtual11.C: New test. From-SVN: r38661
2001-01-03Improve alias analysis for ia64Bernd Schmidt3-26/+78
From-SVN: r38660
2001-01-03Implement exceptions specifiers for implicit member functions.Nathan Sidwell7-12/+234
cp: Implement exceptions specifiers for implicit member functions. * cp-tree.h (merge_exceptions_specifiers): Declare new function. * method.c (synthesize_exception_spec): New function. (locate_dtor, locate_ctor, locate_copy): New functions. (implicitly_declare_fn): Generate the exception spec too. * search.c (check_final_overrider): Check artificial functions too. * typeck2.c (merge_exception_specifiers): New function. testsuite: * g++.old-deja/g++.eh/spec6.C: Remove remaining XFAIL. From-SVN: r38659
2001-01-03Fix silliness in last changeBernd Schmidt1-1/+1
From-SVN: r38658
2001-01-03build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.Alexandre Oliva3-2/+10
* build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'. * Makefile.in (HOST_CFLAGS): Mention build-make. From-SVN: r38657
2001-01-03Add extra arg to cse_rtx_varies_pBernd Schmidt2-4/+8
From-SVN: r38656
2001-01-03sparc.md (nonlocal_goto): Emit goto_handler_and_restore as JUMP_INSN.Richard Kenner2-3/+9
* config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore as JUMP_INSN. From-SVN: r38655
2001-01-03updateJason Merrill1-6/+6
From-SVN: r38654
2001-01-03Don't use MEM_ALIAS_SET on a REGBernd Schmidt2-1/+7
From-SVN: r38653
2001-01-03Daily bump.Jeff Law2-2/+2
From-SVN: r38649
2001-01-03combine.c (simplify_shift_const): Even if we're sign-extracting...Alexandre Oliva2-4/+14
* combine.c (simplify_shift_const): Even if we're sign-extracting, don't discard an ASHIFTRT if we're shifting in a wider mode. From-SVN: r38648
2001-01-02toplev.c (rest_of_compilation): Don't print basic block information when CFG ↵John David Anglin2-4/+9
isn't up to date. * toplev.c (rest_of_compilation): Don't print basic block information when CFG isn't up to date. From-SVN: r38647
2001-01-03* gcc.c-torture/compile/20010102-1.c: New test.Kaveh R. Ghazi2-0/+105
From-SVN: r38646
2001-01-02Update copyright.Jeff Law1-1/+1
From-SVN: r38645
2001-01-02djgpp.h (DWARF2_DEBUGGING_INFO): Define.Mark Elbrecht2-1/+23
* config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define. (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define. (UNALIGNED_SHORT_ASM_OP): Define. (CPP_PREDEFINES): Remove defines for GO32 and DJGPP. From-SVN: r38644
2001-01-02init.c (build_default_init): New fn.Jason Merrill8-167/+192
* init.c (build_default_init): New fn. (perform_member_init): Split out from here. (build_new_1): Use it. Simplify initialization logic. (build_vec_init): Take an array, rather than a pointer and maxindex. Speed up simple initializations. Don't clean up if we're assigning. * cp-tree.h: Adjust. * decl2.c (do_static_initialization): Remove TREE_VEC case. * parse.y (new_initializer): Return void_zero_node for (). * typeck.c (build_modify_expr): Handle getting a CONSTRUCTOR. * typeck2.c (digest_init): Only complain about user-written CONSTRUCTORs. From-SVN: r38643
2001-01-03* decl2.c: (max_tinst_depth): Increase to 50.Mike Stump2-3/+18
From-SVN: r38642
2001-01-03class.c (invalidate_class_lookup_cache): Zero the previous_class_values.Mark Mitchell6-24/+71
* class.c (invalidate_class_lookup_cache): Zero the previous_class_values. * cp-tree.h (TMPL_PARMS_DEPTH): Use TREE_INT_CST_LOW, not TREE_INT_CST_HIGH. (CLASSTYPE_TEMPLATE_LEVEL): Likewise. * decl.c (free_bindings): New variable. (push_binding): Don't create a new binding if we have one on the free list. (pop_binding): Put old bindings on the free list. (init_decl_processing): Use size_int, not build_int_2. Register free_bindings as a GC root. (cp_make_fname_decl): Use size_int, not build_int_2. (push_inline_template_parms_recursive): Likewise. (end_template_parm_list): Likewise. (for_each_tempalte_parm): Do not use walk_tree_without_duplicates. (tsubst_template_parms): Use size_int, not build_int_2. (tsubst): Likewise. * rtti.c (get_vmi_pseudo_type_info): Likewise. From-SVN: r38641
2001-01-03* fold-const.c (fold_convert): Fix typo.Mark Mitchell2-1/+5
From-SVN: r38640
2001-01-02c-common.h (ASM_INPUT_P): New.Richard Henderson8-16/+51
* c-common.h (ASM_INPUT_P): New. * c-parse.in (asm): Set it when needed. * c-semantics.c (genrtl_asm_stmt): Test it instead of the existance of an operand. * cp/parse.y (asm): Set ASM_INPUT_P. From-SVN: r38638
2001-01-02* typeck.c (build_binary_op): Fix pmf comparison logic.Jason Merrill1-0/+26
From-SVN: r38637
2001-01-02tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE for v3 ABI.Jason Merrill7-51/+85
* tree.c (cp_valid_lang_attribute): Don't set CLASSTYPE_COM_INTERFACE for v3 ABI. * typeck.c (cp_truthvalue_conversion): New fn. * cvt.c (ocp_convert): Use it. * cp-tree.h: Lose c-common.c decls. * typeck.c (build_unary_op): Restore old &a.f diagnostic code. * cvt.c (convert_to_void): Use type_unknown_p. From-SVN: r38636
2001-01-02tweak formattingJason Merrill1-4/+4
From-SVN: r38635
2001-01-02dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.Jan Hubicka2-2/+41
* dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY. (dwarf2out_frame_debug_expr): Likewise. (mem_loc_descriptor): Handle PRE and POST_MODIFY. From-SVN: r38634
2001-01-02i386.c (ix86_split_to_parts): Return number of part required; handle TFmodes.Jan Hubicka5-45/+992
* i386.c (ix86_split_to_parts): Return number of part required; handle TFmodes. (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle TFmodes. (ix86_split_long_move): Use number of part returned by ix86_split_to_parts * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE): New macros. (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double (LONG_DOUBLE_TYPE_SIZE): Change from constant. (MAX_LONG_DOUBLE_TYPE_SIZE): New macro. (INTEL_EXTENDED_IEEE_FORMAT): Likewise. (ALIGN_MODE_128): Add TFmode. (IS_STACK_MODE): Likewise. (HARD_REGNO_NREGS): TFmode needs 3 registers. (HARD_REGNO_OK): Support TFmodes. (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes. * i386.md (scheduler definitions): Use memory operand to determine fst/fld instructions; use mode attribute to determine real mode of the instruction. (*tf): New patterns, expanders and splitters; based on XFmode patterns. * invoke.texi (128bit-long-double, 96bit-long-double): Document. From-SVN: r38633
2001-01-02Update copyrightMark Mitchell1-1/+1
From-SVN: r38632
2001-01-02* tree.def (TRUTH_NOT_EXPR): Improve documentation.Mark Mitchell2-5/+13
From-SVN: r38631
2001-01-02Fix last changeRichard Kenner1-1/+2
From-SVN: r38630
2001-01-02expr.c (store_constructor_field): Update ALIGN before calling store_constructor.Richard Kenner2-0/+10
* expr.c (store_constructor_field): Update ALIGN before calling store_constructor. From-SVN: r38629
2001-01-02Initial version.Chandra Chavva1-0/+32
From-SVN: r38628
2001-01-02mips.c (function_arg): Don't pass NULL_TREE to host_integerp.Jeffrey Oldham2-1/+7
2001-01-02 Jeffrey Oldham <oldham@codesourcery.com> * config/mips/mips.c (function_arg): Don't pass NULL_TREE to host_integerp. From-SVN: r38627
2001-01-02tm.texi (FUNCTION_ARG): Document that @var{type} can be an incomplete type.Jeffrey Oldham2-0/+7
2001-01-02 Jeffrey Oldham <oldham@codesourcery.com> * tm.texi (FUNCTION_ARG): Document that @var{type} can be an incomplete type. From-SVN: r38626
2001-01-02* c-decl.c (start_function): Don't warn on third parameter to main.Richard Kenner2-5/+6
From-SVN: r38625
2001-01-02* tsystem.h: Define HAVE_DECL_GETOPT.Kaveh R. Ghazi2-1/+16
From-SVN: r38623
2001-01-02typeck.c (strip_all_pointer_quals): Also strip quals from pointer-to-member ↵Jason Merrill7-9/+73
types. * typeck.c (strip_all_pointer_quals): Also strip quals from pointer-to-member types. * Make-lang.in (cp/TAGS): Use --no-globals. Ignore parse.c, and treat parse.y as C. * call.c (build_new_method_call): Do evaluate the object parameter when accessing a static member. * typeck.c (build_component_ref): Likewise. From-SVN: r38619
2001-01-02Fix illegal asmPhilip Blundell2-4/+8
From-SVN: r38618
2001-01-02Update commentRichard Kenner1-2/+1
From-SVN: r38617