aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-07-31tweakJason Merrill1-1/+1
From-SVN: r70032
2003-07-31Makefile.in (bubblestrap): Don't require a previous full bootstrap.Jason Merrill5-32/+72
* Makefile.in (bubblestrap): Don't require a previous full bootstrap. * expr.c (mostly_zeros_p): No longer static. * tree.h: Declare it. * stmt.c (resolve_asm_operand_names): Don't copy the pattern unless we need to do substitutions. From-SVN: r70031
2003-08-01fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and pow(x,c)*x as ↵Roger Sayle5-32/+177
pow(x,c+1) for constant values c. * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x as pow(x,2.0) when the latter will be expanded back into x*x. (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1). * builtins.c (expand_builtin_pow): Ignore flag_errno_math as pow can never set errno when used with an integer exponent. Always use expand_powi when exponent is -1, 0, 1 or 2. (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0) as 1.0/(x*x). This avoids unbounded recursion as we now prefer the pow forms of these expressions. * gcc.dg/builtins-27.c: New test case. From-SVN: r70030
2003-08-01Daily bump.GCC Administrator2-2/+2
From-SVN: r70028
2003-07-31Makefile.tpl (libsubdir): Use gcc instead of gcc-lib.Geoffrey Keating7-38/+108
2003-07-31 Geoffrey Keating <geoffk@apple.com> * Makefile.tpl (libsubdir): Use gcc instead of gcc-lib. * Makefine.in: Update. Index: gcc/ChangeLog 2003-07-31 Geoffrey Keating <geoffk@apple.com> * Makefile.in (libexecdir): New. (libsubdir): Use gcc instead of gcc-lib. (libexecsubdir): New. (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir. (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of gcc-lib. (installdirs): Make libexecsubdir. (install-common): Put executables in libexecsubdir. (itoolsdir): Use libexecsubdir. (itoolsdatadir): New. (install-mkheaders): Separate data files and executables. (install-collect2): Put executables in libexecsubdir. (uninstall): Remove libexecsubdir. * mkheaders.in: Update for new arrangement of files. (libexecdir): New. (libexecsubdir): New. (itoolsdir): Use libexecsubdir. (itoolsdatadir): New. * gcc.c (gcc_libexec_prefix): New. (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib. (standard_exec_prefix_1): Use libexec. (standard_exec_prefix_2): New. (standard_libexec_prefix): New. (process_command): Update for new arrangement of files. Compute gcc_libexec_prefix. Update for change from gcc-lib to gcc. From-SVN: r70024
2003-07-31inclhack.def (stdio_va_list): Avoid bogus replacement which triggers on Interix.Nathanael Nerode3-2/+10
* inclhack.def (stdio_va_list): Avoid bogus replacement which triggers on Interix. * fixincl.x: Regenerate. From-SVN: r70023
2003-08-01i386.c (legitimate_pic_address_disp_p): Disallow TLS SYMBOL_REFs not inside ↵Jakub Jelinek4-9/+39
UNSPEC even in PLUS rtx. * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS SYMBOL_REFs not inside UNSPEC even in PLUS rtx. * gcc.dg/tls/opt-7.c: New test. From-SVN: r70022
2003-07-31* dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): Fix error.Richard Kenner1-10/+6
From-SVN: r70019
2003-07-31Tests for user specialization of standard containers.Doug Gregor8-0/+299
From-SVN: r70018
2003-07-31* dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.Richard Kenner2-0/+24
From-SVN: r70013
2003-07-31opts.c (in_fnames, [...]): Moved here from c-opts.Per Bothner10-26/+44
* opts.c (in_fnames, num_in_fnames): Moved here from c-opts. (add_input_filename): New function. (handle_options): Call add_input_filename directly instead of with a lang hook. * opts.h (in_fnames, num_in_fnames): Moved here. (add_input_filename): Declare. * c-decl.c: Need to #include opts.h. * Makefile.in (c-decl.o): Also depends on opts.h. * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c. (c_common_handle_filename): Replaced by add_input_filename. * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename): Remove. * langhooks.h (struct lang_hooks): Remove handle_filename hook. * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro. (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME. * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro. From-SVN: r70012
2003-07-31Reshuffle 23_containers testsuite.Benjamin Kosnik53-1111/+2067
2003-07-31 Benjamin Kosnik <bkoz@redhat.com> Reshuffle 23_containers testsuite. * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc, bitset_shift.cc, deque_ctor.cc, deque_operators.cc, list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc, map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc, set_operators_neg.cc, vector_bool.cc, vector_capacity.cc, vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc, vector_resize.cc: Split into... * 23_containers/bitset/cons/1.cc: New. * 23_containers/bitset/cons/6282.cc: New. * 23_containers/bitset/count/6124.cc: New. * 23_containers/bitset/operations/1.cc: New. * 23_containers/bitset/operations/2.cc: New. * 23_containers/bitset/test/1.cc: New. * 23_containers/bitset/to_ulong/1.cc: New. * 23_containers/deque/cons/1.cc: New. * 23_containers/deque/cons/2.cc: New. * 23_containers/deque/operators/1.cc: New. * 23_containers/list/capacity/1.cc: New. * 23_containers/list/cons/1.cc: New. * 23_containers/list/cons/2.cc: New. * 23_containers/list/cons/3.cc: New. * 23_containers/list/cons/4.cc: New. * 23_containers/list/cons/5.cc: New. * 23_containers/list/cons/6.cc: New. * 23_containers/list/cons/7.cc: New. * 23_containers/list/cons/8.cc: New. * 23_containers/list/cons/9.cc: New. * 23_containers/list/modifiers/1.cc: New. * 23_containers/list/modifiers/2.cc: New. * 23_containers/list/modifiers/3.cc: New. * 23_containers/list/operators/1.cc: New. * 23_containers/list/operators/2.cc: New. * 23_containers/list/operators/3.cc: New. * 23_containers/list/operators/4.cc: New. * 23_containers/map/insert/1.cc: New. * 23_containers/map/operators/1.cc: New. * 23_containers/map/operators/1_neg.cc: New. * 23_containers/multiset/insert/1.cc: New. * 23_containers/priority_queue/members/7161.cc: New. * 23_containers/queue/members/7157.cc: New. * 23_containers/set/operators/1_neg.cc: New. * 23_containers/stack/members/7158.cc: New. * 23_containers/vector/bool/1.cc: New. * 23_containers/vector/bool/6886.cc: New. * 23_containers/vector/capacity/1.cc: New. * 23_containers/vector/capacity/2.cc: New. * 23_containers/vector/capacity/8230.cc: New. * 23_containers/vector/cons/1.cc: New. * 23_containers/vector/cons/2.cc: New. * 23_containers/vector/cons/3.cc: New. * 23_containers/vector/cons/4.cc: New. * 23_containers/vector/cons/6513.cc: New. * 23_containers/vector/element_access/1.cc: New. * 23_containers/vector/modifiers/1.cc: New. * 23_containers/vector/modifiers/2.cc: New. * 23_containers/vector/resize/1.cc: New. From-SVN: r70011
2003-07-31combine.c (try_combine): Set JUMP_LABEL for newly created unconditional jump.Zdenek Dvorak2-0/+6
* combine.c (try_combine): Set JUMP_LABEL for newly created unconditional jump. From-SVN: r70010
2003-07-31* fold-const.c (fold): Fold some comparisons of bit operations.Zdenek Dvorak2-0/+32
From-SVN: r70009
2003-07-31btest-gcc.sh: Add make check-target-libjava.Andreas Tobler2-0/+8
2003-07-31 Andreas Tobler <a.tobler@schweiz.ch> * btest-gcc.sh: Add make check-target-libjava. From-SVN: r70008
2003-07-31crash18.C: Remove.Andrew Pinski2-14/+4
2003-07-31 Andrew Pinski <pinskia@physics.uc.edu> * g++.old-deja/g++.other/crash18.C: Remove. From-SVN: r70007
2003-07-31cgraph.c (create_edge): Fix typo.Jan Hubicka3-3/+8
* cgraph.c (create_edge): Fix typo. * i386.c (pic_symbolic_operand): Reorder tests. From-SVN: r70006
2003-07-31Arc2D.java (getBounds2D): Implement.Tom Tromey2-22/+71
* java/awt/geom/Arc2D.java (getBounds2D): Implement. (containsAngle): Likewise. (getStartPoint): Rewrote. (getEndPoint): Likewise. (setAngleStart(Point2D)): Likewise. From-SVN: r70002
2003-07-31gcov.texi (Invoking Gcov): Describe output name mangling more fully.Nathan Sidwell2-16/+28
* doc/gcov.texi (Invoking Gcov): Describe output name mangling more fully. (Gcov Data Files): Update. From-SVN: r70001
2003-07-31pthread1.cc: Add alpha*-*-osf* to dg-do run, dg-options.Rainer Orth8-14/+25
* testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run, dg-options. * testsuite/thread/pthread2.cc: Likewise. * testsuite/thread/pthread3.cc: Likewise. * testsuite/thread/pthread4.cc: Likewise. * testsuite/thread/pthread5.cc: Likewise. * testsuite/thread/pthread6.cc: Likewise. * testsuite/thread/pthread7-rope.cc: Likewise. From-SVN: r69999
2003-07-31re PR bootstrap/9330 ([alpha-osf]small alphaev56-dec-osf5.1 ↵Rainer Orth10-11/+328
--enable-threads=posix problem) * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by default. * gthr-posix.c: New file. * gthr-posix.h: Define _REENTRANT if missing. Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK. * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided by gthr-posix.o. * config/alpha/t-osf-pthread: New file. * fixinc/inclhack.def (alpha_pthread): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase. * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads warning. Fixes PR bootstrap/9330. From-SVN: r69998
2003-07-31configure.in: Add new THREADCXXFLAGS variable.Roger Sayle5-383/+450
* configure.in: Add new THREADCXXFLAGS variable. Handle POSIX threads on alpha*-dec-osf*. * configure: Regenerate. * Makefile.am: Add THREADCXXFLAGS to AM_CXXFLAGS. * Makefile.in: Regenerate. Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> From-SVN: r69997
2003-07-31configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5* without GNU ld.Rainer Orth3-12/+19
* configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5* without GNU ld. Update comment. * configure: Regenerate. From-SVN: r69996
2003-07-31pt.c (coerce_template_parms): Refactor.Nathan Sidwell6-17/+78
cp: * pt.c (coerce_template_parms): Refactor. (fn_type_unification): Increment processing_template_decl when tsubsting an incomplete set of explicit args. testsuite: * g++.dg/template/explicit3.C: New. * g++.dg/template/explicit4.C: New. * g++.dg/template/explicit5.C: New. From-SVN: r69995
2003-07-31re PR c++/11347 (Error on valid expression in default value for int argument ↵Nathan Sidwell4-13/+39
to inner template.) cp: PR c++/11347 * pt.c (instantiate_class_template): Increment processing_template_decl around the tsubst of a template member class. (tsubst_qualified_id): Assert we do not have a dependent scope. testsuite: PR c++/11347 * g++.dg/template/memtmpl1.C: New. From-SVN: r69994
2003-07-31pt.c (coerce_template_template_parms, [...]): Reformat.Nathan Sidwell2-28/+28
* pt.c (coerce_template_template_parms, lookup_template_class, can_complete_type_without_circularity, instantiate_class_template, tsubst_decl, unify): Reformat. From-SVN: r69993
2003-07-31Prevent interblock move of CC0 setter.Vladimir Makarov2-0/+8
From-SVN: r69992
2003-07-31* com.c (ffecom_init_0): Use `dconsthalf'.Kaveh R. Ghazi2-7/+6
From-SVN: r69991
2003-07-31gc.h (GC_CreateThread): Declare with WINAPI attribute.Danny Smith3-5/+14
* include/gc.h (GC_CreateThread): Declare with WINAPI attribute. * win32_threads.c (GC_CreateThread): Make definitions consistent with declaration. Cast &thread_table[i].handle to PHANDLE in call to DuplicateHandle (thread_start): Declare as static. From-SVN: r69990
2003-07-31* builtins.def: Alphabetize.Roger Sayle2-631/+761
From-SVN: r69989
2003-07-31c-tree.texi: Normalize spellings of "lowercase" and "uppercase".Matt Kraai6-12/+21
* doc/c-tree.texi: Normalize spellings of "lowercase" and "uppercase". * doc/cpp.texi: Likewise. * doc/md.texi: Likewise. * doc/rtl.texi: Likewise. * doc/tm.texi: Likewise. From-SVN: r69988
2003-07-31* objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)Matt Kraai2-6/+6
(objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves of cc1obj. From-SVN: r69987
2003-07-30mips.h (SIZE_TYPE, [...]): Undef these macros before defining them.Chris Demetriou2-4/+7
2003-07-30 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these macros before defining them. From-SVN: r69985
2003-07-31Daily bump.GCC Administrator2-2/+2
From-SVN: r69981
2003-07-30decl2.c (maybe_make_one_only): Use mark_referenced.Jan Hubicka3-3/+8
* decl2.c (maybe_make_one_only): Use mark_referenced. * method.c (use_thunk): Likewsie. From-SVN: r69979
2003-07-30s390.md (UNSPEC_ROUND, [...]): New constants.Ulrich Weigand2-333/+255
* config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH, UNSPECV_BLOCKAGE): New constants. ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31", "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2" splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them. (all insns and expanders): Write output control string as brace block where appropriate. Remove \-escapes for doublequote characters. From-SVN: r69978
2003-07-30* gcse.c (insert_store): Fix typo in previous patch.Jan Hubicka2-1/+5
From-SVN: r69977
2003-07-30re PR target/11565 (gcc.dg/i386-387-1.c test flawed due to assumptions made ↵Andrew Pinski3-2/+8
about arch) 2003-07-29 Andrew Pinski <pinskia@physics.uc.edu> PR target/11565 * gcc.dg/i386-387-1.c (dg-options): Add -march=i386. * gcc.dg/i386-387-5.c (dg-options): Likewise. From-SVN: r69974
2003-07-30* cppfiles.c (stack_file, open_file_failed): Use path for deps.Neil Booth2-2/+6
From-SVN: r69973
2003-07-30* loop.c (check_dbra_loop): Allow LTU in the loop condition.Andi Kleen2-2/+8
From-SVN: r69971
2003-07-30combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.Zdenek Dvorak9-5/+108
* combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes. * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER, GCOV_N_VALUE_COUNTERS): New. * profile.c (compute_value_histograms): New static function. (branch_prob): Read back the value histograms. * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note. * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note. * value-prof.c: Add comment on reading the profile. * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New. * doc/invoke.texi (-fprofile-values): Document behavior with -fbranch-probabilities. From-SVN: r69969
2003-07-30dyn_load.c: Define __private_extern__ to match Apple's system header.Andreas Tobler2-0/+11
2003-07-30 Andreas Tobler <a.tobler@schweiz.ch> * dyn_load.c: Define __private_extern__ to match Apple's system header. From-SVN: r69967
2003-07-30* longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.David Edelsohn2-1/+5
From-SVN: r69966
2003-07-30s390.h (EH_RETURN_HANDLER_RTX): Compute offset symbolically.Ulrich Weigand2-1/+6
* config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset symbolically. From-SVN: r69965
2003-07-30re PR c/10320 (gcc 3.4 gets rid of static inline function that does not get ↵Jan Hubicka18-271/+56
inlined) * gcse.c (insert_store): Ignore fake edges. * c-common.c (flag_vtable_gc): Kill. * c-common.g (flag_vtable_gc): Kill. * c-opts (c_common_handle_option): Kill. * c.opt (fvtable-gc): Kill. * final.c (final_scan_insn): Do not call assemble_vtable_entry. * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill. * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill. * invoke.texi (-ftable-gc): Kill documentation. PR C/10320 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE just because function body is missing. * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs. * class.c (build_vtable_entry_ref): Kill. (build_vtbl_ref_1): Do not call build_vtable_entry_ref. (build_vfn_ref): Do not call build_vtable_entry_ref. * cp-lang.c (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill. * cp-tree.h (prepare_assemble_variable): Kill. * cp-decl.c (prepare_assemble_variable): Kill. From-SVN: r69964
2003-07-30c++config: Partial reversion (comment placement) of previous patch.Phil Edwards2-2/+9
2003-07-30 Phil Edwards <pme@gcc.gnu.org> * include/bits/c++config: Partial reversion (comment placement) of previous patch. From-SVN: r69963
2003-07-30c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.Benjamin Kosnik34-249/+247
2003-07-30 Benjamin Kosnik <bkoz@redhat.com> * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove. (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE. (_GLIBCXX_AT_AT): Remove. (__USE_MALLOC): Remove. * include/std/std_fstream.h: Modify. * include/bits/basic_ios.h: Same. * include/bits/valarray_array.h: Same. * include/c_std/std_cmath.h: Same. * include/c_std/cmath.tcc: Same. * include/std/std_vector.h: Same. * include/std/std_string.h: Same. * include/std/std_stack.h: Same. * include/std/std_queue.h: Same. * include/std/std_list.h: Same. * include/std/std_deque.h: Same. * include/std/std_streambuf.h: Same. * include/std/std_sstream.h: Same. * include/std/std_ostream.h: Same. * include/std/std_istream.h: Same. * include/bits/valarray_array.tcc: Same, format. * include/c/std_cctype.h: Fix include guards. * include/c/std_cerrno.h: Same. * include/c/std_cfloat.h: Same. * include/c/std_climits.h: Same. * include/c/std_clocale.h: Same. * include/c/std_cmath.h: Same. * include/c/std_csetjmp.h: Same. * include/c/std_csignal.h: Same. * include/c/std_cstdarg.h: Same. * include/c/std_cstddef.h: Same. * include/c/std_cstdio.h: Same. * include/c/std_cstdlib.h: Same. * include/c/std_cstring.h: Same. * include/c/std_ctime.h: Same. * include/c/std_cwchar.h: Same. * include/c/std_cwctype.h: Same. * include/c_std/cmath.tcc: Same. * include/c_std/std_cmath.h: Same. From-SVN: r69961
2003-07-30re PR libstdc++/11504 (-Wcast-qual vs. stl_tree)Gawain Bolton4-137/+203
2003-07-30 Gawain Bolton <gp.bolton@computer.org> PR libstdc++/11504. * include/bits/stl_tree.h: Replace C-style casts with C++-style casts. Changes to avoid casting away constness. Eliminate _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use initialization lists. Move out implementation of __black_count() to... * src/stl_tree.cc: ...here and rename _Rb_tree_black_count(). Rename_Rb_tree_base_iterator::_M_increment() to _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to _Rb_tree_decrement. * config/linker-map.gnu: Add and change symbols here. From-SVN: r69958
2003-07-30i386-signal.h (RESTORE): New.Andrew Haley2-14/+35
2003-07-08 Andrew Haley <aph@redhat.com> * include/i386-signal.h (RESTORE): New. (INIT_SEGV): Set restorer. (INIT_FPE): Likewise. From-SVN: r69957
2003-07-30howto.html: Use locale::classic() instead of locale("C").Jonathan Wakely2-3/+7
2003-07-30 Jonathan Wakely <redi@gcc.gnu.org> * docs/html/22_locale/howto.html: Use locale::classic() instead of locale("C"). From-SVN: r69956