gcc.git
17 years agotarget-supports.exp (check_profiling_available): Return false for m68k-*-uclinux.
Richard Sandiford [Mon, 16 Apr 2007 17:18:08 +0000 (17:18 +0000)]
target-supports.exp (check_profiling_available): Return false for m68k-*-uclinux.

* lib/target-supports.exp (check_profiling_available): Return
false for m68k-*-uclinux.

From-SVN: r123881

17 years agoCorrect the misplaced ChangeLog.
Seongbae Park [Mon, 16 Apr 2007 17:07:04 +0000 (17:07 +0000)]
Correct the misplaced ChangeLog.

From-SVN: r123880

17 years agore PR c++/29365 (Unnecessary anonymous namespace warnings)
Seongbae Park [Mon, 16 Apr 2007 16:49:02 +0000 (16:49 +0000)]
re PR c++/29365 (Unnecessary anonymous namespace warnings)

gcc/ChangeLog:

2007-04-16  Seongbae Park <seongbae.park@gmail.com>

PR c++/29365

* cp/decl2.c (constrain_class_visibility):
Do not warn about the use of anonymous namespace in the main input file.

gcc/testsuite/ChangeLog:

2007-04-16  Seongbae Park <seongbae.park@gmail.com>

PR c++/29365
Testcase for c++ anonymous namespace warning

* g++.dg/warn/anonymous-namespace-1.C: New test
* g++.dg/warn/anonymous-namespace-1.h: New test

From-SVN: r123879

17 years agom68k.h (FRAME_POINTER_REGNUM): Use A6_REG instead.
Kazu Hirata [Mon, 16 Apr 2007 16:47:44 +0000 (16:47 +0000)]
m68k.h (FRAME_POINTER_REGNUM): Use A6_REG instead.

* config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
instead.
(M68K_REGNAME): Use A6_REG.
* config/m68k/m68k.md (FP_REG): Rename to A6_REG.

From-SVN: r123878

17 years agom68k.c (m68k_libcall_value, [...]): Use macros for register names more.
Kazu Hirata [Mon, 16 Apr 2007 16:23:09 +0000 (16:23 +0000)]
m68k.c (m68k_libcall_value, [...]): Use macros for register names more.

* config/m68k/m68k.c (m68k_libcall_value,
m68k_function_value): Use macros for register names more.

From-SVN: r123877

17 years agoObjectInputStream.java: (parseContent): Call (String, Object) version of dumpElementln.
Andrew Haley [Mon, 16 Apr 2007 15:29:55 +0000 (15:29 +0000)]
ObjectInputStream.java: (parseContent): Call (String, Object) version of dumpElementln.

2007-04-16  Andrew Haley  <aph@redhat.com>

        * java/io/ObjectInputStream.java: (parseContent):  Call (String,
        Object) version of dumpElementln.
        (dumpElementln(String, Object)): New method.
        * java/io/ObjectOutputStream.java (writeObject): Call (String,
        Object) version of dumpElementln.
        (dumpElementln(String, Object)): New method.

From-SVN: r123875

17 years agore PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
Maxim Kuvyrkov [Mon, 16 Apr 2007 15:04:18 +0000 (15:04 +0000)]
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)

PR middle-end/28071
* sched-int.h (struct deps): Split field 'pending_lists_length' into
'pending_read_list_length' and 'pending_write_list_length'.  Update
comment.
* sched-deps.c (add_insn_mem_dependence): Change signature.  Update
to handle two length counters instead of one.  Update all uses.
(flush_pending_lists, sched_analyze_1, init_deps): Update to handle
two length counters instead of one.
* sched-rgn.c (propagate_deps): Update to handle two length counters
instead of one.

From-SVN: r123874

17 years ago2007-04-16 Andrew John Hughes <gnu_andrew@member.fsf.org>
Andrew John Hughes [Mon, 16 Apr 2007 14:50:03 +0000 (14:50 +0000)]
2007-04-16  Andrew John Hughes  <gnu_andrew@member.fsf.org>

        * javax/management/ObjectName.java:
        (parse(String)): Catch multiple wildcards,
        initialise with an empty string (so null isn't
        appended), and emit comma even when wildcard
        ends the list.
        (checkComponents()): Catch newlines.
        (quote(String)): Handle newlines and quotes
        correctly.

From-SVN: r123873

17 years agoFix a typo in comments in revision 123866.
H.J. Lu [Mon, 16 Apr 2007 14:03:33 +0000 (07:03 -0700)]
Fix a typo in comments in revision 123866.

From-SVN: r123871

17 years agoIndentation fix.
Tobias Schlüter [Mon, 16 Apr 2007 14:00:41 +0000 (16:00 +0200)]
Indentation fix.

From-SVN: r123869

17 years agoBootClassLoader.java (getBootURLLoader): New method.
Andrew Haley [Mon, 16 Apr 2007 13:49:37 +0000 (13:49 +0000)]
BootClassLoader.java (getBootURLLoader): New method.

2007-04-16  Andrew Haley  <aph@redhat.com>

        * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New
        method.
        (bootGetResource): Use getBootURLLoader() to load resources.
        (bootGetResources): Likewise.

        * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also
        check that the method's declaring class is accessible.

From-SVN: r123867

17 years agore PR target/31582 (ix86_expand_vec_set_builtin modifies source)
H.J. Lu [Mon, 16 Apr 2007 13:49:14 +0000 (06:49 -0700)]
re PR target/31582 (ix86_expand_vec_set_builtin modifies source)

2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>

PR target/31582
* config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
copy of source, pass it to ix86_expand_vector_set and return
it as target.

From-SVN: r123866

17 years agoTaggedComponentHelper.java (read): Use read_octet_array(), not read().
Andrew Haley [Mon, 16 Apr 2007 13:48:26 +0000 (13:48 +0000)]
TaggedComponentHelper.java (read): Use read_octet_array(), not read().

2007-04-16  Andrew Haley  <aph@redhat.com>

        * org/omg/IOP/TaggedComponentHelper.java (read): Use
        read_octet_array(), not read().
        (write): Use write_octet_array(), not write().

        * org/omg/PortableServer/Servant.java (_get_delegate): Throw if no
        delegate has been set.

        * javax/management/ObjectName.java serialVersionUID: Declare.
        Make all fields transient.
        (parse): Break out from constructor.
        (writeObject, readObject): New methods.

From-SVN: r123865

17 years agoTaggedComponentHelper.java (read): Use read_octet_array(), not read().
Andrew Haley [Mon, 16 Apr 2007 13:46:54 +0000 (13:46 +0000)]
TaggedComponentHelper.java (read): Use read_octet_array(), not read().

2007-04-16  Andrew Haley  <aph@redhat.com>

        * org/omg/IOP/TaggedComponentHelper.java (read): Use
        read_octet_array(), not read().
        (write): Use write_octet_array(), not write().

        * org/omg/PortableServer/Servant.java (_get_delegate): Throw if no
        delegate has been set.

        * javax/management/ObjectName.java serialVersionUID: Declare.
        Make all fields transient.
        (parse): Break out from constructor.
        (writeObject, readObject): New methods.

From-SVN: r123864

17 years agomips.h (PROCESSOR_74KC, [...]): Define.
David Ung [Mon, 16 Apr 2007 13:45:24 +0000 (13:45 +0000)]
mips.h (PROCESSOR_74KC, [...]): Define.

2007-04-16  David Ung  <davidu@mips.com>
            Joseph Myers  <joseph@codesourcery.com>

* config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
* config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
Add 74K processor information.
* config/mips/mips.md: Include 74k.md.
(cpu): Add 74kc,74kf,74kx.
(ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
* config/mips/74k.md: New.
* doc/invoke.texi (MIPS Options): Document 74K support.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r123863

17 years agoBootClassLoader.java (getBootURLLoader): New method.
Andrew Haley [Mon, 16 Apr 2007 13:44:59 +0000 (13:44 +0000)]
BootClassLoader.java (getBootURLLoader): New method.

2007-04-16  Andrew Haley  <aph@redhat.com>

        * gnu/gcj/runtime/BootClassLoader.java (getBootURLLoader): New
        method.
        (bootGetResource): Use getBootURLLoader() to load resources.
        (bootGetResources): Likewise.

        * java/lang/reflect/natMethod.cc (Method::invoke): In invoke also
        check that the method's declaring class is accessible.

From-SVN: r123862

17 years agotree-vect-analyze.c (vect_analyze_operations): Reorganize calls to vectorizable_...
Dorit Nuzman [Mon, 16 Apr 2007 12:54:01 +0000 (12:54 +0000)]
tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to vectorizable_* functions.

        * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
        vectorizable_* functions.
        * tree-vect-transform.c (vectorizable_call): Add check for
        STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
        (vectorizable_store): likewise.
        (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
        Add comments.
        (vectorizable_operation, vectorizable_type_demotion): Likewise.
        (vectorizable_type_promotion, vectorizable_load): Likewise.
        (vectorizable_live_operation, vectorizable_condition): Likewise.
        (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
        STMT_VINFO_LIVE_P.
        (vect_transform_stmt): Reorganize calls to vectorizable_* functions.

From-SVN: r123861

17 years agoDaily bump.
GCC Administrator [Sun, 15 Apr 2007 23:17:29 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r123859

17 years agore PR testsuite/31578 (FAIL: gcc.dg/gnu89-init-4.c (test for excess errors))
Andrew Pinski [Sun, 15 Apr 2007 21:38:47 +0000 (21:38 +0000)]
re PR testsuite/31578 (FAIL: gcc.dg/gnu89-init-4.c (test for excess errors))

2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR testsuite/31578
        * gcc.dg/gnu89-init-4.c: Change to a compile only test.

From-SVN: r123854

17 years agoFix typo in my last changelog entry.
Andrew Pinski [Sun, 15 Apr 2007 20:58:09 +0000 (13:58 -0700)]
Fix typo in my last changelog entry.

From-SVN: r123853

17 years agowarnings_are_errors_1.f90: Add -std=f95 to options.
Jerry DeLisle [Sun, 15 Apr 2007 20:28:19 +0000 (20:28 +0000)]
warnings_are_errors_1.f90: Add -std=f95 to options.

2007-04-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

* gfortran.dg/warnings_are_errors_1.f90: Add -std=f95 to options.

From-SVN: r123852

17 years ago* cp-tree.h (current_template_parms): Fix typo in comment.
Mark Mitchell [Sun, 15 Apr 2007 18:58:57 +0000 (18:58 +0000)]
* cp-tree.h (current_template_parms): Fix typo in comment.

From-SVN: r123851

17 years agolinux.h (FUNCTION_VALUE_REGNO_P): Use macros for register numbers more.
Kazu Hirata [Sun, 15 Apr 2007 15:54:36 +0000 (15:54 +0000)]
linux.h (FUNCTION_VALUE_REGNO_P): Use macros for register numbers more.

* config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
register numbers more.
* config/m68k/m68k.h (STACK_POINTER_REGNUM,
FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
FUNCTION_VALUE_REGNO_P): Likewise.
* config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
STATIC_CHAIN_REGNUM): Likewise.
* config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
* config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
* config/m68k/m68k.md (FP_REG): New.

From-SVN: r123850

17 years agore PR fortran/31204 (wrong host association of implied loop variable)
Paul Thomas [Sun, 15 Apr 2007 15:28:06 +0000 (15:28 +0000)]
re PR fortran/31204 (wrong host association of implied loop variable)

2007-04-15  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31204
* primary.c (check_for_implicit_index): New function to check
that a host associated variable is not an undeclared implied
do loop index.
(gfc_match_rvalue, match_variable): Use it and reset the
implied_index attribute.
* gfortran.h : Add the implied_index field to symbol_attribute.
* match.c (gfc_match_iterator): Mark the iterator variable
with the new attribute.
* decl.c (build_sym): Reset the new attribute.

2007-04-15  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31204
* gfortran.dg/array_constructor_16.f90: New test.

From-SVN: r123849

17 years agom68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit alignment on fido.
Kazu Hirata [Sun, 15 Apr 2007 15:27:06 +0000 (15:27 +0000)]
m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit alignment on fido.

* config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
alignment on fido.

From-SVN: r123848

17 years agoi386.c, [...]: Fix comment typos.
Kazu Hirata [Sun, 15 Apr 2007 14:46:34 +0000 (14:46 +0000)]
i386.c, [...]: Fix comment typos.

* config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
comment typos.

From-SVN: r123847

17 years ago* cp-tree.h, error.c: Fix comment typos.
Kazu Hirata [Sun, 15 Apr 2007 14:37:02 +0000 (14:37 +0000)]
* cp-tree.h, error.c: Fix comment typos.

From-SVN: r123846

17 years agogfc-internals.texi: Fix typos.
Kazu Hirata [Sun, 15 Apr 2007 14:28:43 +0000 (14:28 +0000)]
gfc-internals.texi: Fix typos.

* gfc-internals.texi: Fix typos.
* simplify.c: Fix a comment typo.

From-SVN: r123845

17 years agopr19340.c, [...]: XFAIL on fido-*-*.
Kazu Hirata [Sun, 15 Apr 2007 13:58:40 +0000 (13:58 +0000)]
pr19340.c, [...]: XFAIL on fido-*-*.

* gcc.dg/pr19340.c, gcc.dg/tree-ssa/loop-1.c,
gcc.dg/weak/typeof-2.c: XFAIL on fido-*-*.

From-SVN: r123844

17 years agotree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore cold loops.
Zdenek Dvorak [Sun, 15 Apr 2007 03:36:25 +0000 (05:36 +0200)]
tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore cold loops.

* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
cold loops.

From-SVN: r123843

17 years agoopen.c (test_endfile): Revert changes for 31052, restoring this function.
Jerry DeLisle [Sun, 15 Apr 2007 01:53:43 +0000 (01:53 +0000)]
open.c (test_endfile): Revert changes for 31052, restoring this function.

2007-04-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

* io/open.c (test_endfile): Revert changes for 31052, restoring this
function.

From-SVN: r123842

17 years agore PR rtl-optimization/31500 (FAIL: gcc.dg/Warray-bounds.c (internal compiler error))
John David Anglin [Sun, 15 Apr 2007 01:17:41 +0000 (01:17 +0000)]
re PR rtl-optimization/31500 (FAIL: gcc.dg/Warray-bounds.c (internal compiler error))

PR rtl-optimization/31500
* gcc.dg/Warray-bounds.c: Skip on hppa*-*-*.
* g++.dg/warn/Warray-bounds.C: Likewise.

From-SVN: r123837

17 years agore PR c/31520 (Latent bug in finish_decl causing an errorous "array subscript is...
Andrew Pinski [Sun, 15 Apr 2007 00:59:15 +0000 (00:59 +0000)]
re PR c/31520 (Latent bug in finish_decl causing an errorous "array subscript is above array bounds")

2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR c/31520
        * c-del.c (finish_decl): Grab the type of the decl after the call
        to store_init_value.
2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C/31520
        * testsuite/gcc.dg/gnu89-init-4.c: New testcase.

From-SVN: r123835

17 years agoDaily bump.
GCC Administrator [Sat, 14 Apr 2007 23:17:32 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r123833

17 years ago* common.opt (fforward-propagate): Fix "Optimization" annotation.
Steven Bosscher [Sat, 14 Apr 2007 22:38:16 +0000 (22:38 +0000)]
* common.opt (fforward-propagate): Fix "Optimization" annotation.

From-SVN: r123830

17 years agoMakefile.am: Add -I ..
Steve Ellcey [Sat, 14 Apr 2007 19:52:27 +0000 (19:52 +0000)]
Makefile.am: Add -I ..

* Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
* Makefile.in: Regenerate.

From-SVN: r123829

17 years agoconfigure.ac: Change how LIBSUPCXX_PICFLAGS is set.
Steve Ellcey [Sat, 14 Apr 2007 19:51:44 +0000 (19:51 +0000)]
configure.ac: Change how LIBSUPCXX_PICFLAGS is set.

* configure.ac: Change how LIBSUPCXX_PICFLAGS is set.
* configure: Regenerate.

From-SVN: r123828

17 years agoMakefile.am: Add -I ..
Steve Ellcey [Sat, 14 Apr 2007 19:50:46 +0000 (19:50 +0000)]
Makefile.am: Add -I ..

        * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.  Add libgfortran_la_LINK.
        * Makefile.in: Regenerate.

From-SVN: r123827

17 years agoMakefile.am: Add -I ..
Steve Ellcey [Sat, 14 Apr 2007 19:49:42 +0000 (19:49 +0000)]
Makefile.am: Add -I ..

* Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
* Makefile.in: Regenerate.

From-SVN: r123826

17 years ago* config-ml.in: Pass ${ml_config_env} to configure calls.
Steve Ellcey [Sat, 14 Apr 2007 19:48:36 +0000 (19:48 +0000)]
* config-ml.in: Pass ${ml_config_env} to configure calls.

From-SVN: r123825

17 years agore PR c++/25874 ([gomp] ICE in calc_dfs_tree())
Jakub Jelinek [Sat, 14 Apr 2007 18:52:45 +0000 (20:52 +0200)]
re PR c++/25874 ([gomp]  ICE in calc_dfs_tree())

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.

From-SVN: r123822

17 years ago+2007-04-14 Bernhard Fischer
Bernhard Reutner-Fischer [Sat, 14 Apr 2007 18:43:20 +0000 (20:43 +0200)]
+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.

From-SVN: r123821

17 years ago2007-04-14 Bernhard Fischer
Bernhard Fischer [Sat, 14 Apr 2007 18:33:11 +0000 (20:33 +0200)]
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.

From-SVN: r123820

17 years ago- commentary typo fix
Bernhard Reutner-Fischer [Sat, 14 Apr 2007 17:59:28 +0000 (19:59 +0200)]
- commentary typo fix

From-SVN: r123819

17 years agore PR fortran/31561 (FAIL: gfortran.dg/vect/vect-4.f90)
Francois-Xavier Coudert [Sat, 14 Apr 2007 17:09:41 +0000 (17:09 +0000)]
re PR fortran/31561 (FAIL: gfortran.dg/vect/vect-4.f90)

PR fortran/31561
* gfortran.dg/vect/vect-4.f90: xfail on vect_no_align targets.

From-SVN: r123817

17 years agoc_locale.cc: Include <limits>.
Paolo Carlini [Sat, 14 Apr 2007 16:40:51 +0000 (16:40 +0000)]
c_locale.cc: Include <limits>.

2007-04-14  Paolo Carlini  <pcarlini@suse.de>

* config/locale/generic/c_locale.cc: Include <limits>.

From-SVN: r123816

17 years agore PR fortran/29507 ([4.2 only] INDEX in an array initialization causes ICE)
Paul Thomas [Sat, 14 Apr 2007 14:09:57 +0000 (14:09 +0000)]
re PR fortran/29507 ([4.2 only] INDEX in an array initialization causes ICE)

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.

From-SVN: r123815

17 years agobfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
Bernd Schmidt [Sat, 14 Apr 2007 10:50:45 +0000 (10:50 +0000)]
bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.

* config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
* config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.

From-SVN: r123813

17 years agoconfig.gcc: Recognize fido.
Kazu Hirata [Sat, 14 Apr 2007 02:15:45 +0000 (02:15 +0000)]
config.gcc: Recognize fido.

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.

From-SVN: r123811

17 years agotarget-supports.exp (check_gc_sections_available): Return false if ldflags includes...
Kazu Hirata [Sat, 14 Apr 2007 02:05:43 +0000 (02:05 +0000)]
target-supports.exp (check_gc_sections_available): Return false if ldflags includes -elf2flt.

* lib/target-supports.exp (check_gc_sections_available):
Return false if ldflags includes -elf2flt.

From-SVN: r123810

17 years ago* gcc.c-torture/compile/pr27528.c: Require nonpic.
Kazu Hirata [Sat, 14 Apr 2007 02:04:15 +0000 (02:04 +0000)]
* gcc.c-torture/compile/pr27528.c: Require nonpic.

From-SVN: r123809

17 years agore PR middle-end/31322 (ld: Invalid symbol type for plabel (.libs/debug_list.o, __gxx...
John David Anglin [Sat, 14 Apr 2007 00:17:41 +0000 (00:17 +0000)]
re PR middle-end/31322 (ld: Invalid symbol type for plabel (.libs/debug_list.o, __gxx_personality_v0).)

PR middle-end/31322
* dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
when a personality function is used.

From-SVN: r123806

17 years agore PR c++/31074 (Reference casting involving multiple inheritance produces bad pointer)
Jason Merrill [Fri, 13 Apr 2007 23:43:18 +0000 (19:43 -0400)]
re PR c++/31074 (Reference casting involving multiple inheritance produces bad pointer)

        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.

From-SVN: r123805

17 years agoDaily bump.
GCC Administrator [Fri, 13 Apr 2007 23:17:07 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r123803

17 years agore PR libstdc++/31556 (find_if uses operator! instead of conversion to bool)
Paolo Carlini [Fri, 13 Apr 2007 22:22:56 +0000 (22:22 +0000)]
re PR libstdc++/31556 (find_if uses operator! instead of conversion to bool)

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.

From-SVN: r123800

17 years agoFix whitespacing.
Mike Stump [Fri, 13 Apr 2007 20:44:30 +0000 (20:44 +0000)]
Fix whitespacing.

From-SVN: r123799

17 years agostubify-1.mm: Only run on powerpc.
Mike Stump [Fri, 13 Apr 2007 20:43:22 +0000 (20:43 +0000)]
stubify-1.mm: Only run on powerpc.

* obj-c++.dg/stubify-1.mm: Only run on powerpc.
* obj-c++.dg/template-4.mm: Don't run when 64-bit.

From-SVN: r123798

17 years ago* config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
Bob Wilson [Fri, 13 Apr 2007 20:35:50 +0000 (20:35 +0000)]
* config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.

From-SVN: r123797

17 years agore PR tree-optimization/29598 (FAIL: gcc.dg/tree-ssa/loadpre1.c and loadpre1[45]...
Joseph Myers [Fri, 13 Apr 2007 19:46:37 +0000 (20:46 +0100)]
re PR tree-optimization/29598 (FAIL: gcc.dg/tree-ssa/loadpre1.c and loadpre1[45].c scan-tree-dump-times Eliminated: 1 1)

PR tree-optimization/29598
* gcc.dg/tree-ssa/loadpre1.c: XFAIL.

From-SVN: r123794

17 years agore PR fortran/31559 ([4.1 only] Assigning to an EXTERNAL leads to ICE)
Tobias Burnus [Fri, 13 Apr 2007 18:34:36 +0000 (20:34 +0200)]
re PR fortran/31559 ([4.1 only] Assigning to an EXTERNAL leads to ICE)

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.

From-SVN: r123793

17 years agodarwin-c.c (handle_c_option): Handle -fapple-kext here so we can...
Mike Stump [Fri, 13 Apr 2007 17:29:27 +0000 (17:29 +0000)]
darwin-c.c (handle_c_option): Handle -fapple-kext here so we can...

* 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.

From-SVN: r123792

17 years agore PR fortran/31550 (f951: segfault in fold-const.c:1963)
Paul Thomas [Fri, 13 Apr 2007 16:01:36 +0000 (16:01 +0000)]
re PR fortran/31550 (f951: segfault in fold-const.c:1963)

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.

From-SVN: r123791

17 years agore PR fortran/18937 (quadratic behaviour with many label "spaghetti" code)
Tobias Schlüter [Fri, 13 Apr 2007 13:48:08 +0000 (15:48 +0200)]
re PR fortran/18937 (quadratic behaviour with many label "spaghetti" code)

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.

From-SVN: r123789

17 years agovxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
Richard Sandiford [Fri, 13 Apr 2007 13:48:08 +0000 (13:48 +0000)]
vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.

gcc/
* config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
* config/mips/mips.c (override_options): Call
SUBTARGET_OVERRIDE_OPTIONS, if defined.

From-SVN: r123788

17 years agoi386.opt (msvr3-shlib): Removed.
H.J. Lu [Fri, 13 Apr 2007 13:29:45 +0000 (13:29 +0000)]
i386.opt (msvr3-shlib): Removed.

2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.opt (msvr3-shlib): Removed.

* doc/invoke.texi: Remove -msvr3-shlib.

From-SVN: r123787

17 years agoi386.opt (mpopcnt): Replace "popcount" instruction with "popcnt" instruction.
H.J. Lu [Fri, 13 Apr 2007 13:28:39 +0000 (13:28 +0000)]
i386.opt (mpopcnt): Replace "popcount" instruction with "popcnt" instruction.

2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
with "popcnt" instruction.

From-SVN: r123786

17 years agore PR fortran/31562 (FAIL: gfortran.dg/value_4.f90 -O0 execution test)
Tobias Burnus [Fri, 13 Apr 2007 11:26:09 +0000 (13:26 +0200)]
re PR fortran/31562 (FAIL: gfortran.dg/value_4.f90  -O0  execution test)

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.

From-SVN: r123784

17 years agore PR libstdc++/31554 (stable_partition assumes iterator difference type is always...
Paolo Carlini [Fri, 13 Apr 2007 11:17:21 +0000 (11:17 +0000)]
re PR libstdc++/31554 (stable_partition assumes iterator difference type is always ptrdiff_t)

2007-04-13  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/31554
* include/bits/stl_algo.h (stable_partition): Convert __buf.size()
to _DistanceType.

From-SVN: r123783

17 years agoFix date in Tobias Burnus' ChangeLog entry
Tobias Schlüter [Fri, 13 Apr 2007 11:05:50 +0000 (13:05 +0200)]
Fix date in Tobias Burnus' ChangeLog entry

From-SVN: r123782

17 years agoSigh. Add ChangeLog entry missing from previous commit.
Tobias Schlüter [Fri, 13 Apr 2007 11:03:43 +0000 (13:03 +0200)]
Sigh.  Add ChangeLog entry missing from previous commit.

From-SVN: r123781

17 years agore PR fortran/31562 (FAIL: gfortran.dg/value_4.f90 -O0 execution test)
Tobias Burnus [Fri, 13 Apr 2007 10:59:19 +0000 (12:59 +0200)]
re PR fortran/31562 (FAIL: gfortran.dg/value_4.f90  -O0  execution test)

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.

From-SVN: r123780

17 years agonumeric_traits.h: Do not include <limits>.
Paolo Carlini [Fri, 13 Apr 2007 10:54:37 +0000 (10:54 +0000)]
numeric_traits.h: Do not include <limits>.

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>.

From-SVN: r123779

17 years agore PR tree-optimization/21258 (Teach VRP to pick up a constant from case label.)
Richard Guenther [Fri, 13 Apr 2007 09:21:22 +0000 (09:21 +0000)]
re PR tree-optimization/21258 (Teach VRP to pick up a constant from case label.)

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.

From-SVN: r123778

17 years agoi386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
Uros Bizjak [Fri, 13 Apr 2007 08:14:57 +0000 (10:14 +0200)]
i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.

        * 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.

From-SVN: r123777

17 years agoMakefile.am (EXTRA_DIST): Bring up to date.
Paolo Bonzini [Fri, 13 Apr 2007 07:21:04 +0000 (07:21 +0000)]
Makefile.am (EXTRA_DIST): Bring up to date.

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.

From-SVN: r123776

17 years agoMakefile.in (stamp-as, [...]): Remove.
Paolo Bonzini [Fri, 13 Apr 2007 07:04:39 +0000 (07:04 +0000)]
Makefile.in (stamp-as, [...]): Remove.

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.

Co-Authored-By: Charles Wilson <libtool@cwilson.fastmail.fm>
From-SVN: r123775

17 years agoDaily bump.
GCC Administrator [Thu, 12 Apr 2007 23:17:05 +0000 (23:17 +0000)]
Daily bump.

From-SVN: r123773

17 years ago* doc/invoke.text (--help): Document --help=common.
Brooks Moses [Thu, 12 Apr 2007 21:13:32 +0000 (21:13 +0000)]
* doc/invoke.text (--help): Document --help=common.

From-SVN: r123769

17 years agoc_by_val.c: Use GCC extensions instead of including <complex.h>.
Francois-Xavier Coudert [Thu, 12 Apr 2007 20:59:43 +0000 (20:59 +0000)]
c_by_val.c: Use GCC extensions instead of including <complex.h>.

* gfortran.dg/c_by_val.c: Use GCC extensions instead of including
<complex.h>.

From-SVN: r123768

17 years agoCommit bits missing from previous checkin
Tobias Schlüter [Thu, 12 Apr 2007 19:12:20 +0000 (21:12 +0200)]
Commit bits missing from previous checkin

Commit bits missing from previous checkin
* gfortran.dg/repeat_2.f90: Add dg-warning annotations.
* gfortran.dg/repeat_4.f90: Likewise.

From-SVN: r123765

17 years agostub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
Thomas Neumann [Thu, 12 Apr 2007 19:00:38 +0000 (19:00 +0000)]
stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.

2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>

* stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.

From-SVN: r123764

17 years agore PR fortran/31250 (Initialization expr as constant character length rejected)
Tobias Schlüter [Thu, 12 Apr 2007 18:48:06 +0000 (20:48 +0200)]
re PR fortran/31250 (Initialization expr as constant character length rejected)

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.

From-SVN: r123763

17 years agoFile missing from previous commit
Tobias Schlüter [Thu, 12 Apr 2007 18:30:06 +0000 (20:30 +0200)]
File missing from previous commit

From-SVN: r123762

17 years agore PR fortran/31234 (Thread-safety of random_number should be documented.)
Daniel Franke [Thu, 12 Apr 2007 18:23:03 +0000 (14:23 -0400)]
re PR fortran/31234 (Thread-safety of random_number should be documented.)

2007-04-12  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/31234
        * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New.

From-SVN: r123760

17 years agore PR fortran/31266 (Spurious(?) warning about character truncation)
Tobias Schlüter [Thu, 12 Apr 2007 18:10:10 +0000 (20:10 +0200)]
re PR fortran/31266 (Spurious(?) warning about character truncation)

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.

From-SVN: r123759

17 years agodecl.c (gfc_match_end): Also check for construct name in END FORALL and END WERE...
Tobias Schlüter [Thu, 12 Apr 2007 18:07:09 +0000 (20:07 +0200)]
decl.c (gfc_match_end): Also check for construct name in END FORALL and END WERE statements.

        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.

From-SVN: r123758

17 years agoMakefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
Richard Sandiford [Thu, 12 Apr 2007 17:59:57 +0000 (17:59 +0000)]
Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).

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.

From-SVN: r123757

17 years agomips.md (load_call<mode>): Allow any general register.
Richard Sandiford [Thu, 12 Apr 2007 17:44:57 +0000 (17:44 +0000)]
mips.md (load_call<mode>): Allow any general register.

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.

From-SVN: r123756

17 years agomips-protos.h: In comments, refer to loadgp_absolute rather than loadgp_noshared.
Richard Sandiford [Thu, 12 Apr 2007 17:39:58 +0000 (17:39 +0000)]
mips-protos.h: In comments, refer to loadgp_absolute rather than loadgp_noshared.

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.

From-SVN: r123755

17 years agomips.c (mips_ok_for_lazy_binding_p): Always return false for locally-binding symbols.
Richard Sandiford [Thu, 12 Apr 2007 17:37:25 +0000 (17:37 +0000)]
mips.c (mips_ok_for_lazy_binding_p): Always return false for locally-binding symbols.

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.

From-SVN: r123754

17 years ago+ * trans-types.c: Update copyright years.
Tobias Schlüter [Thu, 12 Apr 2007 17:34:03 +0000 (19:34 +0200)]
+ * trans-types.c: Update copyright years.

+       * trans-types.c: Update copyright years.  Reformat long comment
+       explaining array descriptor format.  Remove obsolete mention of
+       TYPE_SET.
+

From-SVN: r123753

17 years agomips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
Richard Sandiford [Thu, 12 Apr 2007 17:26:45 +0000 (17:26 +0000)]
mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...

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.

From-SVN: r123752

17 years agomips.h (TARGET_SPLIT_CALLS): Check TARGET_CALL_CLOBBERED_GP.
Richard Sandiford [Thu, 12 Apr 2007 17:10:56 +0000 (17:10 +0000)]
mips.h (TARGET_SPLIT_CALLS): Check TARGET_CALL_CLOBBERED_GP.

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.

From-SVN: r123751

17 years agoarith.c (gfc_arith_uplus): Rename to ...
Tobias Schlüter [Thu, 12 Apr 2007 16:53:26 +0000 (18:53 +0200)]
arith.c (gfc_arith_uplus): Rename to ...

* 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.

From-SVN: r123750

17 years agobfin.md (movhi_low2high, [...]): Delete, merge functionality into...
Bernd Schmidt [Thu, 12 Apr 2007 15:22:06 +0000 (15:22 +0000)]
bfin.md (movhi_low2high, [...]): Delete, merge functionality into...

* config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
movhi_high2low): Delete, merge functionality into...
(packv2hi): ... this pattern.

From-SVN: r123749

17 years agolib1funcs.asm (___umulsi3_highpart, [...]): Use a more efficient implementation.
Bernd Schmidt [Thu, 12 Apr 2007 13:39:35 +0000 (13:39 +0000)]
lib1funcs.asm (___umulsi3_highpart, [...]): Use a more efficient implementation.

* 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.

From-SVN: r123748

17 years agobfin.opt (msim): New option.
Bernd Schmidt [Thu, 12 Apr 2007 13:21:01 +0000 (13:21 +0000)]
bfin.opt (msim): New option.

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.

From-SVN: r123747

17 years agoconfigure: Regenerate.
Kai Tietz [Thu, 12 Apr 2007 13:06:43 +0000 (13:06 +0000)]
configure: Regenerate.

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.

From-SVN: r123746

17 years agomd.texi (Blackfin family constraints): Document PA and PB.
Bernd Schmidt [Thu, 12 Apr 2007 13:03:17 +0000 (13:03 +0000)]
md.texi (Blackfin family constraints): Document PA and PB.

* 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.

From-SVN: r123745

17 years agoconfig.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
Richard Sandiford [Thu, 12 Apr 2007 12:47:05 +0000 (12:47 +0000)]
config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.

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.

From-SVN: r123744