Kazu Hirata
a38b3eea74
* config/h8300/h8300.c (get_shift_alg): Fix a typo.
...
From-SVN: r61718
2003-01-24 17:19:47 +00:00
Nathan Sidwell
3de9870034
missing changelog entry
...
From-SVN: r61717
2003-01-24 17:17:05 +00:00
Ulrich Weigand
fd3cd001d5
configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
...
* configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
* configure: Regenerate.
* config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
(tls_symbolic_reference_mentioned_p): Add prototype.
(s390_tls_get_offset): Add prototype.
(emit_pic_move): Remove prototype, replace by ...
(emit_symbolic_move): .. this new prototype.
* config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
(tls_model_chars): New global variable.
(s390_encode_section_info): Encode TLS model.
Use targetm.binds_local_p to check for local symbols.
(s390_strip_name_encoding): New function.
(TARGET_STRIP_NAME_ENCODING): Define.
(get_thread_pointer): New function.
(legitimize_tls_address): New function.
(legitimize_address): Call it.
(emit_pic_move): Remove, replace by ...
(emit_symbolic_move): ... this new function.
(larl_operand): Handle TLS operands.
(legitimate_constant_p): Likewise.
(s390_decompose_address): Likewise.
(s390_cannot_force_const_mem): New function.
(TARGET_CANNOT_FORCE_CONST_MEM): Define.
(s390_output_symbolic_const): Handle TLS unspecs.
(print_operand): New code 'J'.
(machine_function): Add struct member 'some_ld_name'.
(get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
(enum s390_builtin): New type.
(code_for_builtin_64, code_for_builtin_31): New global variables.
(s390_init_builtins, s390_expand_builtin): New functions.
(TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
* config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
(ASM_OUTPUT_LABELREF): Define.
(ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
* config/s390/s390.md: Define TLS UNSPEC constants.
("movdi", "movsi"): Handle TLS operands.
("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
("*tls_load_64", "*tls_load_31"): New insns.
("call_value_tls", "call_value_tls_exp"): New expanders.
("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
"bas_tls_64", "bas_tls_31"): New insns.
From-SVN: r61714
2003-01-24 17:10:22 +00:00
Andreas Schwab
475c1d0989
* config/linker-map.gnu: Fix for size_t variance.
...
From-SVN: r61713
2003-01-24 17:01:25 +00:00
Nathan Sidwell
01f4962dee
rs6000.c (rs6000_parse_abi_options): Make sure spe ABI is configured, if requested.
...
* config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
spe ABI is configured, if requested.
From-SVN: r61712
2003-01-24 16:54:23 +00:00
Volker Reichelt
70b9185438
* doc/passes.texi: Fix typo.
...
From-SVN: r61708
2003-01-24 16:43:40 +00:00
Andreas Schwab
b8089d8d6c
* stor-layout.c (excess_unit_span): Only define if used.
...
From-SVN: r61707
2003-01-24 16:32:16 +00:00
Nathan Sidwell
c13bea50d1
valarray_meta.h: Remove, split into ...
...
* include/bits/valarray_meta.h: Remove, split into ...
* include/bits/valarray_before.h: ... this, and ...
* include/bits/valarray_after.h: ... this.
* include/std/std_valarray.h: Adjust.
* include/Makefile.am (bits_headers): Adjust.
* include/Makefile.in: Regenerate.
From-SVN: r61706
2003-01-24 16:32:11 +00:00
Andreas Schwab
e12825cd48
ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to size_t to avoid warning.
...
* ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
size_t to avoid warning.
From-SVN: r61705
2003-01-24 16:30:17 +00:00
Jerry Quinn
38df970eff
invoke.texi (Optimization Options): List -O levels for each optimization flag.
...
* gcc/doc/invoke.texi (Optimization Options): List -O levels
for each optimization flag.
From-SVN: r61704
2003-01-24 16:08:41 +00:00
Kazu Hirata
dff23a65f6
* config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
...
From-SVN: r61702
2003-01-24 16:03:14 +00:00
Volker Reichelt
0573975349
bugreport.texi: Use @command instead of @code for commands.
...
* doc/bugreport.texi: Use @command instead of @code for commands.
* doc/collect2.texi: Likewise.
* doc/headerdirs.texi: Likewise.
* doc/invoke.texi: Likewise.
* doc/standards.texi: Likewise.
* doc/tm.texi: Likewise.
* doc/trouble.texi: Likewise.
From-SVN: r61701
2003-01-24 15:57:41 +00:00
Nick Clifton
06bea5aa22
arm.c (use_return_insn): Do not use a single return instruction for interrupt handelrs which have to...
...
* config/arm/arm.c (use_return_insn): Do not use a single return instruction
for interrupt handelrs which have to create a stack frame.
(arm_expand_prologue): Do not pre-bias the return address of interrupt handlers
which create a stack frame.
From-SVN: r61698
2003-01-24 15:50:44 +00:00
Alexandre Oliva
3a8699c7ab
Add sh2e support:
...
2002-08-12 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
med_cbranches. Fix logic in short_cbranches.
2002-04-03 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.md (delay for cbranch): Don't annul delay
slots on SH2e.
* config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
cbranch with unfilled delay slot on SH2e.
(output_branch): Fill with a nop the delay slot of a
branch that required a delay slot but didn't get one.
2002-04-02 Alexandre Oliva <aoliva@redhat.com>
* doc/invoke.texi (SH options): Document -m2e.
* config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
* config/sh/lib1funcs.asm: Likewise.
* config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
* config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
not __sh1__.
(CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
SH2E up.
(SH3E_BIT): Renamed to...
(SH_E_BIT): ... this. Replace all uses.
(TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
Replace all uses of TARGET_SH3E with TARGET_SH2E.
(TARGET_SWITCHES): Added 2e.
(OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
(processor_type): Added PROCESSOR_SH2E.
* config/sh/sh.md: Replace all uses of TARGET_SH3E with
TARGET_SH2E, except in sqrtsf2_i.
(attribute cpu): Added sh2e.
* config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
(MULTILIB_MATCHES): Use m2e multilib for m3e.
* config.gcc: Add sh2e target support.
From-SVN: r61697
2003-01-24 15:45:53 +00:00
Phil Edwards
65ca2d606c
Rename -W to -Wextra.
...
2003-01-24 Phil Edwards <pme@gcc.gnu.org>
Rename -W to -Wextra.
* c-decl.c: Update comments.
* c-typeck.c: Likewise.
* flags.h: Likewise.
* function.c: Likewise.
* stmt.c: Likewise.
* toplev.c: Update comments.
(W_options): Add 'extra'.
(display_help): Remove '-W'.
(decode_W_option): Special warn_uninitialized treatment in the case
of -Wextra.
* doc/invoke.texi: Update with new entries.
From-SVN: r61696
2003-01-24 15:17:26 +00:00
Richard Henderson
3de9c088e8
ifcvt.c (noce_process_if_block): Re-add check vs X being changed in no-else-block case.
...
* ifcvt.c (noce_process_if_block): Re-add check vs X being changed
in no-else-block case. Add commentary.
From-SVN: r61695
2003-01-23 18:59:58 -08:00
Tom Tromey
8bef0925e8
jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of file name in resource buffer.
...
* jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of
file name in resource buffer.
From-SVN: r61694
2003-01-24 02:37:34 +00:00
Kaveh R. Ghazi
b48624772c
* configure.in: Revert last change.
...
From-SVN: r61693
2003-01-24 02:26:04 +00:00
Kaveh R. Ghazi
49691411b7
ChangeLog (configure.in): Don't include ansidecl.h in tconfig.h.
...
* ChangeLog (configure.in): Don't include ansidecl.h in tconfig.h.
* gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
* unwind-dw2-fde.h (last_fde): Use __attribute__, not
ATTRIBUTE_UNUSED.
* configure: Regenerate.
From-SVN: r61692
2003-01-24 01:46:50 +00:00
Nathanael Nerode
ee42dd9daa
* dump.c: ANSIfy function declarations and definitions.
...
From-SVN: r61691
2003-01-24 00:45:55 +00:00
Nathanael Nerode
97286f7fe0
No, really this time.
...
From-SVN: r61689
2003-01-24 00:39:39 +00:00
GCC Administrator
90861f513b
Daily bump.
...
From-SVN: r61688
2003-01-24 00:17:07 +00:00
Petur Runolfsson
1ceb90cfa1
re PR libstdc++/9322 (return value of basic_streambuf<>::getloc affected by locale::global)
...
2003-01-23 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9322
* include/std/std_streambuf.h
(basic_streambuf::basic_streambuf,
basic_streambuf::~basic_streambuf,
basic_streambuf::getloc, basic_streambuf::imbue):
Remove _M_buf_locale_init use.
* include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
* testsuite/27_io/filebuf_virtuals.cc (test08): Add.
* testsuite/27_io/streambuf_members.cc (test08): Add.
* testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
From-SVN: r61678
2003-01-23 22:53:35 +00:00
Nathanael Nerode
806e09354f
configure.in: Revert previous change.
...
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Revert previous change.
* configure: Regenerate.
From-SVN: r61676
2003-01-23 22:32:25 +00:00
Franz Sirl
c4db7ecbc3
re PR java/6748 (Array_3 testcase failing on powerpc-linux-gnu)
...
2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR java/6748
* config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
regs->nip. Fix rt_sigreturn frame layout. Add support for newer
kernels.
From-SVN: r61675
2003-01-23 22:28:48 +00:00
Tom Tromey
1f369e606f
expr.c (build_known_method_ref): Use method's context to find method table index.
...
* expr.c (build_known_method_ref): Use method's context to find
method table index.
From-SVN: r61670
2003-01-23 21:19:50 +00:00
Nathanael Nerode
c38e9817ad
* cp-tree.h, decl.h: Get rid of PARAMS. Again.
...
From-SVN: r61669
2003-01-23 20:22:16 +00:00
Nathanael Nerode
307a98643c
configure.in: Make rda native-only.
...
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Make rda native-only.
* configure: Regenerate.
From-SVN: r61668
2003-01-23 19:56:00 +00:00
Kaveh R. Ghazi
fc69c47cad
* cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
...
From-SVN: r61667
2003-01-23 19:51:16 +00:00
Ulrich Weigand
adbe6dfd38
genattrtab.c (write_attr_get): Mark 'insn' paramter as ATTRIBUTE_UNUSED.
...
* genattrtab.c (write_attr_get): Mark 'insn' paramter
as ATTRIBUTE_UNUSED.
From-SVN: r61666
2003-01-23 19:41:52 +00:00
Benjamin Kosnik
1a1e79bbfe
Revert include ordering.
...
2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
Revert include ordering.
* config/locale/generic/c_locale.h: Add include guards.
* config/locale/gnu/c_locale.h: Same.
* include/bits/locale_classes.h: Remove cctype include.
* include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
* include/std/std_fstream.h: Remove streambuf include.
* include/std/std_sstream.h: Remove streambuf include.
From-SVN: r61664
2003-01-23 18:56:00 +00:00
Richard Earnshaw
8891b78727
duplicate not dumplicate.
...
From-SVN: r61663
2003-01-23 18:16:19 +00:00
Richard Earnshaw
76a318e977
arm.c (thumb_base_register_rtx_p): New function.
...
* arm.c (thumb_base_register_rtx_p): New function.
(thumb_index_register_rtx_p): New function.
(thumb_legitimate_address_p): New function.
(thumb_legitimate_offset_p): New function.
* arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
(ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid dumplicate
definitions.
(THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
(THUMB_LEGITIMATE_OFFSET): Delte.
(THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
* arm-protos.h (thumb_legitimate_address_p): Add prototype.
(thumb_legitimate_offset_p): Likewise.
From-SVN: r61662
2003-01-23 18:10:46 +00:00
Tom Tromey
0f0ff6ec54
* constants.c (set_constant_entry): Allocated cleared memory.
...
From-SVN: r61661
2003-01-23 17:40:42 +00:00
Andreas Schwab
9a600d0c7f
* unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
...
From-SVN: r61659
2003-01-23 17:22:53 +00:00
Benjamin Kosnik
8099b2aee8
configure.in (libtool_VERSION): To 6:0:0.
...
2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (libtool_VERSION): To 6:0:0.
* configure: Regenerated.
* config/linker-map.gnu: Clean.
* src/misc-inst.cc: Remove instantiations.
* include/bits/stl_alloc.h (__malloc_alloc_template):
To __malloc_alloc.
(__default_alloc_template): To __pool_alloc.
* src/stl-inst.cc: Same.
* include/backward/alloc.h: Update.
* testsuite/ext/allocators.cc: Update.
* src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
really try to remove these if possible.
* src/locale.cc (std): Same.
* testsuite/abi_check.cc (check_version): Add.
From-SVN: r61658
2003-01-23 17:21:11 +00:00
Kaveh R. Ghazi
2d110c0a7f
* fixinc/Makefile.in (FL_LIST): Revert last change.
...
From-SVN: r61655
2003-01-23 16:38:37 +00:00
Volker Reichelt
2d1d9215b0
re PR other/7341 (Hyperlink to gcov in gcc documentation doesn't work)
...
PR other/7341
* invoke.texi (ftest-coverage): Fix broken cross-reference.
Change @code to @command for gcov command.
* gcc.texi: Adjust title of gcov section.
Adjust copyright.
* gcov.texi: Likewise.
From-SVN: r61651
2003-01-23 10:14:34 +00:00
Mark Mitchell
c006d94230
re PR c++/9354 ([New parser?] segfault in template definition)
...
PR c++/9354
* init.c (build_new): Set the type of the new-expression, even
when processing_templte_decl.
PR c++/9216
* parser.c (cp_parser_primary_expression): Improve error message
for templates used in an expression context.
PR c++/8696
* parser.c (cp_parser_decl_specifier_seq): Commit to tentative
parse when encountering "typedef".
PR c++/9354
* g++.dg/parse/new1.C: New test.
PR c++/9216
* g++.dg/parse/template2.C: New test.
PR c++/9354
* g++.dg/parse/typedef2.C: New test.
From-SVN: r61643
2003-01-23 06:05:20 +00:00
Roger Sayle
34ee7f8278
re PR rtl-optimization/8423 (CSE1 not propagating __builtin_constant_p enough)
...
PR optimization/8423
* cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
its argument is constant, or 0 if !flag_gcse.
* simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
if it's argument is constant.
* gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
(hash_scan_set): Don't record CONSTANT_P_RTX expressions.
(do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
* builtins.c (purge_builtin_constant_p): New function to force
instantiation of any remaining CONSTANT_P_RTX nodes.
* rtl.h (purge_builtin_constant_p): Prototype here.
* toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
pass after GCSE and before loop.
(flag_gcse): No longer static.
* flags.h (flag_gcse): Prototype here.
From-SVN: r61642
2003-01-23 02:57:26 +00:00
Nathanael Nerode
94edc4abdc
class.c, parser.c: ANSIfy function definitions and declarations.
...
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
* class.c, parser.c: ANSIfy function definitions and declarations.
From-SVN: r61641
2003-01-23 02:47:51 +00:00
Tom Tromey
850ccfaeaa
java-tree.h: Don't use PARAMS.
...
* java-tree.h: Don't use PARAMS.
* resource.c: Add prototypes for all functions.
(write_resource_constructor): Use `const char *' to avoid
warning.
From-SVN: r61640
2003-01-23 02:38:57 +00:00
Ulrich Weigand
bab0b43b1b
s390.h (HARD_REGNO_MODE_OK): Fix warning regression introduced by last change.
...
* config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
introduced by last change.
From-SVN: r61638
2003-01-23 00:40:57 +00:00
Nathanael Nerode
e00d212733
jcf-parse.c (process_zip_dir): Remove unused variable.
...
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
* jcf-parse.c (process_zip_dir): Remove unused variable.
From-SVN: r61637
2003-01-23 00:40:41 +00:00
GCC Administrator
f5c140abee
Daily bump.
...
From-SVN: r61632
2003-01-23 00:17:37 +00:00
Mark Mitchell
65a5559bdf
re PR c++/9328 (ICE with templates and namespace std members)
...
PR c++/9328
* g++.dg/ext/typeof3.C: New test.
PR c++/9328
* error.c (dump_decl): For an OVERLOAD, just print the name of the
function; it doesn't make sense to try to print its type.
* semantics.c (finish_typeof): Issue errors about invalid uses.
From-SVN: r61631
2003-01-23 00:17:32 +00:00
Volker Reichelt
68aab9ee3e
re PR c++/2738 (ICE on return type specification of a destructor)
...
PR c++/2738
* g++.dg/parse/ret-type1.C: New test.
PR c++/3792
* g++.dg/parse/tmpl-outside1.C: New test.
PR c++/4207
* g++.dg/parse/int-as-enum1.C: New test.
PR c++/4903
* g++.dg/parse/no-typename1.C: New test.
PR c++/5533
* g++.dg/parse/no-value1.C: New test.
PR c++/5921
* g++.dg/parse/wrong-inline1.C: New test.
PR c++/6402
* g++.dg/parse/ref1.C: New test.
PR c++/6992
* g++.dg/parse/attr-ctor1.C: New test.
PR c++/7229
* g++.dg/parse/namespace5.C: New test.
PR c++/7917
* g++.dg/parse/func-def1.C: New test.
PR c++/8143
* g++.dg/parse/undefined1.C: New test.
PR c++/5723, PR c++/8522
* g++.dg/parse/specialization1.C: New test.
PR c++/163, PR c++/8595
* g++.dg/parse/struct-as-enum1.C: New test.
PR c++/9173
* g++.dg/parse/undefined2.C: New test.
From-SVN: r61624
2003-01-22 23:21:51 +00:00
Volker Reichelt
02ba630289
MAINTAINERS: Move myself from GNATS-only-accounts to write-after-approval.
...
* MAINTAINERS: Move myself from GNATS-only-accounts to
write-after-approval.
From-SVN: r61620
2003-01-22 22:43:44 +00:00
Mark Mitchell
e086073238
re PR c++/9298 ([new parser] ICE with function-pointer-type template args)
...
PR c++/9298
* parser.c (cp_parser_consume_semicolon_at_end_of_statement): New
function.
(cp_parser_expression_statement): Use it.
(cp_parser_explicit_instantiation): Likewise.
* pt.c (do_decl_instantiation): Improve error handling logic.
PR c++/9298
* g++.dg/parse/template1.C: New test.
From-SVN: r61618
2003-01-22 22:24:30 +00:00
Benjamin Kosnik
b4ec7fc7f0
re PR libstdc++/9269 (libstdc++ headers: explicit specialization of function must precede its first use)
...
2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
Mark Mitchell <mark@codesourcery.com>
PR libstdc++/9269
* include/std/std_fstream.h (basic_filebuf::uflow): Declare.
(basic_filebuf::underflow): Declare.
Move definitions.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
Co-Authored-By: Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
From-SVN: r61616
2003-01-22 21:18:00 +00:00