sje [Sat, 14 Apr 2007 19:51:44 +0000 (19:51 +0000)]
* configure.ac: Change how LIBSUPCXX_PICFLAGS is set.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123828
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Sat, 14 Apr 2007 19:50:46 +0000 (19:50 +0000)]
* Makefile.am: Add -I .. to ACLOCAL_AMFLAGS. Add libgfortran_la_LINK.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123827
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Sat, 14 Apr 2007 19:49:42 +0000 (19:49 +0000)]
* Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123826
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Sat, 14 Apr 2007 19:48:36 +0000 (19:48 +0000)]
* config-ml.in: Pass ${ml_config_env} to configure calls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123825
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Sat, 14 Apr 2007 18:52:45 +0000 (18:52 +0000)]
PR c++/25874
* omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
post dominators and cleanup cfg before returning.
* gcc.dg/gomp/pr25874.c: Add dg-options.
* g++.dg/gomp/pr25874.C: Add dg-options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123822
138bc75d-0d04-0410-961f-
82ee72b054a4
aldot [Sat, 14 Apr 2007 18:43:20 +0000 (18:43 +0000)]
+2007-04-14 Bernhard Fischer
* primary.c: Commentary typo fix; Add question about redundant (?)
set.
* ChangeLog: Fix formatting of previous ChangeLog entry which did not
obey "'name" <name@there.tdl>' convention.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123821
138bc75d-0d04-0410-961f-
82ee72b054a4
aldot [Sat, 14 Apr 2007 18:33:11 +0000 (18:33 +0000)]
2007-04-14 Bernhard Fischer
PR fortran/21061
* gfortran.dg/warnings_are_errors_1.f90: New testcase.
* gfortran.dg/warnings_are_errors_1.f: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123820
138bc75d-0d04-0410-961f-
82ee72b054a4
aldot [Sat, 14 Apr 2007 17:59:28 +0000 (17:59 +0000)]
- commentary typo fix
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123819
138bc75d-0d04-0410-961f-
82ee72b054a4
fxcoudert [Sat, 14 Apr 2007 17:09:41 +0000 (17:09 +0000)]
PR fortran/31561
* gfortran.dg/vect/vect-4.f90: xfail on vect_no_align targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123817
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Sat, 14 Apr 2007 16:40:51 +0000 (16:40 +0000)]
2007-04-14 Paolo Carlini <pcarlini@suse.de>
* config/locale/generic/c_locale.cc: Include <limits>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123816
138bc75d-0d04-0410-961f-
82ee72b054a4
pault [Sat, 14 Apr 2007 14:09:57 +0000 (14:09 +0000)]
2007-04-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29507
PR fortran/31404
* expr.c (scalarize_intrinsic_call): New function to
scalarize elemental intrinsic functions in initialization
expressions.
(check_init_expr): Detect elemental intrinsic functions
in initalization expressions and call previous.
2007-04-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29507
PR fortran/31404
* gfortran.dg/initialization_6.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123815
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Sat, 14 Apr 2007 10:50:45 +0000 (10:50 +0000)]
* config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
* config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123813
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Sat, 14 Apr 2007 02:15:45 +0000 (02:15 +0000)]
gcc/
* config.gcc: Recognize fido.
* config/m68k/m68k-devices.def (fidoa): New.
* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
__mfido__.
(FL_FIDOA, TARGET_FIDOA): New.
* config/m68k/m68k.opt (mfidoa): New.
libgcc/
* config.host: Recognize fido.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123811
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Sat, 14 Apr 2007 02:05:43 +0000 (02:05 +0000)]
* lib/target-supports.exp (check_gc_sections_available):
Return false if ldflags includes -elf2flt.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123810
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Sat, 14 Apr 2007 02:04:15 +0000 (02:04 +0000)]
* gcc.c-torture/compile/pr27528.c: Require nonpic.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123809
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Sat, 14 Apr 2007 00:17:41 +0000 (00:17 +0000)]
PR middle-end/31322
* dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
when a personality function is used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123806
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 13 Apr 2007 23:43:18 +0000 (23:43 +0000)]
PR c++/31074
* call.c (reference_binding): Add c_cast_p parm. If true,
add quals to TO as needed to make it reference-compatible.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123805
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 13 Apr 2007 23:17:07 +0000 (23:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123803
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 13 Apr 2007 22:22:56 +0000 (22:22 +0000)]
2007-04-13 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/31556
* include/bits/stl_algobase.h (equal(_InputIterator1, _InputIterator1,
_InputIterator2, _BinaryPredicate), mismatch(_InputIterator1,
_InputIterator1, _InputIterator2, _BinaryPredicate)): Convert
predicate return to bool.
* include/bits/stl_algo.h (__find_if(_InputIterator, _InputIterator,
_Predicate, input_iterator_tag), search(_ForwardIterator1,
_ForwardIterator1, _ForwardIterator2, _ForwardIterator2,
_BinaryPredicate), __search_n(_ForwardIterator, _ForwardIterator,
_Integer, const _Tp&, _BinaryPredicate, std::forward_iterator_tag),
__search_n(_RandomAccessIter, _RandomAccessIter, _Integer, const _Tp&,
_BinaryPredicate, std::random_access_iterator_tag),
search_n(_ForwardIterator, _ForwardIterator, _Integer, const _Tp&,
_BinaryPredicate), remove_copy_if(_InputIterator, _InputIterator,
_OutputIterator, _Predicate), __unique_copy(_ForwardIterator,
_ForwardIterator, _OutputIterator, _BinaryPredicate,
forward_iterator_tag, output_iterator_tag),
__unique_copy(_InputIterator, _InputIterator, _OutputIterator,
_BinaryPredicate, input_iterator_tag, output_iterator_tag),
__unique_copy(_InputIterator, _InputIterator, _OutputIterator,
_BinaryPredicate, input_iterator_tag, output_iterator_tag),
__unique_copy(_InputIterator, _InputIterator, _ForwardIterator,
_BinaryPredicate, input_iterator_tag, forward_iterator_tag),
unique(_ForwardIterator, _ForwardIterator, _BinaryPredicate),
__partition(_BidirectionalIterator, _BidirectionalIterator, _Predicate,
bidirectional_iterator_tag), binary_search(_ForwardIterator,
_ForwardIterator, const _Tp&, _Compare),
next_permutation(_BidirectionalIterator, _BidirectionalIterator,
_Compare), prev_permutation(_BidirectionalIterator,
_BidirectionalIterator, _Compare)): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123800
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Fri, 13 Apr 2007 20:44:30 +0000 (20:44 +0000)]
Fix whitespacing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123799
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Fri, 13 Apr 2007 20:43:22 +0000 (20:43 +0000)]
* obj-c++.dg/stubify-1.mm: Only run on powerpc.
* obj-c++.dg/template-4.mm: Don't run when 64-bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123798
138bc75d-0d04-0410-961f-
82ee72b054a4
bwilson [Fri, 13 Apr 2007 20:35:50 +0000 (20:35 +0000)]
* config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123797
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Fri, 13 Apr 2007 19:46:37 +0000 (19:46 +0000)]
PR tree-optimization/29598
* gcc.dg/tree-ssa/loadpre1.c: XFAIL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123794
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Fri, 13 Apr 2007 18:34:36 +0000 (18:34 +0000)]
2007-04-13 Tobias Burnus <burnus@net-b.de>
PR fortran/31559
* primary.c (match_variable): External functions
are no variables.
2007-04-13 Tobias Burnus <burnus@net-b.de>
PR fortran/31559
* gfortran.dg/func_assign.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123793
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Fri, 13 Apr 2007 17:29:27 +0000 (17:29 +0000)]
* config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
we can...
* config/darwin.opt (fapple-kext): Make C++ only.
* config/darwin.c (darwin_override_options): Remove code to ensure
-fapple-kext is given for C++ only.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123792
138bc75d-0d04-0410-961f-
82ee72b054a4
pault [Fri, 13 Apr 2007 16:01:36 +0000 (16:01 +0000)]
2007-04-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31550
* trans-types.c (copy_dt_decls_ifequal): Do not get pointer
derived type components.
2007-04-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31550
* gfortran.dg/used_types_16.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123791
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Fri, 13 Apr 2007 13:48:08 +0000 (13:48 +0000)]
PR fortran/18937
fortran/
* resolve.c: Include obstack.h and bitmap.h. New variable
labels_obstack.
(code_stack): Add tail and reachable_labels fields.
(reachable_labels): New function.
(resolve_branch): Rework to use new fields in code_stack.
(resolve_code): Call reachable_labels.
(resolve_codes): Allocate and free labels_obstack.
testsuite/
* gfortran.dg/goto_2.f90: New.
* gfortran.dg/goto_3.f90: New.
* gfortran.dg/pr17708.f90: Rename to ...
* gfortran.dg/goto_4.f90: ... this, add comment pointing to
PR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123789
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Fri, 13 Apr 2007 13:48:08 +0000 (13:48 +0000)]
gcc/
* config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
* config/mips/mips.c (override_options): Call
SUBTARGET_OVERRIDE_OPTIONS, if defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123788
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 13 Apr 2007 13:29:45 +0000 (13:29 +0000)]
2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.opt (msvr3-shlib): Removed.
* doc/invoke.texi: Remove -msvr3-shlib.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123787
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 13 Apr 2007 13:28:39 +0000 (13:28 +0000)]
2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
with "popcnt" instruction.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123786
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Fri, 13 Apr 2007 11:26:09 +0000 (11:26 +0000)]
2007-04-13 Tobias Burnus <burnus@net-b.de>
PR fortran/31562
* gfortran.dg/f2c_4.c: Use GNU extensions for complex
instead of a struct.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123784
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 13 Apr 2007 11:17:21 +0000 (11:17 +0000)]
2007-04-13 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/31554
* include/bits/stl_algo.h (stable_partition): Convert __buf.size()
to _DistanceType.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123783
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Fri, 13 Apr 2007 11:05:50 +0000 (11:05 +0000)]
Fix date in Tobias Burnus' ChangeLog entry
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123782
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Fri, 13 Apr 2007 11:03:43 +0000 (11:03 +0000)]
Sigh. Add ChangeLog entry missing from previous commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123781
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Fri, 13 Apr 2007 10:59:19 +0000 (10:59 +0000)]
2007-04-12 Tobias Burnus <burnus@net-b.de>
PR fortran/31562
* gfortran.dg/value_4.c: Use GNU extensions for complex
instead of a struct.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123780
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 13 Apr 2007 10:54:37 +0000 (10:54 +0000)]
2007-04-13 Paolo Carlini <pcarlini@suse.de>
* include/ext/numeric_traits.h: Do not include <limits>.
(__numeric_traits_integer::__is_signed, __digits): Add.
(__numeric_traits_floating::__digits10, __max_exponent10): Add.
* src/istream.cc (ignore<char>(streamsize, int_type), operator>>
(basic_istream<char>&, char*), ignore<wchar_t>(streamsize,
int_type)): Use the latter.
* src/compatibility.cc (ignore<char>(streamsize),
ignore<wchar_t>(streamsize)): Likewise.
* include/ext/vstring_util.h (__vstring_utility<>::_S_compare):
Likewise.
* include/bits/stl_memory.h (__get_temporary_buffer): Likewise.
* include/bits/stl_algobase.h (lexicographical_compare(const char*,
const char*, const char*, const char*)): Likewise.
* include/bits/locale_facets.tcc (num_get<>::_M_extract_int(_InIter,
_InIter, ios_base&, ios_base::iostate&, _ValueT&),
num_put<>::_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT),
num_put<>::_M_insert_float(_OutIter, ios_base&, _CharT, char,
_ValueT), collate<>::do_hash(const _CharT*, const _CharT*)): Likewise.
* include/bits/basic_string.h (basic_string<>::_S_compare): Likewise.
* include/bits/istream.tcc (operator>>(short&), operator>>(int&),
ignore(streamsize), ignore(streamsize, int_type), operator>>
(basic_istream<>&, _CharT*)): Likewise.
* include/bits/stl_bvector.h (vector<bool>::max_size): Likewise.
* include/tr1/functional_hash.h (struct hash<long double>): Likewise.
* include/std/istream: Do not include <limits>.
* include/tr1/cmath: Include <limits>.
* testsuite/23_containers/vector/bool/capacity/29134.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/13.cc:
Likewise.
* testsuite/27_io/ios_base/storage/2.cc: Likewise.
* include/tr1/hashtable: Do not include the whole <iterator>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123779
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 13 Apr 2007 09:21:22 +0000 (09:21 +0000)]
2007-04-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/21258
* tree-vrp.c (compare_case_labels): New helper.
(find_switch_asserts): New function.
(find_assert_locations): Call it for SWITCH_EXPRs.
* gcc.dg/tree-ssa/vrp34.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123778
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Fri, 13 Apr 2007 08:14:57 +0000 (08:14 +0000)]
* config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
* config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
check is now implied in X87_FLOAT_MODE_P.
(*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
(*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
(fix_trunc<mode>_i386_fisttp): Ditto.
(fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
(*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
(fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
(fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
(*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
(*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
(unnamed_splitters): Ditto.
* config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
FIRST_SSE_REG for local functions when SSE math is enabled or
for functions with sseregparm attribute.
(standard_80387_constant_p): Return -1 if mode is not
X87_FLOAT_MODE_P.
(ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
(ix86_expand_compare): Ditto.
(ix86_expand_carry_flag_compare): Ditto.
(ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
DECIMAL_FLOAT_MODE_P.
(ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
of SCALAR_FLOAT_MODE_P.
(ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
[MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
checks before FLOAT_MODE_P.
[MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
before FLOAT_MODE_P.
[DIV]: Ditto.
[NEG]: Ditto.
[ABS]: Ditto.
[SQRT]: Ditto.
[FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123777
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Fri, 13 Apr 2007 07:21:04 +0000 (07:21 +0000)]
2007-04-11 Paolo Bonzini <bonzini@gnu.org>
* Makefile.am (EXTRA_DIST): Bring up to date.
* Makefile.in: Regenerate.
* src/frv/eabi.S: Remove RCS keyword.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123776
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Fri, 13 Apr 2007 07:04:39 +0000 (07:04 +0000)]
2007-04-12 Paolo Bonzini <bonzini@gnu.org>
Charles Wilson <libtool@cwilson.fastmail.fm>
* Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
(libgcc.mvars): Don't depend on them.
* configure.ac (as, collect-ld, nm): Create from exec-tool.in.
* exec-tool.in: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123775
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 12 Apr 2007 23:17:05 +0000 (23:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123773
138bc75d-0d04-0410-961f-
82ee72b054a4
brooks [Thu, 12 Apr 2007 21:13:32 +0000 (21:13 +0000)]
* doc/invoke.text (--help): Document --help=common.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123769
138bc75d-0d04-0410-961f-
82ee72b054a4
fxcoudert [Thu, 12 Apr 2007 20:59:43 +0000 (20:59 +0000)]
* gfortran.dg/c_by_val.c: Use GCC extensions instead of including
<complex.h>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123768
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 19:12:20 +0000 (19:12 +0000)]
Commit bits missing from previous checkin
* gfortran.dg/repeat_2.f90: Add dg-warning annotations.
* gfortran.dg/repeat_4.f90: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123765
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Thu, 12 Apr 2007 19:00:38 +0000 (19:00 +0000)]
2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
* stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123764
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 18:48:06 +0000 (18:48 +0000)]
PR fortran/31250
fortran/
* decl.c (match_char_spec): Move check for negative CHARACTER
length ...
* resolve.c (resolve_charlen): ... here.
(resolve_types): Resolve CHARACTER lengths earlier.
teststuite/
* gfortran.dg/char_length_2.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123763
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 18:30:06 +0000 (18:30 +0000)]
File missing from previous commit
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123762
138bc75d-0d04-0410-961f-
82ee72b054a4
dfranke [Thu, 12 Apr 2007 18:23:03 +0000 (18:23 +0000)]
2007-04-12 Daniel Franke <franke.daniel@gmail.com>
PR fortran/31234
* intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123760
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 18:10:10 +0000 (18:10 +0000)]
PR fortran/31266
fortran/
* primary.c (gfc_variable_attr): Don't copy string length if it
doesn't make sense.
* resolve.c (resolve_code): Clarify error message.
testsuite/
* gfortran.dg/char_assign_1.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123759
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 18:07:09 +0000 (18:07 +0000)]
fortran/31471
fortran/
* decl.c (gfc_match_end): Also check for construct name in END
FORALL and END WERE statements.
* match.c (match_case_eos): Use uppercase for statement name in
error message.
(match_elsewhere): Construct name may appear iff construct has a
name.
testsuite/
* gfortran.dg/block_name_1.f90: New.
* gfortran.dg/block_name_2.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123758
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 17:59:57 +0000 (17:59 +0000)]
gcc/
* Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
* genemit.c (main): Emit #include "integrate.h".
* config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
(LOADGP_RTP): New mips_loadgp_style.
* config/mips/mips.h: Include config/vxworks-dummy.h.
(TARGET_RTP_PIC): New macro.
(TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
(TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
(ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
for TARGET_RTP_PIC.
* config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
-mvxworks-pic when using -mrtp and a PIC option.
* config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
for RTP PIC.
(mips_symbolic_constant_p, mips_symbolic_address_p)
(mips_symbol_insns): Handle SYMBOL_HALF.
(override_options): Warn about -G and -mrtp being used together.
Initialize mips_lo_relocs[SYMBOL_HALF].
(mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
(mips_emit_loadgp): Handle LOADGP_RTP.
(mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
* config/mips/mips.md (loadgp_rtp): New insn and splitter.
(tablejump): Handle function-relative case table entries if
TARGET_RTP_PIC.
* config/mips/predicates.md (symbol_ref_operand): New predicate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123757
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 17:44:57 +0000 (17:44 +0000)]
gcc/
* config/mips/mips.md (load_call<mode>): Allow any general register.
destination.
(sibcall_value_internal, sibcall_value_multiple_internal)
(call_value_internal, call_value_split, call_value_multiple_internal)
(call_value_multiple_split): Remove constraints from operand 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123756
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 17:39:58 +0000 (17:39 +0000)]
gcc/
* config/mips/mips-protos.h: In comments, refer to loadgp_absolute
rather than loadgp_noshared.
* config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
gen_loadgp.
* config/mips/mips.md (loadgp): Rename to...
(loadgp_newabi): ...this.
(loadgp_noshared): Rename to...
(loadgp_absolute): ...this.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123755
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 17:37:25 +0000 (17:37 +0000)]
gcc/
* config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
false for locally-binding symbols.
(mips_dangerous_for_la25_p): Check mips_global_symbol_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123754
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 17:34:03 +0000 (17:34 +0000)]
+ * trans-types.c: Update copyright years. Reformat long comment
+ explaining array descriptor format. Remove obsolete mention of
+ TYPE_SET.
+
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123753
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 17:26:45 +0000 (17:26 +0000)]
gcc/
* config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
(SYMBOL_GOT_PAGE_OFST): ...this.
(SYMBOL_GOT_GLOBAL): Rename to...
(SYMBOL_GOT_DISP): ...this.
(SYMBOL_GOTOFF_GLOBAL): Rename to...
(SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
* config/mips/mips.c (mips_global_symbol_p): New function.
(mips_symbol_binds_local_p): Likewise.
(mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use mips_global_symbol_p
and mips_symbol_binds_local_p.
(mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
(override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
SYMBOL_GOTOFF_DISP.
(mips_ok_for_lazy_binding_p): New function.
(mips_load_call_address, mips_expand_call): Use it.
(mips_dangerous_for_la25_p): Likewise.
* config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
(*got_disp<mode>): Use got_disp_operand instead of
global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
SYMBOL_GOTOFF_GLOBAL.
(*got_page<mode>): Use got_page_ofst_operand instead of
local_got_operand.
* config/mips/predicates.md (const_call_insn_operand): Use
SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
(global_got_operand): Rename to...
(got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
SYMBOL_GOT_GLOBAL.
(local_got_operand): Rename to...
(got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
of SYMBOL_GOT_LOCAL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123752
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 17:10:56 +0000 (17:10 +0000)]
gcc/
* config/mips/mips.h (TARGET_SPLIT_CALLS): Check
TARGET_CALL_CLOBBERED_GP.
(TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
(TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
(TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
(STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
of TARGET_ABICALLS && !TARGET_NEWABI.
(MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
* config/mips/mips.c (mips_load_call_address): Check
TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
(mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
(mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
TARGET_ABICALLS && TARGET_NEWABI.
(mips_current_loadgp_style): Check TARGET_USE_GOT instead of
TARGET_ABICALLS.
(mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
(mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
TARGET_ABICALLS && TARGET_NEWABI.
(mips_output_mi_thunk): Check TARGET_USE_GOT instead of
TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
whether indirect calls must use $25.
(mips_extra_live_on_entry): Check TARGET_GOT instead of
TARGET_ABICALLS.
* config/mips/mips.md (jal_macro): Check flag_pic and
TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
(builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
instead of TARGET_ABICALLS.
(exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
TARGET_ABICALLS && TARGET_OLDABI.
(load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
(sibcall): In the comment above the define_insn, mention
TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
* config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
instead of TARGET_ABICALLS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123751
138bc75d-0d04-0410-961f-
82ee72b054a4
tobi [Thu, 12 Apr 2007 16:53:26 +0000 (16:53 +0000)]
* arith.c (gfc_arith_uplus): Rename to ...
(gfc_arith_identity): ... this.
(gfc_parentheses): New function.
(gfc_uplus): Adapt to renamed function.
* arith.h (gfc_parentheses): Add prototype.
* expr.c (gfc_copy_expr): Deal with INTRINSIC_PARENTHESES.
(simplifiy_intrinsic_op): Treat INTRINSIC_UPLUS separately from
INTRINSIC_PARENTHESES.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123750
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Thu, 12 Apr 2007 15:22:06 +0000 (15:22 +0000)]
* config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
movhi_high2low): Delete, merge functionality into...
(packv2hi): ... this pattern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123749
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Thu, 12 Apr 2007 13:39:35 +0000 (13:39 +0000)]
* config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
Use a more efficient implementation.
* config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
inline sequences when not optimizing for size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123748
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Thu, 12 Apr 2007 13:21:01 +0000 (13:21 +0000)]
2007-02-11 Jie Zhang <jie.zhang@analog.com>
* config/bfin/bfin.opt (msim): New option.
(mcpu=): New option.
* config/bfin/bfin-protos.h (enum bfin_cpu): New.
(bfin_cpu_t): Typedef of enum bfin_cpu.
(bfin_cpu_type): New declaration.
* config/bfin/elf.h (STARTFILE_SPEC): Add support for
-msim and -mcpu= options.
(LIB_SPEC): Likewise.
* config/bfin/bfin.c (bfin_cpu_type): Define.
(bfin_handle_option): Handle -mcpu= option.
* config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
(TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
__ADSPBF533__ or __ADSPBF537__ according to the cpu type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123747
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Thu, 12 Apr 2007 13:06:43 +0000 (13:06 +0000)]
libgfortran:
2007-04-11 Kai Tietz <kai.tietz@onevision.com>
* configure: Regenerate.
libdecnumber:
2007-04-11 Kai Tietz <kai.tietz@onevision.com>
* configure: Regenerate.
config:
2007-04-11 Kai Tietz <kai.tietz@onevision.com>
* stdint.m4: Make template compatible with older cygwin
types.h, wrapping each type in a __XXX_t_defined #ifdef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123746
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Thu, 12 Apr 2007 13:03:17 +0000 (13:03 +0000)]
* doc/md.texi (Blackfin family constraints): Document PA and PB.
* config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
(MACFLAGS_MATCH_P): New macro.
* config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
(bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
* config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
the other MACFLAG constants.
(sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
(flag_machi): Tighten constraints. Renumber some of the operands.
(flag_machi_acconly): Tighten constraints. Correct operand numbers in
output template.
(flag_machi_parts_acconly): New pattern.
(flag_macinithi): Tighten constraints. Allow any accumulator to be
used.
(flag_macinit1hi): Tighten constraints.
(flag_mul_macv2hi_parts_acconly): New pattern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123745
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 12:47:05 +0000 (12:47 +0000)]
gcc/
* config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
(arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
(powerpc-wrs-vxworksae): Use ${tm_file}.
(i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
* config/i386/vx-common.h: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123744
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Thu, 12 Apr 2007 12:44:31 +0000 (12:44 +0000)]
gcc/
* config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
of crt0.o%s.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123743
138bc75d-0d04-0410-961f-
82ee72b054a4
krebbel [Thu, 12 Apr 2007 12:07:24 +0000 (12:07 +0000)]
2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
ldxtr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123741
138bc75d-0d04-0410-961f-
82ee72b054a4
dgregor [Thu, 12 Apr 2007 11:47:56 +0000 (11:47 +0000)]
2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
PR c++/31078
PR c++/31103
* c-common.c (c_build_qualified_type): Set canonical type
appropriately.
2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
PR c++/31078
* g++.dg/other/pr31078.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123740
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2007 09:25:04 +0000 (09:25 +0000)]
2007-04-12 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
lower bound and element size if lower bound is not zero
or either of the ARRAY_REF operands is set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123738
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2007 09:20:42 +0000 (09:20 +0000)]
2007-04-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/31169
* gcc.c-torture/execute/pr31169.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123737
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 12 Apr 2007 09:15:53 +0000 (09:15 +0000)]
2007-04-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/24689
PR tree-optimization/31307
* fold-const.c (operand_equal_p): Compare INTEGER_CST array
indices by value.
* gimplify.c (canonicalize_addr_expr): To be consistent with
gimplify_compound_lval only set operands two and three of
ARRAY_REFs if they are not gimple_min_invariant. This makes
it never at this place.
* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
* g++.dg/tree-ssa/pr31307.C: New testcase.
* gcc.dg/tree-ssa/pr24689.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123736
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Thu, 12 Apr 2007 08:46:30 +0000 (08:46 +0000)]
2007-04-12 Tobias Burnus <burnus@net-b.de>
PR fortran/31472
* decl.c (match_attr_spec): Allow PRIVATE/PUBLIC
attribute in type definitions.
(gfc_match_private): Allow PRIVATE statement only
in specification part of modules.
(gfc_match_public): Ditto for PUBLIC.
(gfc_match_derived_decl): Allow PRIVATE/PUBLIC attribute only in
specificification part of modules.
2007-04-12 Tobias Burnus <burnus@net-b.de>
PR fortran/31472
* gfortran.dg/access_spec_1.f90: New test.
* gfortran.dg/access_spec_2.f90: New test.
* gfortran.dg/non_module_public.f90: Match new error message.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123735
138bc75d-0d04-0410-961f-
82ee72b054a4
danglin [Thu, 12 Apr 2007 00:46:13 +0000 (00:46 +0000)]
* pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
null before emitting a .nsubspa directive.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123733
138bc75d-0d04-0410-961f-
82ee72b054a4
dnovillo [Wed, 11 Apr 2007 23:46:43 +0000 (23:46 +0000)]
* tree-ssa-alias.c (dump_mem_ref_stats): Do not call
need_to_partition_p if there are no memory statements in the
function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123732
138bc75d-0d04-0410-961f-
82ee72b054a4
rakdver [Wed, 11 Apr 2007 23:18:58 +0000 (23:18 +0000)]
* tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
(gcd_of_steps_may_divide_p): New function.
(analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123731
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 11 Apr 2007 23:17:12 +0000 (23:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123729
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 11 Apr 2007 23:10:05 +0000 (23:10 +0000)]
2007-04-11 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/c_locale.h: Do not include <langinfo.h>
and <iconv.h>.
* config/locale/gnu/c++locale_internal.h: Include <langinfo.h>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123726
138bc75d-0d04-0410-961f-
82ee72b054a4
pault [Wed, 11 Apr 2007 21:48:15 +0000 (21:48 +0000)]
2007-04-11 Paul Thomas <pault@gcc.gnu.org>
PR testsuite/31538
* gfortran.dg/result_in_spec_1.f90: Increase dimension from 2
to 4 at line 38 to fix bounds problem.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123725
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Wed, 11 Apr 2007 19:44:07 +0000 (19:44 +0000)]
* reload.c (find_reloads_toplev, find_reloads_address,
find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
not a pointer equality test, to decide if we need to call
push_reg_equiv_alt_mem.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123724
138bc75d-0d04-0410-961f-
82ee72b054a4
dj [Wed, 11 Apr 2007 19:02:45 +0000 (19:02 +0000)]
* argv.c: Use ANSI C declarations.
* make-relative-prefix.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123722
138bc75d-0d04-0410-961f-
82ee72b054a4
spop [Wed, 11 Apr 2007 17:10:23 +0000 (17:10 +0000)]
* tree-data-ref.c (affine_function_zero_p, constant_access_functions,
insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps): New.
(build_classic_dist_vector): Call add_distance_for_zero_overlaps.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123721
138bc75d-0d04-0410-961f-
82ee72b054a4
rakdver [Wed, 11 Apr 2007 16:45:47 +0000 (16:45 +0000)]
* tree-data-ref.c (add_multivariate_self_dist): Force the distance
vector to be positive.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123720
138bc75d-0d04-0410-961f-
82ee72b054a4
dnovillo [Wed, 11 Apr 2007 16:14:06 +0000 (16:14 +0000)]
PR 30735
PR 31090
* doc/invoke.texi: Document --params max-aliased-vops and
avg-aliased-vops.
* tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
debug_memory_partitions): Move to tree-flow.h
* params.h (AVG_ALIASED_VOPS): Define.
* tree-ssa-alias.c (struct mp_info_def): Remove. Update all
users.
(mp_info_t): Likewise.
(get_mem_sym_stats_for): New.
(set_memory_partition): Move from tree-flow-inline.h.
(mark_non_addressable): Only clear the set of symbols for the
partition if it exists.
(dump_memory_partitions): Move from tree-ssa-operands.c
(debug_memory_partitions): Likewise.
(need_to_partition_p): New.
(dump_mem_ref_stats): New.
(debug_mem_ref_stats): New.
(dump_mem_sym_stats): New.
(debug_mem_sym_stats): New.
(update_mem_sym_stats_from_stmt): New.
(compare_mp_info_entries): New.
(mp_info_cmp): Call it.
(sort_mp_info): Change argument to a list of mem_sym_stats_t
objects.
(get_mpt_for): Move from tree-ssa-operands.c.
(find_partition_for): New.
(create_partition_for): Remove.
(estimate_vop_reduction): New.
(update_reference_counts): New.
(build_mp_info): New.
(compute_memory_partitions): Refactor.
Document new heuristic.
Call build_mp_info, update_reference_counts,
find_partition_for and estimate_vop_reduction.
(compute_may_aliases): Populate virtual operands before
calling debugging dumps.
(delete_mem_sym_stats): New.
(delete_mem_ref_stats): New.
(init_mem_ref_stats): New.
(init_alias_info): Call it.
(maybe_create_global_var): Remove alias_info argument.
Get number of call sites and number of pure/const call sites
from gimple_mem_ref_stats().
(dump_alias_info): Call dump_memory_partitions first.
(dump_points_to_info_for): Show how many times a pointer has
been dereferenced.
* opts.c (decode_options): For -O2 set --param
max-aliased-vops to 500.
For -O3 set --param max-aliased-vops to 1000 and --param
avg-aliased-vops to 3.
* fortran/options.c (gfc_init_options): Remove assignment to
MAX_ALIASED_VOPS.
* tree-flow-inline.h (gimple_mem_ref_stats): New.
* tree-dfa.c (dump_variable): Dump memory reference
statistics.
Dump NO_ALIAS* settings.
(referenced_var_lookup): Tidy.
(mem_sym_stats): New.
* tree-ssa-copy.c (may_propagate_copy): Return true if DEST
and ORIG are different SSA names for a memory partition.
* tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
* tree-flow.h (struct mem_sym_stats_d): Define.
(mem_sym_stats_t): Define.
(struct mem_ref_stats_d): Define.
(struct gimple_df): Add field mem_ref_stats.
(enum noalias_state): Define.
(struct var_ann_d): Add bitfield noalias_state.
(mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
debug_mem_ref_stats, debug_memory_partitions,
debug_mem_sym_stats): Declare.
* tree-ssa-structalias.c (update_alias_info): Update call
sites, pure/const call sites and asm sites in structure
returned by gimple_mem_ref_stats.
Remove local variable IS_POTENTIAL_DEREF.
Increase NUM_DEREFS if the memory expression is a potential
dereference.
Call update_mem_sym_stats_from_stmt.
If the memory references memory, call
update_mem_sym_stats_from_stmt for all the direct memory
symbol references found.
(intra_create_variable_infos): Set noalias_state field for
pointer arguments according to the value of
flag_argument_noalias.
* tree-ssa-structalias.h (struct alias_info): Remove fields
num_calls_found and num_pure_const_calls_found.
(update_mem_sym_stats_from_stmt): Declare.
* params.def (PARAM_MAX_ALIASED_VOPS): Change description.
Set default value to 100.
(PARAM_AVG_ALIASED_VOPS): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123719
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 11 Apr 2007 15:58:15 +0000 (15:58 +0000)]
2007-04-11 Paolo Carlini <pcarlini@suse.de>
* include/std/istream (class basic_istream<>): Remove unneded friend
declarations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123718
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 11 Apr 2007 15:22:34 +0000 (15:22 +0000)]
2007-04-11 Paolo Carlini <pcarlini@suse.de>
* testsuite/22_locale/num_get/get/wchar_t/1.cc: Initialize v.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123717
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 11 Apr 2007 15:19:15 +0000 (15:19 +0000)]
2007-04-11 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
ios_base&, ios_base::iostate&, void*&)): Fix for sizeof(void*)
> sizeof(unsigned long).
* testsuite/22_locale/num_get/get/char/1.cc: Fix void* test.
* testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
* testsuite/22_locale/num_put/put/char/1.cc: Tweak comment.
* testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123716
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 11 Apr 2007 11:13:54 +0000 (11:13 +0000)]
2007-04-11 Richard Guenther <rguenther@suse.de>
PR middle-end/31530
* simplify-rtx.c (simplify_binary_operation_1): Do not simplify
a * -b + c as c - a * b if we honor sign dependent rounding.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123715
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Wed, 11 Apr 2007 11:06:44 +0000 (11:06 +0000)]
* config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
bfin_expand_strmov.
* config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
variables.
(initialize_trampoline): Don't use old-style function definition.
(bfin_secondary_reload): Mark IN_P argument as unused.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123714
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 11 Apr 2007 10:12:47 +0000 (10:12 +0000)]
2007-04-11 Zack Weinberg <zack@mrtock.ucsd.edu>
* include/std/iosfwd: Do not include <bits/c++locale.h> and
<bits/functexcept.h>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123713
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Wed, 11 Apr 2007 07:28:49 +0000 (07:28 +0000)]
2007-04-11 Tobias Burnus <burnus@net-b.de>
PR testsuite/31240
* gfortran.dg/pointer_intent_1.f90: Fix test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123712
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Wed, 11 Apr 2007 06:18:28 +0000 (06:18 +0000)]
* cp/class.c (convert_to_base_statically): Fold produced tree; verify
that we are not processing template_decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123711
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Wed, 11 Apr 2007 01:11:56 +0000 (01:11 +0000)]
2007-04-10 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/pb_ds/detail/resize_policy/
cc_hash_max_collision_check_resize_trigger_imp.hpp: Qualify
namespace std members.
* include/ext/pb_ds/detail/list_update_policy/
counter_lu_metadata.hpp: Same.
* include/ext/throw_allocator.h: Same.
* include/ext/pod_char_traits.h: Same.
* include/ext/malloc_allocator.h: Same.
* libsupc++/del_op.cc: Same, simplify.
* include/bits/c++config: Adjust macro name.
* include/c_global/cstring: Alphabetize.
* include/c_global/cwctype: Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123710
138bc75d-0d04-0410-961f-
82ee72b054a4
spop [Wed, 11 Apr 2007 00:09:35 +0000 (00:09 +0000)]
PR tree-optimization/31343
* tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
(build_polynomial_chrec): Return a scalar when the evolution is zero.
* testsuite/gcc.dg/vect/pr31343.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123708
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 10 Apr 2007 23:17:25 +0000 (23:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123706
138bc75d-0d04-0410-961f-
82ee72b054a4
echristo [Tue, 10 Apr 2007 23:00:00 +0000 (23:00 +0000)]
2007-04-10 Eric Christopher <echristo@apple.com>
* lib/target-supports.exp
(check_effective_target_fstack_protector): Rewrite.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123702
138bc75d-0d04-0410-961f-
82ee72b054a4
echristo [Tue, 10 Apr 2007 22:44:02 +0000 (22:44 +0000)]
Add to last commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123701
138bc75d-0d04-0410-961f-
82ee72b054a4
echristo [Tue, 10 Apr 2007 22:41:28 +0000 (22:41 +0000)]
2007-04-10 Eric Christopher <echristo@apple.com>
* config/i386/i386.h (X87_FLOAT_MODE_P): New.
* config/i386/i386.md (*cmpfp0): Use.
(*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
(*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
(fix_trunc<mode>_i386_fisttp): Ditto.
(fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
(*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
(fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
(fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
(*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
(*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
(unnamed_splitters): Ditto.
* config/i386/i386.c (output_fix_trunc): Assert that
we're not being passed a TFmode operand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123700
138bc75d-0d04-0410-961f-
82ee72b054a4
rakdver [Tue, 10 Apr 2007 21:10:26 +0000 (21:10 +0000)]
PR tree-optimization/31526
* tree-inline.c (copy_cfg_body): Use last_basic_block instead of
n_basic_blocks to find newly added blocks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123699
138bc75d-0d04-0410-961f-
82ee72b054a4
kseitz [Tue, 10 Apr 2007 17:52:59 +0000 (17:52 +0000)]
* sources.am: Regenerate.
* Makefile.in: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123697
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Tue, 10 Apr 2007 15:54:46 +0000 (15:54 +0000)]
2007-04-10 Paolo Carlini <pcarlini@suse.de>
* include/tr1/cmath: Include <bits/stl_algobase.h> instead of
the whole <algorithm>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123696
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Tue, 10 Apr 2007 15:12:54 +0000 (15:12 +0000)]
2007-04-10 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (__is_function_helper): New, uses
variadic templates.
(is_function): Forward to the latter.
* testsuite/tr1/4_metaprogramming/primary_type_categories/
is_function/is_function.cc: Add test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123695
138bc75d-0d04-0410-961f-
82ee72b054a4