Richard Sandiford
440d0518b3
* g++.dg/abi/mangle6.C: New test.
...
From-SVN: r50744
2002-03-13 17:19:31 +00:00
Richard Sandiford
049e687916
mangle.c (write_builtin_type): Handle 128-bit integers even if they are not a standard integer type.
...
* mangle.c (write_builtin_type): Handle 128-bit integers even if
they are not a standard integer type.
From-SVN: r50743
2002-03-13 17:18:16 +00:00
Jason Merrill
7a8de19b4c
gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr into the function and constify it.
...
* gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
into the function and constify it.
* gthr-dce.h, gthr-solaris.h: Likewise.
From-SVN: r50741
2002-03-13 12:15:46 -05:00
Richard Sandiford
872c9284b0
cp-tree.h (init_init_processing): Remove declaration.
...
* cp-tree.h (init_init_processing): Remove declaration.
* init.c (BI_header_type, init_init_processing): Remove old ABI stuff.
* decl.c (cxx_init_decl_processing): Don't call init_init_processing.
From-SVN: r50740
2002-03-13 17:12:24 +00:00
David Edelsohn
2a55fd4253
rs6000.h (PAD_VARARGS_DOWN): Define.
...
* config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
* config/rs6000/rs6000.c (rs6000_va_arg): Use
std_expand_builtin_va_arg if not ABI_V4.
From-SVN: r50739
2002-03-13 11:57:48 -05:00
Jason Merrill
9a789d73d1
varasm.c (globalize_decl): New fn.
...
* varasm.c (globalize_decl): New fn.
(assemble_start_function): Use it.
(asm_emit_uninitialized): Use it.
(assemble_alias): Use it.
(assemble_variable): Use it.
From-SVN: r50738
2002-03-13 11:03:25 -05:00
Jason Merrill
19c5b1cf0d
varasm.c (globalize_decl): New fn.
...
* varasm.c (globalize_decl): New fn.
(assemble_start_function): Use it.
(asm_emit_uninitialized): Use it.
(assemble_alias): Use it.
(assemble_variable): Use it.
From-SVN: r50736
2002-03-13 09:20:17 -05:00
Hans-Peter Nilsson
2a15f5e1e2
cris.c (cris_target_asm_function_prologue): Revert 2002-03-12 internal visibility change.
...
* config/cris/cris.c (cris_target_asm_function_prologue): Revert
2002-03-12 internal visibility change.
(cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
visibility into SYMBOL_REF_FLAG.
From-SVN: r50735
2002-03-13 13:33:39 +00:00
Ulrich Weigand
c0a3eeacda
expr.c (expand_expr, [...]): Do not call copy_to_reg with VOIDmode operand.
...
* expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
VOIDmode operand. Add compile-time optimization for constant results.
From-SVN: r50734
2002-03-13 13:00:25 +00:00
Jason Merrill
a1652cee9a
c-typeck.c (convert_for_assignment): Don't allow conversions between pointers and references.
...
* c-typeck.c (convert_for_assignment): Don't allow conversions
between pointers and references. Only allow lvalues to convert to
reference.
From-SVN: r50731
2002-03-13 04:58:55 -05:00
Hartmut Penner
c52a375d21
s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code before prologue, to avoid scheduling problems.
...
* config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
before prologue, to avoid scheduling problems.
From-SVN: r50730
2002-03-13 08:51:01 +00:00
GCC Administrator
96395e3a6a
Daily bump.
...
From-SVN: r50729
2002-03-13 08:17:56 +00:00
Jakub Jelinek
e387e99b29
sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
...
* config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
(ELIMINABLE_REGS): Add sfp->sp.
(INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
From-SVN: r50725
2002-03-13 08:56:19 +01:00
Jakub Jelinek
09948ece3d
re PR rtl-optimization/5892 (ICE in gen_nop_type during 2.4.17 ia64 kernel build)
...
PR optimization/5892
* config/ia64/ia64.c (rotate_one_bundle): Update current packet.
* gcc.c-torture/compile/20020312-1.c: New test.
From-SVN: r50723
2002-03-13 08:49:23 +01:00
Jakub Jelinek
4061c1a393
loop.c (basic_induction_var): Don't call convert_modes if mode classes are different.
...
* loop.c (basic_induction_var): Don't call convert_modes if mode
classes are different.
* gcc.c-torture/compile/20020309-2.c: New test.
From-SVN: r50721
2002-03-13 08:41:45 +01:00
Richard Henderson
9f53e9654b
re PR target/5901 ([IA64] misplaced .body)
...
PR optimization/5901
* function.c (reposition_prologue_and_epilogue_notes): Position
the markers after/before the last/first insn not deleted.
From-SVN: r50715
2002-03-12 22:10:23 -08:00
Richard Henderson
5b43fed17b
re PR rtl-optimization/5878 (gcc 3.1 breaks on C code generated by the Mercury compiler)
...
PR 5878
* config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
(PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
* config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
* config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
* config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
(arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
also. Don't set it if not flag_pic.
* config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
to be INVALID_REGNUM when not used.
* gcc.dg/20020312-2.c: New.
From-SVN: r50713
2002-03-12 21:42:40 -08:00
Loren J. Rittle
56d4fe31c5
reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
...
reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/thread/pthread4.cc: Lower nominal iteration counter.
From-SVN: r50709
2002-03-13 02:53:27 +00:00
Benjamin Kosnik
f714575791
ctype_noninline.h: Cast to unsigned char.
...
2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
Per Liboriussen <liborius@stofanet.dk>
* config/os/gnu-linux/bits/ctype_noninline.h: Cast to
unsigned char.
* config/os/gnu-linux/bits/ctype_inline.h: Same.
* config/os/irix/irix6.5/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_inline.h: Same.
* config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
* testsuite/22_locale/ctype_members_char.cc (main): Add tests.
Co-Authored-By: Per Liboriussen <liborius@stofanet.dk>
From-SVN: r50708
2002-03-13 02:32:08 +00:00
Aldy Hernandez
4e9bb42b21
expmed.c (store_bit_field): Reset alias set for memory.
...
2002-03-13 Aldy Hernandez <aldyh@redhat.com>
* expmed.c (store_bit_field): Reset alias set for memory.
(extract_bit_field): Same.
From-SVN: r50706
2002-03-13 02:03:36 +00:00
Kaveh R. Ghazi
2f9834e805
c-common.c (c_tree_code_type, [...]): Delete.
...
* c-common.c (c_tree_code_type, c_tree_code_length,
c_tree_code_name, add_c_tree_codes): Delete.
* c-common.h (add_c_tree_codes): Delete.
* c-lang.c (tree_code_type, tree_code_length, tree_code_name):
Define.
* c-objc-common.c (c_objc_common_init): Don't call
add_c_tree_codes, instead set lang_unsafe_for_reeval.
* objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
objc_tree_code_name, add_objc_tree_codes): Delete.
(objc_init): Don't call add_objc_tree_codes.
* objc/objc-lang.c (tree_code_type, tree_code_length,
tree_code_name): Define.
* toplev.c (lang_independent_init): Don't set
tree_code_length[IDENTIFIER_NODE].
* tree.c (tree_code_type, tree_code_length, tree_code_name):
Delete definitions, moved to language front-ends.
* tree.def (IDENTIFIER_NODE): Hardwire the length.
* tree.h (tree_code_type, tree_code_length, tree_code_name):
Const-ify.
(tree_code_length): Change type to unsigned char.
ada:
* misc.c (gnat_tree_code_type, gnat_tree_code_length,
gnat_tree_code_name): Delete.
(tree_code_type, tree_code_length, tree_code_name): Define.
(gnat_init): Don't try to copy into the various tree_code
arrays.
ch:
* decl.c (chill_tree_code_type, chill_tree_code_length,
chill_tree_code_name): Delete.
(tree_code_type, tree_code_length, tree_code_name): Define.
(init_decl_processing): Don't try to copy into the various
tree_code arrays.
cp:
* cp-lang.c (tree_code_type, tree_code_length, tree_code_name):
Define.
* decl.c (duplicate_decls): Use TREE_CODE_LENGTH, not
tree_code_length.
* lex.c (cplus_tree_code_type, cplus_tree_code_length,
cplus_tree_code_name): Delete.
(cxx_init): Don't call add_c_tree_codes, instead set
lang_unsafe_for_reeval. Don't try to copy into the various
tree_code arrays.
f:
* com.c (tree_code_type, tree_code_length, tree_code_name):
Define.
java:
* lang.c (java_tree_code_type, java_tree_code_length,
tree_code_name): Delete.
(tree_code_type, tree_code_length, tree_code_name): Define.
(java_init): Don't try to copy into the various tree_code
arrays.
From-SVN: r50705
2002-03-13 01:42:43 +00:00
Richard Henderson
36ad243642
i386.c (ix86_expand_prologue): Revert 2002-03-03 internal visibility change.
...
* config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
internal visibility change.
From-SVN: r50704
2002-03-12 17:33:36 -08:00
Richard Henderson
c2273204ae
Makefile.in (NOTPARALLEL): New.
...
* Makefile.in (NOTPARALLEL): New. Use it instead of explicit
.NOTPARALLEL tag.
(do-check): Rename from check.
(check): Allow parallel check.
From-SVN: r50700
2002-03-12 16:38:20 -08:00
Richard Henderson
f4a126533c
Fix typo in comment.
...
From-SVN: r50699
2002-03-12 16:36:45 -08:00
Tom Tromey
8a611251a9
re PR java/5923 (gcj -C generates incorrect bytecode)
...
* jcf-parse.c (get_constant) [CONSTANT_String]: String values are
UTF-8, not UCS-2. Fixes PR java/5923.
From-SVN: r50695
2002-03-12 23:37:11 +00:00
Bob Wilson
0ae02efa21
xtensa.c (xtensa_expand_block_move): Use validize_mem() instead of change_address to avoid clobbering memory attributes.
...
* config/xtensa/xtensa.c (xtensa_expand_block_move): Use
validize_mem() instead of change_address to avoid clobbering
memory attributes.
From-SVN: r50693
2002-03-12 23:33:11 +00:00
Nathan Sidwell
df867456d7
re PR c++/5659 (default access for class/struct bug)
...
cp:
PR c++/5659
* decl.c (xref_tag): Don't set CLASSTYPE_DECLARED_CLASS here.
* decl2.c (handle_class_head): Set CLASSTYPE_DECLARED_CLASS for
definitions.
testsuite:
* g++.dg/other/access1.C: New test.
From-SVN: r50692
2002-03-12 23:32:47 +00:00
Neil Booth
35bb2beeac
* c-lex.h (position_after_whitespace): Remove.
...
From-SVN: r50691
2002-03-12 23:30:32 +00:00
Jakub Jelinek
62ae25292b
c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
...
* c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
(lex_string): Use unsigned char pointers.
* gcc.c-torture/execute/wchar_t-1.c: New test.
From-SVN: r50689
2002-03-12 23:36:55 +01:00
Andreas Tobler
46f56f54c4
configure.host (powerpc*-darwin*): Enable interpreter.
...
2002-03-12 Andreas Tobler <a.tobler@schweiz.ch>
* configure.host (powerpc*-darwin*): Enable interpreter.
From-SVN: r50686
2002-03-12 22:29:52 +00:00
David Edelsohn
2ab57cc911
* gcc.dg/20020103-1.c: Add rs6000 target and macro.
...
From-SVN: r50684
2002-03-12 17:18:42 -05:00
Benjamin Kosnik
fcaa810173
basic_string.tcc (string::_S_construct(_InIter, _InIter, const _Alloc&, forward_iterator_tag): Check for null.
...
2002-03-12 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_string.tcc (string::_S_construct(_InIter,
_InIter, const _Alloc&, forward_iterator_tag): Check for null.
(string::basic_string(const _CharT* __s, const _Alloc& __a)): Same.
* testsuite/21_strings/ctor_copy_dtor.cc (test01): Re-enable, now
that memory limits are in place.
(test03): Add tests.
From-SVN: r50683
2002-03-12 22:10:34 +00:00
Ulrich Weigand
6a45951fb2
reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent is not a valid memory_operand.
...
* reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
is not a valid memory_operand.
From-SVN: r50681
2002-03-12 21:02:24 +00:00
Mark Mitchell
b3dd43df63
cp-demangle.c: Add libgcc exception to cp-demangle.c copyright notice.
...
* cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
notice.
From-SVN: r50679
2002-03-12 20:34:15 +00:00
Bob Wilson
e2fb85daa1
xtensa-config.h: Define XCHAL_HAVE_LOOPS.
...
* config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
* config/xtensa/lib1funcs.asm: Fix copyright to include
special case for libgcc files.
(__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
(__divsi3): Likewise.
(__umodsi3): Likewise.
(__modsi3): Likewise.
* config/xtensa/lib2funcs.S: Fix copyright to include
special case for libgcc files.
From-SVN: r50677
2002-03-12 20:02:36 +00:00
Tom Tromey
5a471df6f9
Test for PR java/5848:
...
* libjava.compile/PR5848.xfail: New file.
* libjava.compile/PR5848.java: New file.
From-SVN: r50674
2002-03-12 19:51:44 +00:00
Tom Rix
5b8619f82e
A fix for cross building aix.
...
From-SVN: r50672
2002-03-12 19:07:06 +00:00
Adam Megacz
916c46b5ab
dyn_load.c: Renamed GC_win32s to GC_no_win32_dlls.
...
2002-03-12 Adam Megacz <adam@xwt.org>
* dyn_load.c: Renamed GC_win32s to GC_no_win32_dlls.
* misc.c: Renamed GC_is_win32s() to GC_no_win32_dlls
* os_dep.c: Renamed GC_win32s to GC_no_win32_dlls and
statically initialized it to TRUE if compiling with GCC.
* win32_threads.c (thread_start): We no longer use SEH if
compiling with GCC.
* mark.c (GC_mark_some): We no longer use SEH if
compiling with GCC.
From-SVN: r50671
2002-03-12 19:06:36 +00:00
Bob Wilson
089c8f9764
* config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
...
From-SVN: r50665
2002-03-12 18:34:55 +00:00
Bob Wilson
958c70ff9d
xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch to function_section before writing out the constant pool.
...
* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
to function_section before writing out the constant pool.
From-SVN: r50663
2002-03-12 18:28:50 +00:00
Bob Wilson
bcb64245e6
MAINTAINERS: Add myself as maintainer for xtensa port.
...
* MAINTAINERS: Add myself as maintainer for xtensa port.
Fix alphabetical order in CPU port maintainer list.
Remove myself from Write After Approval list.
From-SVN: r50662
2002-03-12 18:11:49 +00:00
Tom Tromey
f792bce511
re PR java/5848 (gcj "crashes" on syntax with complex cast)
...
* parse.y (qualify_ambiguous_name): Handle case where QUAL_WFL is
a call_expr wrapped in a convert. Fixes PR java/5848.
From-SVN: r50659
2002-03-12 18:01:23 +00:00
David Edelsohn
a65c591c7d
rs6000.h (PREDICATE_CODES): Add any_operand and zero_constant.
...
* config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
zero_constant.
* config/rs6000/rs6000.md (addsi3): Optimize sign extension.
(adddi3): Likewise.
(movdf): Likewise.
(movdi): Likewise.
(cmpsi splitter): Likewise.
(modsi3): Fail if <= 0.
* config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
redundant test when HOST_BITS_PER_WIDE_INT != 32.
(reg_or_sub_cint64_operand): Likewise.
(num_insns_constant_wide): Optimize sign extension.
(rs6000_legitimize_address):: Likewise.
(easy_fp_constant): Fix formatting.
From-SVN: r50658
2002-03-12 13:01:19 -05:00
Andrew MacLeod
17720332ab
linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
...
2002-03-12 Andrew MacLeod <amacleod@redhat.com>
* config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
* config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
From-SVN: r50656
2002-03-12 15:24:44 +00:00
Andrew MacLeod
cd49f0735d
sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in address calculation.
...
* config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
address calculation.
From-SVN: r50654
2002-03-12 15:19:40 +00:00
Ulrich Weigand
6a4e49c11d
s390.md (reload_insi, [...]): Change mode of scratch register to DImode / TImode.
...
* config/s390/s390.md (reload_insi, reload_indi): Change mode of
scratch register to DImode / TImode.
config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
register used does not overlap the target.
From-SVN: r50652
2002-03-12 14:32:37 +00:00
Bryce McKinlay
acf8bc2567
* jcf-write.c (write_classfile): Improve error strings.
...
From-SVN: r50649
2002-03-12 10:32:38 +00:00
GCC Administrator
85559bd41b
Daily bump.
...
From-SVN: r50648
2002-03-12 08:18:17 +00:00
Roger Sayle
56f4537eac
* gcc.dg/20020312-1.c: New test case.
...
From-SVN: r50640
2002-03-12 08:53:40 +01:00
Eric Blake
36e5138325
re PR java/5913 (Core dump for String constant instanceof)
...
2002-03-12 Eric Blake <ebb9@email.byu.edu>
* libjava.compile/PR5913.java: Expand test.
From-SVN: r50638
2002-03-12 07:40:46 +00:00