Anatoly Sokolov
e8d0d6d2a8
re PR target/26504 (compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2)
...
PR target/26504
* config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
From-SVN: r116950
2006-09-15 01:11:33 +04:00
Tom Tromey
975147a4a4
re PR boehm-gc/29068 (Bootstrap fails building libjava on SPARC/Solaris)
...
libjava
PR boehm-gc/29068:
* boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
(_Jv_GCDetachThread): Likewise.
boehm-gc
PR boehm-gc/29068.
* misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on
Solaris.
From-SVN: r116948
2006-09-14 18:06:04 +00:00
Olivier Hainque
351272b977
in_out_parameter.adb: New test.
...
* gnat.dg/in_out_parameter.adb: New test.
From-SVN: r116945
2006-09-14 14:24:22 +00:00
Arnaud Charlet
fc87142b85
Update list of tests requiring stack checking Add handling of tests using Ada...
...
Update list of tests requiring stack checking
Add handling of tests using Ada 95 semantics and thus requiring -gnat95 switch
From-SVN: r116944
2006-09-14 12:12:03 +02:00
Andreas Schwab
f7ad6748b9
* posix-threads.cc: Include "posix.h".
...
From-SVN: r116943
2006-09-14 09:55:47 +00:00
Benjamin Kosnik
2e362c7474
atomicity.h: Move to...
...
2006-09-13 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/atomicity.h: Move to...
* include/ext/atomicity.h: ...here.
* include/bits/concurrence.h: Move to...
* include/ext/concurrence.h: ...here.
* include/Makefile.am (ext_headers): Additions.
(bits_headers): Subtractions.
* include/Makefile.in: Regenerate.
* include/ext/bitmap_allocator.h (_Mutex), __threads_enabled,
_Lock, _Auto_Lock): Subsume into...
* include/bits/concurrence.h (__mutex): ..this. Error check
locking and unlocking.
(lock): Uglify to...
(__scoped_lock): Use __mutex.
(__glibcxx_mutex_define_initialized): Remove.
(__glibcxx_mutex_type): Remove.
* include/tr1/boost_shared_ptr.h: Formating tweaks, adjustments.
(_Lock_policy): Move from here...
* include/ext/concurrence.h: ... to here.
(__shared_ptr_default_lock_mode): To __default_lock_policy.
(_S_lockfree): To _S_atomic.
Document.
* libsupc++/guard.cc (static_mutex): Subsume into and fixup for...
* include/ext/concurrence.h (__recursive_mutex): ...this. Error
check locking and unlocking.
* libsupc++/eh_alloc.cc: Use __scoped_lock.
* config/os/aix/atomicity.h: Fixups for include paths, mutex to
__scoped_mutex change, removal of locking defines.
* config/os/irix/atomicity.h: Same.
* config/cpu/cris/atomicity.h: Same.
* config/cpu/m68k/atomicity.h: Same.
* config/cpu/hppa/atomicity.h: Same.
* config/cpu/mips/atomicity.h: Same.
* config/cpu/sparc/atomicity.h: Same.
* config/cpu/i386/atomicity.h: Same.
* config/cpu/i486/atomicity.h: Same.
* config/cpu/sh/atomicity.h: Same.
* config/cpu/generic/atomicity_mutex/atomicity.h: Same.
* include/ext/pool_allocator.h: Same.
* include/ext/bitmap_allocator.h: Same.
* include/ext/rc_string_base.h: Same.
* include/ext/mt_allocator.h: Same.
* include/bits/locale_classes.h: Same.
* include/bits/basic_string.h: Same.
* include/bits/ios_base.h: Same.
* include/tr1/memory: Same.
* src/pool_allocator.cc: Same.
* src/mt_allocator.cc: Same.
* src/locale_init.cc: Same.
* src/ios.cc: Same.
* src/locale.cc: Same.
* src/bitmap_allocator.cc: Same.
* src/ios_init.cc: Same.
* src/debug.cc: Same.
From-SVN: r116942
2006-09-14 09:48:15 +00:00
Geoffrey Keating
06fcf75439
posix.cc (_Jv_platform_nanotime): Return nanoseconds, not microseconds; use gettimeofday when available.
...
* posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
microseconds; use gettimeofday when available.
* posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
timeout calculation.
* testsuite/libjava.lang/Thread_Sleep_2.java: New.
* testsuite/libjava.lang/Thread_Sleep_2.out: New.
* testsuite/libjava.lang/Thread_Sleep_2.xfail: New.
From-SVN: r116941
2006-09-14 01:17:31 +00:00
Aldy Hernandez
f5efb27f74
tree-ssa.texi (Jumps): RESULT_DECL can also be an operand of a RETURN_EXPR
...
* doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
of a RETURN_EXPR
From-SVN: r116940
2006-09-14 01:17:15 +00:00
Andrew Pinski
3c3f1a6f39
re PR debug/28980 (ICE in loc_descriptor_from_tree_1 with -g)
...
2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/28980
* dwarf2out.c (loc_descriptor_from_tree_1): Handle
FUNCTION_DECL.
2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/28980
* gcc.c-torture/compile/debugvlafunction-1.c: New test.
From-SVN: r116939
2006-09-13 17:37:14 -07:00
GCC Administrator
9dc7283180
Daily bump.
...
From-SVN: r116937
2006-09-14 00:17:28 +00:00
Eric Botcazou
2a0e366b51
re PR other/23541 (All error messages produce segfault)
...
PR other/23541
PR other/26507
Backport from gettext repository:
2003-09-04 Bruno Haible <bruno@clisp.org>
* dgettext.c: Include <locale.h> after gettextP.h, not before. This
ensures that libintl_dcgettext is correctly declared on Solaris.
(Needed because Solaris <locale.h> includes libintl.h.)
* dngettext.c: Likewise, for the libintl_dcngettext declaration.
From-SVN: r116931
2006-09-13 21:23:28 +00:00
Olivier Hainque
6f2789da07
re PR ada/29025 (procedure doesn't modify In Out parameter)
...
PR ada/29025
* trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
of a SAVE_EXPR, just make the operand addressable/not-readonly and
let the common gimplifier code make and propagate a temporary copy.
(call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
out/in-out actuals and defer setting the addressable/readonly bits
to the gimplifier.
From-SVN: r116929
2006-09-13 18:48:21 +00:00
Eric Botcazou
efaa616eeb
re PR ada/28591 (ICE in splice_child_die, at dwarf2out.c:5513)
...
PR ada/28591
* decl.c (components_to_record): Defer emitting debug info for the
record type associated with the variant until after we are sure to
actually use it.
From-SVN: r116928
2006-09-13 18:40:26 +00:00
Eric Botcazou
2655f1c6dd
re PR ada/21952 (Annoying "attribute directive ignored" warnings)
...
PR ada/21952
* gigi.h (gnat_internal_attribute_table): Declare.
* misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
* utils.c (gnat_internal_attribute_table): New global variable.
(builtin_function): Always call decl_attributes on the builtin.
(handle_const_attribute): New static function.
(handle_nothrow_attribute): Likewise.
From-SVN: r116926
2006-09-13 18:27:24 +00:00
Andreas Krebbel
f66fd328ce
basic-block.h (bb_has_eh_pred): Fix comment.
...
* basic-block.h (bb_has_eh_pred): Fix comment.
From-SVN: r116922
2006-09-13 13:00:57 +00:00
Wolfgang Gellerich
95cb77e64f
trans-expr.c (gfc_add_interface_mapping): For characters, dereference pointer if necessary and then perform the cast.
...
2006-09-13 Wolfgang Gellerich <gellerich@de.ibm.com>
* trans-expr.c (gfc_add_interface_mapping): For characters, dereference
pointer if necessary and then perform the cast.
From-SVN: r116921
2006-09-13 12:36:26 +00:00
Andreas Krebbel
fcc42bcad4
flow.c (calculate_global_regs_live): Invalidate eh registers on eh edges.
...
2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
* flow.c (calculate_global_regs_live): Invalidate eh registers
on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
(propagate_block): Handle eh registers as if they were set at basic
block start.
* except.c (dw2_build_landing_pads): Don't emit clobbers for eh
registers.
* global.c (global_conflicts): Make eh registers to conflict with
pseudos live at basic block begin.
* basic_block.h (bb_has_eh_pred): New function.
From-SVN: r116920
2006-09-13 10:59:03 +00:00
Richard Sandiford
4b7b277aff
re PR rtl-optimization/28982 (Incorrect reloading of automodification expressions)
...
gcc/
PR rtl-optimization/28982
* reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
index of a PRE_MODIFY or POST_MODIFY address.
* reload1.c (inc_for_reload): Use find_replacement on the original
base and index registers.
gcc/testsuite/
PR rtl-optimization/28982
* gcc.c-torture/execute/pr28982a.c: New test.
* gcc.c-torture/execute/pr28982b.c: Likewise.
From-SVN: r116919
2006-09-13 06:30:59 +00:00
H.J. Lu
04df96dded
invoke.texi (mpreferred-stack-boundary): Remove exception for -Os.
...
2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
* doc/invoke.texi (mpreferred-stack-boundary): Remove exception
for -Os. Update __m128 alignment requirement.
From-SVN: r116917
2006-09-12 22:59:30 -07:00
Eric Christopher
1cc8c7b292
asm-support-darwin.s: New.
...
2006-09-12 Eric Christopher <echristo@apple.com>
* gcc.target/x86_64/abi/asm-support-darwin.s: New.
* gcc.target/x86_64/abi/abi-x86_64.exp: Use.
From-SVN: r116916
2006-09-13 01:07:27 +00:00
Joseph Myers
c663e30103
re PR c/28768 (Preprocessor doesn't parse tokens correctly?)
...
libcpp:
PR c/28768
PR preprocessor/14634
* lex.c (lex_string): Pedwarn for unterminated literals.
libgomp:
* configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
to AC_DEFINE.
* configure: Regenerate.
gcc/testsuite:
* gcc.dg/cpp/include2.c, gcc.dg/cpp/macspace1.c,
gcc.dg/cpp/macspace2.c, gcc.dg/cpp/multiline.c,
gcc.dg/cpp/trad/literals-2.c: Update expected diagnostics.
From-SVN: r116915
2006-09-13 02:04:18 +01:00
GCC Administrator
48de786822
Daily bump.
...
From-SVN: r116913
2006-09-13 00:17:09 +00:00
Jan Hubicka
26eeea9405
* cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
...
From-SVN: r116909
2006-09-12 22:54:38 +00:00
Eric Botcazou
7e721950cb
re PR rtl-optimization/28243 (internal consistency failure when building fontforge with -O3 -fPIC -ftracer)
...
PR rtl-optimization/28243
* combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
the insn to which the note was originally attached.
From-SVN: r116906
2006-09-12 21:48:40 +00:00
Tom Tromey
ff68219131
* expr.c (push_value): Always flush quick stack.
...
From-SVN: r116905
2006-09-12 19:51:08 +00:00
Paul Thomas
6df7764520
re PR fortran/28971 (ICE: Segmentation fault on valid code)
...
2006-09-12 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28971
gfortran.dg/pr28971.f90: New test to act as a backstop in case
this undiagnosed regression reappears.
From-SVN: r116904
2006-09-12 19:38:48 +00:00
Andrew Pinski
66cccea671
dwarf2out.c (file_table_last_lookup): Move this GC'd declaration outside of #ifdef DWARF2_DEBUGGING_INFO to fix...
...
* dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
on platforms that don't use dwarf for debug info.
Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r116903
2006-09-12 19:31:09 +00:00
Tom Tromey
f8248aaa3b
re PR java/29013 (gcj generates a MetalLookAndFeel class that fails cacao's verifier)
...
gcc/java
PR java/29013:
* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note
the push of the called method's return result.
libjava
PR java/29013:
* testsuite/libjava.lang/PR29013.out: Likewise.
* testsuite/libjava.lang/PR29013.java: New file.
From-SVN: r116902
2006-09-12 19:00:48 +00:00
Tom Tromey
ed08fcf6fc
jvspec.c (lang_specific_driver): Read spec file even if -fsyntax-only.
...
* jvspec.c (lang_specific_driver): Read spec file even if
-fsyntax-only.
From-SVN: r116901
2006-09-12 18:54:36 +00:00
Jason Merrill
f01194138c
re PR middle-end/28493 (Wrong address of stack object used for destructor call on PPC)
...
PR middle-end/28493
* builtins.c (expand_builtin_setjmp_receiver): Clobber
hard_frame_pointer_rtx after using it to update the frame pointer.
From-SVN: r116900
2006-09-12 14:02:36 -04:00
Benjamin Kosnik
c1a03f0311
eh_globals.cc: Remove __gnu_internal.
...
2006-09-12 Benjamin Kosnik <bkoz@redhat.com>
* libsupc++/eh_globals.cc: Remove __gnu_internal.
* config/io/basic_file_stdio.cc: Same.
* config/abi/compatibility.h: Same.
* config/cpu/generic/atomicity_mutex/atomicity.h: Same.
* config/cpu/sh/atomicity.h: Same.
From-SVN: r116899
2006-09-12 17:48:45 +00:00
Roger Sayle
fb8cbd3cb7
target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
...
* target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
(TARGET_ASM_CLOSE_PAREN): Likewise.
* config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
(TARGET_ASM_CLOSE_PAREN): Likewise.
From-SVN: r116898
2006-09-12 17:29:05 +00:00
Roger Sayle
b598cb381a
re PR target/22223 (New testsuite failure on Tru64 UNIX V5.1B: gcc.c-torture/compile/20050622-1.c)
...
PR target/22223
* config/alpha/alpha.c (alpha_start_function): Don't emit stack
frame information for frames larger than 512 Kbytes on Tru64 when
using the native assembler.
From-SVN: r116895
2006-09-12 17:13:55 +00:00
Kazu Hirata
f63fc0d933
c-torture.exp (c-torture-compile, [...]): Treat $srcdir as a literal.
...
* lib/c-torture.exp (c-torture-compile, c-torture-execute):
Treat $srcdir as a literal.
* lib/fortran-torture.exp (fortran-torture-compile,
fortran-torture-execute): Likewise.
* lib/objc-torture.exp (objc-torture-compile,
objc-torture-execute): Likewise.
* lib/profopt.exp (profopt-execute): Likewise.
From-SVN: r116894
2006-09-12 17:12:49 +00:00
David Daney
b095810f1b
re PR libffi/23935 ($PREFIX/include/ffi.h needs to go to a target- and -version-dependent location)
...
PR libffi/23935
* include/Makefile.am: Install both ffi.h and ffitarget.h in
$(libdir)/gcc/$(target_alias)/$(gcc_version)/include.
* aclocal.m4: Regenerated for automake 1.9.6.
* Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
From-SVN: r116893
2006-09-12 16:51:43 +00:00
Tom Tromey
bbe5c0840a
* testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.
...
From-SVN: r116892
2006-09-12 16:28:43 +00:00
Roger Sayle
4c6669c2c6
re PR middle-end/4520 (cselib.c hash_rtx incorrectly hashes based on rtx address)
...
PR middle-end/4520
PR bootstrap/28784
* cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
and symbols. Instead use the implementation from cse.c's hash_rtx.
From-SVN: r116891
2006-09-12 16:02:31 +00:00
Tom Tromey
4b943588d1
re PR java/28754 (java.lang.nullPointerException while accessing final static members of an interface)
...
PR java/28754:
* expr.c (expand_java_field_op): Initialize field's declaring
interface if necessary.
From-SVN: r116890
2006-09-12 15:55:07 +00:00
Tom Tromey
91da2e7c33
re PR java/28892 (assignment to static field not in class initializer)
...
PR java/28892:
* expr.c (expand_java_field_op): No error for assignments not in
class initializer or constructor.
From-SVN: r116889
2006-09-12 15:47:26 +00:00
Jan Hubicka
93c094b524
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
...
PR rtl-optimization/28071
* tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
(vect_transform_loop): Likewise.
* tree-vectorizer.c (new_loop_vec_info): Likewise.
(new_loop_vec_info): Likewise.
(destroy_loop_vec_info): Likewise.
* tree-dfa.c (create_var_ann): Use GCC_CNEW.
(create_stmt_ann): Likewise.
(create_tree_ann): Rename to ...
(create_tree_common_ann): ... this one; allocate only the common part
of annotations.
* tree-vn.c (set_value_handle): Use get_tree_common_ann.
(get_value_handle): Likewise.
* tree-ssa-pre.c (phi_translate): Delay annotation allocation for
get_tree_common_ann.
* tree-vectorizer.h (set_stmt_info): Take stmt annotation.
(vinfo_for_stmt): Use stmt annotations.
* tree-flow.h (tree_ann_common_t): New type.
(tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
(tree_ann, get_tree_ann, create_tree_ann): New.
* tree-flow-inline.h (get_function_ann): Do more type checking.
(stmt_ann): Likewise.
(tree_ann): Rename to ...
(tree_common_ann): ... this one; return ony common_ann
(get_tree_ann): Rename to ...
(tree_common_ann): This one; return only common_ann.
* tree-vect-patterns.c (vect_pattern_recog_1): Update call
of set_stmt_info.
From-SVN: r116886
2006-09-12 10:11:04 +00:00
Andrew Pinski
5f86874e9f
Fix some whitespace issues in the changelog.
...
From-SVN: r116883
2006-09-12 00:51:16 -07:00
Andrew Pinski
91c884163e
Fix some whitespace issues in the changelog.
...
From-SVN: r116882
2006-09-12 00:49:23 -07:00
Andrew Pinski
b476963b6e
Fix some whitespace issues in the changelog.
...
From-SVN: r116881
2006-09-12 00:48:26 -07:00
Andrew Pinski
f33a23a09c
Fix some whitespace issues in the changelog.
...
From-SVN: r116880
2006-09-12 00:46:08 -07:00
Andrew Pinski
455ad79239
Fix some whitespace issues in the changelog.
...
From-SVN: r116879
2006-09-12 00:44:52 -07:00
Andrew Pinski
91ba215a05
Fix some whitespace issues in the changelog.
...
From-SVN: r116878
2006-09-12 00:44:18 -07:00
Andrew Pinski
f2fb70e83d
Fix some whitespace issues in the changeLog.
...
From-SVN: r116877
2006-09-12 00:43:23 -07:00
Andrew Pinski
cc6010cd8e
Fix some white space issues in the changelog.
...
From-SVN: r116876
2006-09-12 00:42:10 -07:00
Andrew Pinski
19ede56f15
Fix white space issues in the ChangeLog.
...
From-SVN: r116875
2006-09-12 00:39:10 -07:00
Geoffrey Keating
703706d7e4
config.gcc (i[34567]86-*-darwin*): Set with_arch and with_cpu by default.
...
* config.gcc (i[34567]86-*-darwin*): Set with_arch and
with_cpu by default.
From-SVN: r116874
2006-09-12 06:09:05 +00:00