gcc.git
20 years agoi386.c (function_arg): Always treat 8- and 16-byte wide vectors the same, even if...
Paolo Bonzini [Mon, 26 Jul 2004 21:45:57 +0000 (21:45 +0000)]
i386.c (function_arg): Always treat 8- and 16-byte wide vectors the same, even if MMX/SSE are disabled.

        * config/i386/i386.c (function_arg): Always treat 8-
        and 16-byte wide vectors the same, even if MMX/SSE
        are disabled.
        (contains_128bit_aligned_vector_p): Add comment.

From-SVN: r85207

20 years agora.h (enum node_type): Rename to: (enum ra_node_type).
J"orn Rennecke [Mon, 26 Jul 2004 20:11:10 +0000 (20:11 +0000)]
ra.h (enum node_type): Rename to: (enum ra_node_type).

* ra.h (enum node_type): Rename to:
(enum ra_node_type).
* ra-colorize.c: Likewise.

From-SVN: r85202

20 years agog++spec.c (LIBSTDCXX_PROFILE): Default to LIBSTDCXX.
Geoffrey Keating [Mon, 26 Jul 2004 19:24:55 +0000 (19:24 +0000)]
g++spec.c (LIBSTDCXX_PROFILE): Default to LIBSTDCXX.

* g++spec.c (LIBSTDCXX_PROFILE): Default to LIBSTDCXX.
(lang_specific_driver): If the C++ or math library options don't
start with '-l', don't count them as added libraries.

From-SVN: r85201

20 years agocfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag after simplifying...
Richard Sandiford [Mon, 26 Jul 2004 18:27:59 +0000 (18:27 +0000)]
cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag after simplifying the jump.

* cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
after simplifying the jump.

From-SVN: r85200

20 years agocalls.c (combine_pending_stack_adjustment_and_call): Make preferred_unit_stack_bounda...
Richard Henderson [Mon, 26 Jul 2004 17:51:21 +0000 (10:51 -0700)]
calls.c (combine_pending_stack_adjustment_and_call): Make preferred_unit_stack_boundary argument unsigned.

        * calls.c (combine_pending_stack_adjustment_and_call): Make
        preferred_unit_stack_boundary argument unsigned.  Make
        unadjusted_alignment unsigned.
        (expand_call): Make preferred_stack_boundary and
        preferred_unit_stack_boundary variables unsigned.
        * function.c (assign_stack_local_1): Make alignment unsigned.
        * function.h (struct function): Make stack_alignment_needed,
        preferred_stack_boundary unsigned.
        * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
        (ix86_compute_frame_layout): Make stack_alignment_needed,
        preferred_alignment variables unsigned.
        * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.

From-SVN: r85196

20 years ago* tree.h: Fix typo in comment.
Tom Tromey [Mon, 26 Jul 2004 16:28:51 +0000 (16:28 +0000)]
* tree.h: Fix typo in comment.

From-SVN: r85195

20 years agore PR bootstrap/12804 (zone allocator is broken on 64bit)
Daniel Jacobowitz [Mon, 26 Jul 2004 15:11:53 +0000 (15:11 +0000)]
re PR bootstrap/12804 (zone allocator is broken on 64bit)

PR bootstrap/12804
* ggc-zone.c (struct alloc_chunk): Remove attribute packed.
(MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
(ggc_free): Remove incorrect freeing.
(sweep_pages): Advance PP for large pages.  Fix indentation.

From-SVN: r85194

20 years agore PR rtl-optimization/16643 (verify_local_live_at_start ICE after crossjumping ...
Richard Sandiford [Mon, 26 Jul 2004 14:34:19 +0000 (14:34 +0000)]
re PR rtl-optimization/16643 (verify_local_live_at_start ICE after crossjumping & cfgcleanup)

PR rtl-optimization/16643
* cfglayout.h (cfg_layout_initialize): Add a flags parameter.
* cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
* basic-block.h (reorder_basic_blocks): Add a flags parameter.
* cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
(partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
* function.c (thread_prologue_and_epilogue_insns): Likewise.
* rtl.h (tracer): Add a flags parameter.
* tracer.c (tracer): Pass it to cfg_layout_initialise.
* passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
(rest_of_handle_reorder_blocks): Update calls to tracer and
reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
(rest_of_handle_tracer): Pass 0 to tracer.
(rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.

From-SVN: r85191

20 years agors6000.md (movdi_internal64): Further disparage f->f.
David Edelsohn [Mon, 26 Jul 2004 14:31:13 +0000 (14:31 +0000)]
rs6000.md (movdi_internal64): Further disparage f->f.

        * config/rs6000/rs6000.md (movdi_internal64): Further disparage
        f->f.

From-SVN: r85190

20 years agoparse.y (build_super_invocation): Adjust declaration order to avoid declaration after...
Hans-Peter Nilsson [Mon, 26 Jul 2004 11:15:09 +0000 (11:15 +0000)]
parse.y (build_super_invocation): Adjust declaration order to avoid declaration after statement.

* parse.y (build_super_invocation): Adjust declaration order to
avoid declaration after statement.

From-SVN: r85189

20 years ago[multiple changes]
Arnaud Charlet [Mon, 26 Jul 2004 10:42:13 +0000 (12:42 +0200)]
[multiple changes]

2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>

* sem_util.adb (Requires_Transient_Scope): Temporarily disable
optimization, not supported by the tree-ssa back-end.

2004-07-26  Olivier Hainque  <hainque@act-europe.fr>

* s-mastop-irix.adb: Update comments.

* a-except.adb (Exception_Information): Raise Constraint_Error if
exception Id is Null_Id.
This is required behavior, which is more reliably and clearly checked
at the top level interface level.

2004-07-26  Javier Miranda  <miranda@gnat.com>

* exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
call if a component has no default_expression and the box is used.

* sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
default_expression and you use box, it behaves as if you had declared a
stand-alone object.
(Resolve_Record_Aggregate): If a component has no default_expression and
you use box, it behaves as if you had declared a stand-alone object.

* sem_ch10.adb (Install_Siblings): Do not make visible the private
entities of private-with siblings.

2004-07-26  Ed Schonberg  <schonberg@gnat.com>

* sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
for a component of an itype, set the parent pointer for analysis,
there is no list in which to insert it.

* sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
bona-fide renamings, not for inherited operations.

* exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
actual for a formal that is an access parameter, create local
finalization list even if the expression is not an aggregate.

2004-07-26  Ed Schonberg  <schonberg@gnat.com>

PR ada/16213
* sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
Diagnose properly illegal subprogram renamings that are library units.

2004-07-26  Ed Schonberg  <schonberg@gnat.com>

PR ada/15588
* sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
conversion rewritten as an unchecked conversion, check that original
expression is a variable.

* exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
unchecked_conversion, create new node rather than rewriting in place,
to preserve original construct.

2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

* gigi.h (gnat_expand_body): Deleted.

* Make-lang.in: (trans.o): Depends on function.h.

* misc.c: (gnat_expand_body): Moved to here.

* trans.c (gnat_expand_body_1): Deleted.
(gnat_expand_body): Moved from here.
(gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
(add_stmt): Check for marked visited with global_bindings_p.
(gnat_gimplify_expr, case COMPONENT_REF): New case.
(gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.

* utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
VIEW_CONVERT_EXPR if not operation type.

* utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
fat pointer.

* decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
changes: reformatting of negation operators, removing unneeded
inequality comparison with zero, converting equality comparisons with
zero to negations, changing int/0/1 to bool/false/true, replace calls
to gigi_abort with abort, and various other similar changes.

2004-07-26  Vincent Celier  <celier@gnat.com>

* gnatcmd.adb (GNATCmd): Add processing for new built-in command
"setup".

* make.adb (Gnatmake): Fail when a library is not present and there is
no object directory.

* mlib-prj.adb (Check_Library): No need to check if the library needs
to be rebuilt if there is no object directory, hence no object files
to build the library.

* opt.ads (Setup_Projects): New Boolean flag.

* prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
Location.
Create directory when Kind /= "" and in "gnat setup". Report error if
directory cannot be created.
(Ada_Check): Create library interface copy dir if it does not exist
and we are in "gnat setup".
(Find_Sources): No error if in "gnat setup" and no Ada sources were
found.
(Language_Independent_Check): Create object directory, exec directory
and/or library directory if they do not exist and we are in
"gnat setup".

* vms_conv.ads: (Command_Type): New command Setup.

* vms_conv.adb (Initialize): Add Setup component of Cammand_List.

* vms_data.ads: Add qualifiers/switches for new built-in command
"setup".

From-SVN: r85188

20 years agotree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
Nathan Sidwell [Mon, 26 Jul 2004 08:23:58 +0000 (08:23 +0000)]
tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).

.: * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
(BINFO_BASE_ACCESS): Adjust.
(BINFO_BASE_ACCESS_APPEND): New.
(struct tree_binfo): Make base_accesses a VEC(tree) pointer.
* dbxout.c (dbxout_type): Adjust binfo access accessing.
* dwarf2out.c (gen_member_die): Likewise.
* tree-dump.c (deque_and_dump): Likewise.
cp:
* decl.c (xref_basetypes): Adjust base access vector creation.
* rtti.c (get_pseudo_ti_init, get_pseudo_ti_desc): Adjust base
access accesses.
* search.c (dynamic_cast_base_recurse, dfs_access_in_type): Likewise.

From-SVN: r85187

20 years agoalpha.c (alpha_rtx_cost_data): Tweak int_div costs.
Falk Hueffner [Mon, 26 Jul 2004 07:07:48 +0000 (09:07 +0200)]
alpha.c (alpha_rtx_cost_data): Tweak int_div costs.

* config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
costs.

From-SVN: r85186

20 years agoi386.c (output_fp_compare): Use ffreep to pop top value off of the stack if TARGET_US...
Roger Sayle [Mon, 26 Jul 2004 03:23:14 +0000 (03:23 +0000)]
i386.c (output_fp_compare): Use ffreep to pop top value off of the stack if TARGET_USE_FFREEP.

* config/i386/i386.c (output_fp_compare): Use ffreep to pop top
value off of the stack if TARGET_USE_FFREEP.

From-SVN: r85178

20 years agogengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
Bernardo Innocenti [Mon, 26 Jul 2004 01:33:36 +0000 (03:33 +0200)]
gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().

* gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
* gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
* c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
check on invocation of XRESIZEVEC ().

From-SVN: r85177

20 years agoc-common.c (disable_builtin_function): Rename variable n to new_disabled_builtin.
Bernardo Innocenti [Mon, 26 Jul 2004 00:38:05 +0000 (02:38 +0200)]
c-common.c (disable_builtin_function): Rename variable n to new_disabled_builtin.

* c-common.c (disable_builtin_function): Rename variable n to
new_disabled_builtin.
* c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
Rename local variable old to old_decl.
* gensupport.c (shift_output_template): Rename parameter old to src.
* simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
old_rtx and newx to new_rtx.

From-SVN: r85175

20 years agoMakefile.in (C_PRAGMA_H): New variable to track dependencies of c-pragma.h.
Bernardo Innocenti [Mon, 26 Jul 2004 00:29:41 +0000 (02:29 +0200)]
Makefile.in (C_PRAGMA_H): New variable to track dependencies of c-pragma.h.

* Makefile.in (C_PRAGMA_H): New variable to track dependencies
of c-pragma.h.
* c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
enum cpp_ttype.
* c-lex.c: Likewise.

From-SVN: r85174

20 years agoDaily bump.
GCC Administrator [Mon, 26 Jul 2004 00:16:19 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85172

20 years agofold-const.c (constant_boolean_node): Make extern.
Roger Sayle [Sun, 25 Jul 2004 23:26:59 +0000 (23:26 +0000)]
fold-const.c (constant_boolean_node): Make extern.

* fold-const.c (constant_boolean_node): Make extern.
(make_range): Wrap long lines.
(fold_cond_expr_with_comparison): Remove unnecessary call to
pedantic_non_lvalue.  Add missing calls to fold_convert.
(fold_truthop): Add missing calls to fold_convert.
(fold): Likewise.
* tree.h (constant_boolean_node): Add prototype here.
* builtins.c (expand_builtin_strncmp): Add missing calls to
fold_convert.
* tree-ssa-dom.c (record_equivalences_from_incoming_edge):
Call fold_convert and constant_boolean_node to correct types.
* tree-ssa-forwprop.c (substitute_single_use_vars): Add
missing call to fold_convert to correct types.

From-SVN: r85169

20 years agoRemove DOS line endings
Giovanni Bajo [Sun, 25 Jul 2004 23:21:12 +0000 (23:21 +0000)]
Remove DOS line endings

From-SVN: r85168

20 years agore PR c++/9283 (__attribute__((visibility ("hidden"))) not supported for class/struct)
Niall Douglas [Sun, 25 Jul 2004 22:52:22 +0000 (22:52 +0000)]
re PR c++/9283 (__attribute__((visibility ("hidden"))) not supported for class/struct)

PR c++/9283
PR c++/15000
* c-common.c (c_common_attribute_table): Allow
handle_visibility_attribute to be called for types.
(handle_visibility_attribute) When given a type, set the visibility
bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
so that we can check later whether the attribute was present. Added
warning if attribute applied to non class type.
* c-decl.c (diagnose_mismatched_decls): Updated rules for merging
decls and checking that they are consistent.
* common.opt: Added -fvisibility.
* c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
* c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
* flags.h, tree.h: Added assorted support defines for overall patch
* opts.c: Added parsing support for -fvisibility.
* tree.c (build_decl): Set visibility for all decls to be whatever
is in force at that time.
* varasm.c (default_binds_local_p_1): Reworked logic determining
when to make a symbol locally bound.
* doc/invoke.texi: Added documentation for -fvisibility and
-fvisibility-inlines-hidden.

PR c++/15000
PR c++/9283
* class.c (check_field_decls): Apply hidden visibility if
-fvisibility-inlines-hidden and inlined unless otherwise specified
(build_vtable): Set vtable visibility to class visibility.
(check_field_decls): Default static member visibility to class
visibility.
(check_methods): Default method visibility to class visibility.
* cp-tree.h: Added CLASSTYPE_VISIBILITY and
CLASSTYPE_VISIBILITY_SPECIFIED macro.
* decl.c (duplicate_decls): New logic for merging definition decls
with declaration decls. Added ignore & warning when non default
applied to global operator new or delete.
* method.c, optimize.c, rtti.c: Added setting of VISIBILITY_SPECIFIED
wherever VISIBILITY was changed
* rtti.c (get_tinfo_decl): Set typeinfo visibility to class
visibility.
(tinfo_base_init): Set typeinfo name visibility to class visibility.

PR c++/9283
PR c++/15000
* gcc.dg/visibility-9.c, gcc.dg/visibility-a.c: New tests.
* g++.dg/ext/visibility/: New directory.
* g++.dg/ext/visibility-1.C, g++.dg/ext/visibility-2.C
g++.dg/ext/visibility-3.C, g++.dg/ext/visibility-4.C,
g++.dg/ext/visibility-5.C, g++.dg/ext/visibility-6.C,
g++.dg/ext/visibility-7.C: Move to g++.dg/ext/visibility/.
* g++.dg/ext/visibility/fvisibility.C,
g++.dg/ext/visibility/fvisibility-inlines-hidden.C,
g++.dg/ext/visibility/fvisibility-override1.C
g++.dg/ext/visibility/fvisibility-override2.C
g++.dg/ext/visibility/memfuncts.C
g++.dg/ext/visibility/noPLT.C
g++.dg/ext/visibility/pragma.C
g++.dg/ext/visibility/pragma-override1.C
g++.dg/ext/visibility/pragma-override2.C
g++.dg/ext/visibility/staticmemfuncts.C
g++.dg/ext/visibility/virtual.C: New tests.

Co-Authored-By: Brian Ryner <bryner@brianryner.com>
From-SVN: r85167

20 years agobasic-block.h (reorder_block_def): Rename to reorder_block_def_p.
Bernardo Innocenti [Sun, 25 Jul 2004 22:17:02 +0000 (00:17 +0200)]
basic-block.h (reorder_block_def): Rename to reorder_block_def_p.

* basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
* c-common.c: Add missing casts from void * to other types.
* c-decl.c: Likewise.
* c-format.c: Likewise.
* c-lex.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* defaults.h: Likewise.
* genconstants.c: Likewise.
* gengtype-lex.l: Likewise.
* genmodes.c: Likewise.
* read-rtl.c: Likewise.
* rtl.c: Likewise.

From-SVN: r85166

20 years agoAdd a few missing items to a ChangeLog entry of mine.
Bernardo Innocenti [Sun, 25 Jul 2004 21:12:01 +0000 (23:12 +0200)]
Add a few missing items to a ChangeLog entry of mine.

From-SVN: r85164

20 years agobitmap.c: Use type-safe memory allocation macros from libiberty.
Bernardo Innocenti [Sun, 25 Jul 2004 20:43:23 +0000 (22:43 +0200)]
bitmap.c: Use type-safe memory allocation macros from libiberty.

* bitmap.c: Use type-safe memory allocation macros from libiberty.
* c-common.c: Likewise.
* c-decl.c: Likewise.
* c-lang.c: Likewise.
* c-lex.c: Likewise.
* c-opts.c: Likewise.
* c-parse.in: Likewise.
* c-typeck.c: Likewise.
* genconditions.c: Likewise.
* gengtype-lex.l: Likewise.
* gengtype-yacc.y: Likewise.
* gengtype.c: Likewise.
* genmodes.c: Likewise.
* gensupport.c: Likewise.
* read-rtl.c: Likewise.
* read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
htab_find_slot().

From-SVN: r85163

20 years agoFix a ChangeLog entry.
Bernardo Innocenti [Sun, 25 Jul 2004 19:46:26 +0000 (21:46 +0200)]
Fix a ChangeLog entry.

From-SVN: r85162

20 years agoc-decl.c (groktypename, [...]): Rename variable typename to type_name.
Bernardo Innocenti [Sun, 25 Jul 2004 19:32:47 +0000 (21:32 +0200)]
c-decl.c (groktypename, [...]): Rename variable typename to type_name.

* c-decl.c (groktypename, groktypename_in_param_context): Rename
variable typename to type_name.
* c-lex.c (interpret_float): Likewise.

From-SVN: r85161

20 years agoconvert.c (convert_to_real, [...]): Replace calls to build with calls to buildN.
Roger Sayle [Sun, 25 Jul 2004 19:15:50 +0000 (19:15 +0000)]
convert.c (convert_to_real, [...]): Replace calls to build with calls to buildN.

* convert.c (convert_to_real, convert_to_integer,
convert_to_complex): Replace calls to build with calls to buildN.
* coverage.c (tree_coverage_counter_ref): Likewise.
* dojump.c (do_jump): Likewise.
* dwarf2out.c (loc_descriptor_from_tree): Likewise.
* emit-rtl.c (component_ref_for_mem_expr,
set_mem_attributes_minus_bitpos): Likewise.
* explow.c (update_nonlocal_goto_save_area): Likewise.
* expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
expand_mult_add): Likewise.
* expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
store_constructor, get_inner_reference, expand_expr_real_1,
try_casesi, try_tablejump): Likewise.
* function.c (expand_function_start): Likewise.
* stmt.c (emit_case_bit_tests, expand_end_case_type,
node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
* stor-layout.c (place_union_field, layout_type): Likewise.
* tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
* varasm.c (copy_constant): Likewise.

From-SVN: r85160

20 years agoc-common.c: Rename all identifiers named `new'.
Bernardo Innocenti [Sun, 25 Jul 2004 19:09:36 +0000 (21:09 +0200)]
c-common.c: Rename all identifiers named `new'.

* c-common.c: Rename all identifiers named `new'.
* c-decl.c: Likewise.
* gensupport.c: Likewise.
* simplify-rtx.c: Likewise.

From-SVN: r85159

20 years agore PR c/15360 (c99: extern w/initializer; extern w/internal linkage)
Joseph Myers [Sun, 25 Jul 2004 18:42:24 +0000 (19:42 +0100)]
re PR c/15360 (c99: extern w/initializer; extern w/internal linkage)

PR c/15360
* c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
declarations until after calling pushdecl.
(grokdeclarator): Set DECL_EXTERNAL for variables based on use of
"extern" and not on whether the declaration is initialized.

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

From-SVN: r85156

20 years ago* config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
Daniel Jacobowitz [Sun, 25 Jul 2004 18:10:05 +0000 (18:10 +0000)]
* config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
(sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
* config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
"cpplib.h", "c-pragma.h", "c-common.h".
(solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
(solaris_register_pragmas): New functions.
* config/sol2-protos.h: New file.
* config/sol2.c: New file.
* config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
(REGISTER_TARGET_PRAGMAS): New macros.
(solaris_pending_aligns, solaris_pending_inits)
(solaris_pending_finis): New variables.
* config/t-sol2 (sol2-c.o): Update dependencies.
(sol2.o): New rule.
* config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
SUBTARGET_INSERT_ATTRIBUTES.
(ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
* config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
(SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
* config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
* config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
* config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
(SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
* config/sparc/sparc.c (sparc_attribute_table): New.
(TARGET_INSERT_ATTRIBUTES): Define in terms of
SUBTARGET_INSERT_ATTRIBUTES.
(TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
is defined.
* doc/extend.texi (Solaris Pragmas): New section.

From-SVN: r85155

20 years agopragma-align-2.c: New test.
Daniel Jacobowitz [Sun, 25 Jul 2004 18:08:52 +0000 (18:08 +0000)]
pragma-align-2.c: New test.

* gcc.dg/pragma-align-2.c: New test.
* gcc.dg/pragma-init-fini.c: New test.
* gcc.dg/pragma-align.c: Change from compile to run.  Run on Solaris
targets.

From-SVN: r85154

20 years agoc-common.c: Rename all identifiers named `class' to `cl'.
Bernardo Innocenti [Sun, 25 Jul 2004 17:57:24 +0000 (19:57 +0200)]
c-common.c: Rename all identifiers named `class' to `cl'.

* c-common.c: Rename all identifiers named `class' to `cl'.
* c-decl.c: Likewise.
* c-common.h: Likewise.
* c-parse.in: Likewise.
* c-typeck.c: Likewise.
* genmodes.c: Likewise.
* real.c: Likewise.
* real.h: Likewise.
* recog.c: Likewise.
* recog.h: Likewise.
* regrename.c: Likewise.
* tree.h: Likewise.

From-SVN: r85153

20 years ago* decl.c: Rename all identifiers named `class' to `cl'.
Bernardo Innocenti [Sun, 25 Jul 2004 17:54:37 +0000 (19:54 +0200)]
* decl.c: Rename all identifiers named `class' to `cl'.

From-SVN: r85152

20 years agodecl.c: Rename all identifiers named `class' to `cl'.
Bernardo Innocenti [Sun, 25 Jul 2004 17:54:02 +0000 (19:54 +0200)]
decl.c: Rename all identifiers named `class' to `cl'.

* decl.c: Rename all identifiers named `class' to `cl'.
* cp-tree.h: Likewise.

From-SVN: r85151

20 years agocp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Use GGC_CNEW.
Gabriel Dos Reis [Sun, 25 Jul 2004 17:19:39 +0000 (17:19 +0000)]
cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Use GGC_CNEW.

        * cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Use GGC_CNEW.
        * typeck2.c (abstract_virtuals_error): Use GGC_NEW.
        * name-lookup.c (binding_entry_make): Use GGC_NEW.
        (binding_table_construct): Use GGC_CNEWVEC.
        (binding_table_new): Use GGC_NEW.
        (cxx_binding_make): Likewise.
        (begin_scope): Likewise.
        (push_to_top_level): Use GCC_CNEW.
        * parser.c (cp_token_cache_new): Likewise.
        (cp_token_cache_push_token): Likewise.
        (cp_lexer_new_main): Likewise.
        (cp_lexer_new_from_tokens): Likewise.
        (cp_parser_context_new): Likewise.
        (cp_parser_new): Likewise.
        (cp_lexer_new_from_tokens): Use GGC_NEWVEC.
        * lex.c (cxx_make_type): Use GGC_CNEW.
        (retrofit_lang_decl): Use GGC_NEWVAR.
        (cxx_dup_lang_specific_decl): Likewise.
        (copy_lang_type): Likewise.
        * decl.c (use_label): Use GGC_NEW instead of ggc_alloc.
        (save_function_data): Likewise.
        (lookup_label): Use GGC_CNEW instead of ggc_alloc_cleared.
        (cxx_push_function_context): Likewise.

From-SVN: r85150

20 years agoregmove.c (optimize_reg_copy_1): Don't try to replace call-used hard registers.
Daniel Jacobowitz [Sun, 25 Jul 2004 17:01:49 +0000 (17:01 +0000)]
regmove.c (optimize_reg_copy_1): Don't try to replace call-used hard registers.

* regmove.c (optimize_reg_copy_1): Don't try to replace call-used
hard registers.

From-SVN: r85149

20 years agotree-ssa-operands.c (get_stmt_operands, [...]): Handle ARRAY_RANGE_REF like ARRAY_REF.
Richard Kenner [Sun, 25 Jul 2004 14:43:51 +0000 (14:43 +0000)]
tree-ssa-operands.c (get_stmt_operands, [...]): Handle ARRAY_RANGE_REF like ARRAY_REF.

* tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
Handle ARRAY_RANGE_REF like ARRAY_REF.

From-SVN: r85148

20 years agoRemove obsolete text in comment.
Richard Kenner [Sun, 25 Jul 2004 14:39:42 +0000 (10:39 -0400)]
Remove obsolete text in comment.

From-SVN: r85147

20 years agoc-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of wchar_...
Joseph Myers [Sun, 25 Jul 2004 09:12:21 +0000 (10:12 +0100)]
c-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of wchar_t to be initialized...

* c-typeck.c (digest_init): Don't allow arrays of signed or
unsigned variants of wchar_t to be initialized by wide string
constants.  Do allow arrays of enumerated types compatible with
wchar_t to be initialized by wide string constants.  Refine tests
distinguishing wide and narrow strings and arrays.  Give specific
error for arrays of other integer types initialized by string
constants.
(output_init_element, process_init_element): Check for
INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
initializing with string constants.

testsuite:
* gcc.dg/init-string-2.c: New test.

From-SVN: r85146

20 years agoc-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on the RESULT_DECL.
Richard Henderson [Sun, 25 Jul 2004 08:10:28 +0000 (01:10 -0700)]
c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on the RESULT_DECL.

        * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
        on the RESULT_DECL.
        * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
        * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
        DECL_IGNORED_P to new decl.
ada/
        * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
        DECL_IGNORED_P on RESULT_DECL.
cp/
        * decl.c (start_preparsed_function): Set DECL_ARTIFICIAL and
        DECL_IGNORED_P on RESULT_DECL.
        * semantics.c (finalize_nrv): Copy them too.
fortran/
        * trans-decl.c (gfc_build_function_decl): Set DECL_ARTIFICIAL
        and DECL_IGNORED_P on RESULT_DECL.
        (gfc_generate_constructors): Likewise.
java/
        * decl.c (build_result_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P.

From-SVN: r85145

20 years ago[multiple changes]
Zack Weinberg [Sun, 25 Jul 2004 04:03:42 +0000 (04:03 +0000)]
[multiple changes]

2004-07-24  Zack Weinberg  <zack@codesourcery.com>

* config/ia64/ia64.c (general_xfmode_operand)
(destination_xfmode_operand): Delete.
* config/ia64/ia64.h (PREDICATE_CODES): Remove them.
* config/ia64/ia64.md (*movxf_internal): Use general_operand
and destination_operand.

2004-07-24  Alexander Kabaev  <kan@freebsd.org>

* config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
(EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.

From-SVN: r85141

20 years agoZack Weinberg <zack@codesourcery.com
Zack Weinberg [Sun, 25 Jul 2004 03:58:50 +0000 (03:58 +0000)]
Zack Weinberg <zack@codesourcery.com

2004-07-24  Alexander Kabaev  <kan@freebsd.org>
    Zack Weinberg  <zack@codesourcery.com

PR 16684
* c-decl.c (diagnose_mismatched_decls): Don't issue a
redundant-declaration warning the first time a builtin is
declared explicitly.
testsuite:
* gcc.dg/Wredundant-decls-1.c: New test case.

From-SVN: r85140

20 years ago* tree.h (staticp): Change return type to bool.
Bernardo Innocenti [Sun, 25 Jul 2004 03:28:38 +0000 (05:28 +0200)]
* tree.h (staticp): Change return type to bool.

From-SVN: r85139

20 years ago* c-common.c (c_staticp): Last episode of the staticp saga.
Bernardo Innocenti [Sun, 25 Jul 2004 03:13:12 +0000 (05:13 +0200)]
* c-common.c (c_staticp): Last episode of the staticp saga.

From-SVN: r85138

20 years agoc-common.h (c_staticp): Change return type from int to bool.
Bernardo Innocenti [Sun, 25 Jul 2004 02:50:57 +0000 (04:50 +0200)]
c-common.h (c_staticp): Change return type from int to bool.

* c-common.h (c_staticp): Change return type from int to bool.
* tree.c (staticp): Likewise.
* langhooks.h (staticp): Likewise.

From-SVN: r85137

20 years agolanghooks-def.h (lhd_staticp): Change return type from int to bool in prototype to...
Bernardo Innocenti [Sun, 25 Jul 2004 00:42:49 +0000 (02:42 +0200)]
langhooks-def.h (lhd_staticp): Change return type from int to bool in prototype to match definition.

* langhooks-def.h (lhd_staticp): Change return type from int to
bool in prototype to match definition.

From-SVN: r85136

20 years agosystem.h (bool, [...]): Don't redefine as preprocessor macros in C++.
Bernardo Innocenti [Sun, 25 Jul 2004 00:32:22 +0000 (02:32 +0200)]
system.h (bool, [...]): Don't redefine as preprocessor macros in C++.

* system.h (bool, true, false): Don't redefine as preprocessor macros
in C++.

From-SVN: r85135

20 years agoexpmed.c (init_expmed): A signed modulus by a power of two is considered cheap if...
Roger Sayle [Sun, 25 Jul 2004 00:25:28 +0000 (00:25 +0000)]
expmed.c (init_expmed): A signed modulus by a power of two is considered cheap if...

* expmed.c (init_expmed): A signed modulus by a power of two is
considered cheap if its less than or equal to four instructions.

From-SVN: r85134

20 years agoggc.h (GGC_NEW, [...]): New macros.
Bernardo Innocenti [Sun, 25 Jul 2004 00:20:14 +0000 (02:20 +0200)]
ggc.h (GGC_NEW, [...]): New macros.

* ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
GGC_CNEWVAR): New macros.

From-SVN: r85133

20 years agoDaily bump.
GCC Administrator [Sun, 25 Jul 2004 00:16:15 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85131

20 years agoc-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists.
Bernardo Innocenti [Sun, 25 Jul 2004 00:13:01 +0000 (02:13 +0200)]
c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter lists.

* c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
lists.
* c-decl.c: Likewise.
* c-format.c: Likewise.
* c-lex.c: Likewise.
* c-opts.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* gencheck.c: Likewise.
* genconditions.c: Likewise.
* genconfig.c: Likewise.
* genflags.c: Likewise.
* gengtype.c: Likewise.
* gensupport.c: Likewise.
* ggc-none.c: Likewise.
* langhooks.c: Likewise.
* statistics.h: Likewise.
* stub-objc.c: Likewise.
* java/decl.c: Likewise.

From-SVN: r85128

20 years agointernal.h (xnew, [...]): Remove.
Bernardo Innocenti [Sat, 24 Jul 2004 18:04:42 +0000 (20:04 +0200)]
internal.h (xnew, [...]): Remove.

* internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
* directives.c: Use XNEW-family macros from libiberty.
* lex.c: Likewise.
* macro.c: Likewise.
* cpplib.h (cpp_deps_style): Export enum with name.

From-SVN: r85121

20 years ago* ansidecl.h (ARG_UNUSED): New Macro.
Bernardo Innocenti [Sat, 24 Jul 2004 17:49:27 +0000 (19:49 +0200)]
* ansidecl.h (ARG_UNUSED): New Macro.

From-SVN: r85120

20 years agolibiberty.h (XNEW, [...]): Move here from libcpp/internal.h.
Bernardo Innocenti [Sat, 24 Jul 2004 17:48:01 +0000 (19:48 +0200)]
libiberty.h (XNEW, [...]): Move here from libcpp/internal.h.

* libiberty.h (XNEW, XCNEW, XNEWVEC, XCNEWVEC, XOBNEW): Move here from
libcpp/internal.h.
(XDELETE, XRESIZEVEC, XDELETEVEC, XNEWVAR, XCNEWVAR, XRESIZEVAR): New
macros.

From-SVN: r85119

20 years agoMakefile.am: Add gnu/java/security/action/GetPropertyAction.java and...
Bryce McKinlay [Sat, 24 Jul 2004 16:43:45 +0000 (16:43 +0000)]
Makefile.am: Add gnu/java/security/action/GetPropertyAction.java and...

2004-07-24  Bryce McKinlay  <mckinlay@redhat.com>

        * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
        and gnu/java/security/action/SetAccessibleAction.java.
        * Makefile.in: Rebuilt.

From-SVN: r85118

20 years agom68k.c (output_scc_di): Fix coding style.
Roman Zippel [Sat, 24 Jul 2004 11:12:29 +0000 (11:12 +0000)]
m68k.c (output_scc_di): Fix coding style.

2004-07-24  Roman Zippel  <zippel@linux-m68k.org>

* config/m68k/m68k.c (output_scc_di): Fix coding style.
(symbolic_operand): Fix prototype.
* config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
* config/m68k/m68k.md: Add constants for registers a0 and sp and
use them, change from the "{...}" syntax to the simpler {...}
syntax.
(*cfv4_extendqisi2): Fix destination predicate.
* config/m68k/m68k-protos.h: Remove various declarations also
generated via PREDICATE_CODES.

From-SVN: r85115

20 years agoc-typeck.c (convert_for_assignment): Tightened up pointer converstions that differ...
Mike Stump [Sat, 24 Jul 2004 07:32:15 +0000 (07:32 +0000)]
c-typeck.c (convert_for_assignment): Tightened up pointer converstions that differ in signedness.

        * c-typeck.c (convert_for_assignment): Tightened up pointer converstions
        that differ in signedness.
Apple Radar 2535328.

From-SVN: r85114

20 years ago* genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
Zack Weinberg [Sat, 24 Jul 2004 06:26:50 +0000 (06:26 +0000)]
* genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.

From-SVN: r85113

20 years agotree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
Richard Kenner [Sat, 24 Jul 2004 01:35:04 +0000 (01:35 +0000)]
tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.

* tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
* tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.

From-SVN: r85111

20 years agogimplify.c (gimplify_compound_lval): Check for no handled operations, rather than...
Richard Kenner [Sat, 24 Jul 2004 01:29:11 +0000 (01:29 +0000)]
gimplify.c (gimplify_compound_lval): Check for no handled operations, rather than checking for explicit list of nodes.

* gimplify.c (gimplify_compound_lval): Check for no handled
operations, rather than checking for explicit list of nodes.
(is_gimple_addr_expr_arg_or_indirect): New function.
(gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
redundant setting of TREE_INVARIANT.
(gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
* tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.

From-SVN: r85110

20 years agoprims.cc (_Jv_InitPrimClass): Don't create an array class.
Bryce McKinlay [Sat, 24 Jul 2004 01:17:29 +0000 (01:17 +0000)]
prims.cc (_Jv_InitPrimClass): Don't create an array class.

2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* prims.cc (_Jv_InitPrimClass): Don't create an array class.
(_Jv_CreateJavaVM): Don't pass array vtable parameter to
_Jv_InitPrimClass.
(DECLARE_PRIM_TYPE): Don't declare array vtables.
* include/jvm.h (struct _Jv_ArrayVTable): Removed.
* java/lang/Class.h (_Jv_InitPrimClass): Update friend declaration.

From-SVN: r85109

20 years agore PR tree-optimization/16688 (ICE in group_aliases, at tree-ssa-alias.c:1234)
Diego Novillo [Sat, 24 Jul 2004 01:05:45 +0000 (01:05 +0000)]
re PR tree-optimization/16688 (ICE in group_aliases, at tree-ssa-alias.c:1234)

PR tree-optimization/16688
PR tree-optimization/16689
* tree-ssa-alias.c (setup_pointers_and_addressables): Remove
unnecessary initialization of 'tag'.
(get_tmt_for): Check that the new type tag has the same alias
set as the pointed-to type.
(group_aliases): Only regular variables need to be removed
from the alias set of a name tag.
* tree-ssa-copy.c (may_propagate_copy): Do not allow copy
propagation if the two types are not compatible.
(merge_alias_info): Rename from replace_ssa_names_ann.
Add more checking.
(replace_exp_1): If both arguments are SSA_NAMEs, check that
the propagation can be done.
Only call merge_alias_info on pointers.
(propagate_value): Likewise.
* tree-ssa-copyrename.c: Include langhooks.h.
(copy_rename_partition_coalesce): Call replace_ssa_name_symbol
to do the merging.
Do not coalesce variables with incompatible types.
(rename_ssa_copies): Call replace_ssa_name_symbol.
* tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
the same type as the underlying _DECL.
* tree-ssanames.c (replace_ssa_name_symbol): New function.
* tree.h (replace_ssa_name_symbol): Declare.

From-SVN: r85108

20 years agoDaily bump.
GCC Administrator [Sat, 24 Jul 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85106

20 years agore PR libstdc++/16678 (warning: suggest parentheses around assignment used as truth...
Benjamin Kosnik [Sat, 24 Jul 2004 00:10:09 +0000 (00:10 +0000)]
re PR libstdc++/16678 (warning: suggest parentheses around assignment used as truth value)

2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/16678
* include/bits/locale_facets.tcc: Fix for -Werror.

From-SVN: r85103

20 years agoboehm.c (set_bit): Improve type safety wrt unsignedness.
Mike Stump [Sat, 24 Jul 2004 00:03:28 +0000 (00:03 +0000)]
boehm.c (set_bit): Improve type safety wrt unsignedness.

        * boehm.c (set_bit): Improve type safety wrt unsignedness.
        * gjavah.c (throwable_p, decode_signature_piece,
        print_full_cxx_name, print_include, add_namelet, add_class_decl,
        process_file): Likewise.
        * jcf-dump.c (main): Likewise.
        * jcf-io.c (read_zip_member): Likewise.
        * jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant,
        give_name_to_class, get_class_constant): Likewise.
        * jcf-write.c (find_constant_wide, push_long_const,
        generate_classfile): Likewise.
        * lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise.
        * parse.y (read_import_dir): Likewise.
        * typeck.c (parse_signature_type): Likewise.
        * verify.c (verify_jvm_instructions): Likewise.
        * zextract.c (find_zip_file_start, read_zip_archive): Likewise.

From-SVN: r85102

20 years agoMakefile.am: Rename jar binary to fastjar.
Thomas Fitzsimmons [Fri, 23 Jul 2004 23:34:17 +0000 (23:34 +0000)]
Makefile.am: Rename jar binary to fastjar.

2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Makefile.am: Rename jar binary to fastjar.
* Makefile.in: Regenerate.
* fastjar.texi: Rename references to jar binary with fastjar.

2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Make-lang.in: Replace rmic and rmiregistry references with
grmic and grmiregistry.
* gcj.texi: Likewise.

2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Makefile.am: Replace jar, rmic and rmiregistry references with
gjar, grmic and grmiregistry.
* configure.in: Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
* gcj/Makefile.in: Likewise.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.

From-SVN: r85101

20 years agore PR c++/16277 (Wrong code with conditionals in initializers)
Richard Henderson [Fri, 23 Jul 2004 22:48:14 +0000 (15:48 -0700)]
re PR c++/16277 (Wrong code with conditionals in initializers)

        PR c++/16277
        * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
        unshare it properly.
        (gimplify_modify_expr_rhs): Push assignment from a conditional into
        the conditional for all non-register types.

From-SVN: r85100

20 years agoexpr.c (expand_expr_real_1): Don't handle non-local variables.
Richard Henderson [Fri, 23 Jul 2004 22:37:23 +0000 (15:37 -0700)]
expr.c (expand_expr_real_1): Don't handle non-local variables.

        * expr.c (expand_expr_real_1): Don't handle non-local variables.
        * expr.h (fix_lexical_addr): Remove.
        * function.c (NEED_SEPARATE_AP): Remove.
        (fix_lexical_addr): Remove.
        * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
        not null decl_function_context.
        (create_alias_vars): Likewise.
        * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
        (simple_goto_p): Likewise.
        * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
        * tree-ssa-ccp.c (get_default_value): Likewise.
        * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
        * tree.c (needs_to_live_in_memory): Likewise.
        * tree-flow-inline.h (may_be_aliased): Move...
        * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
        when TREE_STATIC variables may be addressable.

From-SVN: r85099

20 years agoMakefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
Jakub Jelinek [Fri, 23 Jul 2004 22:36:47 +0000 (00:36 +0200)]
Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.

* Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
testsuite/
* README.compat: Add RUN_ALL_COMPAT_TESTS documentation.
* lib/compat.exp: Replace ^$tmpdir/? in testcase names with tmpdir-.
* gcc.dg/compat/struct-layout-1.exp: New testsuite driver.
* gcc.dg/compat/struct-layout-1_generate.c: New testcase generator.
* gcc.dg/compat/generate-random.c: New file.
* gcc.dg/compat/generate-random.h: Likewise.
* gcc.dg/compat/generate-random_r.c: Likewise.
* gcc.dg/compat/struct-layout-1.h: Likewise.
* gcc.dg/compat/struct-layout-1_x1.h: Likewise.
* gcc.dg/compat/struct-layout-1_x2.h: Likewise.
* gcc.dg/compat/struct-layout-1_y1.h: Likewise.
* gcc.dg/compat/struct-layout-1_y2.h: Likewise.
* gcc.dg/compat/struct-layout-1_main.c: New test.
* gcc.dg/compat/struct-layout-1_x.c: New file.
* gcc.dg/compat/struct-layout-1_y.c: New file.
* gcc.dg/compat/struct-layout-1_test.h: New file.

From-SVN: r85098

20 years agoConnection.java: Use GetPropertyAction for privileged getProperty calls.
Bryce McKinlay [Fri, 23 Jul 2004 22:20:14 +0000 (22:20 +0000)]
Connection.java: Use GetPropertyAction for privileged getProperty calls.

2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction
for privileged getProperty calls.
* java/io/ObjectOutputStream.java (getField): No longer static. Use
SetAccessibleAction instead of anonymous class for doPrivileged
call.
(getMethod): Likewise.
(setAccessible): New field. PrivilegedAction object to use when
calling setAccessible.
* java/io/ObjectStreamClass.java (calculateOffsets): Use
SetAccessibleAction instead of anonymous class for diPrivileged
call.
(setFields): Likewise.
(getClassUID): Likewise.
(findMethod): Likewise.
* gnu/java/security/action/GetPropertyAction.java: New class.
* gnu/java/security/action/SetAccessibleAction.java: New class.

From-SVN: r85097

20 years agoObjectStreamField (ObjectStreamField): Don't unset 'toset' for final fields.
Bryce McKinlay [Fri, 23 Jul 2004 21:46:09 +0000 (21:46 +0000)]
ObjectStreamField (ObjectStreamField): Don't unset 'toset' for final fields.

2004-07-23  Bryce McKinlay  <mckinlay@redhat.com>

* java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
for final fields.
* testsuite/libjava.lang/Serialization.java: New test.
* testsuite/libjava.lang/Serialization.out: New.

From-SVN: r85096

20 years agoprint-rtl.c (print_rtx <case 'b'>): Don't attempt to print bitmap contents if GENERAT...
Zack Weinberg [Fri, 23 Jul 2004 21:15:45 +0000 (21:15 +0000)]
print-rtl.c (print_rtx <case 'b'>): Don't attempt to print bitmap contents if GENERATOR_FILE is defined.

* print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
bitmap contents if GENERATOR_FILE is defined.
* Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
($(BUILD_PREFIX_1)bitmap.o): Delete rule.

From-SVN: r85095

20 years agoc-decl.c (start_function): Form composite type of function types rather than copying...
Joseph Myers [Fri, 23 Jul 2004 19:22:13 +0000 (20:22 +0100)]
c-decl.c (start_function): Form composite type of function types rather than copying type from previous...

* c-decl.c (start_function): Form composite type of function types
rather than copying type from previous prototype declaration.

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

From-SVN: r85093

20 years agoaltivec.h (vec_lvewx, [...]): Remove the const qualifier for the second argument...
Janis Johnson [Fri, 23 Jul 2004 18:34:36 +0000 (18:34 +0000)]
altivec.h (vec_lvewx, [...]): Remove the const qualifier for the second argument in the C++ functions.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
the const qualifier for the second argument in the C++ functions.

From-SVN: r85092

20 years agoaltivec.h (vec_stvewx, [...]): Use specific pointer types.
Janis Johnson [Fri, 23 Jul 2004 18:33:19 +0000 (18:33 +0000)]
altivec.h (vec_stvewx, [...]): Use specific pointer types.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
specific pointer types.

From-SVN: r85091

20 years agoaltivec.h (vec_vadduwm): (vec_vadduwm...
Janis Johnson [Fri, 23 Jul 2004 18:32:06 +0000 (18:32 +0000)]
altivec.h (vec_vadduwm): (vec_vadduwm...

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
for vector bool and/or vector pixel, add C++ and C missing support.
(vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
missing C++ and C support for vector bool and/or vector pixel.
(vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
C++ and C types used for vector bool and/or vector pixel.
(vec_st, vec_stl): Add C++ support for vector pixel.
(vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
(vec_all_ne): Add C++ support for vector pixel.

From-SVN: r85090

20 years agoaltivec.h (vec_vcmpgtsh): Fix C++ function name.
Janis Johnson [Fri, 23 Jul 2004 18:30:48 +0000 (18:30 +0000)]
altivec.h (vec_vcmpgtsh): Fix C++ function name.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
(vec_vmulesb): Add missing C++ function.
(vec_perm): Fix type of third argument in C++ function.
(vec_vsum4shs): Fix C++ function name.
(vec_any_ge): Remove C++ functions for unsupported arg combinations.
(vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
argument passed to the error handler in C macro.
(vec_nmsub): Remove extra parens around argument names in C macro.
(vec_packpx): Add missing parens in C macro.

From-SVN: r85089

20 years ago8-02a.c: Fix typo.
Janis Johnson [Fri, 23 Jul 2004 18:27:57 +0000 (18:27 +0000)]
8-02a.c: Fix typo.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/8-02a.c: Fix typo.

From-SVN: r85088

20 years agovarargs-4.c: Remove a Darwin-specific check.
Janis Johnson [Fri, 23 Jul 2004 18:25:47 +0000 (18:25 +0000)]
varargs-4.c: Remove a Darwin-specific check.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/varargs-4.c: Remove a Darwin-specific check.
* gcc.dg/darwin-abi-3.c: New test.

From-SVN: r85087

20 years agodebug-1.c: Use int, not long, in union with vector.
Janis Johnson [Fri, 23 Jul 2004 18:22:57 +0000 (18:22 +0000)]
debug-1.c: Use int, not long, in union with vector.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/debug-1.c: Use int, not long, in union with vector.
* gcc.dg/vmx/varargs-1.c: Use int, not long, in union with vector.

From-SVN: r85086

20 years agoops.c: Remove checks using pointers to long.
Janis Johnson [Fri, 23 Jul 2004 18:20:21 +0000 (18:20 +0000)]
ops.c: Remove checks using pointers to long.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

* gcc.dg/vmx/ops.c: Remove checks using pointers to long.
* gcc.dg/vmx/ops-long-1.c: New test.
* gcc.dg/vmx/ops-long-2.c: New test.

From-SVN: r85085

20 years agoDefaultContentHandlerFactory.java: Check in real file missed in last commit.
Mark Wielaard [Fri, 23 Jul 2004 14:25:41 +0000 (14:25 +0000)]
DefaultContentHandlerFactory.java: Check in real file missed in last commit.

2004-07-23  Mark Wielaard  <mark@klomp.org>

* gnu/java/net/DefaultContentHandlerFactory.java: Check in real file
missed in last commit.

From-SVN: r85080

20 years agoSystem.java (static): Set http.agent system property when not yet set.
Mark Wielaard [Fri, 23 Jul 2004 11:49:59 +0000 (11:49 +0000)]
System.java (static): Set http.agent system property when not yet set.

       * java/lang/System.java (static): Set http.agent system property when
       not yet set.
       * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
       from system property inside AccessController.doPrivileged() call.
       (proxyPort): Made package private.
       (proxyInUse): Likewise.
       (proxyHost): Likewise.
       (userAgent): Likewise.

From-SVN: r85078

20 years agoDefaultContentHandlerFactory.java: New dummy implementation.
Mark Wielaard [Fri, 23 Jul 2004 10:24:02 +0000 (10:24 +0000)]
DefaultContentHandlerFactory.java: New dummy implementation.

       * gnu/java/net/DefaultContentHandlerFactory.java: New dummy
       implementation.

From-SVN: r85077

20 years agomachmode.def: Remove vector modes.
Paolo Bonzini [Fri, 23 Jul 2004 10:15:53 +0000 (10:15 +0000)]
machmode.def: Remove vector modes.

2004-07-22  Paolo Bonzini  <bonzini@gnu.org>

* machmode.def: Remove vector modes.
* config/alpha/alpha-modes.def: Add supported vector modes.
* config/arm/arm-modes.def: Likewise.
* config/frv/frv-modes.def: Likewise.
* config/i386/i386-modes.def: Likewise.
* config/rs6000/rs6000-modes.def: Likewise.
* config/sh/sh-modes.def: Likewise.

From-SVN: r85076

20 years agocp: * search.c (lookup_conversion_operator): Avoid two loops.
Nathan Sidwell [Fri, 23 Jul 2004 08:53:36 +0000 (08:53 +0000)]
cp: * search.c (lookup_conversion_operator): Avoid two loops.

(add_conversions): Remove.
(check_hidden_convs, split_conversions,
lookup_conversions_r): New.
(lookup_conversions): Use lookup_conversions_r.
testsuite:
* g++.dg/lookup/conv-[1234].C: New.

From-SVN: r85075

20 years agodebug.html: Say debug mode only available since 3.4.0.
Jonathan Wakely [Fri, 23 Jul 2004 08:22:20 +0000 (09:22 +0100)]
debug.html: Say debug mode only available since 3.4.0.

2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>

* docs/html/debug.html: Say debug mode only available since 3.4.0.

From-SVN: r85074

20 years ago2004-07-23 Matthias Klose <doko@debian.org>
Matthias Klose [Fri, 23 Jul 2004 07:00:57 +0000 (07:00 +0000)]
2004-07-23  Matthias Klose  <doko@debian.org>

        init.c (init_library): Use PACKAGE for the text domain.

From-SVN: r85073

20 years agointl.c (gcc_init_libintl): Use PACKAGE for the text domain.
Matthias Klose [Fri, 23 Jul 2004 06:59:35 +0000 (06:59 +0000)]
intl.c (gcc_init_libintl): Use PACKAGE for the text domain.

2004-07-23  Matthias Klose  <doko@debian.org>

        intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
        configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
        config.h: Regenerate.
        configure: Likewise.

From-SVN: r85072

20 years agodwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on generated SYMBOL_REFs...
Mark Mitchell [Fri, 23 Jul 2004 04:35:17 +0000 (04:35 +0000)]
dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on generated SYMBOL_REFs for labels.

* dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
generated SYMBOL_REFs for labels.
* config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
Change prototype.
(machopic_stub_name): Remove.
(machopic_indirection_name): New function.
(machopic_mcount_stub_name): Likewise.
(machopic_classify_name): Remove.
(machopic_function_base_sym): New function.
(machpoic_classify_symbol): Likewise.
(machopic_classify_ident): Remove.
(machopic_define_ident): Likewise.
(machopic_define_name): Likewise.
(machopic_name_defined_p): Likewise.
(machopic_ident_defined_p): Likewise.
(darwin_strip_name_encoding): Likewise.
(machopic_define_symbol): New function.
* config/darwin.c (hashtab.h): Include.
(machopic_defined_list): Remove.
(machopic_classify_ident): Likewise.
(machopic_classify_name): Likewise.
(machopic_ident_defined_p): Likewise.
(machopic_define_ident): Likewise.
(machopic_define_name): Likewise.
(machopic_symbol_defined_p): New function.
(machopic_classify_symbol): Likewise.
(machopic_data_defined_p): Use machopic_classify_symbol.
(machopic_define_symbol): New function.
(machopic_function_base_sym): New function.
(machopic_non_lazy_pointers): Remove.
(machopic_non_lazy_ptr_name): Likewise.
(machopic_stubs): Likewise.
(machopic_stub_name): Likewise.
(NON_LAZY_POINTER_SUFFIX): New macro.
(STUB_SUFFIX): Likewise.
(machopic_indirection): New structure.
(machopic_indirections): New variable.
(machopic_indirection_hash): New function.
(machopic_indirection_eq): Likewise.
(machopic_indirection_name): Likewise.
(machopic_mcount_stub_name): New function.
(machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
hash table.
(machopic_indirect_data_reference): Rework to use new functions.
(machopic_indirect_call_target): Likewise.
(machopic_legitimize_pic_address): Likewise.
(machopic_output_indirection): New function.
(machopic_finish): Use it.
(machopic_operand_p): Rework to use new functions.
(darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
(darwin_strip_name_encoding): Remove.
(update_non_lazy_ptrs): Remove.
(update_stubs): Likewise.
(darwin_non_lazy_pcrel): Use new functions.
* config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
(ASM_OUTPUT_LABELREF): Likewise.
(ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
(MACHO_SYMBOL_FLAG_VARIABLE): New macro.
(MACHO_SYMBOL_FLAG_DEFINED): Likewise.
(TARGET_STRIP_NAME_ENCODING): Do not use
darwin_strip_name_encoding.
(GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
darwin_strip_name_encoding.
* config/i386/darwin.h (FUNCTION_PROFILER): Use
machopic_mcount_stub_name.
* config/i386/i386.c (x86_output_mi_thunk): Use
machopic_indirection_name, not machopic_stub_name.
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
machopic_function_base_sym.
(print_operand): Use machopic_classify_symbol.
(rs6000_emit_prologue): Use machopic_function_base_sym.
(output_profile_hook): Do not use machopic_stub_name.
(macho_branch_isalnds): Do not use darwin_strip_name_encoding.

From-SVN: r85071

20 years agoMakefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.
Bryce McKinlay [Fri, 23 Jul 2004 01:21:40 +0000 (01:21 +0000)]
Makefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.

2004-07-22  Bryce McKinlay  <mckinlay@redhat.com>

* Makefile.am (ordinary_java_source_files): Add
DefaultContentHandlerFactory.java.
* Makefile.in: Rebuilt.
* java/net/URLConnection.java (defaultFactory): New field.
(getContent):
(getContentHandler): Renamed from 'setContentHandler'. Try
defaultFactory after user-set factory, if any. Search for content
handler implementations in gnu.java.net.content, not
gnu.gcj.content.
* gnu/java/net/protocol/file/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
(getPermission): Create file permission here, instead of in
constructor.
* gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
Implemented.
* gnu/java/net/protocol/jar/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
* gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
Default implementation.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
Implement using GdkPixbufDecoder.

From-SVN: r85069

20 years agoDaily bump.
GCC Administrator [Fri, 23 Jul 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r85067

20 years agothr.c (__objc_thread_detach_function): Do not mark as volatile but instead use the...
Andrew Pinski [Thu, 22 Jul 2004 22:20:08 +0000 (22:20 +0000)]
thr.c (__objc_thread_detach_function): Do not mark as volatile but instead use the attribute noreturn.

2004-07-22  Andrew Pinski  <pinskia@physics.uc.edu>

        * thr.c (__objc_thread_detach_function): Do not mark as volatile
        but instead use the attribute noreturn.

From-SVN: r85061

20 years ago* g++.dg/parse/attr2.C: Simplify.
Mark Mitchell [Thu, 22 Jul 2004 21:37:06 +0000 (21:37 +0000)]
* g++.dg/parse/attr2.C: Simplify.

From-SVN: r85060

20 years agore PR c/7284 (incorrectly simplifies leftshift followed by signed power-of-2 division)
Joseph Myers [Thu, 22 Jul 2004 20:33:34 +0000 (21:33 +0100)]
re PR c/7284 (incorrectly simplifies leftshift followed by signed power-of-2 division)

PR c/7284
* fold-const.c (extract_muldiv_1): Do not treat signed left shift
as multiplication.

testsuite:
* gcc.c-torture/execute/pr7284-1.c: New test.

From-SVN: r85059

20 years agoimplement-c.texi: New file.
Joseph Myers [Thu, 22 Jul 2004 20:12:20 +0000 (21:12 +0100)]
implement-c.texi: New file.

* doc/implement-c.texi: New file.
* doc/extend.texi (C Implementation): Move to there.
* doc/gcc.texi: Include implement-c.texi.
* Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.

From-SVN: r85058

20 years agointegrate.c (copy_decl_for_inlining): Remove invisible reference handling.
Jason Merrill [Thu, 22 Jul 2004 19:01:03 +0000 (15:01 -0400)]
integrate.c (copy_decl_for_inlining): Remove invisible reference handling.

        * integrate.c (copy_decl_for_inlining): Remove invisible reference
        handling.
        * tree-inline.c (setup_one_parameter): Likewise.

From-SVN: r85057

20 years agofix typo.
Brian Booth [Thu, 22 Jul 2004 18:35:08 +0000 (18:35 +0000)]
fix typo.

From-SVN: r85056

20 years agotree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
Brian Booth [Thu, 22 Jul 2004 18:33:20 +0000 (18:33 +0000)]
tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.

* tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
(substitute_and_fold): Propigate into VUSE operands when possible.
(visit_phi_node): Handle UNKNOWN_VAL latticevalue.
(cp_lattice_meet): Handle merging of latticevalues when
UNKNOWN_VAL is present.
(visit_stmt): Visit assignments with V_MUST_DEFs.
(visit_assignment): Gather ccp information for V_MUST_DEF operands.
(ccp_fold): Deal with RHS' that are constant and virtual.
(evaluate_stmt): Handle UNKNOWN_VAL likely values.
(dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
(initialize): Mark statements with V_MUST_DEFs as VARYING only if the
V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
computing immediate uses.
(set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
transition.
(replace_vuse_in): New function.
(likely_value): Add check of vuse operands.
(get_default_value): Set the default value of virtually defined
variables to UKNOWN_VAL instead of VARYING.

testsuite:

* gcc.dg/tree-ssa/20040721-1.c: New test.

From-SVN: r85055

20 years ago* expr.c (emit_push_insn): Don't use set_mem_attributes.
Richard Henderson [Thu, 22 Jul 2004 18:13:47 +0000 (11:13 -0700)]
* expr.c (emit_push_insn): Don't use set_mem_attributes.

From-SVN: r85054