aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-12-04builtins.c (expand_builtin_strspn, [...]): Handle another transformation.Kaveh R. Ghazi5-3/+45
* builtins.c (expand_builtin_strspn, expand_builtin_strcspn): Handle another transformation. testsuite: * gcc.c-torture/execute/string-opt-11.c: Add more strspn checks. * gcc.c-torture/execute/string-opt-12.c: Add more strcspn checks. From-SVN: r37986
2000-12-04Note XScale contribution.Nick Clifton1-1/+3
From-SVN: r37985
2000-12-04Add support for XScale targetNick Clifton14-75/+811
Add support for StrongARM target From-SVN: r37984
2000-12-04* gcc.c-torture/execute/20001203-1.c: New test.Joseph Myers2-0/+28
From-SVN: r37983
2000-12-03bb-reorder.c (reorder_basic_blocks): Don't check for EH edges unless ↵Richard Henderson5-85/+143
exception handling is enabled... * bb-reorder.c (reorder_basic_blocks): Don't check for EH edges unless exception handling is enabled, and if not using sjlj. * builtins.c (expand_builtin_setjmp_setup): New. (expand_builtin_setjmp_receiver): New. (expand_builtin_setjmp): Split out _setup and _receiver functions. Move argument parsing in from ... (expand_builtin): ... here. * except.c (receive_exception_label): Branch around receiver unless new-style exceptions. Call expand_builtin_setjmp_receiver. (start_dynamic_handler): Call expand_builtin_setjmp_setup. * expr.h: Update builtin setjmp decls. From-SVN: r37982
2000-12-03default the build machine triplet, if it is not providedBruce Korb2-4/+11
From-SVN: r37979
2000-12-03Makefile.in: use $(build_canonical), not $(canonical_build).Laurynas Biveinis2-1/+5
2000-12-03 Laurynas Biveinis <lauras@softhome.net> * Makefile.in: use $(build_canonical), not $(canonical_build). From-SVN: r37978
2000-12-03Move the region scheduling code out of haifa-sched.c.Bernd Schmidt5-3183/+3266
From-SVN: r37977
2000-12-03pass canonical build name to mkfixinc.sh. Use it for choosing the fix build ↵Laurynas Biveinis3-19/+37
method Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r37976
2000-12-03Move dependency code out of haifa-sched.cBernd Schmidt5-1471/+1599
From-SVN: r37975
2000-12-03Move scheduling visualization code to separate file.Bernd Schmidt4-901/+970
From-SVN: r37974
2000-12-03Try to separate region-specific code from generic parts in the scheuler.Bernd Schmidt4-322/+529
From-SVN: r37973
2000-12-03* gcc.dg/cpp/macro6.c: New test cases.Neil Booth2-0/+36
From-SVN: r37972
2000-12-03cppmacro.c (funlike_invocation_p): Re-disable macros enabled by contexts ↵Neil Booth2-10/+25
drops AFTER argument pre-expansion... * cppmacro.c (funlike_invocation_p): Re-disable macros enabled by contexts drops AFTER argument pre-expansion, so that they remain enabled during argument pre-expansion. (_cpp_pop_context): Unconditionally re-enable a macro when dropping a context level. From-SVN: r37971
2000-12-03t-linux (MULTILIB_OPTIONS): Comment.Manfred Hollstein2-5/+13
* arm/t-linux (MULTILIB_OPTIONS): Comment. (MULTILIB_DIRNAMES): Likewise. (EXTRA_MULTILIB_PARTS): Likewise. (LIBGCC): Likewise. (INSTALL_LIBGCC): Likewise. From-SVN: r37970
2000-12-03Daily bump.Jeff Law2-2/+2
From-SVN: r37969
2000-12-03- fix line which did not get committed properlyDavid Edelsohn1-1/+1
From-SVN: r37966
2000-12-03builtins.c (expand_builtin_strcat, [...]): New functions.Kaveh R. Ghazi10-14/+531
* builtins.c (expand_builtin_strcat, expand_builtin_strncat, expand_builtin_strspn, expand_builtin_strcspn): New functions. (expand_builtin): Handle BUILT_IN_STRCAT, BUILT_IN_STRNCAT, BUILT_IN_STRSPN and BUILT_IN_STRCSPN. * builtins.def (BUILT_IN_STRCAT, BUILT_IN_STRNCAT, BUILT_IN_STRSPN, BUILT_IN_STRCSPN): New entries. * c-common.c (c_common_nodes_and_builtins): Declare builtin strcat, strncat, strspn and strcspn. (string_ftype_string_cstring): Renamed from `string_ftype_ptr_ptr'. * extend.texi (strcat, strcspn, strncat, strspn): Document new builtins. testsuite: * gcc.c-torture/execute/string-opt-9.c: New test. * gcc.c-torture/execute/string-opt-10.c: Likewise. * gcc.c-torture/execute/string-opt-11.c: Likewise. * gcc.c-torture/execute/string-opt-12.c: Likewise. From-SVN: r37964
2000-12-03builtins.c (expand_builtin_strcmp): Use const*_rtx when expanding strcmp at ↵Kaveh R. Ghazi5-24/+186
compile-time. * builtins.c (expand_builtin_strcmp): Use const*_rtx when expanding strcmp at compile-time. Add another transformation. (expand_builtin_strncmp): Add more transformations. Call expand_builtin_memcmp, not expand_builtin_strcmp, under appropriate conditions if HAVE_cmpstrsi. testsuite: gcc.c-torture/execute/string-opt-3.c: Add more strcmp checks. gcc.c-torture/execute/string-opt-8.c: Add more strncmp checks. From-SVN: r37963
2000-12-02rs6000.md (anddi3_internal[23]): Prefer rldic?David Edelsohn2-12/+18
* rs6000.md (anddi3_internal[23]): Prefer rldic? over andis instruction. (cr logic): Really make operands sequential. From-SVN: r37962
2000-12-02c-common.c (combine_strings): When the ISO C standard specifies the maximum ↵Geoffrey Keating4-5/+14
length of a string... * c-common.c (combine_strings): When the ISO C standard specifies the maximum length of a string, it doesn't include the trailing zero byte. * gcc.dg/cpp/if-6.c: New testcase. From-SVN: r37961
2000-12-02cpplib.c (do_ifdef): Add check_eol() call.Geoffrey Keating4-0/+22
* cpplib.c (do_ifdef): Add check_eol() call. (do_ifndef): Likewise. * gcc.dg/20001201-1.c: New testcase. From-SVN: r37960
2000-12-02Prepare for fixincludes on BeOSDaniel Berlin7-51/+109
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r37959
2000-12-02Kaveh's warning patch from 11/19Bruce Korb5-34/+74
From-SVN: r37958
2000-12-02empty initial versionBruce Korb1-0/+0
From-SVN: r37957
2000-12-02Enable fixincludes for msdosdjgppBruce Korb2-2/+12
From-SVN: r37956
2000-12-02externC4.C, friend10.C: New tests.Neil Booth3-0/+49
* g++.old-deja/g++.other/externC4.C, g++.old-deja/g++.other/friend10.C: New tests. From-SVN: r37955
2000-12-02arm.h (ARM_REGNO_OK_FOR_BASE_P, [...]): New macros.Richard Earnshaw3-179/+212
* arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New macros. (REGNO_MODE_OK_FOR_BASE_P): Define in terms of above. (REGNO_OK_FOR_FOR_BASE_P): Delete. (ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for both strict and non-strict uses. (REG_MODE_OK_FOR_BASE_P): Define in terms of above. (ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros. (REG_OK_FOR_INDEX_P): Define in terms of above. (REG_OK_FOR_BASE_P): Delete. (REG_OK_FOR_PRE_POST_P): Delete. (ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P. (ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P. (ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX. (THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET. (ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes. Use ARM specific variants rather than general ones. Use ARM_REG_OK_FOR_BASE_P in pre/post increment cases. (THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb. (ARM_LEGITIMIZE_ADDRESS): Similarly. (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly. * arm.c (legitimate_pic_address): Similarly. From-SVN: r37954
2000-12-02tradcpp.c (struct answer, [...]): New.Neil Booth2-6/+238
* tradcpp.c (struct answer, parse_assertion, parse_answer, canonicalize_text, find_answer): New. (do_assert, do_unassert): Provide appropriate function bodies. (union hashval): New member answers. From-SVN: r37953
2000-12-02* g++.old-deja/g++.other/instan2.CNeil Booth3-0/+85
* g++.old-deja/g++.other/instan3.C: New test. From-SVN: r37952
2000-12-02avr.md: Document UNSPEC usage.Marek Michalkiewicz2-46/+43
* config/avr/avr.md: Document UNSPEC usage. (*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump): Make operand 0 input only, clobber it. Use UNSPEC, not a bogus MEM for program memory word reference. Do not add the label to the table index in each of the asm output templates, instead ... (casesi): ... do it in RTL. Adjust to match the above change. From-SVN: r37951
2000-12-02Make alpha build again.Bernd Schmidt3-4/+7
From-SVN: r37950
2000-12-02Haifa cleanup, part 1Bernd Schmidt2-204/+284
From-SVN: r37949
2000-12-02c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests.Neil Booth13-0/+126
* gcc.dg/testsuite/c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, c94.c,c94-pedantic.c,c99.c,c99-pedantic.c,gnuc89.c,gnuc89-pedantic.c, gnuc99.c,gnuc99-pedantic.c: New tests. From-SVN: r37948
2000-12-02* cppexp.c (parse_number): Update diagnostic test.Neil Booth2-2/+7
From-SVN: r37947
2000-12-02Fix multi-reg inheritance problems (only a fix small additional fix for ↵Bernd Schmidt2-5/+7
yesterday's accidental checkin) From-SVN: r37946
2000-12-02Daily bump.Jeff Law2-2/+2
From-SVN: r37945
2000-12-02install.texi (Configurations): Remove obsolete documentation for hppa*-*-*.Gerald Pfeifer2-25/+5
* install.texi (Configurations): Remove obsolete documentation for hppa*-*-*. From-SVN: r37942
2000-12-02install.texi (Installation): Remove obsolete description for libstdc++ which ↵Gerald Pfeifer2-50/+5
is now an integral part of GCC. * install.texi (Installation): Remove obsolete description for libstdc++ which is now an integral part of GCC. From-SVN: r37941
2000-12-02* pt.c: Fix typo in comments.Kriang Lerdsuwanakij2-27/+31
From-SVN: r37939
2000-12-02Remove conflict indicatorGeoffrey Keating1-1/+0
From-SVN: r37937
2000-12-02dbxout.c (dbxout_parms): Correctly describe parameters passed by invisible ↵Jim Blandy2-20/+31
reference in registers... 2000-12-01 Jim Blandy <jimb@redhat.com> * dbxout.c (dbxout_parms): Correctly describe parameters passed by invisible reference in registers, but then spilled to the stack. Remove code to emit a second stab for such parameters; it attempts to describe the value's location by introducing a synthetic C++ `reference' type, and then saying the stack slot has that reference type. This loses type information (breaking GDB's `ptype' command, among other things) just to describe a location which stabs can represent correctly in other ways. From-SVN: r37936
2000-12-01final.c (output_addr_const): Don't assume at least one operand is a CONST_INT.Alexandre Oliva2-1/+5
* final.c (output_addr_const) <PLUS>: Don't assume at least one operand is a CONST_INT. From-SVN: r37935
2000-12-01sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.Alexandre Oliva4-17/+42
* config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS. (machine_dependent_reorg): Split all insns. * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute reg_class_contents[SIBCALL_REGS]. (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS. * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel, call_value_pcrel, call, call_value, sibcall): Match even when not optimizing. (sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k' for call address. (sibcalli): Likewise. From-SVN: r37934
2000-12-01c-common.c (warn_format, [...]): Define.Joseph Myers13-35/+206
* c-common.c (warn_format, warn_format_y2k, warn_format_extra_args, warn_format_nonliteral): Define. (check_format_info): Check warn_format_nonliteral and warn_format_extra_args. (check_format_info_main): Check warn_format_y2k. (set_Wformat): New function. * c-common.h (warn_format_y2k, warn_format_extra_args, warn_format_nonliteral, set_Wformat): Declare. * c-decl.c (warn_format): Remove definition. (c_decode_option): Handle -Wformat-nonliteral, -Wno-format-extra-args and -Wno-format-y2k, and negated versions. Use set_Wformat. * invoke.texi: Document these new options and -Wformat=2. * toplev.c (documented_lang_options): Add these new options. cp: * decl2.c (warn_format): Remove definition. (lang_decode_option): Handle -Wformat-nonliteral, -Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat. testsuite: * gcc.dg/format-no-exargs-1.c, gcc.dg/format-no-y2k-1.c, gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: New tests. From-SVN: r37933
2000-12-01builtins.def (BUILT_IN_IMAXABS): Add.Joseph Myers5-3/+30
* builtins.def (BUILT_IN_IMAXABS): Add. * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS. * c-common.c (c_common_nodes_and_builtins): Create builtin functions __builtin_imaxabs, and plain imaxabs unless flag_no_nonansi_builtin outside C99 mode. (expand_tree_builtin): Handle BUILT_IN_IMAXABS. * extend.texi: Document builtin imaxabs. From-SVN: r37932
2000-12-01c-common.c: Include "defaults.h".Joseph Myers6-84/+92
* c-common.c: Include "defaults.h". (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define. (c_common_nodes_and_builtins): Create string_type_node, const_string_type_node, wint_type_node, intmax_type_node, uintmax_type_node, default_function_type, ptrdiff_type_node and unsigned_ptrdiff_type_node. * c-common.h (identifier_global_value): Declare. * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define. (init_decl_processing): Don't create string_type_node, const_string_type_node, wint_type_node, intmax_type_node, uintmax_type_node, default_function_type, ptrdiff_type_node and unsigned_ptrdiff_type_node. (identifier_global_value): New function. cp: * decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define. (init_decl_processing): Don't create string_type_node, const_string_type_node, wint_type_node, intmax_type_node, uintmax_type_node, default_function_type, ptrdiff_type_node and unsigned_ptrdiff_type_node. Adjust position of call to c_common_nodes_and_builtins. (identifier_global_value): New function. From-SVN: r37931
2000-12-0120000720-1.S: Remove duplicate testcase.Neil Booth4-16/+49
* gcc.dg/cpp/20000720-1.S: Remove duplicate testcase. * gcc.dg/cpp/poison.c: Update. * gcc.dg/cpp/spacing1.c: New testcase for all spacing issues. From-SVN: r37928
2000-12-01cppinit.c (initialize): Forgotten prototype.Neil Booth6-29/+45
* cppinit.c (initialize): Forgotten prototype. * cpplex.c (_cpp_lex_token): Loop until not skipping. Always clear PREV_WHITE upon meeting a new line. * cpplib.c (end_directive): Set pfile->skipping after skip_rest_of_line. * cpplib.h (cpp_reader): Remove macro_pos. * cppmacro.c (cpp_get_line): Don't do anything special inside macros. (parse_arg): Add PREV_WHITE if a token appears after new lines. (funlike_invocation_p): Save and restore the output position over a successful check for a '('. (enter_macro_context): Delete uses of macro_pos. (cpp_get_token): Don't use pfile->skipping. From-SVN: r37927
2000-12-0120001201.f: New test.Toon Moene2-0/+16
2000-12-01 Toon Moene <toon@moene.indiv.nluug.nl> * g77.f-torture/execute/20001201.f: New test. From-SVN: r37925