Mark Mitchell
e3fe057d20
unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define using --start-group and --end-group.
...
* config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
using --start-group and --end-group.
From-SVN: r104864
2005-10-02 03:24:07 +00:00
Diego Novillo
c83033e76c
tree-vrp.c (value_inside_range, [...]): Add FIXME note regarding quirky semantics.
...
* tree-vrp.c (value_inside_range, range_includes_zero_p): Add
FIXME note regarding quirky semantics.
From-SVN: r104860
2005-10-01 10:01:10 -04:00
Diego Novillo
e82d7e604b
re PR tree-optimization/24141 (VRP ICE in compare_name_with_value, at tree-vrp.c:2965)
...
PR 24141
* tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
non-null range as a last resort.
testsuite/
PR 24141
* gcc.c-torture/execute/pr24141.c: New test.
From-SVN: r104859
2005-10-01 10:00:09 -04:00
James A. Morrison
fde5c44c5c
re PR tree-optimization/23604 (wrong code due to VRP)
...
PR 23604
* tree-vrp.c (extract_range_from_assert): For !=
assertions, only build an anti-range if LIMIT is a
single-valued range.
testsuite/
PR 23604
* gcc.c-torture/execute/pr23604.c: New test.
Co-Authored-By: Diego Novillo <dnovillo@redhat.com>
From-SVN: r104858
2005-10-01 09:57:29 -04:00
Jakub Jelinek
0355186042
memory.c (malloc_t): Remove.
...
* runtime/memory.c (malloc_t): Remove.
(GFC_MALLOC_MAGIC, HEADER_SIZE, DATA_POINTER, DATA_HEADER): Remove.
(mem_root, runtime_cleanup, malloc_with_header): Remove.
(internal_malloc_size): Use just get_mem if size != 0, return NULL
otherwise.
(internal_free): Just free if non-NULL.
(internal_realloc_size): Remove debugging stuff.
(allocate_size): Use malloc directly, remove debugging stuff.
(deallocate): Use free directly, fix error message wording.
From-SVN: r104856
2005-10-01 13:55:02 +02:00
Jakub Jelinek
1449b8cba8
libgfortran.h (GFC_ITOA_BUF_SIZE, [...]): Define.
...
* libgfortran.h (GFC_ITOA_BUF_SIZE, GFC_XTOA_BUF_SIZE,
GFC_OTOA_BUF_SIZE, GFC_BTOA_BUF_SIZE): Define.
(gfc_itoa, xtoa): Add 2 extra arguments.
* runtime/environ.c: Include stdio.h.
(check_buffered): Use sprintf.
* runtime/error.c: Include assert.h.
(gfc_itoa, xtoa): Add 2 extra arguments, avoid using static
buffers.
(st_printf, st_sprintf): Adjust callers.
* io/write.c (otoa, btoa): Add 2 extra arguments, avoid using
static buffers.
(write_int, write_decimal): Add 2 extra arguments to conv
function pointer, adjust caller.
(write_integer): Adjust gfc_itoa caller.
* io/unit.c (get_array_unit_len): Return 0 rather than NULL.
* io/read.c (read_f): Remove spurious pointer dereference.
From-SVN: r104855
2005-10-01 13:50:10 +02:00
Mark Mitchell
fdf84417b9
gcc_release (build_sources): If trying to apply a tag that already exists, issue an error message and exit.
...
* gcc_release (build_sources): If trying to apply a tag that
already exists, issue an error message and exit.
From-SVN: r104854
2005-10-01 08:42:33 +00:00
Kenny Simpson
cc6312c1e8
tuple_iterate.h (tuple::operator=(const std::pair<>&)): Add missing return.
...
2005-10-01 Kenny Simpson <theonetruekenny@yahoo.com>
* include/tr1/tuple_iterate.h (tuple::operator=(const std::pair<>&)):
Add missing return.
From-SVN: r104851
2005-10-01 08:35:49 +00:00
Paul Thomas
e8ec07e1ec
re PR fortran/16404 (should reject invalid code with -pedantic -std=f95 ? (x8))
...
2005-10-01 Paul Thomas <pault@gcc.gnu.org>
PR fortran/16404
PR fortran/20835
PR fortran/20890
PR fortran/20899
PR fortran/20900
PR fortran/20901
PR fortran/20902
* gfortran.h: Prototype for gfc_add_in_equivalence.
* match.c (gfc_match_equivalence): Make a structure component
an explicit,rather than a syntax, error in an equivalence
group. Call gfc_add_in_equivalence to add the constraints
imposed in check_conflict.
* resolve.c (resolve_symbol): Add constraints: No public
structures with private-type components and no public
procedures with private-type dummy arguments.
(resolve_equivalence_derived): Add constraint that prevents
a structure equivalence member from having a default
initializer.
(sequence_type): New static function to determine whether an
object is default numeric, default character, non-default
or mixed sequence. Add corresponding enum typespec.
(resolve_equivalence): Add constraints to equivalence groups
or their members: No more than one initialized member and
that different types are not equivalenced for std=f95. All
the simple constraints have been moved to check_conflict.
* symbol.c (check_conflict): Simple equivalence constraints
added, including those removed from resolve_symbol.
(gfc_add_in_equivalence): New function to interface calls
match_equivalence to check_conflict.
2005-10-01 Paul Thomas <pault@gcc.gnu.org>
PR fortran/16404
PR fortran/20835
PR fortran/20890
PR fortran/20899
PR fortran/20900
PR fortran/20901
PR fortran/20902
gfortran.dg/equiv_constraint_1.f90: New test.
gfortran.dg/equiv_constraint_2.f90: New test.
gfortran.dg/equiv_constraint_3.f90: New test.
gfortran.dg/equiv_constraint_4.f90: New test.
gfortran.dg/equiv_constraint_5.f90: New test.
gfortran.dg/equiv_constraint_6.f90: New test.
gfortran.dg/equiv_constraint_7.f90: New test.
gfortran.dg/equiv_constraint_8.f90: New test.
gfortran.dg/private_type_1.f90: New test.
gfortran.dg/private_type_2.f90: New test.
gfortran.dg/g77/980628-2.f, 980628-3.f, 980628-9.f,
980628-10.f: Assert std=gnu to permit mixing of
types in equivalence statements.
From-SVN: r104850
2005-10-01 07:39:08 +00:00
Geoffrey Keating
0363db460d
libffi-dg.exp (libffi_target_compile): For darwin, use -shared-libgcc not -lgcc_s, and explain why.
...
* testsuite/lib/libffi-dg.exp (libffi_target_compile): For
darwin, use -shared-libgcc not -lgcc_s, and explain why.
From-SVN: r104847
2005-10-01 06:11:29 +00:00
GCC Administrator
1400103e45
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r104842.2
2005-10-01 00:16:27 +00:00
Geoffrey Keating
ed0db39f6d
Makefile.in (LIPO_FOR_TARGET): Define.
...
* Makefile.in (LIPO_FOR_TARGET): Define.
(STRIP_FOR_TARGET): Define.
From-SVN: r104840
2005-09-30 23:43:07 +00:00
James E Wilson
cc6ac522f9
Don't build thread library for targets that don't support threads.
...
* configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
AC_CHECK_HEADER.
(target_thread_file): New. Set from sed'ed gcc output.
(posix_threads): New. Set from target_thread_file. Use instead of
ac_have_pthread_h.
(pthread_create_version): Move initialization before code using it.
* configure: Regenerate.
From-SVN: r104838
2005-09-30 16:13:06 -07:00
Joseph Myers
6a82a28a50
re PR other/23693 (Manuals in the Portable Document Format (PDF))
...
PR other/23693
* update_web_docs: Add PDF support. Correct check of DEV-PHASE.
From-SVN: r104837
2005-09-30 23:06:07 +01:00
Richard Earnshaw
78a5d7279e
arm.md (movqi): On thumb when optimizing...
...
* arm.md (movqi): On thumb when optimizing, handle loading from
memory by describing this as taking a subreg of a zero-extended load
into an SImode register.
(movhi): Likewise.
From-SVN: r104836
2005-09-30 21:36:44 +00:00
Joseph Myers
3c993f84de
* update_web_docs_old: Remove.
...
From-SVN: r104835
2005-09-30 22:31:34 +01:00
Tom Tromey
e0f7b2609b
re PR libgcj/24051 (libjava failed to configure)
...
libjava:
PR libgcj/24051:
* Makefile.in: Rebuilt.
* Makefile.am (toolexeclib_LTLIBRARIES): Add Qt library if
requested.
(lib_gnu_java_awt_peer_qt_la_SOURCES): New variable.
(lib_gnu_java_awt_peer_qt_la_LIBADD): Likewise.
(lib_gnu_java_awt_peer_qt_la_DEPENDENCIES): Likewise.
(lib_gnu_java_awt_peer_qt_la_LDFLAGS): Likewise.
(lib_gnu_java_awt_peer_qt_la_LINK): Likewise.
* configure: Rebuilt.
* configure.ac: Pass --enable-qt-peers when qt is requested.
libjava/classpath:
PR libgcj/24051:
* Makefile.in: Rebuilt.
* Makefile.am (ACLOCAL_AMFLAGS): Added -I ../../config
* configure: Rebuilt.
* configure.ac: Use GCC_NO_EXECUTABLES
From-SVN: r104833
2005-09-30 20:46:59 +00:00
Janne Blomqvist
21905d1b43
re PR libfortran/24112 (Reopening file with STATUS='OLD' doesn't work)
...
2005-09-30 Janne Blomqvist <jblomqvi@cc.hut.fi>
libgfortran/
PR 24112
* io/open.c (edit_modes): Check for correct flag.
gcc/testsuite/
PR 24112
* gfortran.dg/open_status_1.f90: New.
From-SVN: r104829
2005-09-30 20:47:54 +02:00
Daniel Jacobowitz
3f27846b1c
reload1.c (merge_assigned_reloads): Do not change any RELOAD_FOR_OUTPUT_ADDRESS reloads.
...
* reload1.c (merge_assigned_reloads): Do not change any
RELOAD_FOR_OUTPUT_ADDRESS reloads.
From-SVN: r104827
2005-09-30 18:09:56 +00:00
Geoffrey Keating
f46876f99c
t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks before creating new ones.
...
* config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
before creating new ones. Do symlinks before creating the actual
targets.
From-SVN: r104826
2005-09-30 18:08:26 +00:00
James E Wilson
06fb0460df
Fix mips-elf gp relocation overflow errors.
...
* mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown
bounds.
From-SVN: r104825
2005-09-30 11:06:26 -07:00
Geoffrey Keating
dd7dc25023
t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib to work out which multilibs are actually being built.
...
* config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
to work out which multilibs are actually being built.
From-SVN: r104824
2005-09-30 17:55:27 +00:00
Paolo Carlini
18048e65b0
re PR libstdc++/24064 (tr1::unordered_map seems to seg-fault when caching hash values)
...
2005-09-30 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/24064
* include/tr1/hashtable (hash_code_base<>::store_code): Add.
(hashtable<>::insert(const value_type&)): Use it.
* testsuite/tr1/6_containers/unordered/hashtable/24064.cc: New.
From-SVN: r104823
2005-09-30 16:54:54 +00:00
Andrew Pinski
72a7ab824e
configure: Regenerate with the correct autoconf version.
...
2005-09-30 Andrew Pinski <pinskia@physics.uc.edu>
* configure: Regenerate with the correct
autoconf version.
From-SVN: r104821
2005-09-30 09:13:22 -07:00
Catherine Moore
6b65a26d24
configure.in (bfin-*-*): New.
...
* configure.in (bfin-*-*): New.
* configure: Regenerated.
From-SVN: r104820
2005-09-30 12:09:35 -04:00
Kazu Hirata
5116a5d2ab
tree-vect-transform.c, [...]: Fix comment typos.
...
* tree-vect-transform.c, config/ms1/ms1.md,
config/s390/s390.c, config/v850/v850.md: Fix comment typos.
Follow spelling conventions.
* doc/invoke.texi, doc/md.texi: Fix typos.
From-SVN: r104817
2005-09-30 15:36:26 +00:00
Andrew MacLeod
5dc2e33320
re PR tree-optimization/21430 (Quadratic behavior with constant initializers)
...
2005-09-30 Andrew Macleod <amacleod@redat.com>
PR tree-optimization/21430
* tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
use operands, and set stmt pointer if need be.
(FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
present.
From-SVN: r104816
2005-09-30 14:33:53 +00:00
Paolo Carlini
eae6e95b7f
re PR libstdc++/23953 (using stringstreams causes crashes with some locales)
...
2005-09-30 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/23953
* include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache,
__moneypunct_cache<>::_M_cache): Check that grouping()[0] > 0.
(__verify_grouping): Do the last check only if __grouping[__min] > 0.
(__add_grouping<>): End recursion if *__gbeg <= 0.
* testsuite/22_locale/num_get/get/char/23953.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/23953.cc: Likewise.
* testsuite/22_locale/num_put/put/char/23953.cc: Likewise.
* testsuite/22_locale/num_put/put/wchar_t/23953.cc: Likewise.
From-SVN: r104814
2005-09-30 08:39:52 +00:00
Uros Bizjak
7a6a7d975b
fast-math-vect-reduc-7.c: Clean up temp files.
...
* gcc.dg/vect/fast-math-vect-reduc-7.c: Clean up temp files.
* gcc.dg/vect/pr22480.c: Clean up temp files.
* gcc.dg/vect/pr23831.c: Clean up temp files.
* gcc.dg/vect/pr23816-1.c: Require effective-target vect_condition.
Clean up temp files.
* gcc.dg/vect/pr23816-2.c: Require effective-target vect_condition.
Clean up temp files.
* gcc.dg/20050309-1.c: Clean up temp files.
* gcc.dg/20050325-1.c: Clean up temp files.
From-SVN: r104813
2005-09-30 08:17:54 +02:00
Uros Bizjak
e0854e30a2
re PR tree-optimization/24059 (ICE expand_expr_real_1 with -ftree-vectorize -O2)
...
PR tree-optimization/24059
* gcc.dg/vect/pr24059.c : New test.
From-SVN: r104812
2005-09-30 07:30:18 +02:00
James E Wilson
f1dff13a79
We can only wrap mmap if it exists.
...
* mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
with HAVE_MMAP ifdef.
From-SVN: r104810
2005-09-29 18:50:56 -07:00
Tom Tromey
07f0879956
re PR java/24120 (jc1 incorrectly uses libiberty hashes)
...
PR java/24120:
* jcf-io.c (memoized_dirlist_hash): New function.
(caching_stat): Use it.
From-SVN: r104809
2005-09-30 00:33:26 +00:00
GCC Administrator
edbcf8fd55
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r104805.2
2005-09-30 00:17:53 +00:00
Richard Kenner
4ecd8dc716
re PR middle-end/24053 (ICE in build_int_cst_wide, at tree.c:795)
...
PR middle-end/24053
* stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
From-SVN: r104800
2005-09-29 22:11:12 +00:00
Mark Mitchell
93b47b19c5
* optabs.c (expand_binop): Initialize first_pass_p.
...
From-SVN: r104798
2005-09-29 21:50:55 +00:00
Jakub Jelinek
df4b9cfe50
re PR middle-end/24109 (non unit-at-a-time failure with compound literals)
...
PR middle-end/24109
* c-decl.c (c_write_global_declarations_1): If any
wrapup_global_declaration_2 call returned true, restart the loop.
* gcc.c-torture/execute/20050929-1.c: New test.
From-SVN: r104794
2005-09-29 23:34:33 +02:00
Daniel Berlin
8d2c775f01
re PR tree-optimization/24117 (struct is not marked fully as call clobbered)
...
2005-09-29 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/24117
* tree-ssa-structalias.c (find_func_aliases): Strip nops
before considering whether to use anyoffset.
From-SVN: r104791
2005-09-29 19:38:00 +00:00
Paolo Carlini
ffc53fb0fa
2005-09-29 Paolo Carlini <pcarlini@suse.de>
...
Improve last ChangeLog entry.
From-SVN: r104785
2005-09-29 17:50:26 +00:00
Chris Jefferson
2bd8e92c33
re PR libstdc++/23978 (tr1::tie doesn't work with std::pair)
...
2005-09-29 Chris Jefferson <chris@bubblescope.net>
PR libstdc++/23978
* include/tr1/functional (ref, cref): Make inline.
* include/tr1/tuple_iterate.h (tuple): Add operator=(std::pair).
(tie): Correct formatting.
(make_tuple): Make inline.
* testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: New.
From-SVN: r104784
2005-09-29 17:42:42 +00:00
Steven Bosscher
2cff1b3e09
* gcc.dg/tree-ssa/ssa-ccp-11.c: Fix the test case and un-xfail.
...
From-SVN: r104777
2005-09-29 15:54:28 +00:00
Paolo Bonzini
be1ea09b13
Revert this patch:
...
2005-09-15 Paolo Bonzini <bonzini@gnu.org>
* optabs.c (expand_binop): Use swap_commutative_operands_with_target
to order operands.
(swap_commutative_operands_with_target): New.
From-SVN: r104775
2005-09-29 14:57:23 +00:00
Paolo Bonzini
02eb875fcf
re PR c/21419 (Accepts writting to const via asm)
...
gcc:
2005-09-29 Paolo Bonzini <bonzini@gnu.org>
PR c/21419
* gimplify.c (gimplify_asm_expr): Raise an error if an output is
read-only.
testsuite:
2005-09-29 Paolo Bonzini <bonzini@gnu.org>
PR c/21419
* gcc.dg/pr21419.c: New test.
From-SVN: r104774
2005-09-29 14:53:39 +00:00
Jakub Jelinek
090037799c
string.c (find_option): Change 3rd argument to const st_option *.
...
* runtime/string.c (find_option): Change 3rd argument to
const st_option *.
* libgfortran.h (find_option): Likewise.
* runtime/environ.c (rounding, precision, signal_choices): Constify.
(init_choice, show_choice): Change 2nd argument to const choice *.
* io/open.c (access_opt, action_opt, blank_opt, delim_opt, form_opt,
position_opt, status_opt, pad_opt): Constify.
* io/transfer.c (advance_opt): Likewise.
* io/inquire.c (undefined): Likewise.
* io/close.c (status_opt): Likewise.
* io/format.c (posint_required, period_required, nonneg_required,
unexpected_element, unexpected_end, bad_string, bad_hollerith,
reversion_error): Likewise.
* io/unix.c (yes, no, unknown): Change from const char *
into const char [].
From-SVN: r104773
2005-09-29 15:53:59 +02:00
Steven Bosscher
1ebd8d9ac1
re PR tree-optimization/23911 (Failure to propagate constants from a const initializer for _Complex)
...
gcc/
PR tree-optimization/23911
* tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
and IMAGPART_EXPR too.
testsuite/
* gcc.dg/pr23911.c: New test.
From-SVN: r104771
2005-09-29 12:25:10 +00:00
Uros Bizjak
577b2a064e
Added missing PR number to
...
2005-09-20 Richard Henderson <rth@redhat.com>
From-SVN: r104765
2005-09-29 08:19:02 +02:00
Andreas Tobler
a0bb10e784
configure.ac: Fix typo.
...
2005-09-29 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Fix typo.
* configure: Regenerate.
From-SVN: r104764
2005-09-29 07:00:39 +02:00
Mark Mitchell
0f8594eee9
re PR middle-end/17886 (variable rotate and unsigned long long rotate should be better optimized)
...
PR 17886
* expmed.c (expand_shift): Move logic to reverse rotation
direction when rotating by constants ...
* optabs.c (expand_binop): ... here.
* config/i386/i386.md (rotrdi3): Handle 32-bit mode.
(ix86_rotrdi3): New pattern.
(rotldi3): Handle 32-bit mode.
(ix86_rotldi3): New pattern.
From-SVN: r104761
2005-09-29 03:31:23 +00:00
Geoffrey Keating
4bc7cba795
Index: ChangeLog
...
2005-09-28 Geoffrey Keating <geoffk@apple.com>
* Makefile.tpl (BASE_TARGET_EXPORTS): Add LIPO, STRIP.
(LIPO_FOR_TARGET): New.
(CONFIGURED_LIPO_FOR_TARGET): New.
(USUAL_LIPO_FOR_TARGET): New.
(STRIP_FOR_TARGET): New.
(CONFIGURED_STRIP_FOR_TARGET): New.
(USUAL_STRIP_FOR_TARGET): New.
* Makefile.def (flags_to_pass): Add LIPO_FOR_TARGET and
STRIP_FOR_TARGET.
* configure.in: Set LIPO_FOR_TARGET, STRIP_FOR_TARGET,
CONFIGURED_LIPO_FOR_TARGET, CONFIGURED_STRIP_FOR_TARGET.
* Makefile.in: Regenerate.
* configure.in: Regenerate.
Index: gcc/ChangeLog
2005-09-28 Geoffrey Keating <geoffk@apple.com>
* Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
(stage1-start): Delete old libgcc and libunwind before moving
anything into the stage directory.
(stage2-start): Likewise.
(stage3-start): Likewise.
(stage4-start): Likewise.
(stageprofile-start): Likewise.
(stagefeedback-start): Likewise.
* config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
header in tm_file and CPU-specific t-darwin in tmake_file.
(i[34567]86-*-darwin*): Don't change tm_file.
(powerpc-*-darwin*): Don't change tm_file or tmake_file.
* config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
shared library stub for target OS version.
* config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
(SHLIB_LINK): Don't make SHLIB_SOLINK.
(SHLIB_INSTALL): Don't install SHLIB_SOLINK.
(libgcc_s.%.dylib): New.
(LIBGCC): Define.
(install-darwin-libgcc-stubs): New.
(INSTALL_LIBGCC): New append.
* config/i386/darwin-libgcc.10.4.ver: New.
* config/i386/darwin-libgcc.10.5.ver: New.
* config/i386/t-darwin: New.
* config/rs6000/darwin-libgcc.10.4.ver: New.
* config/rs6000/darwin-libgcc.10.5.ver: New.
* config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
* config/rs6000/t-darwin (SHLIB_VERPFX): Define.
From-SVN: r104756
2005-09-29 00:49:56 +00:00
Geoffrey Keating
23ed23848b
t-darwin8: Uncomment contents, allow -m64 multilib to be built.
...
* config/rs6000/t-darwin8: Uncomment contents, allow -m64
multilib to be built.
From-SVN: r104755
2005-09-29 00:42:21 +00:00
GCC Administrator
3f05a925b4
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r104752.2
2005-09-29 00:18:51 +00:00