OSDN Git Service

pf3gnuchains/gcc-fork.git
21 years ago2003-01-27 Phil Edwards <pme@gcc.gnu.org>
pme [Mon, 27 Jan 2003 14:56:12 +0000 (14:56 +0000)]
2003-01-27  Phil Edwards  <pme@gcc.gnu.org>

* configure.in:  Revert 24Jan change.
* configure:  Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61888 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * init.c (__gnat_error_handler): Make msg const.
ro [Mon, 27 Jan 2003 13:16:59 +0000 (13:16 +0000)]
* init.c (__gnat_error_handler): Make msg const.

* gmem.c (convert_addresses): Move declaration ...
* adaint.h: ... here.
* adaint.c (convert_addresses): Adapt addrs type to match
prototype.

* adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61887 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
zlomek [Mon, 27 Jan 2003 11:30:35 +0000 (11:30 +0000)]
* gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61884 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/extend.texi: Fix typo.
reichelt [Mon, 27 Jan 2003 10:53:36 +0000 (10:53 +0000)]
* doc/extend.texi: Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61883 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoPR optimization/9090
rearnsha [Mon, 27 Jan 2003 10:46:47 +0000 (10:46 +0000)]
PR optimization/9090
* function.c (purge_addressof_1): After pushing an addressed register
onto the stack, simplify the result.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61881 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/cppopts.texi: Fix typo.
reichelt [Mon, 27 Jan 2003 10:30:11 +0000 (10:30 +0000)]
* doc/cppopts.texi: Fix typo.
* doc/objc.texi: Likewise.
* doc/passes.texi: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61878 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* real.c (ibm_extended_format): Add 53 to minimum exponent.
aoliva [Mon, 27 Jan 2003 06:23:32 +0000 (06:23 +0000)]
* real.c (ibm_extended_format): Add 53 to minimum exponent.
(encode_ibm_extended): Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61875 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
gdr [Mon, 27 Jan 2003 02:22:21 +0000 (02:22 +0000)]
    * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
        timevar_id enumerations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61873 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Mon, 27 Jan 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61872 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * combine.c: Fix formatting.
kazu [Sun, 26 Jan 2003 21:53:22 +0000 (21:53 +0000)]
* combine.c: Fix formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61862 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/gccint.texi: Update the copyright.
kazu [Sun, 26 Jan 2003 21:35:07 +0000 (21:35 +0000)]
* doc/gccint.texi: Update the copyright.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61860 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/cpp.texi: Fix typos.
kazu [Sun, 26 Jan 2003 20:56:09 +0000 (20:56 +0000)]
* doc/cpp.texi: Fix typos.
* doc/extend.texi: Likewise.
* doc/gty.texi: Likewise.
* doc/install.texi: Likewise.
* doc/passes.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/tm.texi: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61858 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/ia64/fde-glibc.c: Fix comment typos.
kazu [Sun, 26 Jan 2003 20:15:36 +0000 (20:15 +0000)]
* config/ia64/fde-glibc.c: Fix comment typos.
* config/ia64/hpux.h: Likewise.
* config/ia64/ia64.c: Likewise.
* config/ia64/ia64.h: Likewise.
* config/ia64/unwind-ia64.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61857 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386-modes.def: Fix comment typos.
kazu [Sun, 26 Jan 2003 19:59:27 +0000 (19:59 +0000)]
* config/i386/i386-modes.def: Fix comment typos.
* config/i386/i386.c: Likewise.
* config/i386/i386.md: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61855 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-26 Toon Moene <toon@moene.indiv.nluug.nl>
toon [Sun, 26 Jan 2003 19:26:35 +0000 (19:26 +0000)]
2003-01-26  Toon Moene  <toon@moene.indiv.nluug.nl>

* lang-specs.h: Revoke change to (incorrectly) prohibit
passing -f options to cc1 when preprocessing.
* news.texi: Document this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61854 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
aj [Sun, 26 Jan 2003 14:40:22 +0000 (14:40 +0000)]
2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>

* config/avr/avr.h, config/cris/aout.h, config/elfos.h,
config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
ASM_FINISH_DECLARE_OBJECT before defining it.
* toplev.c (rest_of_decl_compilation):  Don't define
ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
(rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
parameters for DWARF2 targets because they _are_ used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61851 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-26 Michael Matz <matz@suse.de>
aj [Sun, 26 Jan 2003 10:17:17 +0000 (10:17 +0000)]
2003-01-26  Michael Matz  <matz@suse.de>

* Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61838 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* fp-bit.h: Define macros for TFmode floating-point constants
aoliva [Sun, 26 Jan 2003 10:06:57 +0000 (10:06 +0000)]
* fp-bit.h: Define macros for TFmode floating-point constants
in IBM-extended TFmode types.
(TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
widths.
* config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
TFmode type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61837 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/fp-bit.h: Define macros for TFmode floating-point
aoliva [Sun, 26 Jan 2003 09:33:46 +0000 (09:33 +0000)]
* config/fp-bit.h: Define macros for TFmode floating-point
constants in IEEE quad TFmode type.  Declare functions according
to L_ macros.
(TMODES): Define if __LDBL_MANT_DIG__ is 113.
(TFtype, TItype, UTItype): Define if TMODES is defined.
(MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
(F_T_BITOFF, D_T_BITOFF): Define.
(IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
guaranteed to be wide enough.
* config/fp-bit.c: Check for L_ macros for tf functions.
(__thenan_tf): New.
(nan): Adjust.
(pack_d, unpack_d): Support IEEE 854 quad type.
(_fpmul_parts): Support TFmode.  Compute exponent adjustment
from FRAC_NBITS, FRAC_BITS and NGARDS.
(usi_to_float): Cast constants to be shifted to fractype
instead of assuming long long is wide enough.
(sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61835 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * df.c: Remove prototype of unused function df_regno_rtl_debug.
aj [Sun, 26 Jan 2003 09:24:35 +0000 (09:24 +0000)]
* df.c: Remove prototype of unused function df_regno_rtl_debug.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61833 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
aoliva [Sun, 26 Jan 2003 09:17:13 +0000 (09:17 +0000)]
* Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
(DBBIT_FUNCS): Added _df_to_tf.
(TPBIT_FUNCS): New.
(libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
(LIBGCC_DEPS): Added TPBIT.
* mklibgcc.in: Support TPBIT and TPBIT_FUNCS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61832 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
aoliva [Sun, 26 Jan 2003 09:11:31 +0000 (09:11 +0000)]
* optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
been able to move the result to target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61829 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* expr.c (emit_group_store): Initialize dst with CONST0_RTX
aoliva [Sun, 26 Jan 2003 09:09:23 +0000 (09:09 +0000)]
* expr.c (emit_group_store): Initialize dst with CONST0_RTX
for the appropriate mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61828 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* calls.c (emit_library_call_value_1): Handle return values
aoliva [Sun, 26 Jan 2003 09:06:36 +0000 (09:06 +0000)]
* calls.c (emit_library_call_value_1): Handle return values
in a PARALLEL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61826 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* rtl.c (get_mode_alignment): Moved to...
aoliva [Sun, 26 Jan 2003 09:02:55 +0000 (09:02 +0000)]
* rtl.c (get_mode_alignment): Moved to...
* stor-layout.c: ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61824 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* print-rtl.c (print_rtx): Don't print MEM details in
aoliva [Sun, 26 Jan 2003 08:59:54 +0000 (08:59 +0000)]
* print-rtl.c (print_rtx): Don't print MEM details in
GENERATOR_FILEs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61822 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoinclude/
drow [Sun, 26 Jan 2003 07:09:41 +0000 (07:09 +0000)]
include/
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
(htab_create_alloc_ex): New prototype.
(htab_set_functions_ex): New prototype.

libiberty/
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61820 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * df.h: Update comments, tidy formatting.
m.hayes [Sun, 26 Jan 2003 06:10:37 +0000 (06:10 +0000)]
* df.h: Update comments, tidy formatting.
(DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
REVERSE, UNION, INTERSECTION.  All uses updated.
(OLD_DF_INTERFACE): Remove.
(struct insn_info): Remove commented out insn field.
* df.c: Update comments, tidy formatting.
(df_def_table_realloc): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61819 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * calls.c (save_fixed_argument_area): Tidy.
amodra [Sun, 26 Jan 2003 02:07:48 +0000 (02:07 +0000)]
* calls.c (save_fixed_argument_area): Tidy.
(restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
(expand_call): Comment typo fixes.  Don't init low_to_save.  Start
call chain loop at 1 if !try_tail_call.  Formatting.
(emit_library_call_value_1): Don't init low_to_save or high_to_save.
Use save_fixed_argument_area and restore_fixed_argument_area.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61818 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * df.c (df_uses_record): Handle CC0.
m.hayes [Sun, 26 Jan 2003 01:18:25 +0000 (01:18 +0000)]
* df.c (df_uses_record): Handle CC0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61817 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Sun, 26 Jan 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61814 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agogcc/
uweigand [Sat, 25 Jan 2003 23:57:30 +0000 (23:57 +0000)]
gcc/
        * reload.c (maybe_memory_address_p): New function.
        (find_reloads_address): Use it instead of memory_address_p.

gcc/testsuite/
* gcc.dg/20030123-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61805 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * final.c (shorten_branches): Align the address of code label
kkojima [Sat, 25 Jan 2003 23:32:20 +0000 (23:32 +0000)]
    * final.c (shorten_branches): Align the address of code label
        when computing initial lengths and addresses.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61803 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/m68hc11/m68hc11.md: Fix a comment typo.
kazu [Sat, 25 Jan 2003 22:51:19 +0000 (22:51 +0000)]
* config/m68hc11/m68hc11.md: Fix a comment typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61802 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386.c (x86_output_mi_thunk): Correct test for
aj [Sat, 25 Jan 2003 22:40:32 +0000 (22:40 +0000)]
* config/i386/i386.c (x86_output_mi_thunk): Correct test for
TARGET_MACHO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61801 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcse.c (bypass_last_basic_block): New global variable.
sayle [Sat, 25 Jan 2003 21:49:52 +0000 (21:49 +0000)]
* gcse.c (bypass_last_basic_block): New global variable.
(bypass_block):  Use redirect_edge_and_branch_force to redirect
fall-through edges.  Use bypass_last_basic_block to determine
which blocks have valid PRE information.
(bypass_conditional_jumps): Initialize bypass_last_basic_block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61800 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcse.c (local_cprop_pass): Update reg_sets table when needed.
hubicka [Sat, 25 Jan 2003 21:32:42 +0000 (21:32 +0000)]
* gcse.c (local_cprop_pass): Update reg_sets table when needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61799 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR opt/8492
hubicka [Sat, 25 Jan 2003 20:10:37 +0000 (20:10 +0000)]
PR opt/8492
* gcse.c (one_cprop_pass): Delete unreachable blocks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61798 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
rth [Sat, 25 Jan 2003 19:08:15 +0000 (19:08 +0000)]
    * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
        from ia64_aix_select_rtx_section.
        (ia64_rwreloc_select_section): Simlarly; use default*_1 function
        instead of saving and restoring flag_pic.
        (ia64_rwreloc_unique_section): Similarly.
        * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
        TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
        * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
        TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61797 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
kazu [Sat, 25 Jan 2003 18:59:24 +0000 (18:59 +0000)]
* config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61796 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
rth [Sat, 25 Jan 2003 18:38:08 +0000 (18:38 +0000)]
    * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61795 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * ggc-simple.c (debug_ggc_tree): Add PTR cast.
rth [Sat, 25 Jan 2003 18:25:14 +0000 (18:25 +0000)]
    * ggc-simple.c (debug_ggc_tree): Add PTR cast.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61794 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
rth [Sat, 25 Jan 2003 18:21:22 +0000 (18:21 +0000)]
    * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
        type for bitmaps.  Use unsigned long.
        (nBITMAP_WORD_BITS): New macro.
        (BITMAP_WORD_BITS): New macro.
        (rest of file): Use it.
        * bitmap.c: Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61793 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocp:
nathan [Sat, 25 Jan 2003 18:02:43 +0000 (18:02 +0000)]
cp:
PR c++/9403
* parser.c (cp_parser_class_or_namespace_name): Reject duplicate
template keyword.
(cp_parser_base_specifier): Look for and consume a
TEMPLATE keyword. Replace switch with array index.

PR c++/795
* semantics.c (finish_non_static_data_member): Remember the
field's type even in a template.

PR c++/9415
* pt.c (tsubst_copy_and_build, CALL_EXPR): BASELINK exprs are
already scoped.

PR c++/8545
* parser.c (cp_parser_cast_expression): Be more tentative.
testsuite:
PR c++/9403
* g++.dg/parse/template3.C: New test.
* g++.old-deja/g++.pt/memclass5.C: Add needed template keyword.

PR c++/795
* g++.dg/parse/template4.C: New test.

PR c++/9415
* g++.dg/template/qual2.C: New test.

PR c++/8545
* g++.old-deja/g++.brendan/parse3.C: Remove XFAIL.

* g++.old-deja/g++.ns/bogus1.C: Change expected error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61791 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago 2002-02-19 Robert Lipe <robertlipe@usa.net>
rth [Sat, 25 Jan 2003 17:49:22 +0000 (17:49 +0000)]
    2002-02-19  Robert Lipe  <robertlipe@usa.net>
        * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61790 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * builtins.c (purge_builtin_constant_p): Scan insn stream
sayle [Sat, 25 Jan 2003 17:47:26 +0000 (17:47 +0000)]
* builtins.c (purge_builtin_constant_p): Scan insn stream
sequentially rather than by basic block.
* function.c (purge_addressof): Simplify test with INSN_P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61789 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * combine.c (simplify_comparison, case AND): Remove a redundant
kazu [Sat, 25 Jan 2003 17:45:16 +0000 (17:45 +0000)]
* combine.c (simplify_comparison, case AND): Remove a redundant
test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61787 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * function.h (struct function): New field calls_constant_p.
sayle [Sat, 25 Jan 2003 17:42:39 +0000 (17:42 +0000)]
* function.h (struct function): New field calls_constant_p.
(current_function_calls_constant_p): New macro for above.
* function.c (prepare_function_start): Initialize calls_eh_return
and calls_constant_p.
* builtins.c (expand_builtin_constant_p): Set calls_constant_p.
* toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
when the current_function_calls_constant_p.
* integrate.c (expand_inline_function): Set calls_constant_p if
the function being inlined has calls_constant_p set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61786 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
sayle [Sat, 25 Jan 2003 17:37:42 +0000 (17:37 +0000)]
* cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
optimizing, even if flag_gcse is true.
* toplev.c (rest_of_compilation): purge_builtin_constant_p
only needs to be called when "optimize > 0 && flag_gcse".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61785 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * stmt.c (emit_case_bit_tests): New routine to implement suitable
sayle [Sat, 25 Jan 2003 17:30:29 +0000 (17:30 +0000)]
* stmt.c (emit_case_bit_tests): New routine to implement suitable
switch statements using the equivalent of "if ((1<<x) & cst) ... ".
(case_bit_test_cmp): New comparison function for "qsort" to order
case_bit_tests by decreasing number of destination nodes.
(lshift_cheap_p): New function to determine if "1 << x" is cheap.
(expand_end_case_type): Use emit_case_bit_tests to implement
suitable switch statments.
(CASE_USE_BIT_TESTS): New target macro to disable the above.
* Makefile.in (stmt.o): Add dependency on optab.h.
* doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.

* gcc.c-torture/execute/switch-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61784 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
schwab [Sat, 25 Jan 2003 17:26:55 +0000 (17:26 +0000)]
* config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
__do_global_ctors_aux hidden global and don't put it in
.init_array.
* config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
instead so that it comes first.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61782 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cp-tree.h (flagged_type_tree_s): Remove.
lerdsuwa [Sat, 25 Jan 2003 16:28:24 +0000 (16:28 +0000)]
* cp-tree.h (flagged_type_tree_s): Remove.
(check_for_new_type): Likewise.
* typeck2.c (check_for_new_type): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61779 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
hubicka [Sat, 25 Jan 2003 15:12:17 +0000 (15:12 +0000)]
* df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
subreg is read/modify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61773 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
hubicka [Sat, 25 Jan 2003 15:00:51 +0000 (15:00 +0000)]
* i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
do libcall for large blocks.
* i386.md (comi patterns): Set type to ssecomi.
(sse2_unpck?pd): Fix mode of vec_select.

* cse.c: Include except.h
(cse_set_around_loop):  Do not create new basic blocks.
* Makefile.in (cse.o): Add dependnecy on except.h

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61772 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcc.c-torture/execute/20030125-1.[cx]: New test.
hubicka [Sat, 25 Jan 2003 14:54:09 +0000 (14:54 +0000)]
* gcc.c-torture/execute/20030125-1.[cx]: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61771 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-25 Paolo Carlini <pcarlini@unitus.it>
paolo [Sat, 25 Jan 2003 14:39:11 +0000 (14:39 +0000)]
2003-01-25  Paolo Carlini  <pcarlini@unitus.it>

Tweaks for Bison-1.875. From the NEWS file:
  "- `parse error' -> `syntax error'
Bison now uniformly uses the term `syntax error'"
* gcc.dg/cpp/19990413-1.c: Test for "(parse|syntax) error".
* gcc.dg/cpp/digraph2.c: Likewise.
* gcc.dg/cpp/direct2.c: Likewise.
* gcc.dg/cpp/paste4.c: Likewise.
* gcc.dg/c90-restrict-1.c: Likewise.
* gcc.dg/c99-func-2.c: Likewise.
* gcc.dg/noncompile/920721-2.c: Likewise.
* gcc.dg/noncompile/930622-2.c: Likewise.
* gcc.dg/noncompile/940112-1.c: Likewise.
* gcc.dg/noncompile/950921-1.c: Likewise.
* gcc.dg/noncompile/951123-1.c: Likewise.
* gcc.dg/noncompile/971104-1.c: Likewise.
* gcc.dg/noncompile/990416-1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61768 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * builtins.c (fold_trunc_transparent_mathfn): New function.
hubicka [Sat, 25 Jan 2003 11:08:38 +0000 (11:08 +0000)]
* builtins.c (fold_trunc_transparent_mathfn): New function.
(fold_builtin): Use it.
* convert.c (convert_to_real): Re-enable code to convert
math functions; add support for floor familly functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61764 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
rakdver [Sat, 25 Jan 2003 10:16:10 +0000 (10:16 +0000)]
* Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
dependencies on coretypes.h and $(TM_H).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61762 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
hubicka [Sat, 25 Jan 2003 10:11:05 +0000 (10:11 +0000)]
* builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61761 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFix a small breakage.
kazu [Sat, 25 Jan 2003 04:12:17 +0000 (04:12 +0000)]
Fix a small breakage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61759 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoCleaned up ChangeLog snafu
tromey [Sat, 25 Jan 2003 02:53:04 +0000 (02:53 +0000)]
Cleaned up ChangeLog snafu

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61756 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386.c (x86_output_mi_thunk) Add Darwin/x86 support.
stuart [Sat, 25 Jan 2003 01:35:50 +0000 (01:35 +0000)]
* config/i386/i386.c (x86_output_mi_thunk) Add Darwin/x86 support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61755 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/c4x/c4x.md (UNSPEC_BU): New constants.
m.hayes [Sat, 25 Jan 2003 00:35:36 +0000 (00:35 +0000)]
* config/c4x/c4x.md (UNSPEC_BU): New constants.
(UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
(UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
(UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
(UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
(UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
(UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
(UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61754 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Sat, 25 Jan 2003 00:17:05 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61753 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * MAINTAINERS: Remove incorrect entry for Paul Eggert. Fix
gerald [Fri, 24 Jan 2003 23:31:41 +0000 (23:31 +0000)]
* MAINTAINERS: Remove incorrect entry for Paul Eggert.  Fix
entry of HJ Lu.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61746 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* configure.in: Remove special pex-cygwin consideration.
dj [Fri, 24 Jan 2003 23:23:18 +0000 (23:23 +0000)]
* configure.in: Remove special pex-cygwin consideration.
* configure: Regenerate.
* pex-cygwin.c: Remove.
* Makefile.in: Remove pex-cygwin.[co] lines.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61744 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-24 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 24 Jan 2003 23:14:28 +0000 (23:14 +0000)]
2003-01-24  Paolo Carlini  <pcarlini@unitus.it>

* g++.dg/parse/undefined1.C: Add error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61742 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * emit-rtl.c (reg_attrs_htab): New static variable.
hubicka [Fri, 24 Jan 2003 22:45:58 +0000 (22:45 +0000)]
* emit-rtl.c (reg_attrs_htab): New static variable.
(reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
functions.
(reg_rtx): Do not maintain regno_decl.
(gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
set_mem_attrs_from_reg): New global function.
(init_emit): Do not initialize regno_decl.
(init_emit_once): initialize reg_attrs_htab.
* final.c (alter_subreg): Do not replace REG by SUBREG.
(gen_mem_expr_from_op): Improve output.
(output_asm_operands): Likewise.
* function.c (assign_params): Do not set REGNO_DECL.
* function.h (struct function): Kill regno_decl.
(REGNO_DECL): Kill.
* gengtype.c (adjust_field_rtx_def): Handle new field of reg.
* print_rtl.c (print_rtx): Output REG information.
* regclass.c (reg_scan_mark_refs): Update attrs.
* reload1.c (alter_reg): Likewise.
* simplify_rtx.c (simplify_subreg): Likewise.
* stmt.c (expand_decl): Likewise.
* rtl.def (REG): Add new field.
* rtl.h (struct reg_attrs): New.
(rtunion_def): At rtreg.
(X0MEMATTR): Add checking.
(X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
(set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
Declare.
* tree.h (SET_DECL_RTL): Call set_decl_rtl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61741 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/xtensa/xtensa.c: Remove unused include of machmode.h.
bwilson [Fri, 24 Jan 2003 22:09:05 +0000 (22:09 +0000)]
    * config/xtensa/xtensa.c: Remove unused include of machmode.h.
        (xtensa_emit_call, print_operand): Fix printf format strings
        to avoid compile warnings.
        (xtensa_function_prologue, xtensa_function_epilogue): Change type
        of "size" argument to HOST_WIDE_INT to fix compile warnings.
        * config/xtensa/xtensa-protos.h
        (xtensa_function_prologue, xtensa_function_epilogue): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61739 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * builtins.c (DEF_BUILTIN): Accept 10 arguments.
hubicka [Fri, 24 Jan 2003 22:07:01 +0000 (22:07 +0000)]
* builtins.c (DEF_BUILTIN): Accept 10 arguments.
(implicit_built_in_decls): New global array.
(mathfn_built_in): New global function.
(fold_trunc_transparent_mathfn): New static function
(expand_builtin_strstr, expand_bultin_strchr,
expand_builtin_strpbrk, expand_builtin_strcpy,
expand_builtin_strncpy, expand_bultin_strcmp,
expand_bultin_strncat, expand_builtin_fputs): Use
implicint_built_in_decls.
(fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
* builtins.def: Fix comments.
(DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
(DEF_C99_C90RES_BULTIN): New.
(*f, *l builtins): Update.
* c-common.c (DEF_BUILTIN): Initialize implicit array.
(c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
* convert.c (strip_float_extensions): New global function.
* tree.h (DEF_BUILTIN): Accept 10 arguments.
(implicit_built_in_decls, mathfn_built_in, strip_float_extension):
Declare.
* java/builtins.c (define_builtin): Handle implicit.
(DEF_BUILTIN): Update.
* tm.texi (TARGET_C99_FUNCTIONS): Document.
* defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
* config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
when using glibc2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61738 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-24 Ranjit Mathew <rmathew@hotmail.com>
tromey [Fri, 24 Jan 2003 21:57:00 +0000 (21:57 +0000)]
2003-01-24  Ranjit Mathew  <rmathew@hotmail.com>

Fixes PR java/9253:
* java/io/natFileWin32.cc (performList): Append only "*.*"
if the canonical file path already has a "\" at the end.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61736 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
bwilson [Fri, 24 Jan 2003 21:51:03 +0000 (21:51 +0000)]
    * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
        extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
        (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
        * config/xtensa/crti.asm: New file.
        * config/xtensa/crtn.asm: New file.
        * config/xtensa/t-elf: New file.
        * config/xtensa/t-linux: New file.
        * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
        Move various CFLAGS settings to new t-elf file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61735 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR optimization/4382
rth [Fri, 24 Jan 2003 21:16:28 +0000 (21:16 +0000)]
    PR optimization/4382
        * tree-inline.c (find_builtin_longjmp_call_1): New.
        (find_builtin_longjmp_call): New.
        (inlinable_function_p): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61732 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
rakdver [Fri, 24 Jan 2003 20:48:47 +0000 (20:48 +0000)]
* config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
* config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
* config/i386/i386.c (function_arg_pass_by_reference): New.
(ix86_va_arg): Support arguments passed by reference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61731 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cfgloopanal.c: New file.
rakdver [Fri, 24 Jan 2003 20:27:02 +0000 (20:27 +0000)]
* cfgloopanal.c: New file.
* cfgloopmanip.c: New file.
* Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
(toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
cfglayout.o): Add dependency on cfgloop.h.
(cfgloop.o): Add flags.h dependency.
* basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
(VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
(struct loop, struct loops, flow_loops_find, flow_loops_update,
flow_loops_free, flow_loops_dump, flow_loop_dump,
flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
find_common_loop, verify_loop_structure): Declarations moved to ...
* cfgloop.h: New file.
* bb-reorder.c (reorder_basic_blocks): Modified.
* cfglayout.c: Include cfgloop.h.
(cleanup_unconditional_jumps, cfg_layout_redirect_edge,
cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
(break_superblocks): New static function.
(cfg_layout_finalize): Use it.
(cfg_layout_split_block): New function.
* cfglayout.h (struct reorder_block_def): Add copy and duplicated
fields.
(cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
changed.
(cfg_layout_split_block): Declare.
* cfgloop.c: Include cfgloop.h and flags.h.
(flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
get_loop_body): Avoid signed versus unsigned comparison warnings.
(make_forwarder_block, flow_loops_find, loop_preheader_edge,
loop_latch_edge): Modified.
(verify_loop_structure): Modified to use flags stored in loop structure;
check irreducible loops.
(cancel_loop, cancel_loop_tree): New functions.
(estimate_probability): Use loop analysis code for predictions.
(estimate_loops_at_level):  Avoid signed versus unsigned comparison
warnings.
* doloop.c: Include cfgloop.h.
* loop.c: Include cfgloop.h.
* predict.c: Include cfgloop.h.
* toplev.c: Include cfgloop.h.
* unroll.c: Include cfgloop.h.
* tracer.c (tracer): Modified.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61730 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (CFILES): Add pex-*.c.
zack [Fri, 24 Jan 2003 20:02:11 +0000 (20:02 +0000)]
* Makefile.in (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(CONFIGURED_OFILES): Add pex-*.o.
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* configure.in: Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.

* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.

* functions.texi: Regenerate.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61728 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * defineclass.cc (handleMethodsEnd): Precompute code for static
tromey [Fri, 24 Jan 2003 19:58:21 +0000 (19:58 +0000)]
* defineclass.cc (handleMethodsEnd): Precompute code for static
method.
(handleCodeAttribute): Likewise.
* resolve.cc (ncode): Use run_class for unsynchronized static
methods.
* include/java-interp.h (class _Jv_InterpMethod): Declare
run_class.
* interpret.cc (run_synch_class): Initialize class.
(run) [insn_invokestatic]: Don't initialize class.
[insn_anewarray]: Likewise.
[insn_multianewarray]: Likewise.
(run_class): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61727 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * java/lang/ClassLoader.java (findLoadedClass): Removed erroneous
tromey [Fri, 24 Jan 2003 19:37:17 +0000 (19:37 +0000)]
* java/lang/ClassLoader.java (findLoadedClass): Removed erroneous
comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61725 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * class.c (build_static_field_ref): Only a String or numeric field
tromey [Fri, 24 Jan 2003 17:44:03 +0000 (17:44 +0000)]
* class.c (build_static_field_ref): Only a String or numeric field
can fold to a constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61723 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-24 Ranjit Mathew <rmathew@hotmail.com>
tromey [Fri, 24 Jan 2003 17:39:49 +0000 (17:39 +0000)]
2003-01-24  Ranjit Mathew  <rmathew@hotmail.com>

* libjava.jni/calls.c (Java_calls_docall): Define with
JNIEXPORT and JNICALL method attributes.
* libjava.jni/field.c (Java_field_fetch): Likewise.
* libjava.jni/final_method.c (Java_final_1method_meth): Likewise.
* libjava.jni/findclass.c (Java_findclass_doit): Likewise.
* libjava.jni/invoke.c (Java_invoke_val): Likewise.
* libjava.jni/martin.c (Java_martin_myNative): Likewise.
* libjava.jni/noclass.c (Java_noclass_find_1it): Likewise.
* libjava.jni/overload.c (Java_overload_over__I): Likewise.
(Java_overload_over__II): Likewise.
* libjava.jni/register.c (JNI_OnLoad): Likewise.
* libjava.jni/simple_int.c (Java_simple_1int_nat): Likewise.
* libjava.jni/throwit.c (Java_throwit_throwit): Likewise.
* libjava.jni/virtual.c (Java_virtual_equals): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61720 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/h8300/h8300.c (get_shift_alg): Fix a typo.
kazu [Fri, 24 Jan 2003 17:19:47 +0000 (17:19 +0000)]
* config/h8300/h8300.c (get_shift_alg): Fix a typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61718 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agomissing changelog entry
nathan [Fri, 24 Jan 2003 17:17:05 +0000 (17:17 +0000)]
missing changelog entry

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61717 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
uweigand [Fri, 24 Jan 2003 17:10:22 +0000 (17:10 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61714 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/linker-map.gnu: Fix for size_t variance.
schwab [Fri, 24 Jan 2003 17:01:25 +0000 (17:01 +0000)]
* config/linker-map.gnu: Fix for size_t variance.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61713 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
nathan [Fri, 24 Jan 2003 16:54:23 +0000 (16:54 +0000)]
* config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
spe ABI is configured, if requested.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61712 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/passes.texi: Fix typo.
reichelt [Fri, 24 Jan 2003 16:43:40 +0000 (16:43 +0000)]
* doc/passes.texi: Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61708 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * stor-layout.c (excess_unit_span): Only define if used.
schwab [Fri, 24 Jan 2003 16:32:16 +0000 (16:32 +0000)]
* stor-layout.c (excess_unit_span): Only define if used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61707 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * include/bits/valarray_meta.h: Remove, split into ...
nathan [Fri, 24 Jan 2003 16:32:11 +0000 (16:32 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61706 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
schwab [Fri, 24 Jan 2003 16:30:17 +0000 (16:30 +0000)]
* ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
size_t to avoid warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61705 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcc/doc/invoke.texi (Optimization Options): List -O levels
gerald [Fri, 24 Jan 2003 16:08:41 +0000 (16:08 +0000)]
* gcc/doc/invoke.texi (Optimization Options): List -O levels
for each optimization flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61704 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
kazu [Fri, 24 Jan 2003 16:03:14 +0000 (16:03 +0000)]
* config/h8300/h8300.md (*andsi3_ashift_n_lower): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61702 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/bugreport.texi: Use @command instead of @code for commands.
reichelt [Fri, 24 Jan 2003 15:57:41 +0000 (15:57 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61701 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/arm/arm.c (use_return_insn): Do not use a single return instruction
nickc [Fri, 24 Jan 2003 15:50:44 +0000 (15:50 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61698 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdd sh2e support:
nickc [Fri, 24 Jan 2003 15:45:53 +0000 (15:45 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61697 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-01-24 Phil Edwards <pme@gcc.gnu.org>
pme [Fri, 24 Jan 2003 15:17:26 +0000 (15:17 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61696 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
rth [Fri, 24 Jan 2003 02:59:58 +0000 (02:59 +0000)]
    * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
        in no-else-block case.  Add commentary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61695 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of
tromey [Fri, 24 Jan 2003 02:37:34 +0000 (02:37 +0000)]
* jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of
file name in resource buffer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61694 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * configure.in: Revert last change.
ghazi [Fri, 24 Jan 2003 02:26:04 +0000 (02:26 +0000)]
* configure.in: Revert last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61693 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * ChangeLog (configure.in): Don't include ansidecl.h in tconfig.h.
ghazi [Fri, 24 Jan 2003 01:46:50 +0000 (01:46 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61692 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * dump.c: ANSIfy function declarations and definitions.
neroden [Fri, 24 Jan 2003 00:45:55 +0000 (00:45 +0000)]
* dump.c: ANSIfy function declarations and definitions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61691 138bc75d-0d04-0410-961f-82ee72b054a4