aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-10-24adadecode.h, [...]: Convert to ISO C90 declarations and definitions.Nathanael Nerode8-88/+73
* adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h, stringt.h: Convert to ISO C90 declarations and definitions. From-SVN: r72877
2003-10-24re PR middle-end/11414 (Segementation fault compiling csets.adb)Roger Sayle2-13/+11
PR middle-end/11414 * loop.c (load_mems): Use redirect_jump to forward jumps from the original loop end label to the new "loop sink" block's label. From-SVN: r72876
2003-10-24Daily bump.GCC Administrator1-1/+1
From-SVN: r72874
2003-10-23re PR middle-end/12705 (: complex powers)Roger Sayle2-19/+17
PR middle-end/12705 * optabs.c (expand_binop): When expanding complex operations inline, always calculate result into a new temporary register. Minor code clean-ups. From-SVN: r72871
2003-10-23Makefile.in (runtime-info.h): Remove -Wp.Rainer Orth3-7/+14
libobjc: * Makefile.in (runtime-info.h): Remove -Wp. gcc: * objc/lang-specs.h: Handle -print-objc-runtime-info. * doc/invoke.texi (Objective-C Dialect Options): Document it. From-SVN: r72870
2003-10-23* config/i386/cygwin.asm. Add copyright notice. Add commentDanny Smith2-3/+44
on why this code is needed. From-SVN: r72869
2003-10-23old-style-asm-1.c: Also check for (set (pc) on lines following the jump_insn.Zdenek Dvorak2-1/+6
* gcc.dg/old-style-asm-1.c: Also check for (set (pc) on lines following the jump_insn. From-SVN: r72868
2003-10-23clzhi2.c: Fix warnings.Kazu Hirata6-1/+11
* config/h8300/clzhi2.c: Fix warnings. * config/h8300/ctzhi2.c: Likewise. * config/h8300/fixunssfsi.c: Likewise. * config/h8300/parityhi2.c: Likewise. * config/h8300/popcounthi2.c: Likewise. From-SVN: r72864
2003-10-23clzhi2.c: Fix warnings.Kazu Hirata1-0/+8
* config/h8300/clzhi2.c: Fix warnings. * config/h8300/ctzhi2.c: Likewise. * config/h8300/fixunssfsi.c: Likewise. * config/h8300/parityhi2.c: Likewise. * config/h8300/popcounthi2.c: Likewise. From-SVN: r72863
2003-10-23Fix problem noticed while looking at PR 12564.James E Wilson2-2/+4
* gcc.c (option_map): Delete --target and --use-version. From-SVN: r72862
2003-10-23rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not TARGET_POWREPC64.Fariborz Jahanian3-8/+124
* config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not TARGET_POWREPC64. (UNITS_PER_GPR_WORD): Define. (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD. (HARD_REGNO_CALL_PART_CLOBBERED): Define. (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD. (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD. * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for DFmode and DImode in 32-bit ABI / 64-bit computation mode. (rs6000_emit_prologue): Select reg_mode and reg_size using TARGET_32BIT, not TARGET_POWERPC64. (rs6000_function_value): Generate PARALLEL for DImode in 32-bit ABI / 64-bit computation mode Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r72851
2003-10-23toplev.c (output_file_directive): Allow for null input_name.Andrew Haley2-2/+12
2003-10-22 Andrew Haley <aph@redhat.com> * toplev.c (output_file_directive): Allow for null input_name. From-SVN: r72847
2003-10-23re PR ada/11978 (ada compiler crashes in a-tags.adb)Arnaud Charlet9-69/+104
PR ada/11978: * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited External_Tag attribute definition clauses. PR ada/7613: * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a child unit, generate a fully qualified name to avoid spurious errors when the context contains renamings of different child units with the same simple name. * exp_dbug.ads: Add documentation on name qualification for renamings of child units. * g-regpat.ads, g-regpat.adb: Minor reformatting * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times. * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to Machine call. * urealp.h: (Machine): Update to proper definition. From-SVN: r72843
2003-10-23* init.c, adaint.c: Minor reformatting.Arnaud Charlet3-10/+13
From-SVN: r72841
2003-10-23adaint.c (w32_epoch_offset): Define static const at file level.Danny Smith2-20/+51
* ada/adaint.c (w32_epoch_offset): Define static const at file level. (win32_filetime): Replace offset with w32_epoch_offset. Use NULL rather than t_create, t_access in call to GetFileTime. Use union to convert between FILETIME and unsigned long long. (__gnat_file_time_name): Test for invalid file handle. (__gnat_set_filetime_name): Support win32 targets using w32api SetFileTime. From-SVN: r72840
2003-10-23i386.c (classify_argument): Handle SET_TYPE.Waldek Hebisch2-1/+30
2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl> * config/i386/i386.c (classify_argument): Handle SET_TYPE. [[Split portion of a mixed commit.]] From-SVN: r72838.2
2003-10-23re PR c++/12726 (ICE (segfault) on trivial code)Jason Merrill3-2/+27
PR c++/12726 * tree.c (build_target_expr_with_type): Don't call force_rvalue for CONSTRUCTORs. From-SVN: r72837
2003-10-22configure.in: In --enable-generated-files-in-srcdir option handling, fix ↵Chris Demetriou3-2/+8
default case handling. 2003-10-22 Chris Demetriou <cgd@broadcom.com> * configure.in: In --enable-generated-files-in-srcdir option handling, fix default case handling. * configure: Regenerate. From-SVN: r72836
2003-10-23config.gcc: Update *-*-vxworks* generic hook and comments.Phil Edwards14-20/+586
2003-10-22 Phil Edwards <phil@codesourcery.com> * config.gcc: Update *-*-vxworks* generic hook and comments. (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks, mips-wrs-windiss, sh-wrs-vxworks): New stanzas. * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly. * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it. * config/windiss.h: New file. * config/arm/t-vxworks: New file. * config/arm/vxworks.h: New file. * config/i386/t-vxworks: New file. * config/i386/vxworks.h: New file. * config/mips/t-vxworks: New file. * config/mips/vxworks.h: New file. * config/mips/windiss.h: New file. * config/sh/t-vxworks: New file. * config/sh/vxworks.h: New file. From-SVN: r72834
2003-10-23Daily bump.GCC Administrator1-1/+1
From-SVN: r72831
2003-10-22call.c: Fix comment formatting.Kazu Hirata11-24/+37
* call.c: Fix comment formatting. * class.c: Likewise. * cxx-pretty-print.c: Likewise. * init.c: Likewise. * parser.c: Likewise. * pt.c: Likewise. * semantics.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. From-SVN: r72828
2003-10-22h8300.c (h8300_output_function_epilogue): Remove.Kazu Hirata3-21/+57
* config/h8300/h8300.c (h8300_output_function_epilogue): Remove. (h8300_saveall_function_p): New. (h8300_insert_attributes): Insert the saveall attribute if #pragma saveall is specified. (h8300_attribute_table): Add saveall. (TARGET_ASM_FUNCTION_EPILOGUE): Remove. * doc/extend.texi: Mention the saveall attribute. From-SVN: r72827
2003-10-22obstack.h: Merge the following change from gnulib...Joseph Myers7-16/+121
include: * obstack.h: Merge the following change from gnulib: 2003-10-21 Paul Eggert <eggert@twinsun.com> * obstack.h (obstack_1grow_fast): Properly parenthesize arg. (obstack_ptr_grow_fast, obstack_int_grow_fast): Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5. Reported by Joseph S. Myers. This bug was also present in the non-GCC version, indicating that this code had always been buggy and had never been widely used. (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank): Use the fast variant of each macro, rather than copying the definiens of the fast variant; that way, we'll be more likely to catch future bugs in the fast variants. gcc: * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of deprecation of casts as lvalues. * fixinc/inclhack.def (obstack_lvalue_cast): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/obstack.h: New test. gcc/testsuite: * gcc.dg/cast-lvalue-1.c: New test. From-SVN: r72826
2003-10-22sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.Danny Smith5-18/+46
* sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW. * ctrl_c.c (__gnat_int_handler): Remove declaration. * decl.c (creat_concat_name): Const-ify prefix. * adaint.c: Include ctype.h if __MINGW32__. (__gnat_readlink): Mark arguments as possibly unused. (__gnat_symlink): Likewise. (__gnat_is_symbolic_link): Likewise. (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match declaration (__gnat_file_time_name): Don't declare struct stat statbuf when not needed. (__gnat_is_absolute_path): Add parenthesis around condition of 'if' statement to avoid warning. (__gnat_plist_init): Specify void as parameter. (plist_enter): Likewise. (plist_leave): Likewise. (remove_handle): Make static. Initialize prev. From-SVN: r72824
2003-10-22re PR target/12676 (m68k.c: LP64 bug)Andreas Schwab2-1/+7
PR target/12676 * config/m68k/m68k.c (output_addsi3): Fix range check to work on LP64 platforms. From-SVN: r72823
2003-10-22dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check presence of ↵Jan Hubicka2-5/+10
DW_AT_inline. * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check presence of DW_AT_inline. (gen_subprogram_die): Likewise; do not abort instead of emitting DW_AT_not_inline From-SVN: r72821
2003-10-22cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when global ↵Jan Hubicka2-3/+6
info is not ready. * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when global info is not ready. From-SVN: r72816
2003-10-22* doc/extend.texi: Mention H8S wherever H8/300H is mentioned.Kazu Hirata2-8/+12
From-SVN: r72813
2003-10-22jcf-write.c: Follow spelling conventions.Kazu Hirata3-3/+8
* jcf-write.c: Follow spelling conventions. * parse.y: Likewise. From-SVN: r72812
2003-10-22ChangeLog: Fix typos.Kazu Hirata8-54/+65
* ChangeLog: Fix typos. * expr.c: Fix comment typos. * jcf-write.c: Likewise. * lang.c: Likewise. * lex.c: Likewise. * mangle.c: Likewise. * parse-scan.y: Likewise. * parse.y: Likewise. From-SVN: r72809
2003-10-22s390.md ("movstr_short_64", [...]): Merge ...Ulrich Weigand3-193/+198
* config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ... ("*movstr_short"): ... into this insn pattern. ("movstr_short"): New expander. ("*movstr_long_64"): Rename from "movstr_long_64", simplify. ("*movstr_long_31"): Rename from "movstr_long_31", simplify. ("movstr_long"): New expander. ("clrstr_short_64", "clrstr_short_31"): Merge ... ("*clrstr_short"): ... into this insn pattern. ("clrstr_short"): New expander. ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify. ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify. ("clrstr_long"): New expander. ("cmpmem_short_64", "cmpmem_short_31"): Merge ... ("*cmpmem_short"): ... into this insn pattern. ("cmpmem_short"): New expander. ("*cmpmem_long_64"): Rename from "cmpmem_long_64". ("*cmpmem_long_31"): Rename from "cmpmem_long_31". ("cmpmem_long"): New expander. * config/s390/s390.c (s390_expand_movstr): Use new expanders. (s390_expand_clrstr): Likewise. (s390_expand_cmpmem): Likewise. From-SVN: r72807
2003-10-22expr.c (expand_byte_code): Only warn about dead bytecode when extra_warnings ↵Tom Tromey2-4/+11
is set. * expr.c (expand_byte_code): Only warn about dead bytecode when extra_warnings is set. From-SVN: r72805
2003-10-22c-pch.c (struct c_pch_validity): Add pch_init field.Mark Mitchell2-0/+21
* c-pch.c (struct c_pch_validity): Add pch_init field. (pch_init): Set it. (c_common_valid_pch): Check it. (get_ident): Bump the PCH version number. From-SVN: r72804
2003-10-22* Makefile.in: Disable build of gnatpsta. PR ada/10110.Arnaud Charlet1-4/+4
From-SVN: r72801
2003-10-22re PR ada/10110 ([mipsel-linux]ada bootstrap error)Arnaud Charlet2-15/+15
* Makefile.in: Disable build of gnatpa. PR ada/10110. * cstreams.c (__gnat_full_name): Minor improvements and clean up of previous change. From-SVN: r72800
2003-10-22re PR debug/12500 (stabs debug info -- void no longer a predefined / builtin ↵David Taylor2-1/+6
type) PR debug/12500 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P. From-SVN: r72798
2003-10-22alpha.c (function_value [ENABLE_CHECKING]): Don't call ↵Richard Kenner2-1/+6
alpha_return_in_memory if no VALTYPE specified. * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call alpha_return_in_memory if no VALTYPE specified. From-SVN: r72796
2003-10-22re PR debug/12389 ([testcase needed] ICE in gen_subprogram_die for nested ↵Jan Hubicka8-13/+49
function) PR debug/12389 * Makefile.in (dwarf2out.o): Depend on cgraph.h. * cgraph.c (cgraph_function_possibly_inlined_p): New function. * cgraph.h (cgraph_function_possibly_inlined_p): Declare. (cgraph_global_info): Add flag inlined * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use cgraph_function_possibly_inded_p * cgraphunit.c (mark_inline): Set inlined flag. * toplev.c (rest_of_decl_compilation): Call outlining_inline_function only for possibly inlined functions. * c-decl.c (duplicate_decls): Never output abstract DIE representing old body of function. From-SVN: r72795
2003-10-22tracebak.c (MAX): Avoid redefinition warning.Rainer Orth4-6/+20
* tracebak.c (MAX): Avoid redefinition warning. * init.c [sgi] (__gnat_error_handler): Remove i, unused. Change msg to const char *. (__gnat_install_handler): Remove ss, unused. [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg to const char *. * cstreams.c (__gnat_full_name): Declare p only when used. (__gnat_full_name) [sgi] Return buffer. From-SVN: r72794
2003-10-22varasm.c (output_constructor): Make constructor annotation conditional on ↵Andrew Haley2-0/+7
ASM_COMMENT_START. 2003-10-22 Andrew Haley <aph@redhat.com> * varasm.c (output_constructor): Make constructor annotation conditional on ASM_COMMENT_START. From-SVN: r72793
2003-10-22re PR ada/5677 (Assert failure in nlists.adb:933)Arnaud Charlet10-23/+250
2003-10-22 Arnaud Charlet <charlet@act-europe.fr> * gnat_wrapper.adb: New file. 2003/10/22 Jerome Roussel <roussel@act-europe.fr> * g-regpat.ads, g-regpat.adb (Match): new function, to know if a string match a pre compiled regular expression (the corresponding version of the function working on a raw regular expression) Fix typos in various comments Update copyright notice in spec 2003/10/21 Gary Dismukes <dismukes@gnat.com> * exp_ch3.adb: (Component_Needs_Simple_Initialization): Return False when the type is a packed bit array. Revise spec comments to document this case. * exp_prag.adb: (Expand_Pragma_Import): Set any expression on the imported object to empty to avoid initializing imported objects (in particular this covers the case of zero-initialization of bit arrays). Update copyright notice. 2003/10/21 Ed Schonberg <schonberg@gnat.com> * sem_ch12.adb: (Load_Parent_Of_Generic): If parent is compilation unit, stop search, a subunit is missing. (Instantiate_Subprogram_Body): If body of function is missing, set type of return expression explicitly in dummy body, to prevent cascaded errors when a subunit is missing. Fixes PR 5677. * sem_ch3.adb: (Access_Subprogram_Declaration): Verify that return type is valid. Fixes PR 8693. * sem_elab.adb: (Check_Elab_Calls): Do not apply elaboration checks if the main unit is generic. Fixes PR 12318. * sem_util.adb: (Corresponding_Discriminant): If the scope of the discriminant is a private type without discriminant, use its full view. Fixes PR 8247. From-SVN: r72792
2003-10-22mingw32.h: New file.Arnaud Charlet2-0/+58
2003-10-22 Arnaud Charlet <charlet@act-europe.fr> * mingw32.h: New file. From-SVN: r72789
2003-10-21tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.Jason Merrill2-3/+8
* tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type. (get_narrower): Likewise. From-SVN: r72787
2003-10-21stor-layout.c (layout_decl): Do packed field alignment for bit-fields, too.Jason Merrill2-16/+22
* stor-layout.c (layout_decl): Do packed field alignment for bit-fields, too. From-SVN: r72786
2003-10-22re PR c++/11962 (ICE in type_dependent_expression on omitted second operand ↵Mark Mitchell5-3/+42
to ?: in template argument expression) PR c++/11962 * typeck.c (build_x_conditional_expr): Handle missing middle operands in templates. * mangle.c (write_expression): Issue errors about attempts to mangle a non-existant middle operator to the ?: operator. PR c++/11962 * g++.dg/template/cond2.C: New test. From-SVN: r72785
2003-10-22Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h.Kelley Cook2-2/+8
* Make-lang.in (treelang.o): Depend on $(parsedir)/treelang/parse.h. (lex.o): Likewise. From-SVN: r72784
2003-10-22expr.c (convert_move): Use FLOAT_EXTEND for extensions.Eric Christopher2-8/+14
2003-10-21 Eric Christopher <echristo@redhat.com> * expr.c (convert_move): Use FLOAT_EXTEND for extensions. From-SVN: r72783
2003-10-22Daily bump.GCC Administrator1-1/+1
From-SVN: r72781
2003-10-22re PR java/12586 (gnu.java.net name mangling bug)Bryce McKinlay2-29/+27
Fix for PR java/12586. * mangle.c (find_compression_record_match): Don't iterate through package namespace elements unless they all match compression_table entries. From-SVN: r72779
2003-10-21Make-lang.in (parse.o): Honor $(parsedir).Kelley Cook2-18/+32
* Make-lang.in (parse.o): Honor $(parsedir). (lex.o): Likewise. (lex.c): Likewise (parse.c, parse.h): Likewise. ($(docobjdir)/treelang.info): Replace $(srcdir)/doc with $(docdir). (dvi): Likewise. From-SVN: r72778