Alexandre Oliva
481e0a49bb
re PR middle-end/31127 (ICE in cse_find_path, at cse.c:5930)
...
gcc/ChangeLog:
PR middle-end/31127
* cse.c (cse_find_path): Do not bail out if a basic block that
we already visited now becomes part of a path that starts at a
different basic block. Just disallow this, to make sure we
visit each basic block at most once.
gcc/testsuite/ChangeLog:
PR middle-end/31127
* gcc.dg/pr31127.c: New.
From-SVN: r122900
2007-03-14 01:45:39 +00:00
Jan Hubicka
4cdb798f6c
ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes...
...
* ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
when profile esitmate is present, calls with very low frequency are
cold.
From-SVN: r122898
2007-03-14 01:26:00 +00:00
Zdenek Dvorak
b3ce5b6ed7
re PR tree-optimization/30730 (-Wunsafe-loop-optimizations gives too many warnings)
...
PR tree-optimization/30730
PR tree-optimization/26900
* tree-ssa-loop-niter.c: Include gmp.h.
(bounds): New type.
(mpz_set_double_int, get_type_bounds, mpz_to_double_int,
split_to_var_and_offset, determine_value_range,
bound_difference_of_offsetted_base, refine_bounds_using_guard,
bound_difference, bounds_add, bounds_negate,
number_of_iterations_ne_max, dump_affine_iv): New functions.
(number_of_iterations_ne, number_of_iterations_lt_to_ne,
assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
difference of initial and final value of control iv to validate
results.
(number_of_iterations_cond): Add loop parameter. Determine bounds
on the difference of the extremes of the control iv. Add dumps.
(expand_simple_operations): Handle phi nodes.
(simplify_using_initial_conditions): Do not record used conditions.
(number_of_iterations_exit): Pass loop to number_of_iterations_cond.
Do not set additional_info.
(implies_nonnegative_p, implies_ge_p): Removed.
(derive_constant_upper_bound): Do not use parameter `additional'.
(record_estimate): Parameter `additional' removed. Parameter
`i_bound' added. Do not call derive_constant_upper_bound.
(record_nonwrapping_iv): Use derive_constant_upper_bound to
bound the number of iterations estimate.
(estimate_numbers_of_iterations_loop): Pass the estimate from
the number of iterations analysis to record_estimate.
* tree.h (multiple_of_p): Declare.
* tree-scalar-evolution.c (expression_expensive_p): Removed.
(scev_const_prop): Do not check expression_expensive_p.
* fold-const.c (multiple_of_p): Exported.
* double-int.c (double_int_mask): Exported.
* double-int.h (double_int_mask): Declare.
* tree-flow.h (struct tree_niter_desc): Removed additional_info
field. Added max field.
* gcc.dg/tree-ssa/loop-26.c: New test.
From-SVN: r122896
2007-03-14 00:38:34 +00:00
GCC Administrator
ec34c4e4c0
Daily bump.
...
From-SVN: r122894
2007-03-14 00:17:13 +00:00
Mark Mitchell
4844b16769
re PR bootstrap/30899 (build failure with --enable-generated-files-in-srcdir)
...
PR bootstrap/30899
* Make-lang.in (doc/g++.1): Use $< to specify the location from
which to copy.
From-SVN: r122890
2007-03-13 23:51:07 +00:00
David Taylor
3dfe046fa7
re PR driver/12448 (-MT / -MQ don't behave as documented.)
...
2007-03-13 David Taylor <taylor@candd.org>
PR driver/12448:
* gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
default -MQ.
From-SVN: r122889
2007-03-13 23:50:42 +00:00
John David Anglin
dc92acbc66
re PR target/31123 (FAIL: gcc.c-torture/execute/builtin-bitops-1.c compilation, -O3 ...)
...
PR target/31123
Fix ChangeLog entry.
From-SVN: r122887
2007-03-13 23:23:54 +00:00
John David Anglin
de94a581a9
pa.md (vdepi_ior): Don't allow zero length deposit.
...
* pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
two unamed patterns.
From-SVN: r122885
2007-03-13 23:09:08 +00:00
Uros Bizjak
5be6cb59b3
i386.opt (mcx16, msahf): New options.
...
* config/i386/i386.opt (mcx16, msahf): New options.
* config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
(ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
* config/i386/driver-i386.c (bit_LAHF_LM): New define.
(host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
Output -mcx16 and -msahf options when corresponding bit is set.
* doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
and -msahf options.
testsuite/ChangeLog
* testsuite/gcc.target/i386/cmpxchg16b-1.c: New test.
From-SVN: r122884
2007-03-13 22:18:33 +01:00
Paolo Carlini
d265b0b1c2
tuple: Only include <utility> for std::pair, and forward declare reference_wrapper...
...
2007-03-13 Paolo Carlini <pcarlini@suse.de>
* include/tr1/tuple: Only include <utility> for std::pair, and
forward declare reference_wrapper; formatting fixes.
* include/tr1/ref_fwd.h: Remove.
* include/tr1/tuple_defs.h: Remove, unused.
* include/Makefile.am: Update.
* include/Makefile.in: Regenerate.
* testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
Include <tr1/functional> too.
* include/tr1/tuple: Define tuple_size<tuple<_Elements...> >::value.
From-SVN: r122883
2007-03-13 20:02:59 +00:00
Keith Seitz
bde6c7a990
java-interp.h (_Jv_InterpClass): Declare friend function _Jv_GetInterpClassSourceFile.
...
* include/java-interp.h (_Jv_InterpClass): Declare
friend function _Jv_GetInterpClassSourceFile.
* java/lang/Class.h (Class): Likewise.
* java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
New function.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(getSourceFile): Implement.
From-SVN: r122882
2007-03-13 19:27:13 +00:00
Alexandre Oliva
03943c05c1
configure.ac: Test for assembler tolerance to # 0 "".
...
* configure.ac: Test for assembler tolerance to # 0 "".
* configure, config.in: Rebuilt.
* final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
From-SVN: r122879
2007-03-13 07:19:14 +00:00
Geoffrey Keating
98312a9bed
* doc/invoke.texi (Spec Files): Update for '%{,' spec.
...
From-SVN: r122878
2007-03-13 07:15:51 +00:00
Geoffrey Keating
49522de2d2
darwin-fallback.c: Compile file only on powerpc.
...
* config/rs6000/darwin-fallback.c: Compile file only on powerpc.
(handle_syscall): Handle direct system calls.
* config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
From-SVN: r122877
2007-03-13 07:13:16 +00:00
Thomas Fitzsimmons
442a795bc6
Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
...
2007-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
* Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
* classpath/configure.ac: Add --with-ecj-jar configure option.
* classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
field.
* classpath/INSTALL: Document --with-ecj-jar configure option and
ecj jar requirement for com.sun.tools.javac support.
* classpath/tools/Makefile.am: Build decendents of com and sun
directories.
* configure.ac: Substitute ECJ_JAR in stub Configuration.java.
* gnu/classpath/Configuration.java,
gnu/classpath/natConfiguration.cc (ecj): New method.
(ECJ_JAR): New field.
* scripts/makemake.tcl (scan_packages): Add com directory.
* sources.am (property_files): Add
classpath/resource/sun/rmi/rmic/messages.properties and
classpath/resource/com/sun/tools/javac/messages.properties.
* classpath/resource/com, classpath/resource/com/sun,
classpath/resource/com/sun/tools,
classpath/resource/com/sun/tools/javac, classpath/resource/sun,
classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
classpath/tools/classes/com, classpath/tools/classes/com/sun,
classpath/tools/classes/com/sun/javadoc,
classpath/tools/classes/com/sun/tools,
classpath/tools/classes/com/sun/tools/doclets,
classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
classpath/tools/com/sun/tools,
classpath/tools/com/sun/tools/doclets,
classpath/tools/com/sun/tools/javac, classpath/tools/sun,
classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
directories.
* classpath/resource/com/sun/tools/javac/messages.properties,
classpath/resource/sun/rmi/rmic/messages.properties,
classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
classpath/tools/classes/com/sun/javadoc/Doc.class,
classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
classpath/tools/classes/com/sun/javadoc/Doclet.class,
classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
classpath/tools/classes/com/sun/javadoc/ParamTag.class,
classpath/tools/classes/com/sun/javadoc/Parameter.class,
classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
classpath/tools/classes/com/sun/javadoc/RootDoc.class,
classpath/tools/classes/com/sun/javadoc/SeeTag.class,
classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
classpath/tools/classes/com/sun/javadoc/Tag.class,
classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
classpath/tools/classes/com/sun/javadoc/Type.class,
classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
classpath/tools/classes/sun/rmi/rmic/Main.class,
classpath/tools/classes/sun/rmi/rmic/Messages.class,
classpath/tools/com/sun/javadoc/ClassDoc.java,
classpath/tools/com/sun/javadoc/ConstructorDoc.java,
classpath/tools/com/sun/javadoc/Doc.java,
classpath/tools/com/sun/javadoc/DocErrorReporter.java,
classpath/tools/com/sun/javadoc/Doclet.java,
classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
classpath/tools/com/sun/javadoc/FieldDoc.java,
classpath/tools/com/sun/javadoc/MemberDoc.java,
classpath/tools/com/sun/javadoc/MethodDoc.java,
classpath/tools/com/sun/javadoc/PackageDoc.java,
classpath/tools/com/sun/javadoc/ParamTag.java,
classpath/tools/com/sun/javadoc/Parameter.java,
classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
classpath/tools/com/sun/javadoc/RootDoc.java,
classpath/tools/com/sun/javadoc/SeeTag.java,
classpath/tools/com/sun/javadoc/SerialFieldTag.java,
classpath/tools/com/sun/javadoc/SourcePosition.java,
classpath/tools/com/sun/javadoc/Tag.java,
classpath/tools/com/sun/javadoc/ThrowsTag.java,
classpath/tools/com/sun/javadoc/Type.java,
classpath/tools/com/sun/javadoc/TypeVariable.java,
classpath/tools/com/sun/tools/doclets/Taglet.java,
classpath/tools/com/sun/tools/javac/Main.java,
classpath/tools/com/sun/tools/javac/Messages.java,
classpath/tools/sun/rmi/rmic/Main.java,
classpath/tools/sun/rmi/rmic/Messages.java: New files.
* Makefile.in, classpath/Makefile.in, classpath/configure,
classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
classpath/examples/Makefile.in, classpath/external/Makefile.in,
classpath/external/jsr166/Makefile.in,
classpath/external/relaxngDatatype/Makefile.in,
classpath/external/sax/Makefile.in,
classpath/external/w3c_dom/Makefile.in,
classpath/include/Makefile.in, classpath/include/config.h.in,
classpath/lib/Makefile.in,
classpath/lib/gnu/classpath/Configuration.class,
classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
classpath/native/jawt/Makefile.in,
classpath/native/jni/Makefile.in,
classpath/native/jni/classpath/Makefile.in,
classpath/native/jni/gconf-peer/Makefile.in,
classpath/native/jni/gtk-peer/Makefile.in,
classpath/native/jni/java-io/Makefile.in,
classpath/native/jni/java-lang/Makefile.in,
classpath/native/jni/java-net/Makefile.in,
classpath/native/jni/java-nio/Makefile.in,
classpath/native/jni/java-util/Makefile.in,
classpath/native/jni/midi-alsa/Makefile.in,
classpath/native/jni/midi-dssi/Makefile.in,
classpath/native/jni/native-lib/Makefile.in,
classpath/native/jni/qt-peer/Makefile.in,
classpath/native/jni/xmlj/Makefile.in,
classpath/native/plugin/Makefile.in,
classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
classpath/tools/Makefile.in, configure,
gnu/classpath/Configuration.h: Regenerate.
From-SVN: r122876
2007-03-13 05:48:03 +00:00
GCC Administrator
a10da70c66
Daily bump.
...
From-SVN: r122874
2007-03-13 00:17:33 +00:00
Seongbae Park
2b8a9b3de0
c90-vla-1.c: Reflect the change of the error message.
...
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* gcc.dg/c90-vla-1.c: Reflect the change of the error message.
* gcc.dg/c99-vla-1.c: Likewise.
* g++.dg/ext/vla1.C: Likewise
From-SVN: r122871
2007-03-12 22:37:51 +00:00
Brooks Moses
7d07e4ea35
invoke.texi: Fix cpp.info cross-reference.
...
* doc/invoke.texi: Fix cpp.info cross-reference.
* doc/passes.texi: Fix gcc.info cross-reference.
From-SVN: r122869
2007-03-12 15:05:07 -07:00
Stephen M. Webb
a21856f76b
regex: Add "boilerplate" implementations.
...
2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com>
* include/tr1/regex: Add "boilerplate" implementations.
* testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/
translate_nocase.cc: New.
* testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/
ctor.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex_traits/char/
translate_nocase.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex_traits/char/
ctor.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_ecma.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
default.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_grep.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_extended.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_basic.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_awk.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_egrep.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
string_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
cstring_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
string_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
cstring_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
default.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
default.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/match_results/ctors/char/
default.cc: Likewise.
From-SVN: r122867
2007-03-12 21:57:51 +00:00
Zdenek Dvorak
fbb0d4f878
re PR middle-end/30835 (ICE with -O2 -ftree-loop-linear)
...
PR tree-optimization/30835
* lambda-code.c (can_convert_to_perfect_nest): Check whether
bb_for_stmt is not NULL before accessing it.
From-SVN: r122866
2007-03-12 21:56:12 +00:00
Joseph Myers
dc5bbad332
gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for some multilibs.
...
* gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
some multilibs.
From-SVN: r122865
2007-03-12 21:32:41 +00:00
Kyle Galloway
814bcb146b
jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.
...
2007-03-12 Kyle Galloway <kgallowa@redhat.com>
* jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
as a sigle slot.
From-SVN: r122864
2007-03-12 20:15:25 +00:00
Kyle Galloway
b389f63b05
jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.
...
2007-03-12 Kyle Galloway <kgallowa@redhat.com>
* jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
as a sigle slot.
From-SVN: r122863
2007-03-12 20:12:47 +00:00
Brooks Moses
80ca80e9cc
re PR bootstrap/30635 (--enable-stage1-langauges configure option is not documented.)
...
PR 30635
* doc/install.texi: Document --enable-stage1-languages
From-SVN: r122861
2007-03-12 13:03:33 -07:00
Marco Trudel
ff4b07ef6e
natString.cc (getBytes (jstring enc)): Fixed the loop for multiple cycles, Code cleanup
...
2007-03-12 Marco Trudel <mtrudel@gmx.ch>
* java/lang/natString.cc (getBytes (jstring enc)):
Fixed the loop for multiple cycles, Code cleanup
From-SVN: r122859
2007-03-12 19:48:32 +00:00
Steven Bosscher
dacb3cda32
tree-pass.h (pass_into_cfg_layout_mode, [...]): Declare.
...
* tree-pass.h (pass_into_cfg_layout_mode,
pass_outof_cfg_layout_mode): Declare.
* cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
* passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
(pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
From-SVN: r122858
2007-03-12 19:38:06 +00:00
Brooks Moses
6da4bc4e6e
Fixed erroneous ChangeLog and gcc/ChangeLog entries.
...
From-SVN: r122856
2007-03-12 12:00:28 -07:00
Brooks Moses
07f1ac6d75
Makefile.in: Add dummy "install-info" target.
...
fixincludes/
* Makefile.in: Add dummy "install-info" target.
<toplevel>
* Makefile.def (fixincludes): Remove unneeded "missing" lines.
* Makefile.in: Regenerate
From-SVN: r122855
2007-03-12 11:58:12 -07:00
Seongbae Park
50d50fc7ee
invoke.texi (Wvla): New warning.
...
ChangeLog:
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* gcc/doc/invoke.texi (Wvla): New warning.
gcc/ChangeLog:
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* c-decl.c (warn_variable_length_array): New function.
Refactored from grokdeclarator to handle warn_vla
and handle unnamed array case.
(grokdeclarator): Refactored VLA warning case.
* c.opt (Wvla): New flag.
gcc/cp/ChangeLog:
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* decl.c (compute_array_index_type): New warning flag warn_vla.
gcc/testsuite/ChangeLog:
2007-03-12 Seongbae Park <seongbae.park@gmail.com>
* gcc.dg/wvla-1.c: New test
* gcc.dg/wvla-2.c: New test
* gcc.dg/wvla-3.c: New test
* gcc.dg/wvla-4.c: New test
* gcc.dg/wvla-5.c: New test
* gcc.dg/wvla-6.c: New test
* gcc.dg/wvla-7.c: New test
* g++.dg/warn/Wvla-1.C: New test
* g++.dg/warn/Wvla-2.C: New test
* g++.dg/warn/Wvla-3.C: New test
From-SVN: r122851
2007-03-12 18:31:39 +00:00
Richard Henderson
ae0698035b
alpha.c (alpha_elf_section_type_flags): New.
...
* config/alpha/alpha.c (alpha_elf_section_type_flags): New.
(TARGET_SECTION_TYPE_FLAGS): New.
From-SVN: r122850
2007-03-12 11:15:51 -07:00
Richard Henderson
24c78b3ac8
darwin.c (machopic_reloc_rw_mask): New.
...
* config/darwin.c (machopic_reloc_rw_mask): New.
* config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
* config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
From-SVN: r122846
2007-03-12 10:00:11 -07:00
Mark Mitchell
3026f2dfd9
re PR c++/30108 (internal compiler error: in make_decl_rtl, at varasm.c:890)
...
PR c++/30108
* call.c (convert_default_arg): Copy non-constant arguments.
PR c++/30108
* g++.dg/other/default6.C: New test.
From-SVN: r122844
2007-03-12 16:24:18 +00:00
Mark Mitchell
6d4817e374
cppdefault.c (cpp_EXEC_PREFIX): New variable.
...
* cppdefault.c (cpp_EXEC_PREFIX): New variable.
* cppdefault.h (cpp_PREFIX): Document.
(cpp_PREFIX_len): Likewise.
(cpp_EXEC_PREFIX): New variable.
* Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
* c-incpath.c (add_standard_paths): Correct logic for relocating
paths within prefix.
From-SVN: r122843
2007-03-12 15:59:06 +00:00
Paolo Carlini
91b0b94a04
stl_algo.h (swap_ranges): Move...
...
2007-03-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h (swap_ranges): Move...
* include/bits/stl_algobase.h: ... here.
* include/tr1/array: Trim includes, stl_algobase.h is enough.
From-SVN: r122840
2007-03-12 13:59:50 +00:00
Uros Bizjak
d8e3118a8b
i386.md (fixuns_trunc<mode>hi2): Implement from fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF mode macro.
...
* config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
mode macro.
(fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
fix_truncdfdi_sse using SSEMODEF mode macro.
(fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
fix_truncdfsi_sse using SSEMODEF mode macro.
(fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
(fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
From-SVN: r122839
2007-03-12 12:32:13 +01:00
Richard Sandiford
56fca24ad8
target-supports.exp (check_profiling_available): Return false for VxWorks.
...
gcc/testsuite/
* lib/target-supports.exp (check_profiling_available): Return false
for VxWorks.
(check_effective_target_vxworks_kernel): New procedure.
* gcc.dg/20040813-1.c: Extend list of stabless targets to include
VxWorks.
* gcc.dg/builtins-config.h: Do not define HAVE_C99_RUNTIME on VxWorks.
* gcc.dg/intmax_t-1.c: Extend the list of targets without inttypes.h
to include VxWorks.
* gcc.dg/vxworks/initpri2.c: Require vxworks_kernel.
From-SVN: r122838
2007-03-12 10:44:52 +00:00
Richard Sandiford
8906bbc09c
config.gcc (i[4567]86-wrs-vxworks, [...]): Add elfos.h to tm_file.
...
gcc/
* config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
elfos.h to tm_file.
From-SVN: r122837
2007-03-12 09:58:50 +00:00
Richard Sandiford
6477126a2a
981006-1.c: Use the non-PIC options if PIC is not supported.
...
gcc/testsuite/
* gcc.c-torture/compile/981006-1.c: Use the non-PIC options if
PIC is not supported.
* gcc.dg/20020103-1.c: Add dg-require-effective-target fpic.
* gcc.dg/20020426-2.c: Likewise.
* gcc.dg/pr28243.c: Likewise.
* gcc.dg/visibility-11.c: Likewise.
* gcc.dg/tls/opt-9.c: Likewise.
* gcc.dg/tls/opt-10.c: Likewise.
* gcc.dg/tls/pic-1.c: Likewise.
* gcc.dg/tls/struct-1.c: Likewise.
* gcc.target/i386/20000807-1.c: Likewise.
* gcc.target/i386/20000904-1.c: Likewise.
* gcc.target/i386/20011119-1.c: Likewise.
* gcc.target/i386/990213-2.c: Likewise.
* gcc.target/i386/990214-1.c: Likewise.
* gcc.target/i386/compress-float-387-pic.c: Likewise.
* gcc.target/i386/compress-float-sse-pic.c: Likewise.
* gcc.target/i386/pic-1.c: Likewise.
* gcc.target/i386/pr21518.c: Likewise.
* gcc.target/i386/pr23098.c: Likewise.
* gcc.target/i386/pr23943.c: Likewise.
From-SVN: r122836
2007-03-12 08:59:07 +00:00
Olga Golovanevsky
d4e702949e
ipa-type-escape improvements
...
From-SVN: r122835
2007-03-12 08:44:48 +00:00
Brooks Moses
e8bb459742
* Makefile.in (install-info): New dummy target.
...
From-SVN: r122832
2007-03-11 23:13:30 -07:00
Mark Mitchell
3c38f0ff2e
re PR c++/30328 (bit-field: unassemblable assembly code)
...
PR c++/30328
* semantics.c (finish_typeof): Use unlowered_expr_type.
PR c++/30328
* g++.dg/ext/bitfield1.C: New test.
PR c++/31038
* parser.c (cp_parser_postfix_expression): Disallow compound
literals in constant expressions.
PR c++/31038
* g++.dg/template/complit2.C: New test.
From-SVN: r122829
2007-03-12 00:26:39 +00:00
GCC Administrator
efb84847df
Daily bump.
...
From-SVN: r122827
2007-03-12 00:17:17 +00:00
Paul Thomas
f68abf4a59
re PR fortran/30883 ([4.1/4.2 only] procedure with dummy procedure f1 rejected with implicit none)
...
2007-03-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30883
* parse.c (parse_interface): Use the default types from the
formal namespace if a function or its result do not have a type
after parsing the specification statements.
2007-03-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30883
* gfortran.dg/interface_11.f90: New test.
From-SVN: r122822
2007-03-11 16:17:32 +00:00
Richard Guenther
13338552e2
re PR middle-end/31115 (libstdc++ 22_locale/num_get/get/char/2.cc 27_io/basic_ostream/inserters_arithmetic/char/6.cc)
...
2007-03-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/31115
* tree-vrp.c (extract_range_from_binary_expr): Make sure
the shift count is positive and non-anti-range for RSHIFT_EXPR.
A shift count of zero is not special as with *_DIV_EXPR.
(vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
direction.
* gcc.dg/torture/pr31115.c: New testcase.
From-SVN: r122821
2007-03-11 16:08:35 +00:00
Ian Lance Taylor
d7419dec45
tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and the *_DIV_EXPR codes correctly with overflow infinities.
...
* tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
the *_DIV_EXPR codes correctly with overflow infinities.
From-SVN: r122820
2007-03-11 15:53:30 +00:00
Paolo Carlini
bd91a8c4ed
PR libstdc++/28080 (final)
...
2007-03-11 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/28080 (final)
* include/std/iosfwd: Do not include <bits/c++io.h>.
* config/io/basic_file_stdio.h: Do it here.
* include/ext/stdio_sync_filebuf.h: Likewise.
* include/ext/rope: Include <bits/gthr.h> unconditionally.
* include/std/fstream: Do not include <bits/gthr.h>.
* include/std/ios: Do not include <cstdio>.
* include/bits/ios_base.h: Do it here.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error
line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
From-SVN: r122818
2007-03-11 12:03:34 +00:00
Ira Rosen
e838422b9e
tree-data-ref.c (analyze_offset): Add a return value (bool) to indicate success/failure of the analysis.
...
* tree-data-ref.c (analyze_offset): Add a return value (bool) to
indicate success/failure of the analysis. Add negation to subtrahend
in case of subtraction. Fail if both operands contain constants.
(create_data_ref): Fail if analyze_offset fails.
From-SVN: r122817
2007-03-11 11:13:34 +00:00
Uros Bizjak
7b8cd03d69
* Fix a typo in my previous commit.
...
From-SVN: r122816
2007-03-11 11:36:36 +01:00
Uros Bizjak
acaaf0c621
i386.md (frndintxf2): Rename to ...
...
* config/i386/i386.md (frndintxf2): Rename to ...
(rintxf2): ... this. Remove expander having same name.
(rintsf2, rintdf2): Implement using SSEMODEF macro.
(roundsf2, rounddf2): Ditto.
(lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
(lround<mode>di2, lround<mode>si2): Ditto.
From-SVN: r122815
2007-03-11 11:27:30 +01:00
Mark Mitchell
f9aa54d3c5
re PR c++/30274 (bool bit-field: wrong increment and decremenet)
...
PR c++/30274
* cp-tree.h (unlowered_expr_type): New function.
* typeck.c (is_bitfield_expr_with_lowered_type): Handle
COMPOUND_EXPR, MODIFY_EXPR, and SAVE_EXPR.
(unlowered_expr_type): New function.
(build_unary_op): Disallow predecrements of bool bitfields.
* call.c (build_conditional_expr): Use unlowered_expr_type.
* pt.c (type_unification_real): Likewise.
PR c++/30274
* g++.dg/expr/bitfield3.C: New test.
* g++.dg/expr/bitfield4.C: Likewise.
* g++.dg/expr/bitfield5.C: Likewise.
* g++.dg/expr/bitfield6.C: Likewise.
From-SVN: r122813
2007-03-11 03:07:59 +00:00