aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-04-22gbl-ctors.h: Add special license exception.David Turner5-0/+36
* gbl-ctors.h: Add special license exception. * libgcc2.h: Likewise. * tsystem.h: Likewise. * gcov-io.h: Likewise. From-SVN: r65949
2003-04-22fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT macro ↵David Edelsohn4-1/+23
defaulting to original BRANCH_COST heuristic. * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT macro defaulting to original BRANCH_COST heuristic. * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document. * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define. From-SVN: r65942
2003-04-22packed1.C: Fix dg options.Andreas Tobler2-1/+5
2003-04-21 Andreas Tobler <a.tobler@schweiz.ch> * g++.dg/other/packed1.C: Fix dg options. From-SVN: r65941
2003-04-22t-spe: Merge in t-fprules into file.Aldy Hernandez3-1/+20
2003-04-22 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/t-spe: Merge in t-fprules into file. * config.gcc: Add t-spe to powerpc-eabispe. From-SVN: r65938
2003-04-22Fixed calls to putenv().Kean Johnston2-2/+6
From-SVN: r65937
2003-04-22stddef.h: Provide C++ safe offsetof.Nathan Sidwell4-1/+62
.: * ginclude/stddef.h: Provide C++ safe offsetof. testsuite: * g++.dg/other/offsetof2.C: New test. From-SVN: r65936
2003-04-22Fix typo in comment.Richard Kenner1-1/+1
From-SVN: r65935
2003-04-22function.c (purge_addressof_1): In (mem (addressof (reg))) case for reg notes...J"orn Rennecke2-0/+35
* function.c (purge_addressof_1): In (mem (addressof (reg))) case for reg notes, if there are no substitutions, just use a SUBREG. From-SVN: r65934
2003-04-22* rtti.c (throw_bad_typeid): Use build_cxx_call.Mark Mitchell2-1/+5
From-SVN: r65933
2003-04-22Makefile.in (calls.o): Depend on except.h.Mark Mitchell16-50/+162
* Makefile.in (calls.o): Depend on except.h. * calls.c: Include except.h. (emit_call_1): Call note_eh_region_may_contain_throw if appropriate. * except.c (eh_region): Add may_contain_throw. (expand_eh_region_end_cleanup): Do not include handler code when it cannot be reached. (note_eh_region_may_contain_throw): New function. * except.h (note_eh_region_may_contain_throw): New function. * call.c (build_over_call): Use build_cxx_call. (build_cxx_call): New method, split out of build_over_call. * cp-tree.h (language_function): Add can_throw. (build_cxx_call): Declare it. * decl.c (finish_function): If a function does not contain any calls to functions that can throw an exception, indicate that fact. * decl2.c (mark_used): Do not defer the instantiation of functions, if the current function does not throw. * optimize.c (maybe_clone_body): Copy TREE_NOTHROW to the clones. * pt.c (instantiate_decl): Make sure import_export_decl is called before emitting things. * rtti.c (throw_bad_cast): Use build_cxx_call. (build_dynamic_cast_1): Likewise. * typeck.c (build_function_call): Likewise. * g++.dg/template/recurse.C: Adjust location of error messages. From-SVN: r65929
2003-04-22Daily bump.GCC Administrator1-1/+1
From-SVN: r65928
2003-04-21winnt.c (i386_pe_mark_dllimport): Revert previous changes.Mark Mitchell2-7/+10
* config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous changes. From-SVN: r65920
2003-04-21Refine last change.Richard Kenner1-4/+15
From-SVN: r65915
2003-04-21fold-const.c (fold, [...]): Restore a number of conversions required for ↵Olivier Hainque2-7/+20
type consistency and previously... * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore a number of conversions required for type consistency and previously stripped off by STRIP_NOPS. From-SVN: r65913
2003-04-21rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for details of ↵Richard Kenner2-5/+10
conflict handling. * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for details of conflict handling. From-SVN: r65912
2003-04-21rs6000.c (rs6000_override_options): No SPE means 64-bit long doubles.Aldy Hernandez1-0/+7
2003-04-21 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (rs6000_override_options): No SPE means 64-bit long doubles. From-SVN: r65911
2003-04-21rs6000.c (rs6000_override_options): No SPE means 64-bit long doubles.Aldy Hernandez1-0/+5
2003-04-21 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (rs6000_override_options): No SPE means 64-bit long doubles. [[Split portion of a mixed commit.]] From-SVN: r65910.2
2003-04-21Revert hunks not part of last patch.Richard Kenner1-16/+7
From-SVN: r65908
2003-04-21expmed.c (extract_bit_field): Reverse operands of && condition to prevent a ↵Olivier Hainque3-19/+31
potential division by zero in the... * expmed.c (extract_bit_field): Reverse operands of && condition to prevent a potential division by zero in the previously first branch. * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero. From-SVN: r65907
2003-04-21commit two parts of my last patch that escaped, somehowNathan Sidwell2-1/+2
From-SVN: r65906
2003-04-21calls.c (expand_call): Prevent sibcall optimization for calls to nested ↵Olivier Hainque2-0/+9
subprograms. * calls.c (expand_call): Prevent sibcall optimization for calls to nested subprograms. From-SVN: r65904
2003-04-21fold-const.c (extract_muldiv, [...]): Detect case when conversion overflows.Richard Kenner2-7/+19
* fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case when conversion overflows. From-SVN: r65900
2003-04-21* stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.Richard Kenner2-1/+3
From-SVN: r65899
2003-04-21dwarf2out.c (is_ada, [...]): New functions.Joel Brobecker2-13/+87
* dwarf2out.c (is_ada, is_ada_subrange_type): New functions. (subrange_type_die): Likewise. (modified_type_die): Emit a subrange_type DIE for Ada subrange types. (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up. From-SVN: r65898
2003-04-21Break out coverage routines to new file.Nathan Sidwell13-1565/+1802
* Makefile.in (COVERAGE_H): New variable (C_OBJS): Add coverage.o (coverage.o): New target. (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust dependencies. (GTFILES): Adjust. (gt-coverage.h): New target. (gt-profile.h): Remove. * profile.h: Remove. Move to ... * coverage.h: ... here. New. #include gcov-io.h. * gcov-io.h: Move function definitions to ... * gcov-io.c: ... here. New. * profile.c: Move coverage routines to coverage.c. (instrument_edges, get_exec_counts, branch_prob, init_branch_prob, end_branch_prob): Adjust. * coverage.c: New. Coverage routines from profile.c (coverage_counter_ref, coverage_init, coverage_finish, coverage_end_function, coverage_begin_output, coverage_counter_ref, get_coverage_counts): Define. * gcov-dump.c, gcov.c: #include gcov-io.c. * libgcov.c: Likewise. Adjust. * loop-init.c: Don't #include profile.h * tracer.c, predict.c, sched-ebb.c: Adjust #includes. * rtl.h: Add coverage prototypes. * toplev.c (compile_file): Init coverage, not branch_prob. Always call coverage_finish. (rest_of_compilation): Call coverage_end_function. From-SVN: r65897
2003-04-21rs6000.md (*movsf_softfloat): Add "h" <- "0" case.Janis Johnson1-1/+1
2003-04-21 Matt Kraai <kraai@alumni.cmu.edu> * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case. From-SVN: r65896
2003-04-21rs6000.md (*movsf_softfloat): Add "h" <- "0" case.Matt Kraai2-5/+10
2003-04-21 Matt Kraai <kraai@alumni.cmu.edu> * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case. From-SVN: r65895
2003-04-21c-ppoutput.c (cb_include): Don't take a cpp_token.Neil Booth6-109/+121
* c-ppoutput.c (cb_include): Don't take a cpp_token. * cppfiles.c: Don't undef strcmp. (find_include_file): Don't take a cpp_token. Check for empty file names. (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token. (cpp_push_include): Simplify. * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update. * cpplib.c (glue_header_name): Return the file name, not a cpp_token. (parse_include): Similary. Don't check for zero-length filenames. (do_include_common, do_pragma_dependency): Update accordingly. * cpplib.h (struct cpp_callbacks): Change prototype of include. From-SVN: r65894
2003-04-21expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p before ↵Richard Kenner2-1/+14
clearing. * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p before clearing. From-SVN: r65890
2003-04-21winnt.c (i386_pe_mark_dllimport): Make the new RTL have the same form as the ↵Mark Mitchell2-2/+11
old RTL. * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL have the same form as the old RTL. From-SVN: r65885
2003-04-21* cppcharset.c (_cpp_valid_ucn): Cast field precision to int.Andreas Jaeger2-4/+8
From-SVN: r65883
2003-04-21re PR c++/9881 (What is an address constant expression?)Nathan Sidwell5-17/+70
cp: PR c++/9881 * typeck.c (build_unary_op): Fold all COMPONENT_REF addr expressions. Reverts my 2002-08-08 patch. * typeck.c (comp_ptr_ttypes_real): Swap final && operands for cheaper early exit. testsuite: PR c++/9881 * g++.dg/init/addr-const1.C: New test. * g++.dg/other/packed1.C: XFAIL on aligned architectures. From-SVN: r65882
2003-04-21Daily bump.GCC Administrator1-1/+1
From-SVN: r65877
2003-04-20c-common.h, [...]: Rename genrtl_decl_cleanup to genrtl_cleanup_stmt.Chris Lattner4-49/+50
* c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to genrtl_cleanup_stmt. Correct comment at head of genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP). * stmt.c (struct nesting): Kill n_function_calls. (expand_start_bindings): Don't set thisblock->data.block.n_function_calls. (expand_end_bindings): Compare function_call_count against 0. (expand_cleanups): Kill DONT_DO argument; all callers passed NULL_TREE. All callers updated to match. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r65869
2003-04-20jcf-io.c (find_class): use DIR_SEPARATOR instead of '/' when computing java ↵Mohan Embar2-1/+7
source filename 2003-04-20 Mohan Embar <gnustuff@thisiscool.com> * jcf-io.c (find_class): use DIR_SEPARATOR instead of '/' when computing java source filename From-SVN: r65867
2003-04-20* varasm.c (struct deferred_constant, defer_addressed_constants_flag)Zack Weinberg4-108/+36
(defer_addressed_constants, output_deferred_addressed_constants): Kill. (output_constant_def): Remove code predicated on defer_addressed_constants_flag. * output.h: Remove prototypes of deleted functions. * c-typeck.c (constructor_subconstants_deferred): Kill. (struct initializer_stack): Remove 'deferred' field. (start_init): Remove all references to the above. (finish_init): Likewise. Also remove never-executed call to output_deferred_addressed_constants. Pull assignment to defstr out of if expression. From-SVN: r65865
2003-04-20cpphash.h (NOTE_ESC_NL, [...]): Remove.Neil Booth3-32/+35
* cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH, NOTE_NEWLINE): Remove. * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update to handle new form of line note type. From-SVN: r65860
2003-04-20target.h (encode_section_info): Add new argument carrying the RTL to be ↵Zack Weinberg25-141/+174
modified by the hook. * target.h (encode_section_info): Add new argument carrying the RTL to be modified by the hook. * varasm.c (make_decl_rtl, output_constant_def): Update calls to encode_section_info. (default_encode_section_info): Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL. * output.h: Update prototype of default_encode_section_info. * config/darwin.h (ASM_DECLARE_OBJECT_NAME) (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Update calls to encode_section_info. * config/darwin.c, config/arm/arm.c, config/arm/pe.c * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions): Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL, except for PE dllimport/dllexport. Update calls to default_encode_section_info. * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h: Update prototypes. * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update. From-SVN: r65859
2003-04-20pa.md (movccfp): New expander.John David Anglin2-5/+26
PR/8705 * pa.md (movccfp): New expander. (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively. Reverse fcmp conditions. From-SVN: r65858
2003-04-20avr.md (*cmpqi_sign_extend): Handle negative values of operand 1 correctly.Marek Michalkiewicz2-2/+7
* config/avr/avr.md (*cmpqi_sign_extend): Handle negative values of operand 1 correctly. From-SVN: r65850
2003-04-20cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.Nathan Sidwell5-28/+58
.: * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens. * gcov.c (output_lines): Don't be so fussy about going past EOF. cp: * cp/decl2.c (start_static_storage_duration_function): Take count arg, don't check if it wraps round. (generate_ctor_or_dtor_function): Add locus arg, use it. (generate_ctor_and_dtor_functions_for_priority): Data arg is a locus. (finish_file): Set line numbers to past EOF for synthesized functions. From-SVN: r65847
2003-04-20re PR c++/10405 (Segfault in setup_class_bindings)Nathan Sidwell4-11/+64
cp: PR c++/10405 * search.c (lookup_field_1): Final scan goes backwards for types, forwards for non-types. testsuite: PR c++/10405 * g++.dg/lookup/struct-hack1.C: New test. From-SVN: r65846
2003-04-20Makefile.in (LIBCPP_OBJS): Add cppcharset.o.Neil Booth8-425/+704
* Makefile.in (LIBCPP_OBJS): Add cppcharset.o. (cppcharset.o): New target. * c-lex.c (is_extended_char): Move to cppcharset.c. (utf8_extend_token): Delete. * cppcharset.c: New file. * cpphash.h (_cpp_valid_ucn): New. * cpplex.c (lex_identifier): Update prototype. (continues_identifier_p): Rename forms_identifier_p. Handle UCN escapes. (maybe_read_ucs): Rename maybe_read_ucn. Update to use code in cppcharset.c. (lex_number, lex_identifier, cpp_parse_escape): Update. (_cpp_lex_direct): Update to handle UCNs. (cpp_avoid_paste): Don't paste to form a UCN. testsuite: * ucs.c: Update diagnostic messages. From-SVN: r65845
2003-04-20builtins.c (expand_builtin): Don't expand a pure or const built-in function ↵Roger Sayle2-0/+36
if... * builtins.c (expand_builtin): Don't expand a pure or const built-in function if the result will be ignored and none of its arguments are volatile. From-SVN: r65843
2003-04-20Daily bump.GCC Administrator1-1/+1
From-SVN: r65841
2003-04-19ChangeLog entry for part of the SCO patches.Kean Johnston1-0/+88
From-SVN: r65833
2003-04-19Part 2 of the SCO port update. This is everything I have approval for.Kean Johnston7-696/+168
There are two outstanding patches I await approval to check in. From-SVN: r65832
2003-04-19Part 1 of the checkins for the SCO port update.Kean Johnston7-16/+270
Part 1 of the checkins for the SCO port update. This is the fixinclude stuff. From-SVN: r65830
2003-04-19Makefile.in: Change $(target-alias) to $(target_alias) in comment.Matt Kraai1-1/+1
* Makefile.in: Change $(target-alias) to $(target_alias) in comment. From-SVN: r65822
2003-04-19cpphash.h (struct cpp_buffer): Remove backup_to.Neil Booth3-162/+109
* cpphash.h (struct cpp_buffer): Remove backup_to. * cpplex.c (BACKUP, get_effective_char): Die. (_cpp_skip_block_comment): Assume '*' is location on entry. (continues_identifier_p): Respect -fno-dollars-in-identifiers. (IF_NEXT_IS): Update. (_cpp_lex_direct): Don't use backup_to; look ahead directly. From-SVN: r65819