platform/upstream/gcc.git
21 years agore PR c++/11546 (Type lookup problems in out-of-line definition of a class doubly...
Mark Mitchell [Sun, 20 Jul 2003 04:52:23 +0000 (04:52 +0000)]
re PR c++/11546 (Type lookup problems in out-of-line definition of a class doubly nested from a template class)

PR c++/11546
* g++.dg/template/lookup1.C: New test.

From-SVN: r69602

21 years agoDaily bump.
GCC Administrator [Sun, 20 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69599

21 years ago* c-decl.c (named_labels, shadowed_labels, label_level_chain)
Zack Weinberg [Sat, 19 Jul 2003 23:32:55 +0000 (23:32 +0000)]
* c-decl.c (named_labels, shadowed_labels, label_level_chain)
(push_label_level, pop_label_level): Kill.
(struct binding_level): Rename level_chain to outer.
Add outer_function field.  Change parm_flag, function_body,
keep, keep_if_subblocks to 1-bit bitfields of type bool.
(current_function_level): New variable.
(keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
(keep_next_level, declare_parm_level, warn_if_shadowing):
Update to match.
(struct language_function): Kill named_labels, shadowed_labels fields.
(c_init_decl_processing, start_function, c_push__function_context)
(c_pop_function_context): No need to muck with named_labels nor
shadowed_labels.

(make_binding_level): No need to clear the structure here.
(pop_binding_level): Always operate on current_binding_level.
Update current_function_level if necessary.
(pushlevel): Don't clear named_labels.  Update current_function_level
if necessary.  Use "true" and "false" where appropriate.
(poplevel): Diagnose labels defined but not used, or vice
versa, and clear out label-meanings leaving scope, while
walking down the decls list, for all binding levels.
Handle LABEL_DECLs appearing in the shadowed list.
pop_binding_level takes no arguments.
(pushdecl_function_level): Use current_function_level.

(make_label, bind_label): New static functions.
(declare_label): New exported function.
(lookup_label, define_label): Rewritten for new data structure.
(shadow_label): Kill.

* c-tree.h: Prototype declare_label; don't prototype
push_label_level, pop_label_level, nor shadow_label.
* c-parse.in: Remove all calls to push_label_level and
pop_label_level.  Use declare_label for __label__ decls.

* doc/extend.texi: Clarify that __label__ can be used to
declare labels with local scope in any nested block, not
just statement expressions.  Cross-reference nested functions
section from local labels section.

testsuite:
* gcc.dg/noncompile/label-1.c: New comprehensive test case for
diagnostics of ill-formed constructs involving labels.
* gcc.dg/noncompile/label-lineno-1.c: Add error regexp for
the new 'previously defined here' message.

From-SVN: r69597

21 years ago* mauve-libgcj: Don't run CollationElementIterator tests.
Tom Tromey [Sat, 19 Jul 2003 22:19:56 +0000 (22:19 +0000)]
* mauve-libgcj: Don't run CollationElementIterator tests.

From-SVN: r69596

21 years ago* sched-rgn.c (find_rgns): Initialize current_edge correctly.
Zdenek Dvorak [Sat, 19 Jul 2003 22:03:37 +0000 (00:03 +0200)]
* sched-rgn.c (find_rgns): Initialize current_edge correctly.

From-SVN: r69595

21 years agomakefile.texi (restrap, [...]): Document targets.
Phil Edwards [Sat, 19 Jul 2003 22:00:19 +0000 (22:00 +0000)]
makefile.texi (restrap, [...]): Document targets.

2003-07-19  Phil Edwards  <pme@gcc.gnu.org>

* doc/makefile.texi (restrap, profiledbootstrap):  Document targets.

From-SVN: r69594

21 years agofixfixes.c [...]: Remove unnecessary casts.
Kaveh R. Ghazi [Sat, 19 Jul 2003 16:09:51 +0000 (16:09 +0000)]
fixfixes.c [...]: Remove unnecessary casts.

gcc:
* fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
fixinc/server.c objc/objc-act.c: Remove unnecessary casts.

f:
* com.c data.c expr.c fini.c g77spec.c global.c lab.c lex.c name.c
sta.c stc.c std.c storag.c stt.c stw.c symbol.c target.c type.c:
Remove unnecessary casts.

cp:
* call.c class.c decl.c decl2.c g++spec.c lex.c parser.c pt.c rtti.c
semantics.c typeck.c: Remove unnecessary casts.

java:
* class.c java-tree.h jcf-write.c jvspec.c: Remove unnecessary
casts.

treelang:
* treetree.c: Remove unnecessary casts.

From-SVN: r69593

21 years agos390.c (legitimize_pic_address): Access local symbols relative to the GOT instead...
Ulrich Weigand [Sat, 19 Jul 2003 16:06:52 +0000 (16:06 +0000)]
s390.c (legitimize_pic_address): Access local symbols relative to the GOT instead of relative to the literal...

* config/s390/s390.c (legitimize_pic_address): Access local symbols
relative to the GOT instead of relative to the literal pool base.
(s390_output_symbolic_const): Handle new GOT-relative accesses.
* config/s390/s390.md ("call"): Access local functions and PLT stubs
relative to the GOT instead of relative to the literal pool base.
("call_value"): Likewise.
("call_value_tls"): Likewise.

* config/s390/s390.c (s390_chunkify_start): Remove pool anchor
reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
(s390_chunkify_finish): Likewise.
(s390_chunkify_cancel): Likewise.
(s390_reorg): Adapt caller.
(find_base_register_in_addr,
find_base_register_ref, replace_base_register_ref): Delete.
(find_ltrel_base, replace_ltrel_base): New functions.
(find_constant_pool_ref): Handle LTREL_BASE unspecs.
(s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
base vs. index register usage.
(struct constant_pool): Remove 'anchor'.
(s390_add_anchor): Delete.
(s390_dump_pool): Remove anchor handling.
* config/s390/s390.md ("reload_anchor"): Remove.

* config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
(s390_load_got): New function.  Use LTREL_BASE/OFFSET.
(s390_emit_prologue): Use it.
* config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
"builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
hard-code register 14.
* config/s390/s390-protos.h (s390_load_got): Declare.

* config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
Support TImode constants.
* config/s390/s390.md ("consttable_ti"): New.
("consttable_si", "consttable_di"): Handle TLS symbols correctly.

* config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
New symbolic constants.
("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
"consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
"pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
"pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
symbolic UNSPEC values.
* config/s390/s390.c (larl_operand, s390_short_displacement,
bras_sym_operand, s390_cannot_force_const_mem,
s390_delegitimize_address, s390_decompose_address,
legitimize_pic_address, s390_output_symbolic_const,
s390_function_profiler): Use symbolic UNSPEC values.

From-SVN: r69592

21 years agoURLClassLoader.java (addURL): Moved implementation to private addURLImpl() to avoid...
Jeroen Frijters [Sat, 19 Jul 2003 15:47:56 +0000 (17:47 +0200)]
URLClassLoader.java (addURL): Moved implementation to private addURLImpl() to avoid calling addURL from the...

2003-07-19  Jeroen Frijters <jeroen@sumatra.nl>

* java/net/URLClassLoader.java (addURL): Moved implementation to
private addURLImpl() to avoid calling addURL from the constructor.
(addURLImpl): Contains the code that was previously in addURL.
(addURLs): Call addURLImpl(), not addURL().

From-SVN: r69591

21 years agoverify.exp (gcj_verify_list_tests): Only change directory if new directory exists.
Tom Tromey [Sat, 19 Jul 2003 15:43:20 +0000 (15:43 +0000)]
verify.exp (gcj_verify_list_tests): Only change directory if new directory exists.

* libjava.verify/verify.exp (gcj_verify_list_tests): Only change
directory if new directory exists.

From-SVN: r69590

21 years agoalias.c [...]: Remove unnecessary casts.
Kaveh R. Ghazi [Sat, 19 Jul 2003 14:47:15 +0000 (14:47 +0000)]
alias.c [...]: Remove unnecessary casts.

* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
genemit.c genextract.c genoutput.c genrecog.c gensupport.c
ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
postreload.c prefix.c print-tree.c protoize.c ra-build.c
ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
regmove.c regrename.c reload.c reload1.c reorg.c resource.c
sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
casts.

From-SVN: r69587

21 years agoc-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
Gabriel Dos Reis [Sat, 19 Jul 2003 13:10:17 +0000 (13:10 +0000)]
c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.

* c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
* toplev.h (warning): Remove attribute.

From-SVN: r69585

21 years agogcc_release (announce_snapshot): Use ${RELEASE} instead of ${BRANCH}-${DATE} to refer...
Gerald Pfeifer [Sat, 19 Jul 2003 12:12:39 +0000 (14:12 +0200)]
gcc_release (announce_snapshot): Use ${RELEASE} instead of ${BRANCH}-${DATE} to refer to the snapshot directory.

* gcc_release (announce_snapshot): Use ${RELEASE} instead
of ${BRANCH}-${DATE} to refer to the snapshot directory.
Put README file into the snapshot directory.

(RELEASE): Define as ${BRANCH}-${DATE} for snapshots.
(FTP_PATH): Use ${RELEASE} in case of snapshots.
(TAG): Ditto.
(OLD_TARS): Adjust to new directory scheme for snapshots.

From-SVN: r69584

21 years agoCorrect entries information
Kriang Lerdsuwanakij [Sat, 19 Jul 2003 12:06:07 +0000 (12:06 +0000)]
Correct entries information

From-SVN: r69583

21 years agoc-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
Gabriel Dos Reis [Sat, 19 Jul 2003 10:19:19 +0000 (10:19 +0000)]
c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.

* c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
(pop_label_level): Likewise.
(duplicate_decls): Likewise.
(implicitly_declare): Likewise.
(shadow_label): Likewise.
(start_decl): Likewise.
(finish_decl): Likewise.
(grokdeclarator): Likewise.
(get_parm_info): Likewise.
(detect_field_duplicates): Likewise.
(finish_struct): Likewise.
(start_function): Likewise.
(store_parm_decls): Likewise.
(finish_function): Likewise.
(c_expand_body_1): Likewise.
(check_for_loop_decls): Likewise.
(merge_translation_unit_decls): Likewise.

From-SVN: r69582

21 years agocommon.opt: Document --param.
Neil Booth [Sat, 19 Jul 2003 08:13:58 +0000 (08:13 +0000)]
common.opt: Document --param.

* common.opt:  Document --param.
* opts.c (columns, undocumented_msg): New.
(print_help): Get number of columns from environment.  Print
--param help.  Tweak newline handling.
(print_param_help): New.
(print_filtered_help): Better handling of duplicates.  Complain
about undocumented switches.
(print_switch): New.
(wrap_help): Improve wrapping, use COLUMNS.
* opts.sh: Ignore comments in records.
* params.def: Fix typos and remove trailing periods.
* toplev.c (display_help): Don't dump --param help.
* doc/sourcebuild.texi: Update.
java:
* lang.opt: Don't show -MD_ and -MDD_.

From-SVN: r69581

21 years agoAdd missing PR number.
David S. Miller [Sat, 19 Jul 2003 07:05:39 +0000 (00:05 -0700)]
Add missing PR number.

From-SVN: r69580

21 years agooptabs.c (prepare_operand): Fail gracefully instead of abort if the predicate doesn...
Richard Henderson [Sat, 19 Jul 2003 00:28:05 +0000 (17:28 -0700)]
optabs.c (prepare_operand): Fail gracefully instead of abort if the predicate doesn't satisfy.

2003-07-18  Richard Henderson  <rth@redhat.com>

* optabs.c (prepare_operand): Fail gracefully instead of abort
if the predicate doesn't satisfy.
(gen_cond_trap): Allow prepare_operand to fail.

From-SVN: r69578

21 years agoDaily bump.
GCC Administrator [Sat, 19 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69575

21 years agoc-common.c: Don't undefine GCC_DIAG_STYLE.
Gabriel Dos Reis [Fri, 18 Jul 2003 23:05:53 +0000 (23:05 +0000)]
c-common.c: Don't undefine GCC_DIAG_STYLE.

* c-common.c: Don't undefine GCC_DIAG_STYLE.
(fname_decl): Don't use xxx_with_decl.
(c_add_case_label): Likewise.
(handle_section_attribute): Likewise.
(handle_alias_attribute): Likewise.
(handle_no_instrument_function_attribute): Likewise.
(handle_no_limit_stack_attribute): Likewise.
* c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
* c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.

From-SVN: r69573

21 years agoMakefile.in (ifcvt.o): Add cfgloop.h.
Zdenek Dvorak [Fri, 18 Jul 2003 22:52:05 +0000 (00:52 +0200)]
Makefile.in (ifcvt.o): Add cfgloop.h.

* Makefile.in (ifcvt.o): Add cfgloop.h.
* basic-block.h (EDGE_LOOP_EXIT): New flag.
* cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
* ifcvt.c: Include cfgloop.h.
(mark_loop_exit_edges): New static function.
(if_convert): Call it.
(find_if_header): Ignore branches out of loops.

From-SVN: r69572

21 years agocombine.c (simplify_comparison): Don't share rtx when converting (ne (and (not X...
Kazu Hirata [Fri, 18 Jul 2003 21:53:04 +0000 (21:53 +0000)]
combine.c (simplify_comparison): Don't share rtx when converting (ne (and (not X) 1) 0) to (eq (and X 1) 0).

* combine.c (simplify_comparison): Don't share rtx when converting
(ne (and (not X) 1) 0) to (eq (and X 1) 0).

From-SVN: r69571

21 years agoaix.h (AGGREGATE_PADDING_FIXED): Define.
David Edelsohn [Fri, 18 Jul 2003 21:42:29 +0000 (21:42 +0000)]
aix.h (AGGREGATE_PADDING_FIXED): Define.

* config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
(AGGREGATES_PAD_UPWARD_ALWAYS): Define.
(MUST_PASS_IN_STACK): Define.
(BLOCK_REG_PADDING): Define.

From-SVN: r69570

21 years agocfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p to skip the addr_vec.
Richard Henderson [Fri, 18 Jul 2003 21:33:36 +0000 (14:33 -0700)]
cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p to skip the addr_vec.

        * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
        to skip the addr_vec.

From-SVN: r69569

21 years agognu_java_awt_peer_gtk_GtkScrollBarPeer.c: Handle missing event cases, connect to...
Graydon Hoare [Fri, 18 Jul 2003 19:27:42 +0000 (19:27 +0000)]
gnu_java_awt_peer_gtk_GtkScrollBarPeer.c: Handle missing event cases, connect to "value-changed" signal.

2003-07-18  Graydon Hoare  <graydon@redhat.com>

* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c:
Handle missing event cases, connect to "value-changed" signal.

From-SVN: r69568

21 years ago[ ChangeLog ]
Graydon Hoare [Fri, 18 Jul 2003 19:20:33 +0000 (19:20 +0000)]
[ ChangeLog ]

2003-07-18  Graydon Hoare  <graydon@redhat.com>

* java/awt/geom/CubicCurve2D.java,
java/awt/geom/Line2D.java,
java/awt/geom/QuadCurve2D.java,
java/awt/geom/Rectangle2D.java:
Fix path some calculations, make path iterators follow
a consistent style.

From-SVN: r69567

21 years agocombine.c (combinable_i3pat): Don't forbid occurrences of i2dest or i1dest in inner_d...
Alexandre Oliva [Fri, 18 Jul 2003 18:23:30 +0000 (18:23 +0000)]
combine.c (combinable_i3pat): Don't forbid occurrences of i2dest or i1dest in inner_dest if inner_dest is a mem.

* combine.c (combinable_i3pat): Don't forbid occurrences of
i2dest or i1dest in inner_dest if inner_dest is a mem.

From-SVN: r69566

21 years agochangelog for previous patch
Nathan Sidwell [Fri, 18 Jul 2003 17:37:00 +0000 (17:37 +0000)]
changelog for previous patch

From-SVN: r69565

21 years agocp-tree.h (finish_non_static_data_member): Add object param.
Nathan Sidwell [Fri, 18 Jul 2003 17:19:41 +0000 (17:19 +0000)]
cp-tree.h (finish_non_static_data_member): Add object param.

cp:
* cp-tree.h (finish_non_static_data_member): Add object param.
* method.c (hack_identifier): Adjust.
* pt.c (tsubst_copy_and_build) <COMPONENT_REF case>: Don't search
again for a FIELD_DECL.
* semantics.c (finish_non_static_data_member): Add object
parameter. Always save the DECL in the COMPONENT_REF.
* call.c (resolve_scoped_fn_name): Adjust.
testsuite:
* g++.dg/parse/non-dependent2.C: New test.

From-SVN: r69564

21 years agoHandler.java (isLoggable): Check record level smaller or equal.
Mark Wielaard [Fri, 18 Jul 2003 16:08:38 +0000 (16:08 +0000)]
Handler.java (isLoggable): Check record level smaller or equal.

2003-07-18  Mark Wielaard  <mark@klomp.org>

* java/util/logging/Handler.java (isLoggable): Check record level
smaller or equal.

From-SVN: r69563

21 years ago* cgraph.c (cgraph_remove_node): Clear the hash table slot.
Jan Hubicka [Fri, 18 Jul 2003 15:13:35 +0000 (17:13 +0200)]
* cgraph.c (cgraph_remove_node): Clear the hash table slot.

From-SVN: r69562

21 years agoFix last checkin to commit right version of file.
Andreas Jaeger [Fri, 18 Jul 2003 13:24:44 +0000 (15:24 +0200)]
Fix last checkin to commit right version of file.

From-SVN: r69560

21 years agoinit-ref4.C: xfail on targets without weak symbols.
Andrew Pinski [Fri, 18 Jul 2003 13:07:22 +0000 (13:07 +0000)]
init-ref4.C: xfail on targets without weak symbols.

2003-07-18  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++.dg/init/init-ref4.C: xfail on targets without
        weak symbols.

From-SVN: r69558

21 years agore PR target/11087 (gcc miscompiles raid1.c from linux kernel)
Jakub Jelinek [Fri, 18 Jul 2003 11:13:37 +0000 (13:13 +0200)]
re PR target/11087 (gcc miscompiles raid1.c from linux kernel)

PR target/11087
* loop.c (basic_induction_var): Check if convert_modes emitted any
instructions. Remove them and return 0 if so.

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

From-SVN: r69552

21 years agobaseline_symbols.txt: New file.
Andreas Jaeger [Fri, 18 Jul 2003 09:55:30 +0000 (11:55 +0200)]
baseline_symbols.txt: New file.

* config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
* config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
* config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
* config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.

[[Split portion of a mixed commit.]]

From-SVN: r69550.2

21 years agobaseline_symbols.txt: New file.
Andreas Jaeger [Fri, 18 Jul 2003 09:50:41 +0000 (11:50 +0200)]
baseline_symbols.txt: New file.

* config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
* config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
* config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
* config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.

From-SVN: r69548

21 years agotoplev.c (rest_of_handle_addresof): Rename into rest_of_handle_addressof.
Eric Botcazou [Fri, 18 Jul 2003 06:53:05 +0000 (08:53 +0200)]
toplev.c (rest_of_handle_addresof): Rename into rest_of_handle_addressof.

* toplev.c (rest_of_handle_addresof): Rename into
rest_of_handle_addressof.  Delete unreachable blocks
if dead edges were purged after the addressof pass.

From-SVN: r69545

21 years agoMakefile.in, [...]: Remove handling of lang-options.h and options_.h.
Neil Booth [Fri, 18 Jul 2003 05:32:42 +0000 (05:32 +0000)]
Makefile.in, [...]: Remove handling of lang-options.h and options_.h.

* Makefile.in, configure, configure.in: Remove handling of
lang-options.h and options_.h.
* toplev.c (struct lang_opt, documented_lang_options): Remove.
(display_help): Don't use documented_lang_options.
ada:
* lang-options.h: Remove.
* lang.opt: Add help text.
java:
* lang-options.h: Remove.
* lang.opt: Add help text.

From-SVN: r69544

21 years agoc-decl.c (pushdecl_function_level): Make static, return nothing.
Zack Weinberg [Fri, 18 Jul 2003 03:39:42 +0000 (03:39 +0000)]
c-decl.c (pushdecl_function_level): Make static, return nothing.

* c-decl.c (pushdecl_function_level): Make static, return nothing.
(kept_level_p): Fold into poplevel.
(undeclared_variable): Moved here from c-typeck.c.  Export.
* c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
(undeclared_variable): Prototype here.  Don't prototype
kept_level_p nor pushdecl_function_level.
* c-parse.in: Change first argument to poplevel from
"kept_level_p()" to "KEEP_MAYBE".
* c-typeck.c (undeclared_variable): Moved to c-decl.c.

From-SVN: r69540

21 years agosimplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap commutative operands...
Roger Sayle [Fri, 18 Jul 2003 03:16:32 +0000 (03:16 +0000)]
simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap commutative operands instead of modifying the...

* simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
commutative operands instead of modifying the RTL in-place.

From-SVN: r69539

21 years agore PR rtl-optimization/11557 (constant folding)
Mark Mitchell [Fri, 18 Jul 2003 03:05:27 +0000 (03:05 +0000)]
re PR rtl-optimization/11557 (constant folding)

PR optimization/11557
* calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
unless we know which function is being called.

PR optimization/11557
* gcc.dg/20030717-1.c: New test.

From-SVN: r69538

21 years agolinker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
Benjamin Kosnik [Fri, 18 Jul 2003 02:27:16 +0000 (02:27 +0000)]
linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.

2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>

* config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
* config/locale/generic/messages_members.h: Tweaks.
* config/locale/generic/monetary_members.cc
(moneypunct::_M_initialize_moneypunct): Use cache.
(moneypunct::~moneypunct): Delete cache.
* config/locale/generic/time_members.cc:
(__timepunct::_M_initialize_timepunct): Use cache.
* config/locale/generic/time_members.h:
(__timepunct::~__timepunct): Delete cache.
(__timepunct::__timepunct): Set cache.
* config/locale/gnu/messages_members.h: Tweaks.
* config/locale/gnu/monetary_members.cc:
(moneypunct::_M_initialize_moneypunct): Use cache.
(moneypunct::~moneypunct): Delete cache.
* config/locale/gnu/time_members.cc:
(__timepunct::_M_initialize_timepunct): Use cache.
* config/locale/gnu/time_members.h:
(__timepunct::~__timepunct): Delete cache.
(__timepunct::__timepunct): Set cache.
* include/bits/locale_facets.h (__timepunct_cache): New.
(__moneypunct_cache): New.
* include/bits/locale_facets.tcc: Tweak.
* src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
* src/locale-inst.cc: Instantiate caches.
* src/globals.cc: Add "C" caches.
* src/localename.cc: Use external "C" caches.

From-SVN: r69535

21 years agocse.c (fold_rtx): Use swap_commutative_operands_p to determine whether to reorder...
Roger Sayle [Fri, 18 Jul 2003 00:28:14 +0000 (00:28 +0000)]
cse.c (fold_rtx): Use swap_commutative_operands_p to determine whether to reorder the operands of...

* cse.c (fold_rtx): Use swap_commutative_operands_p to determine
whether to reorder the operands of a commutative binary operator.

From-SVN: r69534

21 years agofold-const.c (const_binop): Avoid performing the FP operation at compile-time...
Roger Sayle [Fri, 18 Jul 2003 00:26:51 +0000 (00:26 +0000)]
fold-const.c (const_binop): Avoid performing the FP operation at compile-time...

* fold-const.c (const_binop): Avoid performing the FP operation at
compile-time, if either operand is NaN and we honor signaling NaNs,
or if we're dividing by zero and either flag_trapping_math is set
or the desired mode doesn't support infinities.
(fold_initializer): New function to fold an expression ignoring any
potential run-time exceptions or traps.
* tree.h (fold_initializer): Prototype here.
* c-typeck.c (build_binary_op): Move to the end of the file so
that intializer_stack is in scope.  If constructing an initializer,
i.e. when initializer_stack is not NULL, use fold_initializer to
fold expressions.
* simplify-rtx.c (simplify_binary_operation): Likewise, avoid
performing FP operations at compile-time, if they would raise an
exception at run-time.

From-SVN: r69533

21 years agoDaily bump.
GCC Administrator [Fri, 18 Jul 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69531

21 years agoAndrew Pinski <pinskia@physics.uc.edu>
Andrew Pinski [Thu, 17 Jul 2003 22:53:46 +0000 (22:53 +0000)]
Andrew Pinski <pinskia@physics.uc.edu>

        PR c++/10476
        * g++.dg/expr/crash-1.C: New test.

        PR c++/11027
        * g++.dg/template/init3.C: New test.

        PR c++/8222
        * g++.dg/template/non-dependent1.C: New test.

        PR c++/11070
        * g++.dg/template/non-dependent2.C: New test.

        PR c++/11071
        * g++.dg/template/non-dependent3.C: New test.

        PR c++/9907
        * g++.dg/template/sizeof5.C: New test.

From-SVN: r69529

21 years agore PR middle-end/11498 (asm can't be used to give a variable its own name)
Geoffrey Keating [Thu, 17 Jul 2003 21:52:51 +0000 (21:52 +0000)]
re PR middle-end/11498 (asm can't be used to give a variable its own name)

PR 11498
* Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
(langhooks.o): Add $(GGC_H), gt-langhooks.h.
(GTFILES): Add langhooks.c.
(gt-langhooks.h): New.
* c-common.h (c_static_assembler_name): Prototype.
* c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
* objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
* c-opts.c: Include langhooks-def.h.
(c_static_assembler_name): New.
* langhooks.c: Include ggc.h.  Include gt-langhooks.h.
(var_labelno): New.
(lhd_set_decl_assembler_name): Give static objects with context
unique names.
* varasm.c (var_labelno): Delete.
(make_decl_rtl): Don't change the assembler name once it's set.

From-SVN: r69527

21 years agoc-opts.c (this_input_filename): New.
Geoffrey Keating [Thu, 17 Jul 2003 21:50:38 +0000 (21:50 +0000)]
c-opts.c (this_input_filename): New.

* c-opts.c (this_input_filename): New.
(finish_options): Take new parameter, name of file being compiled.
Update callers.  Set this_input_filename.
(push_command_line_include): Use this_input_filename not
main_input_filename.

From-SVN: r69526

21 years agoobjc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to c_write_global_declarations.
Zack Weinberg [Thu, 17 Jul 2003 21:05:24 +0000 (21:05 +0000)]
objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to c_write_global_declarations.

* objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
c_write_global_declarations.

From-SVN: r69525

21 years agoMakefile.in: Depend .pot generation on options.c.
Neil Booth [Thu, 17 Jul 2003 20:29:40 +0000 (20:29 +0000)]
Makefile.in: Depend .pot generation on options.c.

* Makefile.in: Depend .pot generation on options.c.
* po/exgettext: Add an extra_files variable containing additional
files to scan.

From-SVN: r69524

21 years agoGtkToolkit.java: Reworked imports.
Michael Koch [Thu, 17 Jul 2003 20:26:51 +0000 (20:26 +0000)]
GtkToolkit.java: Reworked imports.

2003-07-17  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/peer/gtk/GtkToolkit.java:
Reworked imports.

From-SVN: r69522

21 years agoMissed this hunk - belongs with the previous patch
Zack Weinberg [Thu, 17 Jul 2003 20:25:21 +0000 (20:25 +0000)]
Missed this hunk - belongs with the previous patch

From-SVN: r69521

21 years agoc-decl.c: Fix typos in several comments.
Zack Weinberg [Thu, 17 Jul 2003 20:12:21 +0000 (20:12 +0000)]
c-decl.c: Fix typos in several comments.

* c-decl.c: Fix typos in several comments.  Remove all
#if 0 blocks; reindent as needed.  Remove unused argument
to declare_parm_level; all callers changed.
* c-parse.in: Update calls to declare_parm_level.  Avoid
issuing a double warning in some circumstances.
* c-typeck.c: Update calls to declare_parm_level.
* c-tree.h: Update prototype of declare_parm_level.

* c-pragma.c (apply_pragma_weak): Don't complain about a
redundant #pragma weak.

* objc/objc-act.c (forward_declare_categories,
build_selector_reference_decl, build_class_reference_decl,
build_objc_string_decl, synth_forward_declarations,
build_protocol_reference): Set TREE_PUBLIC on synthetic
forward decl to 0, consistent with eventual definition.
Correct comments to match.

cp:
* pt.c (get_bindings): Make definition consistent with
forward declaration.

From-SVN: r69519

21 years agoinclhack.def (solaris_mutex_init_2): Escape braces in regexp that don't form a range...
Zack Weinberg [Thu, 17 Jul 2003 18:43:37 +0000 (18:43 +0000)]
inclhack.def (solaris_mutex_init_2): Escape braces in regexp that don't form a range expression.

* fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
in regexp that don't form a range expression.
* fixinc/fixincl.def: Regenerate.

From-SVN: r69517

21 years agore PR target/10907 ([IA64] gcc violates the ia64 ABI)
Richard Henderson [Thu, 17 Jul 2003 16:33:22 +0000 (09:33 -0700)]
re PR target/10907 ([IA64] gcc violates the ia64 ABI)

        PR target/10907
        * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
        even with !TARGET_CONST_GP.
        (ia64_function_ok_for_sibcall): Reject non-local functions.

From-SVN: r69515

21 years agoFix typo in date
Kriang Lerdsuwanakij [Thu, 17 Jul 2003 15:49:19 +0000 (15:49 +0000)]
Fix typo in date

From-SVN: r69514

21 years agore PR c++/7809 (befriending inaccessible names)
Kriang Lerdsuwanakij [Thu, 17 Jul 2003 15:47:40 +0000 (15:47 +0000)]
re PR c++/7809 (befriending inaccessible names)

PR c++/7809
* friend.c (add_friend): Check access for member functions
and templates.

* g++.dg/parse/access3.C: New test.

From-SVN: r69513

21 years agoguide.html: Fix typo.
Phil Edwards [Thu, 17 Jul 2003 15:31:20 +0000 (15:31 +0000)]
guide.html: Fix typo.

2003-07-17  Phil Edwards  <pme@gcc.gnu.org>

* docs/doxygen/guide.html:  Fix typo.

From-SVN: r69512

21 years agoc-common.c (c_estimate_num_insns_1): Don't handle METHOD_CALL_EXPR.
Steven Bosscher [Thu, 17 Jul 2003 13:25:21 +0000 (13:25 +0000)]
c-common.c (c_estimate_num_insns_1): Don't handle METHOD_CALL_EXPR.

2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>

* c-common.c (c_estimate_num_insns_1): Don't handle
METHOD_CALL_EXPR.
* expr.c (safe_from_p): Likewise.
* gengtype.c (adjust_field_tree_exp): Likewise.
* stmt.c (warn_if_unused_value): Likewise
* tree.c (first_rtl_op): Likewise.
* tree.def: Don't define METHOD_CALL_EXPR.
* java/lang.c (java_estimate_num_insns_1): Don't handle
METHOD_CALL_EXPR.

From-SVN: r69511

21 years agore PR c++/11384 (missing implicit instantiation of template static members)
Andrew Pinski [Thu, 17 Jul 2003 11:53:07 +0000 (11:53 +0000)]
re PR c++/11384 (missing implicit instantiation of template static members)

2003-06-17  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/11384
        * g++.dg/init/init-ref4.C: New test.

From-SVN: r69510

21 years agore PR c++/10668 (assigning address of non-static member variable to pointer)
Gabriel Dos Reis [Thu, 17 Jul 2003 11:49:02 +0000 (11:49 +0000)]
re PR c++/10668 (assigning address of non-static member variable to pointer)

PR c++/10668
* typeck.c (build_class_member_access_expr): Improve diagnostic.

From-SVN: r69509

21 years agore PR other/11466 ('-mlittle-endian' doesn't work with GCC3.2.3 under Solaris 2.x)
Eric Botcazou [Thu, 17 Jul 2003 07:30:07 +0000 (09:30 +0200)]
re PR other/11466 ('-mlittle-endian' doesn't work with GCC3.2.3 under Solaris 2.x)

PR other/11466
* doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
and its restrictions for the SPARC64 port.
Move the entry of "-mimpure-text" before that of "-mv8".

From-SVN: r69497

21 years agoinstall.texi (*-*-solaris2*): Document the step-by-step procedure to bootstrap and...
Eric Botcazou [Thu, 17 Jul 2003 06:12:43 +0000 (08:12 +0200)]
install.texi (*-*-solaris2*): Document the step-by-step procedure to bootstrap and install.

* doc/install.texi (*-*-solaris2*): Document the step-by-step
procedure to bootstrap and install.
Document the preference for the legacy Sun tools in /usr/bin
over the POSIX tools in /usr/xpg4/bin for the build process.

Co-Authored-By: Phil Edwards <phil@jaj.com>
From-SVN: r69495

21 years agoc.opt: Document Uncodumented; use it.
Neil Booth [Thu, 17 Jul 2003 05:33:18 +0000 (05:33 +0000)]
c.opt: Document Uncodumented; use it.

* c.opt: Document Uncodumented; use it.  Document ObjC options.
* opts.c (print_filtered_help): Skip undocumented switches.
* opts.h (CL_UNDOCUMENTED): New.
* opts.sh: Handle Undocumented.
* toplev.c (documented_lang_options): Prevent its becoming empty.
f:
* lang-options.h: Remove.
* lang.opt: Document most options.
objc:
* lang-options.h: Remove.

From-SVN: r69494

21 years agore PR c++/11547 (ICE with const temporaries)
Mark Mitchell [Thu, 17 Jul 2003 04:31:42 +0000 (04:31 +0000)]
re PR c++/11547 (ICE with const temporaries)

PR c++/11547
* cp-tree.h (DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P): New
macro.
(DECL_PRETTY_FUNCTION_P): Use VAR_DECL_CHECK.
* decl.c (duplicate_decls): Merge
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
* parser.c (cp_parser_postfix_expression): Adjust call to
cp_parser_initializer_list and
cp_parser_parenthesized_expression_list.
(cp_parser_parenthesized_expression_list): Add non_constant_p.
(cp_parser_new_placement): Adjust call to
cp_parser_parenthesized_expression_list.
(cp_parser_direct_new_declarator): Likewise.
(cp_parser_conditional_expression): Remove.
(cp_parser_constant_expression): Parse an assignment-expression,
not a conditional-expression.
(cp_parser_simple_declaration): Resolve expression/declaration
ambiguity more quickly.
(cp_parser_mem_initializer): Adjust call to
cp_parser_parenthesized_expression_list.
(cp_parser_init_declarator): Keep track of whether or not the
initializer is a constant-expression.
(cp_parser_initializer): Add non_constant_p parameter.
(cp_parser_initializer_clause): Likewise.
(cp_parser_initializer_list): Likewise.
(cp_parser_attribute_list): Adjust call to
cp_parser_parenthesized_expression_list.
(cp_parser_functional_cast): Likewise.
* pt.c (tsubst_decl): Copy
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
(tsubst_expr): Tweak use of DECL_PRETTY_FUNCTION_P.
* semantics.c (finish_id_expression): Use
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.

PR c++/11547
* g++.dg/parse/constant3.C: New test.
* g++.dg/parse/crash7.C: Likewise.

From-SVN: r69493

21 years agopod_char_traits.h: Add state template argument.
Benjamin Kosnik [Thu, 17 Jul 2003 04:01:28 +0000 (04:01 +0000)]
pod_char_traits.h: Add state template argument.

2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pod_char_traits.h: Add state template argument.

From-SVN: r69492

21 years agolocale_facets.h (__num_base::_S_atoms_in): Add -+xX.
Benjamin Kosnik [Thu, 17 Jul 2003 01:54:44 +0000 (01:54 +0000)]
locale_facets.h (__num_base::_S_atoms_in): Add -+xX.

2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
(num_get::_M_convert_int): To _M_insert_int.
(num_get::_M_convert_float): To _M_insert_float.
* include/bits/locale_facets.tcc (num_get::_M_extract_float):
Use caches for ctype, num_get.
(num_get::_M_extract_int): Same.
(num_get::get(bool)): Same.
(__verify_grouping): Use size_t.
* src/locale-inst.cc: Update.
* src/locale.cc: Adjust _S_atoms_in.

From-SVN: r69491

21 years agoloop.c (check_ext_dependent_givs): Pass const struct loop * instead of struct loop_in...
Ulrich Weigand [Thu, 17 Jul 2003 00:59:52 +0000 (00:59 +0000)]
loop.c (check_ext_dependent_givs): Pass const struct loop * instead of struct loop_info * as argument.

* loop.c (check_ext_dependent_givs): Pass const struct loop *
instead of struct loop_info * as argument.  Accept BIVs with
increment +/- 1 provided there is a friendly exit test against
a loop-invariant value.
(strength_reduce): Adapt call to check_ext_dependent_givs.

From-SVN: r69489

21 years agoDaily bump.
GCC Administrator [Thu, 17 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69487

21 years agomainpage.html: Move building/writing instructions...
Phil Edwards [Wed, 16 Jul 2003 23:59:54 +0000 (23:59 +0000)]
mainpage.html: Move building/writing instructions...

2003-07-16  Phil Edwards  <pme@gcc.gnu.org>

* docs/doxygen/mainpage.html:  Move building/writing instructions...
* docs/doxygen/guide.html:  ...to here.  New file.

From-SVN: r69485

21 years agoprologue / epilogue / warning patches:
J"orn Rennecke [Wed, 16 Jul 2003 21:41:20 +0000 (21:41 +0000)]
prologue / epilogue / warning patches:

2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
    Con Bradley <con.bradley@superh.com>

* sh-protos.h (sh_get_pr_initial_val): Declare.
* sh.c (regno_reg_class): Make its elements type enum reg_class.
(output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
and live_regs_mask arguments.  Changed all callers.
(save_schedule_s): New structure.
(save_schedule): New typedef.
(scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
(calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
In interrupts handlers, also save registers that are usually
partially saved, and make sure there is at least one general purpose
register saved if a target register needs saving.
Add casts in comparisons to avoid warnings.
(sh_media_register_for_return): return -1 for interrupt handlers.
(MAX_SAVED_REGS, MAX_TEMPS): New defines.
(sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
registers used are available.
Set RTX_FRAME_RELATED_P where appropriate.
Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
(sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
(initial_elimination_offset): Likewise.
* sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
(LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
(FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
(XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
(HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
and for target registers.
(RETURN_IN_MEMORY): Add parentheses to avoid warnings.
(regno_reg_class): Make its elements type enum reg_class.
(CONSTRAINT_LEN): Don't use isdigit.
(FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
(FUNCTION_ARG): Add parentheses to avoid warnings.
(RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
(RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
(SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
(EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
* sh.md (xordi3+1): Remove unused variable regno.
(return_media): Check that tr0 is available before using it.

Co-Authored-By: Con Bradley <con.bradley@superh.com>
From-SVN: r69480

21 years agofile should have been named i386-pentium4-not-mull.c, not i386-pentium4-no-mull.c.
Andrew Pinski [Wed, 16 Jul 2003 20:07:50 +0000 (13:07 -0700)]
file should have been named i386-pentium4-not-mull.c, not i386-pentium4-no-mull.c.

From-SVN: r69478

21 years agoc.opt: Document more options.
Neil Booth [Wed, 16 Jul 2003 19:49:51 +0000 (19:49 +0000)]
c.opt: Document more options.

* c.opt: Document more options.
cp:
* lang-options.h: Remove.

From-SVN: r69477

21 years agocombine.c (subst): Also handle (subreg (const_double ...)) case if created by a subst...
Roger Sayle [Wed, 16 Jul 2003 19:36:38 +0000 (19:36 +0000)]
combine.c (subst): Also handle (subreg (const_double ...)) case if created by a substitution...

* combine.c (subst): Also handle (subreg (const_double ...)) case
if created by a substitution, by using the original inner mode.

From-SVN: r69476

21 years agosimplify-rtx.c (simplify_replace_rtx): Convert constant comparisons to MODE_FLOAT...
Roger Sayle [Wed, 16 Jul 2003 19:34:50 +0000 (19:34 +0000)]
simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons to MODE_FLOAT constants if...

* simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
(simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.

From-SVN: r69475

21 years agoinstall.texi (--without-headers): New.
Andrew Pinski [Wed, 16 Jul 2003 19:28:43 +0000 (19:28 +0000)]
install.texi (--without-headers): New.

2003-07-16  Andrew Pinski <pinskia@physics.uc.edu>

* doc/install.texi (--without-headers): New.

From-SVN: r69474

21 years agoPartial Fix PR/10129
Andrew Pinski [Wed, 16 Jul 2003 19:05:53 +0000 (19:05 +0000)]
Partial Fix PR/10129

2003-07-17  Andrew Pinski  <pinskia@physics.uc.edu>

        Partial Fix PR/10129
        * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
        (machopic_output_function_base_name): New; print the true pic label.
        (machopic_classify_ident): Pic Base is always a defined data.
        * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
        * config/darwin-proto.h (machopic_output_function_base_name): Prototype.

From-SVN: r69472

21 years agogcse.c (gcse_constant_p): COMPARE of the same registers is a constant if...
Andrew Pinski [Wed, 16 Jul 2003 18:58:12 +0000 (18:58 +0000)]
gcse.c (gcse_constant_p): COMPARE of the same registers is a constant if...

2003-05-02 Andrew Pinski <pinskia@physics.uc.edu>

* gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
if they are not floating point registers.

From-SVN: r69471

21 years agore PR c/10962 (lookup_field is a linear search on a linked list (can be slow if large...
Andrew Pinski [Wed, 16 Jul 2003 18:45:56 +0000 (18:45 +0000)]
re PR c/10962 (lookup_field is a linear search on a linked list (can be slow if large struct))

2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
ChangeLog:
        PR c/10962
        * ggc.h: Add header guards.
        * c-decl.c (finish_struct): Sort fields if
        number greater than 15 and there are no
        anonymous structs/unions.
        * c-common.h: Include ggc.h.
        (sorted_fields_type): New struct.
        (field_decl_cmp): New prototype.
        (resort_sorted_fields): New prototype.
        (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
        * c-tree.h: (lang_type): Use pointer to sorted_fields_type
        as s, removing other fields.
        * c-typeck.c (lookup_field): Use s in lang_type.
        These were mostly moved from cp/class.c:
        * c-common.c (field_decl_cmp): New static function.
        (field_decl_cmp): New function.
        (resort_sorted_fields): New function.
cp/ChangeLog:
        * class.c (field_decl_cmp): Remove.
        (resort_field_decl_cmp): Remove.
        (resort_sorted_fields): Remove.
        (add_fields_to_vec): Rename to ...
        (add_fields_to_record_type): this.
        (finish_struct_1): Change to be using
        sorted_fields_type's fields.
        * cp-tree.h (lang_decl): In lang_decl_u3
        change sorted_fields to be a pointer to
        sorted_fields_type.
        (resort_sorted_fields): Remove prototype.
        * search.c (lookup_field_1): Change to be using
        sorted_fields_type's fields.

From-SVN: r69470

21 years agore PR target/11008 (improper multiply optimization for pentium4)
Andrew Pinski [Wed, 16 Jul 2003 18:23:32 +0000 (18:23 +0000)]
re PR target/11008 (improper multiply optimization for pentium4)

2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/11008
        * gcc.dg/i386-pentium4-not-mull.c: New.

From-SVN: r69469

21 years agodarwin.c (machopic_select_section): Use decl_readonly_section to do most of the work.
Geoffrey Keating [Wed, 16 Jul 2003 18:18:00 +0000 (18:18 +0000)]
darwin.c (machopic_select_section): Use decl_readonly_section to do most of the work.

* config/darwin.c (machopic_select_section): Use decl_readonly_section
to do most of the work.

From-SVN: r69468

21 years agoMAINTAINERS: Move self from Bug database only accounts to write-after-approval.
Andrew Pinski [Wed, 16 Jul 2003 18:15:22 +0000 (11:15 -0700)]
MAINTAINERS: Move self from Bug database only accounts to write-after-approval.

2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>

        * MAINTAINERS: Move self from Bug database only accounts
        to write-after-approval.

From-SVN: r69467

21 years agommix-protos.h: Convert prototypes to ISO C90.
Hans-Peter Nilsson [Wed, 16 Jul 2003 17:44:59 +0000 (17:44 +0000)]
mmix-protos.h: Convert prototypes to ISO C90.

* config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
* config/mmix/mmix.c: Convert functions to ISO C90.
   (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
formatting.
(mmix_get_hard_reg_initial_val): Tweak section head comment.

From-SVN: r69466

21 years agohowto.html: Update URL for SGI STL docs.
Jonathan Wakely [Wed, 16 Jul 2003 17:06:36 +0000 (18:06 +0100)]
howto.html: Update URL for SGI STL docs.

2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>

* docs/html/ext/howto.html: Update URL for SGI STL docs.
* docs/html/faq/index.html: Same.
* docs/html/faq/index.txt: Regenerate.

From-SVN: r69463

21 years agoc-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
J"orn Rennecke [Wed, 16 Jul 2003 16:25:15 +0000 (16:25 +0000)]
c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.

gcc:
* c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
gcc/testsuite:
* gcc.dg/asm-names.c (ymain): Make it weak.

From-SVN: r69459

21 years agore PR libstdc++/11528 (money_get does not get "$.00")
Paolo Carlini [Wed, 16 Jul 2003 16:12:47 +0000 (18:12 +0200)]
re PR libstdc++/11528 (money_get does not get "$.00")

2003-07-16  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11528
* include/bits/locale_facets.tcc (money_get::do_get):
Strip only _leading_ zeros.
* testsuite/22_locale/money_get/get/char/11528.cc: Add.
* testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.

From-SVN: r69458

21 years agore PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_ex...
Kriang Lerdsuwanakij [Wed, 16 Jul 2003 15:42:15 +0000 (15:42 +0000)]
re PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_expr in grokfndecl, at cp/decl.c:8835)

PR c++/5421
* decl.c (grokdeclarator): Handle TEMPLATE_ID_EXPR if friend
is a member of other class.
* friend.c (do_friend): Don't build TEMPLATE_DECL if friend
is a specialization of function template.

* g++.dg/template/friend21.C: New test.

From-SVN: r69457

21 years agohash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires...
Gerald Pfeifer [Wed, 16 Jul 2003 14:23:08 +0000 (16:23 +0200)]
hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries.

* include/ext/hash_map (class hash_multimap): Remove extra
semicolons from __glibcxx_class_requires3 entries.
* include/ext/hash_set (class hash_set): Ditto.
(class hash_multiset): Ditto.

From-SVN: r69451

21 years agounwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
Jakub Jelinek [Wed, 16 Jul 2003 11:52:55 +0000 (13:52 +0200)]
unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.

* unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
(uw_update_context_1): Use it.
* config/rs6000/rs6000.c (insn_after_throw): Remove.
(rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
in parent frame if _Unwind_* called directly instead of through
.plt.
(rs6000_emit_eh_toc_restore): Remove.
(rs6000_emit_prologue): Update stack pointer before doing any saving
if current_function_calls_eh_return.  Generate unwind info for $r2.
(rs6000_emit_epilogue): Restore stack pointer after doing all
restoring if current_function_calls_eh_return.  Restore $r2.
* config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
* config/rs6000/rs6000.md (eh_return): Remove call to
rs6000_emit_eh_toc_restore.
* config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.

* gcc.dg/cleanup-8.c: New test.
* gcc.dg/cleanup-9.c: New test.

From-SVN: r69450

21 years agoexpr.c (emit_block_move): Don't move anything if size is const 0.
Jakub Jelinek [Wed, 16 Jul 2003 11:07:54 +0000 (13:07 +0200)]
expr.c (emit_block_move): Don't move anything if size is const 0.

* expr.c (emit_block_move): Don't move anything if size is const 0.
(clear_storage): Test against const0_rtx instead of comparing INTVAL
against 0.

From-SVN: r69441

21 years agosparc.c (sparc_nonflat_function_epilogue): Only emit nop if the last real insn is...
David S. Miller [Wed, 16 Jul 2003 08:36:27 +0000 (01:36 -0700)]
sparc.c (sparc_nonflat_function_epilogue): Only emit nop if the last real insn is CALL_INSN.

2003-07-15  David S. Miller  <davem@redhat.com>

* config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
emit nop if the last real insn is CALL_INSN.

From-SVN: r69440

21 years ago* config.if: Remove unused libc_interface determination.
Nathanael Nerode [Wed, 16 Jul 2003 06:34:53 +0000 (06:34 +0000)]
* config.if: Remove unused libc_interface determination.

From-SVN: r69439

21 years agore PR c++/10903 ([3.3 only] g++ says: "error: object ``type_decl' not supported by...
Gabriel Dos Reis [Wed, 16 Jul 2003 01:43:26 +0000 (01:43 +0000)]
re PR c++/10903 ([3.3 only] g++ says: "error: object ``type_decl' not supported by dump_expr")

        PR c++/10903
        * pt.c (convert_nontype_argument): Fix thinko in diagnostic.
        Improve.

From-SVN: r69435

21 years agoxm-mingw32.h (HOST_BIT_BUCKET): Define as "nul".
Danny Smith [Wed, 16 Jul 2003 01:27:03 +0000 (01:27 +0000)]
xm-mingw32.h (HOST_BIT_BUCKET): Define as "nul".

* config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
as "nul".
* config/i386/xm-mingw32.h: Change GNU CC to GCC.

From-SVN: r69434

21 years agodll-MI1.h: New file.
Danny Smith [Wed, 16 Jul 2003 01:12:19 +0000 (01:12 +0000)]
dll-MI1.h: New file.

* g++.dg/ext/dll-MI1.h: New file.
* g++.dg/ext/dllexport-MI1.C: New file.
* g++.dg/ext/dllimport-MI1.C: New file.

ChangeLog: Remove 'testsuite/' from 2003-07-04 entry.

From-SVN: r69432

21 years agowinnt.c (associated_type): Artificial methods are not affected by the import/export...
Danny Smith [Wed, 16 Jul 2003 01:04:10 +0000 (01:04 +0000)]
winnt.c (associated_type): Artificial methods are not affected by the import/export status of their class...

* config/i386/winnt.c (associated_type): Artificial methods are not
affected by the import/export status of their class unless they are
COMDAT.
(i386_pe_dllimport_p): Do not mark artificial methods as dllimport.

* config/i386/winnt.c: Fix GCC copyright comment.

From-SVN: r69431

21 years agoDaily bump.
GCC Administrator [Wed, 16 Jul 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69429

21 years agocp-tree.def (LOOKUP_EXPR): Remove.
Mark Mitchell [Wed, 16 Jul 2003 00:09:45 +0000 (00:09 +0000)]
cp-tree.def (LOOKUP_EXPR): Remove.

* cp-tree.def (LOOKUP_EXPR): Remove.
* cp-tree.h (cp_id_kind): Add CP_ID_KIND_UNQUALIFIED_DEPENDENT.
(LOOKUP_EXPR_GLOBAL): Remove.
(get_bindings): Remove.
(is_aggr_type_2): Remove.
* call.c (resolved_scoped_fn_name): Remove support for
LOOKUP_EXPR.
* decl.c (grokfndecl): Likewise.
(grokdeclarator): Likewise.
* error.c (dump_decl): Likewise.
(dump_expr): Likewise.
* friend.c (do_friend): Likewise.
* init.c (build_offset_ref): Likewise.
* lex.c (unqualified_fn_lookup_error): Use pedwarn.  Do not create
LOOKUP_EXPRs
* mangle.c (write_expression): Remove support for LOOKUP_EXPR.
* parser.c (cp_parser_postfix_expression): Modify Koenig lookup
test.
* pt.c (get_bindings): Give it internal linkage.
(check_explicit_specialization): Remove support for LOOKUP_EXPR.
(lookup_template_function): Likewise.
(for_each_tempalte_parm_r): Likewise.
(tsubst_decl): Likewise.
(tsubst_qualified_id): Handle template template parameters.
(tsubst_copy): Remove support for LOOKUP_EXPR.
(tsubst_copy_and_build): Likewise.
(most_general_template): Likewise.
(value_dependent_expression_p): Likewise.
(type_dependent_expression_p): Note that IDENTIFIER_NODEs are
always dependent.
* semantics.c (perform_koenig_lookup): Do not create
IDENTIFIER_NODEs.
(finish_fname): Likewise.
(finish_id_expression): Likewise.
* tree.c (is_aggr_type_2): Remove.

From-SVN: r69427

21 years agore PR c++/11531 (ICE on invalid code (returning to void))
Gabriel Dos Reis [Tue, 15 Jul 2003 23:31:52 +0000 (23:31 +0000)]
re PR c++/11531 (ICE on invalid code (returning to void))

        PR c++/11531
        * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
        not recursing on hard error.
        (diagnostic_for_decl): Likewise.
        * diagnostic.def: Rearrange.

cp/
        * typeck.c (check_return_expr): Fix thinko in diagnostic.

From-SVN: r69425

21 years agodwarf2out.c (expand_builtin_init_dwarf_reg_sizes): If DWARF_FRAME_RETURN_COLUMN doesn...
J"orn Rennecke [Tue, 15 Jul 2003 22:49:07 +0000 (22:49 +0000)]
dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.

2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>

* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.

2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
    Richard Henderson  <rth@redhat.com>

* unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
to decide if to access a _Unwind_Ptr or a _Unwind_Word.
(_Unwind_SetGR): Likewise.
(_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
(Unwind_SpTmp): New typedef.
(uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
(uw_update_context): Use _Unwind_GetPtr.
(init_dwarf_reg_size_table): Move above uw_init_context_1.
(uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
Use _Unwind_SetSpColumn.
(uw_install_context_1): Don't initialize dwarf_reg_size_table.
Use _Unwind_GetPtr.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r69424