gcc.git
13 years agos390.c (s390_delegitimize_address): Fix offset handling for PLTOFF/GOTOFF.
Andreas Krebbel [Tue, 22 Mar 2011 09:07:26 +0000 (09:07 +0000)]
s390.c (s390_delegitimize_address): Fix offset handling for PLTOFF/GOTOFF.

2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_delegitimize_address): Fix offset
handling for PLTOFF/GOTOFF.

From-SVN: r171281

13 years agocygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove trailing backslash from the end of...
Nick Clifton [Tue, 22 Mar 2011 09:04:11 +0000 (09:04 +0000)]
cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove trailing backslash from the end of the macro definition.

* config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
trailing backslash from the end of the macro definition.

From-SVN: r171280

13 years agos390.c (s390_delegitimize_address): Handle PLTOFF and PLT unspecs.
Andreas Krebbel [Tue, 22 Mar 2011 07:29:53 +0000 (07:29 +0000)]
s390.c (s390_delegitimize_address): Handle PLTOFF and PLT unspecs.

2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
and PLT unspecs.

From-SVN: r171279

13 years agoDaily bump.
GCC Administrator [Tue, 22 Mar 2011 00:19:00 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r171278

13 years agolibgo: Add GOTESTFLAGS variable used when testing.
Ian Lance Taylor [Mon, 21 Mar 2011 22:01:53 +0000 (22:01 +0000)]
libgo: Add GOTESTFLAGS variable used when testing.

From Rainer Orth.

From-SVN: r171272

13 years agoexpr.h (prepare_operand): Move to...
Richard Sandiford [Mon, 21 Mar 2011 21:38:56 +0000 (21:38 +0000)]
expr.h (prepare_operand): Move to...

gcc/
2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>

* expr.h (prepare_operand): Move to...
* optabs.h (prepare_operand): ...here and change the insn code
parameter from "int" to "enum insn_code".
(insn_operand_matches): Declare.
* expr.c (init_expr_target): Use insn_operand_matches.
(compress_float_constant): Likewise.
* function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
* optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
(emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
(have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn): Likewise.
(gen_cond_trap): Likewise.
(prepare_operand): Likewise.  Change icode to an insn_code.
(insn_operand_matches): New function.
* reload.c (find_reloads_address_1): Use insn_operand_matches.
* reload1.c (gen_reload): Likewise.
* targhooks.c (default_secondary_reload): Likewise.

From-SVN: r171270

13 years agoalpha.md (unspec): New define_c_enum.
Uros Bizjak [Mon, 21 Mar 2011 20:50:35 +0000 (21:50 +0100)]
alpha.md (unspec): New define_c_enum.

* config/alpha/alpha.md (unspec): New define_c_enum.
(unspecv): Ditto.

From-SVN: r171268

13 years agoalpha.c (alpha_pad_noreturn): Do not emit an unop between a call and its CALL_ARG_LOC...
Uros Bizjak [Mon, 21 Mar 2011 20:09:45 +0000 (21:09 +0100)]
alpha.c (alpha_pad_noreturn): Do not emit an unop between a call and its CALL_ARG_LOCATION note.

* config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
between a call and its CALL_ARG_LOCATION note.

From-SVN: r171266

13 years agoprune.exp (prune_gcc_output): Prune "could not create compact unwind for" warnings.
Jack Howarth [Mon, 21 Mar 2011 19:13:05 +0000 (19:13 +0000)]
prune.exp (prune_gcc_output): Prune "could not create compact unwind for" warnings.

gcc:
2011-03-21  Jack Howarth  <howarth@bromo.med.uc.edu>

* lib/prune.exp (prune_gcc_output): Prune "could not create
compact unwind for" warnings.

libstdc++:
2011-03-21  Jack Howarth  <howarth@bromo.med.uc.edu>

* testsuite/lib/prune.exp (libstdc++-dg-prune): Prune "could not
create compact unwind for" warnings.

From-SVN: r171263

13 years agobaseline_symbols.txt: Update.
Jakub Jelinek [Mon, 21 Mar 2011 19:06:11 +0000 (20:06 +0100)]
baseline_symbols.txt: Update.

* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
Likewise.
* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.

From-SVN: r171258

13 years agotestsuite_abi.cc (check_version): Set incompatible even when adding symbols to CXXABI...
Jakub Jelinek [Mon, 21 Mar 2011 19:00:52 +0000 (20:00 +0100)]
testsuite_abi.cc (check_version): Set incompatible even when adding symbols to CXXABI_1.3...

* testsuite/util/testsuite_abi.cc (check_version): Set incompatible
even when adding symbols to CXXABI_1.3, GLIBCXX_LDBL_3.4 and
CXXABI_LDBL_1.3 versions.

From-SVN: r171257

13 years ago* config/abi/pre/gnu.ver: Remove typeinfo name exports for C++0x types.
Benjamin Kosnik [Mon, 21 Mar 2011 19:00:03 +0000 (19:00 +0000)]
* config/abi/pre/gnu.ver: Remove typeinfo name exports for C++0x types.

From-SVN: r171256

13 years agognu.ver (CXXABI_1.3): Don't export _ZT[IS][PK]*[no].
Jakub Jelinek [Mon, 21 Mar 2011 18:59:12 +0000 (19:59 +0100)]
gnu.ver (CXXABI_1.3): Don't export _ZT[IS][PK]*[no].

* config/abi/pre/gnu.ver (CXXABI_1.3): Don't export _ZT[IS][PK]*[no].
(CXXABI_1.3.5): Export _ZTI[PK]*[no].

From-SVN: r171255

13 years agore PR bootstrap/48216 (IRIX 6 Ada bootstrap broken: gnu_decl uninitialized in gcc...
Eric Botcazou [Mon, 21 Mar 2011 18:19:47 +0000 (18:19 +0000)]
re PR bootstrap/48216 (IRIX 6 Ada bootstrap broken: gnu_decl uninitialized in gcc-interface/decl.c:elaborate_expression_1)

PR bootstrap/48216
* gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.

From-SVN: r171254

13 years ago* gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
Eric Botcazou [Mon, 21 Mar 2011 18:04:50 +0000 (18:04 +0000)]
* gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.

From-SVN: r171253

13 years agore PR c/42544 (Bad codegen with signed short cast to unsigned int, then promoted...
Jakub Jelinek [Mon, 21 Mar 2011 17:57:34 +0000 (18:57 +0100)]
re PR c/42544 (Bad codegen with signed short cast to unsigned int, then promoted to unsigned long long)

PR c/42544
PR c/48197
* c-common.c (shorten_compare): If primopN is first sign-extended
to opN and then zero-extended to result type, set primopN to opN.

* gcc.c-torture/execute/pr42544.c: New test.
* gcc.c-torture/execute/pr48197.c: New test.

From-SVN: r171252

13 years agounwind-arm.c (__gnu_unwind_pr_common): Correct test for barrier handlers.
Daniel Jacobowitz [Mon, 21 Mar 2011 17:19:19 +0000 (17:19 +0000)]
unwind-arm.c (__gnu_unwind_pr_common): Correct test for barrier handlers.

2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>

gcc/
* config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
for barrier handlers.

From-SVN: r171251

13 years agoFix PR number in changelog entry.
Ramana Radhakrishnan [Mon, 21 Mar 2011 17:11:12 +0000 (17:11 +0000)]
Fix PR number in changelog entry.

From-SVN: r171250

13 years agoMake UNSPEC/UNSPECV constants use the enum; Fix 48192; Add test case for 48053
Michael Meissner [Mon, 21 Mar 2011 16:21:30 +0000 (16:21 +0000)]
Make UNSPEC/UNSPECV constants use the enum; Fix 48192; Add test case for 48053

From-SVN: r171247

13 years agoparams.def (lto-min-partition): Fix typo.
Richard Guenther [Mon, 21 Mar 2011 15:33:46 +0000 (15:33 +0000)]
params.def (lto-min-partition): Fix typo.

2011-03-21  Richard Guenther  <rguenther@suse.de>

* params.def (lto-min-partition): Fix typo.

From-SVN: r171246

13 years agore PR c/47939 (Missing DW_TAG_typedef for qualified types)
Richard Guenther [Mon, 21 Mar 2011 15:32:21 +0000 (15:32 +0000)]
re PR c/47939 (Missing DW_TAG_typedef for qualified types)

2011-03-21  Richard Guenther  <rguenther@suse.de>

PR c/47939
* c-decl.c (grokdeclarator): Drop to the main variant only
for array types.  Drop flag_gen_aux_info check.

* gcc.dg/debug/dwarf2/pr47939-1.c: New testcase.
* gcc.dg/debug/dwarf2/pr47939-2.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-3.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-4.c: Likewise.

From-SVN: r171245

13 years agore PR translation/47911 (gettext string typo: params.def:861: parition)
Richard Guenther [Mon, 21 Mar 2011 15:30:03 +0000 (15:30 +0000)]
re PR translation/47911 (gettext string typo: params.def:861: parition)

2011-03-21  Richard Guenther  <rguenther@suse.de>

PR translation/47911
* params.def (lto-partitions): Fix typo.
(lto-min-partition): Fix wording.

From-SVN: r171244

13 years agot-freebsd: Remove duplication from file.
Andreas Tobler [Mon, 21 Mar 2011 15:28:22 +0000 (16:28 +0100)]
t-freebsd: Remove duplication from file.

2011-03-21  Andreas Tobler  <andreast@fgznet.ch>

* config/rs6000/t-freebsd: Remove duplication from file.

From-SVN: r171243

13 years agore PR middle-end/47661 (predict is confused by FP comparisons when math can trap)
Richard Guenther [Mon, 21 Mar 2011 13:50:26 +0000 (13:50 +0000)]
re PR middle-end/47661 (predict is confused by FP comparisons when math can trap)

2011-03-21  Richard Guenther  <rguenther@suse.de>

PR middle-end/47661
* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.

From-SVN: r171236

13 years agore PR lto/48210 (ICE: SIGFPE with -flto --param lto-partitions=0 on basic code)
Richard Guenther [Mon, 21 Mar 2011 13:42:27 +0000 (13:42 +0000)]
re PR lto/48210 (ICE: SIGFPE with -flto --param lto-partitions=0 on basic code)

2011-03-21  Richard Guenther  <rguenther@suse.de>

PR lto/48210
* params.def (lto-partitions): Require at least 1 partition.

From-SVN: r171234

13 years ago14220.cc: Don't xfail on sparc*-sun-solaris2.10 && lp64.
Rainer Orth [Mon, 21 Mar 2011 13:38:19 +0000 (13:38 +0000)]
14220.cc: Don't xfail on sparc*-sun-solaris2.10 && lp64.

* testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
sparc*-sun-solaris2.10 && lp64.

From-SVN: r171231

13 years agogthr-solaris.h: Remove.
Rainer Orth [Mon, 21 Mar 2011 12:33:34 +0000 (12:33 +0000)]
gthr-solaris.h: Remove.

gcc:
* gthr-solaris.h: Remove.
* gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
* config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
(LIB_SPEC): Likewise.
* config/sol2.opt (threads): Remove.
* config.gcc (i[34567]86-*-solaris2*): Remove solaris threads
support.
(sparc*-*-solaris2*): Likewise.
* configure.ac (enable_threads): Enable solaris support.
* configure: Regenerate.
* doc/invoke.texi (Option Summary, Solaris 2 Options): Remove
-threads.
* doc/install.texi (Configuration, --enable-threads=lib): Remove
solaris.

boehm-gc:
* configure.ac (THREADS): Remove solaris.
* configure: Regenerate.

libjava:
* configure.ac (THREADS): Remove solaris.
* configure: Regenerate.

From-SVN: r171229

13 years agodecl.c (components_to_record): Add REORDER parameter...
Eric Botcazou [Mon, 21 Mar 2011 12:31:12 +0000 (12:31 +0000)]
decl.c (components_to_record): Add REORDER parameter...

* gcc-interface/decl.c (components_to_record): Add REORDER parameter,
rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
to the end of the list.  Adjust recursive call.  Rename local variable.
If REORDER is true, reorder components of the record type.
(gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
components_to_record and adjust the parameter list.

From-SVN: r171228

13 years agoconfig.gcc: Obsolete *-*-solaris2.8*.
Rainer Orth [Mon, 21 Mar 2011 12:28:38 +0000 (12:28 +0000)]
config.gcc: Obsolete *-*-solaris2.8*.

* config.gcc: Obsolete *-*-solaris2.8*.
* doc/install.texi (Specific, *-*-solaris2*): Document it.

From-SVN: r171226

13 years agore PR bootstrap/48120 (libpwl test must use g++)
Rainer Orth [Mon, 21 Mar 2011 12:26:30 +0000 (12:26 +0000)]
re PR bootstrap/48120 (libpwl test must use g++)

PR bootstrap/48120:
* configure.ac (pwllib): Use LIBS instead of LDFLAGS.
Add -lstdc++ -lm to LIBS.
* configure: Regenerate.

From-SVN: r171225

13 years agore PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within...
Rainer Orth [Mon, 21 Mar 2011 12:24:17 +0000 (12:24 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)

libgfortran:
PR bootstrap/48135
* configure.ac (gfortran_use_symver): Handle --disable-symvers.
* configure: Regenerate.

libgomp:
PR bootstrap/48135
* acinclude.m4 (enable_symvers): Handle --disable-symvers.
* configure: Regenerate.

libjava:
PR bootstrap/48135
* configure.ac (libjava_cv_anon_version_script): Handle
--disable-symvers.
* configure: Regenerate.

libquadmath:
PR bootstrap/48135
* configure.ac (quadmath_use_symver): Handle --disable-symvers.
* configure: Regenerate.

libssp:
PR bootstrap/48135
* configure.ac (ssp_use_symver): Handle --disable-symvers.
* configure: Regenerate.

From-SVN: r171224

13 years agore PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within...
Rainer Orth [Mon, 21 Mar 2011 12:17:10 +0000 (12:17 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)

contrib:
PR bootstrap/48135
* make_sunver.pl: Don't use File::Glob.

gcc:
PR bootstrap/48135
* doc/install.texi (Prerequisites, Perl): Remove Glob.pm
reference.  Solaris 8 perl works.

From-SVN: r171223

13 years agore PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within...
Rainer Orth [Mon, 21 Mar 2011 12:12:19 +0000 (12:12 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)

PR bootstrap/48135
* doc/install.texi (Prerequisites): Move jar etc. up.
Explain support library version requirements.

From-SVN: r171221

13 years agodecl.c (elaborate_expression_1): When optimization is disabled, use the variable...
Eric Botcazou [Mon, 21 Mar 2011 12:11:06 +0000 (12:11 +0000)]
decl.c (elaborate_expression_1): When optimization is disabled, use the variable for bounds of loop iteration scheme.

* gcc-interface/decl.c (elaborate_expression_1): When optimization is
disabled, use the variable for bounds of loop iteration scheme.

From-SVN: r171220

13 years agore PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within...
Rainer Orth [Mon, 21 Mar 2011 12:09:28 +0000 (12:09 +0000)]
re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)

PR bootstrap/48135
* doc/install.texi (Prerequisites): Move Perl to build
requirements.  Always necessary on Solaris 2 with Sun ld.

From-SVN: r171218

13 years agoinstall.texi (Specific, [...]): Update for binutils 2.21.
Rainer Orth [Mon, 21 Mar 2011 12:03:41 +0000 (12:03 +0000)]
install.texi (Specific, [...]): Update for binutils 2.21.

* doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
binutils 2.21.
(Specific, i?86-*-solaris2.[89]): Likewise.
(Specific, i?86-*-solaris2.10): Likewise.
(Specific, mips-sgi-irix6): Likewise.
(Specific, *-*-solaris2*): Remove Sun Studio download URL.
Update for binutils 2.21.

From-SVN: r171216

13 years agoconfigure.ac (gcc_cv_lto_plugin): Fix typo.
Rainer Orth [Mon, 21 Mar 2011 10:57:51 +0000 (10:57 +0000)]
configure.ac (gcc_cv_lto_plugin): Fix typo.

* configure.ac (gcc_cv_lto_plugin): Fix typo.
Allow -fuse-linker-plugin for non-default plugin linker.
* configure: Regenerate.

From-SVN: r171215

13 years agoIn gcc/: 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Mon, 21 Mar 2011 10:25:38 +0000 (10:25 +0000)]
In gcc/: 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/:
2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>

PR bootstrap/48167
* gengtype.c (files_rules): Added rule for cp/parser.h.

In gcc/objcp/:
2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>

PR bootstrap/48167
* Make-lang.in (START_HDRS): Added CXX_PARSER_H and
CXX_PRETTY_PRINT_H.
* config-lang.in (gtfiles): Added cp/parser.h and reorganized list
so that it is more obvious that it is identical to the C++ one
with the addition of some files at the end.

From-SVN: r171214

13 years agore PR target/48213 (ICE in simplify_subreg called from s390_delegitimize_address)
Jakub Jelinek [Mon, 21 Mar 2011 09:25:47 +0000 (10:25 +0100)]
re PR target/48213 (ICE in simplify_subreg called from s390_delegitimize_address)

PR target/48213
* config/s390/s390.c (s390_delegitimize_address): Don't call
lowpart_subreg if orig_x has BLKmode.

* gcc.dg/pr48213.c: New test.

From-SVN: r171211

13 years agoChangeLog gcc/c-family
Kai Tietz [Mon, 21 Mar 2011 08:32:50 +0000 (09:32 +0100)]
ChangeLog gcc/c-family

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* c-pretty-print.c (pp_c_specifier_qualifier_list):
Display allowed attributes for function pointer types.
(pp_c_attributes_display): New function to display
attributes having affects_type_identity flag set to true.
* c-pretty-print.h (pp_c_attributes_display): New prototype.

ChangeLog gcc/cp

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* cxx-pretty-print.c (pp_cxx_ptr_operator):
Display allowed attributes for function pointer types.
* error.c (dump_type_prefix): Likewise.

From-SVN: r171210

13 years agoChangeLog gcc/
Kai Tietz [Mon, 21 Mar 2011 08:29:36 +0000 (09:29 +0100)]
ChangeLog gcc/

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* doc/plugins.texi: Adjust documentation
for plugin register_callback.
* tree.h (attribute_spec): Add new member
affects_type_identity.
- Zitierten Text anzeigen -
* attribs.c (empty_attribute_table): Adjust
attribute_spec initializers.
* config/alpha/alpha.c: Likewise.
* config/arc/arc.c: Likewise.
* config/arm/arm.c: Likewise.
* config/avr/avr.c: Likewise.
* config/bfin/bfin.c: Likewise.
* config/crx/crx.c: Likewise.
* config/darwin.h: Likewise.
* config/h8300/h8300.c: Likewise.
* config/i386/cygming.h: Likewise.
* config/i386/i386.c: Likewise.
* config/ia64/ia64.c: Likewise.
* config/m32c/m32c.c: Likewise.
* config/m32r/m32r.c: Likewise.
* config/m68hc11/m68hc11.c: Likewise.
* config/m68k/m68k.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mep/mep.c: Likewise.
* config/microblaze/microblaze.c: Likewise.
* config/mips/mips.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/rx/rx.c: Likewise.
* config/sh/sh.c: Likewise.
* config/sol2.h: Likewise.
* config/sparc/sparc.c: Likewise.
* config/spu/spu.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/v850/v850.c: Likewise.

ChangeLog gcc/cp

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* tree.c (cxx_attribute_table): Adjust table.

ChangeLog gcc/testsuite

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* g++.dg/plugin/attribute_plugin.c: Adjust test.

ChangeLog gcc/java

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* lang.c (java_attribute_table): Adjust table.

ChangeLog gcc/lto

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* lto-lang.c (lto_attribute_table): Adjust table.

ChangeLog gcc/ada

2011-03-21  Kai Tietz  <ktietz@redhat.com>

PR target/12171
* gcc-interface/utils.c (gnat_internal_attribute_table):
Add new element.

ChangeLog gcc/c-family

2011-03-17  Kai Tietz

PR target/12171
* c-common.c (c_common_attribute_table):
Add new element.
(c_common_format_attribute_table): Likewise.

From-SVN: r171209

13 years agosimplify-rtx.c (simplify_binary_operation_1): Handle (xor (and A B) C) case when...
Chung-Lin Tang [Mon, 21 Mar 2011 07:27:03 +0000 (07:27 +0000)]
simplify-rtx.c (simplify_binary_operation_1): Handle (xor (and A B) C) case when B and C are both constants.

2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>

* simplify-rtx.c (simplify_binary_operation_1): Handle
(xor (and A B) C) case when B and C are both constants.

testsuite/
* gcc.target/arm/xor-and.c: New.

From-SVN: r171208

13 years agore PR fortran/22572 (Double occurrence of matmul intrinsic not optimised)
Thomas Koenig [Mon, 21 Mar 2011 07:14:42 +0000 (07:14 +0000)]
re PR fortran/22572 (Double occurrence of matmul intrinsic not optimised)

2010-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/22572
* gfortran.h (gfc_option_t) : Add
flag_aggressive_function_elimination.
(gfc_dep_compare_functions):  Add prototype.
* lang.opt: Add faggressive-function-elimination.
* invoke.texi: Document -faggressive-function-elimination.
* frontend_passes (expr_array):  New static variable.
(expr_size):  Likewise.
(expr_count):  Likewise.
(current_code):  Likewise.
(current_ns):  Likewise.
(gfc_run_passes):  Allocate and free space for expressions.
(cfe_register_funcs):  New function.
(create_var):  New function.
(cfc_expr_0):  New function.
(cfe_code):  New function.
(optimize_namespace):  Invoke gfc_code_walker with cfe_code
and cfe_expr_0.
* dependency.c (gfc_dep_compare_functions):  New function.
(gfc_dep_compare_expr):  Use it.
* options.c (gfc_init_options):  Handle
flag_aggressive_function_elimination.
(gfc_handle_option):  Likewise.

2010-03-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/22572
* gfortran.dg/function_optimize_1.f90:  New test.
* gfortran.dg/function_optimize_2.f90:  New test.

From-SVN: r171207

13 years agoFix typo in comment.
Mingjie Xing [Mon, 21 Mar 2011 06:25:44 +0000 (06:25 +0000)]
Fix typo in comment.

From-SVN: r171206

13 years agoAdd 2 testcases for PR rtl-optimization/47502.
H.J. Lu [Mon, 21 Mar 2011 03:28:40 +0000 (03:28 +0000)]
Add 2 testcases for PR rtl-optimization/47502.

From-SVN: r171205

13 years agoDaily bump.
GCC Administrator [Mon, 21 Mar 2011 00:18:49 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171202

13 years agore PR bootstrap/48168 (Solaris 2/SPARC bootstrap broken: ICE in sparc_function_arg_1...
Eric Botcazou [Sun, 20 Mar 2011 21:50:20 +0000 (21:50 +0000)]
re PR bootstrap/48168 (Solaris 2/SPARC bootstrap broken: ICE in sparc_function_arg_1, at config/sparc/sparc.c:5721)

PR bootstrap/48168
* config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.

From-SVN: r171197

13 years agore PR rtl-optimization/48156 (wrong code with -fcrossjumping)
Jakub Jelinek [Sun, 20 Mar 2011 15:25:55 +0000 (16:25 +0100)]
re PR rtl-optimization/48156 (wrong code with -fcrossjumping)

PR rtl-optimization/48156
* df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
assume df and df_lr are not NULL.

* gcc.dg/pr48156.c: New test.

From-SVN: r171195

13 years agoFix PR debug/48203
Ramana Radhakrishnan [Sun, 20 Mar 2011 07:59:54 +0000 (07:59 +0000)]
Fix PR debug/48203

From-SVN: r171193

13 years agoDaily bump.
GCC Administrator [Sun, 20 Mar 2011 00:17:57 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r171190

13 years agosh.c (find_barrier): Don't emit a constant pool between a call and its corresponding...
Kaz Kojima [Sat, 19 Mar 2011 23:22:18 +0000 (23:22 +0000)]
sh.c (find_barrier): Don't emit a constant pool between a call and its corresponding...

* config/sh/sh.c (find_barrier): Don't emit a constant pool
between a call and its corresponding CALL_ARG_LOCATION note.

From-SVN: r171185

13 years agolibstdc++.exp (check_v3_target_c99_math): Rename to check_v3_target_cmath.
Paolo Carlini [Sat, 19 Mar 2011 19:49:16 +0000 (19:49 +0000)]
libstdc++.exp (check_v3_target_c99_math): Rename to check_v3_target_cmath.

2011-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/lib/libstdc++.exp (check_v3_target_c99_math): Rename
to check_v3_target_cmath.
* testsuite/lib/dg-options.exp (dg-require-c99_math): Rename
to dg-require-cmath.
* testsuite/26_numerics/random/binomial_distribution/
operators/values.cc: Adjust.

From-SVN: r171184

13 years agocfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range instead of loop.
Anatoly Sokolov [Sat, 19 Mar 2011 17:33:45 +0000 (20:33 +0300)]
cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range instead of loop.

* cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
instead of loop. Use HARD_REGISTER_NUM_P predicate.
* haifa-sched.c (setup_ref_regs): Ditto.
* caller-save.c (add_used_regs_1): Ditto.
* dse.c (look_for_hardregs): Ditto.
* df-problems.c (df_simulate_one_insn_forwards): Ditto.
* sched-rgn.c (check_live_1): Ditto.

From-SVN: r171183

13 years agore PR libfortran/35667 (HP-UX 10 has broken strtod)
John David Anglin [Sat, 19 Mar 2011 17:25:18 +0000 (17:25 +0000)]
re PR libfortran/35667 (HP-UX 10 has broken strtod)

PR fortran/35667
* io/io.h (convert_infnan): Declare.
* io/read.c (convert_infnan): New.
(read_f): Use convert_infnan to convert INFs and NANs.
* list_read.c (parse_real, read_real): Likewise.

From-SVN: r171182

13 years agore PR libfortran/47439 (Fun with scratch files on Windows MKTEMP only allows for...
Francois-Xavier Coudert [Sat, 19 Mar 2011 14:35:05 +0000 (14:35 +0000)]
re PR libfortran/47439 (Fun with scratch files on Windows  MKTEMP only allows for 26 files)

PR libfortran/47439
* gfortran.dg/scratch_1.f90: Adjust test.

From-SVN: r171180

13 years agore PR libfortran/47439 (Fun with scratch files on Windows MKTEMP only allows for...
Francois-Xavier Coudert [Sat, 19 Mar 2011 12:09:27 +0000 (12:09 +0000)]
re PR libfortran/47439 (Fun with scratch files on Windows  MKTEMP only allows for 26 files)

PR libfortran/47439

* io/unix.c (tempfile): Work around poor mktemp() implementations.

* gfortran.dg/scratch_1.f90: New test.

From-SVN: r171178

13 years agoDaily bump.
GCC Administrator [Sat, 19 Mar 2011 00:18:08 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171177

13 years agoc-decl.c (diagnose_mismatched_decls): Give an error for redefining a typedef with...
Joseph Myers [Fri, 18 Mar 2011 23:26:16 +0000 (23:26 +0000)]
c-decl.c (diagnose_mismatched_decls): Give an error for redefining a typedef with variably modified type.

* c-decl.c (diagnose_mismatched_decls): Give an error for
redefining a typedef with variably modified type.

testsuite:
* gcc.dg/c1x-typedef-1.c: Expect errors for redefinitions of
variably modified typedefs.
* gcc.dg/c1x-typedef-2.c: Remove.

From-SVN: r171172

13 years agoc-decl.c (grokfield): Don't allow typedefs for structures or unions with no tag by...
Joseph Myers [Fri, 18 Mar 2011 21:16:31 +0000 (21:16 +0000)]
c-decl.c (grokfield): Don't allow typedefs for structures or unions with no tag by default.

* c-decl.c (grokfield): Don't allow typedefs for structures or
unions with no tag by default.
* doc/extend.texi (Unnamed Fields): Update.

testsuite:
* gcc.dg/c1x-anon-struct-1.c: Don't test use of typedefs.
* gcc.dg/c1x-anon-struct-3.c: New test.
* gcc.dg/anon-struct-11.c: Update.

From-SVN: r171170

13 years agoi386.md (float<SSEMODEI24:mode><X87MODEF:mode>2): Rewrite using indirect functions.
Uros Bizjak [Fri, 18 Mar 2011 20:54:25 +0000 (21:54 +0100)]
i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2): Rewrite using indirect functions.

* config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
Rewrite using indirect functions.
(lwp_slwpcb): Ditto.
* config/i386/sse.md (avx_vextractf128<mode>): Ditto.
(avx_vinsertf128<mode>): Ditto.

From-SVN: r171169

13 years agotweak fconstexpr-depth docs
Jason Merrill [Fri, 18 Mar 2011 20:27:33 +0000 (16:27 -0400)]
tweak fconstexpr-depth docs

From-SVN: r171168

13 years agoc.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
Jason Merrill [Fri, 18 Mar 2011 20:23:48 +0000 (16:23 -0400)]
c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).

* c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
* c-common.h: Don't declare it here.
* c-common.c: Or define it here.
* c-opts.c (c_common_handle_option): Or set it here.

From-SVN: r171166

13 years agore PR bootstrap/45381 (Bootstrap failure for powerpc-apple-darwin9: error: AltiVec...
Richard Henderson [Fri, 18 Mar 2011 20:20:35 +0000 (13:20 -0700)]
re PR bootstrap/45381 (Bootstrap failure for powerpc-apple-darwin9: error: AltiVec argument passed to unprototyped function)

PR bootstrap/45381
* lex.c [ALTIVEC] (search_line_fast): Require gcc version 4.5.

From-SVN: r171165

13 years agomixed-mode-arith_neg.cc: Rename from mixed-mode_neg.cc
Diego Novillo [Fri, 18 Mar 2011 19:54:32 +0000 (15:54 -0400)]
mixed-mode-arith_neg.cc: Rename from mixed-mode_neg.cc

* mixed-mode-arith_neg.cc: Rename from mixed-mode_neg.cc
* mixed-mode-cmp_neg.cc: Factor out of mixed-mode-arith_neg.cc

From-SVN: r171161

13 years agoconfig.guess: Update to version 2011-02-02
David Edelsohn [Fri, 18 Mar 2011 17:42:07 +0000 (17:42 +0000)]
config.guess: Update to version 2011-02-02

        * config.guess: Update to version 2011-02-02
        * config.sub: Update to version 2011-02-24

From-SVN: r171158

13 years agos390.c (s390_delegitimize_address): Handle GOTOFF unspecs.
Andreas Krebbel [Fri, 18 Mar 2011 17:32:29 +0000 (17:32 +0000)]
s390.c (s390_delegitimize_address): Handle GOTOFF unspecs.

2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
unspecs.

From-SVN: r171157

13 years agos390.c (s390_chunkify_start): Prevent literal pool splitting between a call and its...
Andreas Krebbel [Fri, 18 Mar 2011 17:31:39 +0000 (17:31 +0000)]
s390.c (s390_chunkify_start): Prevent literal pool splitting between a call and its corresponding...

2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_chunkify_start): Prevent literal pool
splitting between a call and its corresponding CALL_ARG_LOCATION
note.

From-SVN: r171156

13 years agore PR rtl-optimization/48170 (ICE: in hoist_code, at gcse.c:4524 with -fgcse --param...
Maxim Kuvyrkov [Fri, 18 Mar 2011 17:12:19 +0000 (17:12 +0000)]
re PR rtl-optimization/48170 (ICE: in hoist_code, at gcse.c:4524 with -fgcse --param max-hoist-depth={0,1})

PR rtl-optimization/48170
* gcse.c (hoist_code): Remove bogus asserts.

From-SVN: r171155

13 years agoira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost computation for prologue...
Jeff Law [Fri, 18 Mar 2011 17:05:27 +0000 (11:05 -0600)]
ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost computation for prologue/epilogue.

* ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
computation for prologue/epilogue.

From-SVN: r171154

13 years ago* Makefile.in (check-consistency): Remove.
Rainer Orth [Fri, 18 Mar 2011 16:58:25 +0000 (16:58 +0000)]
* Makefile.in (check-consistency): Remove.

From-SVN: r171153

13 years agoslp-multitypes-2.c: Replace dg-do run with dg-xfail-run-if.
Rainer Orth [Fri, 18 Mar 2011 16:23:39 +0000 (16:23 +0000)]
slp-multitypes-2.c: Replace dg-do run with dg-xfail-run-if.

* gcc.dg/vect/slp-multitypes-2.c: Replace dg-do run with
dg-xfail-run-if.
Only xfail with gas.

From-SVN: r171152

13 years agore PR debug/48176 (.debug_aranges is no longer emitted)
Jakub Jelinek [Fri, 18 Mar 2011 16:18:05 +0000 (17:18 +0100)]
re PR debug/48176 (.debug_aranges is no longer emitted)

PR debug/48176
* dwarf2out.c (dwarf2out_finish): Call output_aranges even when
arange_table_in_use is 0, but either text_section_used or
cold_text_section_used is true.  Don't call it if
!info_section_emitted.

From-SVN: r171150

13 years agoavr.h (RET_REGISTER, [...]): Remove.
Anatoly Sokolov [Fri, 18 Mar 2011 15:27:10 +0000 (18:27 +0300)]
avr.h (RET_REGISTER, [...]): Remove.

* config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
FUNCTION_VALUE_REGNO_P): Remove.
* config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
Remove.
* config/avr/avr.c (avr_ret_register): Make static inline.
(avr_function_value_regno_p): New function.
(avr_libcall_value): Make static. Add 'func' argument.
(avr_function_value): Make static. Rename 'func' argument to
'fn_decl_or_type', forward it to avr_libcall_value. Call
avr_ret_register function instead of RET_REGISTER macro.
  (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.

From-SVN: r171149

13 years agore PR c++/48162 (447.dealII in SPEC CPU 2006 failed to build)
Jason Merrill [Fri, 18 Mar 2011 15:07:13 +0000 (11:07 -0400)]
re PR c++/48162 (447.dealII in SPEC CPU 2006 failed to build)

PR c++/48162
* semantics.c (finish_call_expr): Allow TARGET_EXPR for now.

From-SVN: r171148

13 years agore PR c++/48118 (g++ sometimes allows copying a volatile class)
Jason Merrill [Fri, 18 Mar 2011 15:07:04 +0000 (11:07 -0400)]
re PR c++/48118 (g++ sometimes allows copying a volatile class)

PR c++/48118
* call.c (build_over_call): Don't skip ck_rvalue.

From-SVN: r171147

13 years agore PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)
Jason Merrill [Fri, 18 Mar 2011 15:06:51 +0000 (11:06 -0400)]
re PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)

PR c++/23372
* gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.

From-SVN: r171146

13 years agore PR c++/35315 (ICE with attribute transparent_union)
Jason Merrill [Fri, 18 Mar 2011 15:06:41 +0000 (11:06 -0400)]
re PR c++/35315 (ICE with attribute transparent_union)

PR c++/35315
* c-common.c (handle_transparent_union_attribute): Don't
make a duplicate type in C++.

From-SVN: r171145

13 years agoinstall.texi (--enable-gold): Remove.
Richard Guenther [Fri, 18 Mar 2011 14:33:45 +0000 (14:33 +0000)]
install.texi (--enable-gold): Remove.

2011-03-18  Richard Guenther  <rguenther@suse.de>

* doc/install.texi (--enable-gold): Remove.
(--with-plugin-ld): Document.
* doc/invoke.texi (-fuse-linker-plugin): Clarify.

From-SVN: r171143

13 years agore PR middle-end/47405 (gcc.dg/torture/20090618-1.c FAILs on IRIX 6.5)
Rainer Orth [Fri, 18 Mar 2011 14:10:35 +0000 (14:10 +0000)]
re PR middle-end/47405 (gcc.dg/torture/20090618-1.c FAILs on IRIX 6.5)

PR middle-end/47405
* gcc.dg/torture/20090618-1.c: Skip on mips-sgi-irix*.

From-SVN: r171140

13 years agore PR middle-end/47790 (optimize_bitfield_assignment_op no longer works in 4.5.x)
Andrew Pinski [Fri, 18 Mar 2011 14:01:41 +0000 (07:01 -0700)]
re PR middle-end/47790 (optimize_bitfield_assignment_op no longer works in 4.5.x)

PR middle-end/47790
* expr.c (optimize_bitfield_assignment_op): Revamp to work
again after expansion changes.

From-SVN: r171139

13 years agocombine.c (try_combine): Do simplification only call of subst() on i2 even when i1...
Chung-Lin Tang [Fri, 18 Mar 2011 13:22:42 +0000 (13:22 +0000)]
combine.c (try_combine): Do simplification only call of subst() on i2 even when i1 is present.

2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>

* combine.c (try_combine): Do simplification only call of
subst() on i2 even when i1 is present. Update comments.

testsuite/
* gcc.target/arm/unsigned-extend-1.c: New.

From-SVN: r171138

13 years ago2011-03-18 Paolo Carlini <paolo.carlini@oracle.com>
Paolo Carlini [Fri, 18 Mar 2011 13:09:29 +0000 (13:09 +0000)]
2011-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

Fixup last ChangeLog entry.

From-SVN: r171137

13 years agosh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
Kaz Kojima [Fri, 18 Mar 2011 12:19:50 +0000 (12:19 +0000)]
sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.

* config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
and UNSPEC_PCREL_SYMOFF.

From-SVN: r171134

13 years agotestsuite_random.h: New.
Paolo Carlini [Fri, 18 Mar 2011 11:48:29 +0000 (11:48 +0000)]
testsuite_random.h: New.

2011-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/util/testsuite_random.h: New.
* testsuite/lib/libstdc++.exp (check_v3_target_c99_math,
dg-require-c99_math): Add.
* testsuite/26_numerics/random/bernoulli_distribution/
operators/values.cc: New.
* testsuite/26_numerics/random/binomial_distribution/
operators/values.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/
operators/values.cc: Likewise.

From-SVN: r171133

13 years agos390.md: Use define_c_enum for the unspec constant definitions.
Andreas Krebbel [Fri, 18 Mar 2011 11:30:26 +0000 (11:30 +0000)]
s390.md: Use define_c_enum for the unspec constant definitions.

2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.md: Use define_c_enum for the unspec constant
definitions.

From-SVN: r171132

13 years agore PR bootstrap/48161 (hppa*-*-* will not bootstrap on 4.6 branch with release checking)
Jakub Jelinek [Fri, 18 Mar 2011 08:35:17 +0000 (09:35 +0100)]
re PR bootstrap/48161 (hppa*-*-* will not bootstrap on 4.6 branch with release checking)

PR bootstrap/48161
* expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.

* gcc.c-torture/compile/pr48161.c: New test.

From-SVN: r171126

13 years agoRevert the last change on cant_combine_insn_p.
H.J. Lu [Fri, 18 Mar 2011 04:02:25 +0000 (04:02 +0000)]
Revert the last change on cant_combine_insn_p.

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/47725
* combine.c (cant_combine_insn_p): Don't check zero/sign
extended hard registers.

From-SVN: r171125

13 years agoCheck zero/sign extended hard registers.
H.J. Lu [Fri, 18 Mar 2011 00:29:15 +0000 (00:29 +0000)]
Check zero/sign extended hard registers.

gcc/

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/47725
* combine.c (cant_combine_insn_p): Check zero/sign extended
hard registers.

gcc/testsuite/

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/47725
* gcc.dg/torture/pr47725.c: New.

From-SVN: r171124

13 years agoDaily bump.
GCC Administrator [Fri, 18 Mar 2011 00:18:53 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171123

13 years agov850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
Anatoly Sokolov [Thu, 17 Mar 2011 22:02:00 +0000 (01:02 +0300)]
v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.

* config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
* config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
* config/v850/v850.c (v850_output_addr_const_extra): Make static.
Change return type to bool.
(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.

From-SVN: r171117

13 years agore PR c++/47504 ([C++0x] some constexpr calculations erroneously overflow when using...
Jason Merrill [Thu, 17 Mar 2011 22:00:47 +0000 (18:00 -0400)]
re PR c++/47504 ([C++0x] some constexpr calculations erroneously overflow when using negative numbers)

PR c++/47504
* semantics.c (cxx_eval_constant_expression) [NOP_EXPR]: Don't let
the conversion set TREE_OVERFLOW.

From-SVN: r171116

13 years agore PR debug/48163 (ICEs for cris-elf, like gcc.c-torture/compile/calls.c gcc.c-tortur...
Jakub Jelinek [Thu, 17 Mar 2011 20:34:59 +0000 (21:34 +0100)]
re PR debug/48163 (ICEs for cris-elf, like gcc.c-torture/compile/calls.c gcc.c-torture/execute/complex-1.c)

PR debug/48163
* var-tracking.c (prepare_call_arguments): If CALL target
is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
pc instead of looking it up using cselib_lookup and use
Pmode for it if x has VOIDmode.
* dwarf2out.c (gen_subprogram_die): If also both first and
second CONCAT arguments are VOIDmode, use mode of CONCAT itself.

From-SVN: r171114

13 years agore PR debug/48163 (ICEs for cris-elf, like gcc.c-torture/compile/calls.c gcc.c-tortur...
Jakub Jelinek [Thu, 17 Mar 2011 20:33:54 +0000 (21:33 +0100)]
re PR debug/48163 (ICEs for cris-elf, like gcc.c-torture/compile/calls.c gcc.c-torture/execute/complex-1.c)

PR debug/48163
* function.c (assign_parms): For data.passed_pointer parms
use MEM of data.entry_parm instead of data.entry_parm itself
as DECL_INCOMING_RTL.
* dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
also when passed and declared mode is the same, DECL_RTL
is a MEM with pseudo as address and DECL_INCOMING_RTL is
a MEM too.

From-SVN: r171113

13 years agore PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from...
Jeff Law [Thu, 17 Mar 2011 20:08:01 +0000 (14:08 -0600)]
re PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from the TOC))

PR rtl-optimization/37273
* ira-costs.c (scan_one_insn): Detect constants living in memory and
handle them like argument loads from stack slots.  Do not double
count memory for memory constants and argument loads from stack slots.

From-SVN: r171111

13 years ago* gcc.pot: Regenerate.
Joseph Myers [Thu, 17 Mar 2011 19:57:48 +0000 (19:57 +0000)]
* gcc.pot: Regenerate.

From-SVN: r171109

13 years agoCheck SUBREG in prepare_call_arguments.
H.J. Lu [Thu, 17 Mar 2011 19:51:03 +0000 (19:51 +0000)]
Check SUBREG in prepare_call_arguments.

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR debug/48160
* var-tracking.c (prepare_call_arguments): Check SUBREG.

From-SVN: r171108

13 years agoAdd Save to -mavx and -mfma.
H.J. Lu [Thu, 17 Mar 2011 19:23:34 +0000 (19:23 +0000)]
Add Save to -mavx and -mfma.

2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR target/48171
* config/i386/i386.opt: Add Save to -mavx and -mfma.

From-SVN: r171107

13 years agodecl.c (elaborate_expression_1): Try harder to find out whether the expression is...
Eric Botcazou [Thu, 17 Mar 2011 17:12:21 +0000 (17:12 +0000)]
decl.c (elaborate_expression_1): Try harder to find out whether the expression is read-only.

* gcc-interface/decl.c (elaborate_expression_1): Try harder to find
out whether the expression is read-only.  Short-circuit placeholder
case and rename a couple of local variables.

From-SVN: r171106

13 years agoCore 1212
Jason Merrill [Thu, 17 Mar 2011 16:20:16 +0000 (12:20 -0400)]
Core 1212

Core 1212
* semantics.c (finish_decltype_type): Return T&& for xvalue.
* typeck.c (unlowered_expr_type): Preserve cv-quals.

From-SVN: r171104

13 years agore PR c++/48166 (ICE on static member function with invalid type qualifier)
Jason Merrill [Thu, 17 Mar 2011 16:02:08 +0000 (12:02 -0400)]
re PR c++/48166 (ICE on static member function with invalid type qualifier)

PR c++/48166
* decl.c (revert_static_member_fn): Strip function-cv-quals.

From-SVN: r171103