Ovidiu Predescu
d291a19abe
Added new test from Nicola Pero.
...
From-SVN: r40123
2001-02-28 17:05:10 +00:00
Ovidiu Predescu
10493d7721
Added.
...
From-SVN: r40122
2001-02-28 16:58:04 +00:00
Jan Hubicka
4ae3100368
c-common.c (build_common_tree_nodes): Build intTI_type_nodes for HOST_BITS_PER_WIDE_INT == 32 too.
...
* c-common.c (build_common_tree_nodes): Build intTI_type_nodes
for HOST_BITS_PER_WIDE_INT == 32 too.
From-SVN: r40121
2001-02-28 16:25:05 +00:00
Jan Hubicka
787dc84216
caller-save.c (reg_save_code, [...]): Index by mode, not NREGS.
...
* caller-save.c (reg_save_code, reg_restore_code): Index by mode, not
NREGS.
(insert_save, insert_restore): New parameter save_mode.
(init_caller_save): Update initialization of reg_save_code
and reg_restore_code.
(save_call_clobbered_regs): Compute save_modes and update calls to
reg_save_code and reg_restore_code.
(insert_restore): Unsignetize numbers; use save_modes to choose mode
of spill; update use of reg_restore_code.
(insert_save): Likewise.
* i386.h (HARD_REGNO_CALLER_SAVE_MODE): Update.
* c4x.h (HARD_REGNO_CALLER_SAVE_MODE): Update.
* regs.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
From-SVN: r40120
2001-02-28 16:24:00 +00:00
Jan Hubicka
dc2698bc26
ifcvt.c (noce_emit_store_flag, [...]): Use reversed_comparison_code instead of reverse_comparison and...
...
* ifcvt.c (noce_emit_store_flag, noce_try_store_flag_constants,
noce_try_store_flag_inc, noce_try_store_flag_mask,
noce_try_cmove_arith):
Use reversed_comparison_code instead of reverse_comparison and
can_reverse_comparison_p.
From-SVN: r40119
2001-02-28 16:20:43 +00:00
Jan Hubicka
2450703cc0
jump.c (reversed_comparison_code_parts): Allow reversal of unordered compares in -ffast-math mode...
...
* jump.c (reversed_comparison_code_parts): Allow reversal of
unordered compares in -ffast-math mode; reverse ordered compares
for FP even w/o -ffast-math.
From-SVN: r40118
2001-02-28 16:19:16 +00:00
Nathan Sidwell
e5844e6d39
Remove floating point and complex type template constant parms.
...
cp:
Remove floating point and complex type template constant parms.
* pt.c (convert_nontype_argument): Remove REAL_TYPE and
COMPLEX_TYPE extensions.
(invalid_nontype_parm_type_p): Likewise.
testuite:
* g++.old-deja/g++.ext/realpt1.C: Remove.
From-SVN: r40117
2001-02-28 10:44:05 +00:00
GCC Administrator
323c6a7479
Daily bump.
...
From-SVN: r40113
2001-02-28 08:16:08 +00:00
Richard Henderson
25cff714f3
print-rtl.c (print_rtx): Don't print field five on NOTEs other than NOTE_INSN_DELETED_LABEL.
...
* print-rtl.c (print_rtx) [i]: Don't print field five on
NOTEs other than NOTE_INSN_DELETED_LABEL.
From-SVN: r40110
2001-02-27 20:26:57 -08:00
Benjamin Kosnik
115b5a7e47
basic_file.h: Include basic_file_model.h.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1886
* include/bits/basic_file.h: Include basic_file_model.h.
* config/c_io_libio.cc: Move to...
* config/basic_file_libio.cc: Here.
* config/basic_file_libio.h: New file.
* config/c_io_stdio.cc: Move to...
* config/basic_file_stdio.cc: Here.
* config/basic_file_stdio.h: New file.
* config/c_io_libio.h: Tweak.
* config/c_io_stdio.h: Tweak.
* src/Makefile.am (build_headers): Add basic_file_model.h.
(sources): Add basic_file.cc, remove c++io.cc.
* src/Makefile.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
basic_file_model.h and basic_file.cc.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/27_io/filebuf.cc (test05): Add regression.
From-SVN: r40109
2001-02-28 03:26:44 +00:00
Benjamin Kosnik
c0a26060f6
basic_file.h: Include basic_file_model.h.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1886
* include/bits/basic_file.h: Include basic_file_model.h.
* config/c_io_libio.cc: Move to...
* config/basic_file_libio.cc: Here.
* config/basic_file_libio.h: New file.
* config/c_io_stdio.cc: Move to...
* config/basic_file_stdio.cc: Here.
* config/basic_file_stdio.h: New file.
* config/c_io_libio.h: Tweak.
* config/c_io_stdio.h: Tweak.
* src/Makefile.am (build_headers): Add basic_file_model.h.
(sources): Add basic_file.cc, remove c++io.cc.
* src/Makefile.in: Regenerate.
* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
basic_file_model.h and basic_file.cc.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* testsuite/27_io/filebuf.cc (test05): Add regression.
From-SVN: r40108
2001-02-28 03:20:36 +00:00
Zack Weinberg
26029fe2fb
xm-iris4.h: Delete #if 0 block (there since before 1997).
...
* mips/xm-iris4.h: Delete #if 0 block (there since before 1997).
* pa/xm-linux.h, pa/xm-pa.h, pa/xm-papro.h: Don't declare errno.
From-SVN: r40107
2001-02-28 02:53:45 +00:00
Diego Novillo
87aee676f2
c-common.c (walk_stmt_tree): Visit the chain of the current tree even if walk_subtrees is 0.
...
2001-02-27 Diego Novillo <dnovillo@redhat.com>
* c-common.c (walk_stmt_tree): Visit the chain of the current tree
even if walk_subtrees is 0.
* c-semantics.c (prune_unused_decls): Return a non-null value to
stop traversing the tree chain.
From-SVN: r40106
2001-02-27 20:25:42 -05:00
DJ Delorie
67935d3f86
m68k.c (output_function_prologue): Save the new CFA register, *then* define it as the new CFA.
...
* config/m68k/m68k.c (output_function_prologue): Save the new CFA
register, *then* define it as the new CFA.
From-SVN: r40104
2001-02-27 19:29:02 -05:00
Benjamin Kosnik
a29456b524
Correct license.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
Correct license.
* config/cpu/alpha/bits/atomicity.h: Change.
* config/cpu/arm/bits/atomicity.h
* config/cpu/generic/bits/atomicity.h
* config/cpu/i386/bits/atomicity.h
* config/cpu/i486/bits/atomicity.h
* config/cpu/ia64/bits/atomicity.h
* config/cpu/powerpc/bits/atomicity.h
* config/cpu/sparc/sparc32/bits/atomicity.h
* config/cpu/sparc/sparc64/bits/atomicity.h
* config/os/aix/bits/atomicity.h
* config/os/irix/bits/atomicity.h
From-SVN: r40103
2001-02-28 00:14:16 +00:00
Jeffrey A Law
7ee7279639
pa.c (override_options): Promote -fpic to -fPIC.
...
* pa.c (override_options): Promote -fpic to -fPIC.
(legitimize_pic_address): Simplify due to removal of
small PIC as a code generation option.
(secondary_reload_class): Similarly.
* pa.h (GO_IF_LEGITIMATE_ADDRESS): Similarly.
(PRINT_OPERAND_ADDRESS): Similarly.
* pa.md (various patterns): Similarly.
(small pic lo_sum pattern): Remove.
From-SVN: r40101
2001-02-27 16:48:38 -07:00
Benjamin Kosnik
9dd3d53c9a
std_stdexcept.h (runtime_error): Make string member non-const.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_stdexcept.h (runtime_error): Make string
member non-const.
(logic_error): Same.
* testsuite/19_diagnostics/stdexceptions.cc (test04): Add test.
(test03): Fix.
From-SVN: r40098
2001-02-27 23:00:35 +00:00
Jeffrey Oldham
788f238c59
except.c (call_eh_info): Revert "match_function"'s type.
...
2001-02-27 Jeffrey Oldham <oldham@codesourcery.com>
* except.c (call_eh_info): Revert "match_function"'s type.
From-SVN: r40097
2001-02-27 18:00:41 +00:00
Benjamin Kosnik
0db54514fa
stdexceptions.cc (test03): Fix.
...
2001-02-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/19_diagnostics/stdexceptions.cc (test03): Fix.
From-SVN: r40095
2001-02-27 16:16:12 +00:00
Jan Hubicka
b71b019ac4
* md.texi (min, max): Document
...
From-SVN: r40094
2001-02-27 15:02:57 +00:00
Jan Hubicka
79005df529
i386.md (movsf, movdf): Use movaps for reg-reg moves if TARGET_PARTIAL_REG_DEPENDENCY.
...
* i386.md (movsf, movdf): Use movaps for reg-reg moves if
TARGET_PARTIAL_REG_DEPENDENCY.
(truncdfsf2_1_sse, truncdfsf2_2): Penalize the fpreg->mem case.
From-SVN: r40093
2001-02-27 14:54:15 +00:00
Jan Hubicka
7ada6625cd
* i386.md (mins*, maxs*): New patterns, expanders and splitters.
...
From-SVN: r40092
2001-02-27 14:43:46 +00:00
Nathan Sidwell
73ea87d76d
Fix ctor vtable vcall offsets.
...
cp:
Fix ctor vtable vcall offsets.
* class.c (struct vtbl_init_data_s): Add rtti_binfo member.
(build_rtt_vtbl_entries): Lose RTTI_BINFO parameter.
(get_matching_base): Remove.
(get_original_base): New function.
(build_vtbl_initializer): Initialize vid.rtti_binfo.
Use a virtual thunk for a ctor vtable with an index
(add_vcall_offset_vtbl_entries_1): Check if binfo has lost a
primary base within a constructor vtable. Only set
BV_VCALL_INDEX when not a constructor vtable. Adjust vcall offset
when primary base has been lost.
* cp-tree.h (BINFO_VIRTUALS): Remove ambiguity from comment.
testsuite:
* g++.old-deja/g++.abi/vtable3.h: Check vcall offsets too.
From-SVN: r40090
2001-02-27 13:12:17 +00:00
Bryce McKinlay
faa7e81482
libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static linking.
...
* libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
linking.
From-SVN: r40089
2001-02-27 09:41:21 +00:00
GCC Administrator
3dacf79fc2
Daily bump.
...
From-SVN: r40084
2001-02-27 08:16:08 +00:00
Benjamin Kosnik
00035ba5e2
std_stdexcept.h (logic_error::logic_error): Use string object, not reference.
...
2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1972
libstdc++/2089
* include/bits/std_stdexcept.h (logic_error::logic_error): Use
string object, not reference.
(runtime_error::runtime_error): Same.
From-SVN: r40082
2001-02-27 04:28:36 +00:00
Benjamin Kosnik
0349df29f0
std_stdexcept.h (logic_error::logic_error): Use string object, not reference.
...
2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/1972
libstdc++/2089
* include/bits/std_stdexcept.h (logic_error::logic_error): Use
string object, not reference.
(runtime_error::runtime_error): Same.
* testsuite/19_diagnostics/stdexceptions.cc: New file.
From-SVN: r40079
2001-02-27 04:13:17 +00:00
Jeffrey Oldham
8bb3dc7766
mips.c (mips_make_temp_file): Fix thinko in last change.
...
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
* mips.c (mips_make_temp_file): Fix thinko in last change.
From-SVN: r40078
2001-02-27 01:26:26 +00:00
Jason Eckhardt
ac4cdf4033
combine.c (known_cond): Do not reverse the condition when SMAX/UMAX is being considered and the...
...
* combine.c (known_cond): Do not reverse the condition when
SMAX/UMAX is being considered and the condition is for equality
or inequality.
* testsuite/gcc.c-torture/execute/20010221-1.c: New test.
From-SVN: r40077
2001-02-27 00:48:11 +00:00
Phil Edwards
6a163d7cae
acinclude.m4 (GLIBCPP_CONFIGURE): Update required compiler version.
...
2001-02-26 Phil Edwards <pme@sources.redhat.com>
* acinclude.m4 (GLIBCPP_CONFIGURE): Update required compiler version.
(GLIBCPP_CHECK_COMPILER_FEATURES): Can safely assume new
diagnostics. Remove WFMT_FLAGS.
* configure.in: Replace WFMT_FLAGS with diagnostics options.
* libsupc++/Makefile.am: Likewise.
* src/Makefile.am: Likewise.
* aclocal.m4: Regenerated.
* configure: Regenerated.
* Makefile.in: Regenerated.
* libio/Makefile.in: Regenerated.
* libmath/Makefile.in: Regenerated.
* libsupc++/Makefile.in: Regenerated.
* src/Makefile.in: Regenerated.
From-SVN: r40075
2001-02-26 21:48:01 +00:00
Phil Edwards
a008643689
Fixes libstdc++/2079
...
2001-02-26 Phil Edwards <pme@sources.redhat.com>
Fixes libstdc++/2079
* include/backward/iomanip.h: Expose <ios> manipulators to global
namespace.
* include/backward/iostream.h: Also expose std::ws.
From-SVN: r40073
2001-02-26 20:33:09 +00:00
Toon Moene
978970473b
configure.in: Test for ftruncate.
...
2001-02-26 Toon Moene <toon@moene.indiv.nluug.nl>
* libI77/configure.in: Test for ftruncate.
* libI77/configure: Rebuilt.
* libI77/endfile.c: Use fflush/ftruncate when available.
From-SVN: r40072
2001-02-26 20:23:41 +00:00
Will Cohen
3914b81a45
20010226-1.c: New test.
...
2001-02-26 Will Cohen <wcohen@redhat.com>
* gcc.c-torture/execute/ieee/20010226-1.c: New test.
From-SVN: r40071
2001-02-26 19:57:04 +00:00
Philip Blundell
14879e768f
config.gcc: Remove obsolete targets "arm*-*-linuxoldld" and "armv2-*-linux".
...
2001-02-26 Philip Blundell <philb@gnu.org>
* config.gcc: Remove obsolete targets "arm*-*-linuxoldld" and
"armv2-*-linux".
* config/arm/linux-elf.h: Remove historical relics related to
above configurations.
* config/arm/linux-oldld.h: Delete.
* config/arm/linux-elf26.h: Delete.
From-SVN: r40070
2001-02-26 18:15:36 +00:00
Jason Merrill
d57de21543
note DECL_INITIAL change
...
From-SVN: r40069
2001-02-26 12:17:47 -05:00
Jeffrey Oldham
fe7301610d
call.c (joust): Ensure more_specialized()'s argument length parameter has correct value for...
...
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
* call.c (joust): Ensure more_specialized()'s argument length
parameter has correct value for constructors.
From-SVN: r40068
2001-02-26 15:59:30 +00:00
Jeffrey Oldham
2851a0e467
overload15.C: New test to stress overloaded templatized constructors.
...
2001-02-26 Jeffrey Oldham <oldham@codesourcery.com>
* g++.old-deja/g++.pt/overload15.C: New test to stress overloaded
templatized constructors.
From-SVN: r40067
2001-02-26 15:54:33 +00:00
Jason Merrill
8cf8d8a27b
c-decl.c (finish_decl): Set DECL_DEFER_OUTPUT on tentative file-scope definitions.
...
* c-decl.c (finish_decl): Set DECL_DEFER_OUTPUT on tentative file-scope
definitions.
* toplev.c (rest_of_decl_compilation): Check DECL_DEFER_OUTPUT to
recognize a tentative definition. Lose obsolete code.
* toplev.c (wrapup_global_declarations): Don't emit DECL_COMDAT
variables unless necessary, either.
From-SVN: r40066
2001-02-26 06:11:38 -05:00
Nathan Sidwell
e5dd4aad7f
except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
...
* except.c (call_eh_info): Cleanup generation of cp_eh_info struct.
* decl.c (mark_inlined_fns): Prototype.
From-SVN: r40065
2001-02-26 11:01:44 +00:00
GCC Administrator
7787480c2a
Daily bump.
...
From-SVN: r40064
2001-02-26 08:16:41 +00:00
Richard Henderson
05cc23e815
ifcvt.c (struct noce_if_info): Add test_bb.
...
* ifcvt.c (struct noce_if_info): Add test_bb.
(noce_get_alt_condition): New.
(noce_try_minmax, noce_try_abs): New.
(noce_operand_ok): New.
(noce_process_if_block): Use them.
* rtlanal.c (may_trap_p): NEG and ABS can never trap.
From-SVN: r40060
2001-02-25 11:34:06 -08:00
Christopher Faylor
052d4b6cd7
* config/i386/cygwin.h (CPP_SPEC): Add missing space before w32api include.
...
From-SVN: r40059
2001-02-25 19:28:09 +00:00
Zack Weinberg
e1b71de925
config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd.
...
* config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd.
* config/mips/mips.c (mips_make_temp_file): Set temp_filename
properly.
(mips_asm_file_end): Free temp_filename here.
From-SVN: r40058
2001-02-25 17:23:42 +00:00
Richard Kenner
397be6cf54
i386-protos.h (ix86_set_move_mem_attrs): Move decl.
...
* config/i386/i386-protos.h (ix86_set_move_mem_attrs): Move decl.
* config/i386/i386.c (ix86_set_move_mem_attrs_1): Fix typo.
From-SVN: r40056
2001-02-25 11:35:48 -05:00
Richard Kenner
4ddb47b351
* config/i386/i386.md (movstrsi): Handle FAIL case.
...
From-SVN: r40054
2001-02-25 08:33:59 -05:00
Neil Booth
618cdda7f0
cppinit.c (builtin_array): Update.
...
* cppinit.c (builtin_array): Update.
(init_builtins): Flag builtins to warn if redefined or
undefined. Define __GXX_WEAK as a normal macro.
* cpplib.c (do_undef): Warn if flagged NODE_WARN.
* cpplib.h (NODE_WARN): New flag.
* cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__.
Handle __STDC__ as a builtin only on Solaris.
(warn_of_redefinition): Renamed from check_macro_definition.
Reverse sense of test. Always warn if NODE_WARN.
(_cpp_create_definition): Use warn_of_redefinition. Flag
any macro beginning with "__STDC_" to require a mandatory
warning if redefined or undefined.
From-SVN: r40053
2001-02-25 09:43:03 +00:00
Greg Freemyer
f5500e44c0
mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
...
2001-02-25 Greg Freemyer <freemyer@NorcrossGroup.com>
* libmath/mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
From-SVN: r40051
2001-02-25 09:24:10 +00:00
GCC Administrator
2dae598241
Daily bump.
...
From-SVN: r40049
2001-02-25 08:16:08 +00:00
Zack Weinberg
000b5f54b5
xm-interix.h, [...]: Don't define any of...
...
* xm-interix.h, xm-lynx.h, alpha/xm-vms.h, convex/xm-convex.h,
i370/xm-i370.h, i370/xm-linux.h, i370/xm-mvs.h, i370/xm-oe.h,
i386/xm-beos.h, i386/xm-dos.h, i386/xm-mingw32.h,
i860/xm-i860.h, m68k/xm-3b1.h, m68k/xm-amix.h, m68k/xm-aux.h,
m68k/xm-crds.h, m68k/xm-mot3300.h, m88k/xm-sysv3.h,
mips/xm-mips.h, rs6000/xm-beos.h, vax/xm-vms.h:
Don't define any of:
USE_PROTOTYPES, vfork, mktemp, SVR3, NO_SYS_PARAMS_H,
P_tmpdir, MVS, NO_DBX_FORMAT, USE_STDARGS, STDC_HEADERS,
NO_PRECOMPILES, i860, __PTR_TO_INT, __INT_TO_PTR, rindex,
index, FULL_PROTOTYPES, AUX, R_OK, W_OK, X_OK, F_OK,
STACK_DIRECTION, MIPS, MAX_READ_LEN, MAX_WRITE_LEN.
* alpha/xm-alpha.h, clipper/xm-clix.h, d30v/xm-d30v.h,
fr30/xm-fr30.h, i370/xm-linux.h: Remove commented-out macro
definitions.
* m68k/xm-3b1.h, m68k/xm-crds.h, m88k/xm-sysv3.h:
Delete now-empty file.
* alpha/vms.h: Define NEED_ATEXIT here...
* alpha/xm-vms.h: ...not here.
* i386/cygwin.h: Don't define PARAMS.
* mips/mips.c: Don't prototype mktemp. Don't define
P_tmpdir. Use make_temp_file to create temporary files.
Don't be clever and delete temporary files early.
* f/com.c: Don't define STDC_HEADERS, autoconf handles it.
* config.gcc: Drop references to deleted files. Don't define
FULL_PROTOTYPES.
* gcc.texi: Don't mention USE_PROTOTYPES.
From-SVN: r40048
2001-02-25 05:23:38 +00:00
Richard Kenner
0e4970d732
i386.c (ix86_set_move_mem_attrs): New function.
...
* config/i386/i386.c (ix86_set_move_mem_attrs): New function.
(ix86_set_move_mem_attrs_1): Likewise.
* config/i386/i386-protos.h (ix86_set_move_mem_attrs): New declaration.
* config/i386/i386.md (movstrsi): Call it.
From-SVN: r40046
2001-02-24 20:28:23 -05:00