Olivier Hainque [Tue, 21 Sep 2004 15:34:36 +0000 (17:34 +0200)]
decl.c (gnat_to_gnu_entity): Check for a dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P.
2004-09-21 Olivier Hainque <hainque@act-europe.fr>
* decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
ensures proper handling of types with rep clauses, which might have
their TYPE_SIZE set already.
From-SVN: r87807
Robert Dewar [Tue, 21 Sep 2004 15:31:03 +0000 (15:31 +0000)]
decl.c (gnat_to_gnu_type, [...]): Wrap modular packed array types in both little- and big-endian cases.
2004-09-21 Robert Dewar <dewar@gnat.com>
* decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
packed array types in both little- and big-endian cases. This change
ensures that we no longer count on the unused bits being initialized
for such types (and in particular ensures that equality testing will
only read the relevant bits).
Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
These changes mean that we no longer need to initialize small packed
arrays.
(gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
optimization to an LJM field as to its parent field.
* ada-tree.h:, trans.c, utils.c, utils2.c:
Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
From-SVN: r87806
Andreas Tobler [Tue, 21 Sep 2004 15:30:20 +0000 (17:30 +0200)]
2004-09-21 Casey Marshall <csm@gnu.org>
* java/security/cert/X509CRLSelector.java:
(match): remove unreachable try-catch clauses.
Reported by: Dalibor Topic <robilad@kaffe.org>
From-SVN: r87805
Sven de Marothy [Tue, 21 Sep 2004 13:50:13 +0000 (15:50 +0200)]
ByteBuffer.java (hashCode): Implemented.
2004-09-21 Sven de Marothy <sven@physto.se>
* java/nio/ByteBuffer.java (hashCode): Implemented.
* java/nio/CharBuffer.java: Likewise.
* java/nio/DoubleBuffer.java: Likewise.
* java/nio/FloatBuffer.java: Likewise.
* java/nio/LongBuffer.java: Likewise.
* java/nio/IntBuffer.java: Likewise.
* java/nio/ShortBuffer.java: Likewise.
From-SVN: r87804
Steven G. Kargl [Tue, 21 Sep 2004 12:38:34 +0000 (12:38 +0000)]
libgfortran.h: define gfc_alloca()
2004-09-21 Steven G. Kargl <kargls@comcast.net>
* libgfortran.h: define gfc_alloca()
* intrinsics/env.c (getenv, get_environment_variable_i4): Use it.
From-SVN: r87801
Andreas Tobler [Tue, 21 Sep 2004 11:25:26 +0000 (13:25 +0200)]
[multiple changes]
2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
* javax/security/auth/x500/X500Principal.java: Fix some merge glitches.
2004-09-21 Michael Koch <konqueror@gmx.de>
* javax/net/ssl/SSLServerSocket.java:
Removed comment about "Do not edit this file, it's generated.".
From-SVN: r87800
Bud Davis [Tue, 21 Sep 2004 11:22:47 +0000 (11:22 +0000)]
re PR libfortran/17286 (namelist containing more than one value cannot contain whitespace or newlines for READ)
2004-09-21 Bud Davis <bdavis9659@comcast.net>
PR fortran/17286
* io/list_read.c (namelist_read): ignore spaces after
the '=' for namelist reads.
2004-09-21 Bud Davis <bdavis9659@comcast.net>
PR fortran/17286
* gfortran.dg/pr17286.f90: New test.
From-SVN: r87799
Andreas Tobler [Tue, 21 Sep 2004 09:22:00 +0000 (11:22 +0200)]
decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure.
2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
* decl.c (reshape_init_array): Initialize max_index_cst to fix
bootstrap failure.
From-SVN: r87798
Paolo Carlini [Tue, 21 Sep 2004 09:06:08 +0000 (09:06 +0000)]
PR libstdc++/12882 (cont)
2004-09-21 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/12882 (cont)
* acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
* configure: Regenerate.
* config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
_GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
trivial showmanyc for large files too.
From-SVN: r87797
Andreas Tobler [Tue, 21 Sep 2004 08:35:11 +0000 (10:35 +0200)]
X500Principal.java: Replaced with GNU Crypto's version.
2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
* javax/security/auth/x500/X500Principal.java: Replaced with GNU
Crypto's version.
From-SVN: r87796
Andreas Tobler [Tue, 21 Sep 2004 08:33:35 +0000 (10:33 +0200)]
[multiple changes]
2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
Import the big Crypto/Jessie/Security merge from Classpath.
* Makefile.am: Add imported files.
* Makefile.in: Regenerate.
2004-08-14 Casey Marshall <csm@gnu.org>
The Big Crypto Merge of 2004.
* javax/security/auth/x500/X500Principal.java: Replaced with GNU
Crypto's version.
Files imported from GNU Crypto.
* javax/crypto/BadPaddingException.java
* javax/crypto/Cipher.java
* javax/crypto/CipherInputStream.java
* javax/crypto/CipherOutputStream.java
* javax/crypto/CipherSpi.java
* javax/crypto/EncryptedPrivateKeyInfo.java
* javax/crypto/ExemptionMechanism.java
* javax/crypto/ExemptionMechanismException.java
* javax/crypto/ExemptionMechanismSpi.java
* javax/crypto/IllegalBlockSizeException.java
* javax/crypto/KeyAgreement.java
* javax/crypto/KeyAgreementSpi.java
* javax/crypto/KeyGenerator.java
* javax/crypto/KeyGeneratorSpi.java
* javax/crypto/Mac.java
* javax/crypto/MacSpi.java
* javax/crypto/Makefile.am
* javax/crypto/NoSuchPaddingException.java
* javax/crypto/NullCipher.java
* javax/crypto/NullCipherImpl.java
* javax/crypto/SealedObject.java
* javax/crypto/SecretKey.java
* javax/crypto/SecretKeyFactory.java
* javax/crypto/SecretKeyFactorySpi.java
* javax/crypto/ShortBufferException.java
* javax/crypto/interfaces/DHKey.java
* javax/crypto/interfaces/DHPrivateKey.java
* javax/crypto/interfaces/DHPublicKey.java
* javax/crypto/interfaces/PBEKey.java
* javax/crypto/spec/DESKeySpec.java
* javax/crypto/spec/DESedeKeySpec.java
* javax/crypto/spec/DHGenParameterSpec.java
* javax/crypto/spec/DHParameterSpec.java
* javax/crypto/spec/DHPrivateKeySpec.java
* javax/crypto/spec/DHPublicKeySpec.java
* javax/crypto/spec/IvParameterSpec.java
* javax/crypto/spec/PBEKeySpec.java
* javax/crypto/spec/PBEParameterSpec.java
* javax/crypto/spec/RC2ParameterSpec.java
* javax/crypto/spec/RC5ParameterSpec.java
* javax/crypto/spec/SecretKeySpec.java
* javax/security/auth/AuthPermission.java
* javax/security/auth/DestroyFailedException.java
* javax/security/auth/Destroyable.java
* javax/security/auth/Policy.java
* javax/security/auth/PrivateCredentialPermission.java
* javax/security/auth/RefreshFailedException.java
* javax/security/auth/Refreshable.java
* javax/security/auth/Subject.java
* javax/security/auth/SubjectDomainCombiner.java
* javax/security/auth/callback/Callback.java
* javax/security/auth/callback/CallbackHandler.java
* javax/security/auth/callback/ChoiceCallback.java
* javax/security/auth/callback/ConfirmationCallback.java
* javax/security/auth/callback/LanguageCallback.java
* javax/security/auth/callback/NameCallback.java
* javax/security/auth/callback/PasswordCallback.java
* javax/security/auth/callback/TextInputCallback.java
* javax/security/auth/callback/TextOutputCallback.java
* javax/security/auth/callback/UnsupportedCallbackException.java
* javax/security/auth/login/AccountExpiredException.java
* javax/security/auth/login/AppConfigurationEntry.java
* javax/security/auth/login/Configuration.java
* javax/security/auth/login/CredentialExpiredException.java
* javax/security/auth/login/FailedLoginException.java
* javax/security/auth/login/LoginContext.java
* javax/security/auth/login/LoginException.java
* javax/security/auth/login/NullConfiguration.java
* javax/security/auth/x500/X500PrivateCredential.java
* javax/security/sasl/AuthenticationException.java
* javax/security/sasl/AuthorizeCallback.java
* javax/security/sasl/RealmCallback.java
* javax/security/sasl/RealmChoiceCallback.java
* javax/security/sasl/Sasl.java
* javax/security/sasl/SaslClient.java
* javax/security/sasl/SaslClientFactory.java
* javax/security/sasl/SaslException.java
* javax/security/sasl/SaslServer.java
* javax/security/sasl/SaslServerFactory.java
* org/ietf/jgss/ChannelBinding.java
* org/ietf/jgss/GSSContext.java
* org/ietf/jgss/GSSCredential.java
* org/ietf/jgss/GSSException.java
* org/ietf/jgss/GSSManager.java
* org/ietf/jgss/GSSName.java
* org/ietf/jgss/MessageProp.java
* org/ietf/jgss/Oid.java
* org/ietf/jgss/MessagesBundle.properties
Files imported from Jessie <http://www.nongnu.org/jessie/>
* javax/net/ServerSocketFactory.java
* javax/net/SocketFactory.java
* javax/net/VanillaServerSocketFactory.java
* javax/net/VanillaSocketFactory.java
* javax/net/ssl/HandshakeCompletedEvent.java
* javax/net/ssl/HandshakeCompletedListener.java
* javax/net/ssl/HostnameVerifier.java
* javax/net/ssl/HttpsURLConnection.java
* javax/net/ssl/KeyManager.java
* javax/net/ssl/KeyManagerFactory.java
* javax/net/ssl/KeyManagerFactorySpi.java
* javax/net/ssl/ManagerFactoryParameters.java
* javax/net/ssl/SSLContext.java
* javax/net/ssl/SSLContextSpi.java
* javax/net/ssl/SSLException.java
* javax/net/ssl/SSLHandshakeException.java
* javax/net/ssl/SSLKeyException.java
* javax/net/ssl/SSLPeerUnverifiedException.java
* javax/net/ssl/SSLPermission.java
* javax/net/ssl/SSLProtocolException.java
* javax/net/ssl/SSLServerSocket.java
* javax/net/ssl/SSLServerSocketFactory.java
* javax/net/ssl/SSLSession.java
* javax/net/ssl/SSLSessionBindingEvent.java
* javax/net/ssl/SSLSessionBindingListener.java
* javax/net/ssl/SSLSessionContext.java
* javax/net/ssl/SSLSocket.java
* javax/net/ssl/SSLSocketFactory.java
* javax/net/ssl/TrivialHostnameVerifier.java
* javax/net/ssl/TrustManager.java
* javax/net/ssl/TrustManagerFactory.java
* javax/net/ssl/TrustManagerFactorySpi.java
* javax/net/ssl/X509KeyManager.java
* javax/net/ssl/X509TrustManager.java
* javax/security/cert/Certificate.java
* javax/security/cert/CertificateEncodingException.java
* javax/security/cert/CertificateException.java
* javax/security/cert/CertificateExpiredException.java
* javax/security/cert/CertificateNotYetValidException.java
* javax/security/cert/CertificateParsingException.java
* javax/security/cert/X509CertBridge.java
* javax/security/cert/X509Certificate.java
2004-08-20 Casey Marshall <csm@gnu.org>
* java/security/cert/X509CRLSelector.java: New file.
* java/security/cert/X509CertSelector.java: New file.
From-SVN: r87795
Steven Bosscher [Tue, 21 Sep 2004 07:48:29 +0000 (07:48 +0000)]
re PR rtl-optimization/17482 (GCSE after reload replacing changing instructions)
PR rtl-optimization/17482
* postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
load_killed_in_block_p): Clarify comments.
(record_last_reg_set_info): Make static inline.
(mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
(record_opr_changes): New function to replace the above.
(compute_hash_table): Clarify comments. Use record_opr_changes.
(reg_set_between_after_reload_p): Clean up.
(reg_used_between_after_reload_p): Likewise.
(eliminate_partially_redundant_load): Clarify comments.
From-SVN: r87794
Eric Botcazou [Tue, 21 Sep 2004 05:57:55 +0000 (07:57 +0200)]
re PR rtl-optimization/17266 (Libgfortran doesn't build)
PR rtl-optimization/17266
* regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
From-SVN: r87793
Mark Mitchell [Tue, 21 Sep 2004 05:44:10 +0000 (05:44 +0000)]
re PR c++/17530 (failure to emit inline function)
PR c++/17530
* pt.c (tsubst): Fix parentheses to accomodate emacs.
(tsubst_baselink): If we get a single function, mark it as used.
PR c++/17530
* g++.dg/template/static7.C: New test.
From-SVN: r87791
Uros Bizjak [Tue, 21 Sep 2004 05:10:54 +0000 (07:10 +0200)]
re PR rtl-optimization/14851 (suboptimal fp division with -ffast-math)
PR rtl-optimization/14851
* rtlanal.c (commutative_operand_precedence): Calculate
precedence of stripped constant.
From-SVN: r87788
Jeff Law [Tue, 21 Sep 2004 03:19:00 +0000 (21:19 -0600)]
tree-ssanames.c (make_ssa_name): No longer need to clear, then initialize key elements here.
* tree-ssanames.c (make_ssa_name): No longer need to clear, then
initialize key elements here.
(release_ssa_name): Zero the released SSA_NAME here.
* tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
(struct tree_ssa_name): Add new "equiv" field.
* tree-ssa-dom.c (const_and_copies): Kill the global varray.
(tree_ssa_dominator_optimize): No longer allocate, resize or
clear CONST_AND_COPIES.
(get_value_for, set_value_for): Kill.
(thread_across_edge): Get/set the equivalency using
SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
(restore_vars_to_original_value): Likewise.
(record_equivalences_from_phis): Likewise.
(record_dominating_conditions): Likewise.
(record_const_or_copy, record_equality): Likewise.
(lookup_avail_expr): Likewise.
(record_equivalences_from_stmt, cprop_operand): Likewise.
(cprop_into_successor_phis): No longer need to pass around
CONST_AND_COPIES. Callers updated. Get equivalences via
SSA_NAME_EQUIV.
(cprop_into_phis): Likewise.
Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r87787
Matt Austern [Tue, 21 Sep 2004 02:22:45 +0000 (02:22 +0000)]
c-common.c (fix_string_type): Build the unqualified array type unconditionally...
2004-09-20 Matt Austern <austern@apple.com>
Zack Weinberg <zack@codesourcery.com>
* c-common.c (fix_string_type): Build the unqualified array
type unconditionally, then use c_build_qualified_type to get
the proper const-qualified variant, and set its
TYPE_MAIN_VARIANT to refer to the unqualified type.
* c-lex.c (c_lex_return_raw_string): New global.
(c_lex_with_flags): Honor it.
* c-pragma.h: Declare it.
cp:
* decl.c (make_rtl_for_nonlocal_decl, start_preparsed_function):
Apply lbasename to input_filename before passing to get_fileinfo.
* semantics.c (begin_class_definition): Likewise.
* lex.c (handle_pragma_interface): Apply get_fileinfo to the
correct filename. Rename variables to be less confusing.
(handle_pragma_implementation): Likewise. Disable "appears
after file is included" diagnostic.
* parser.c (struct cp_token): Add in_system_header fiag.
(CP_TOKEN_BLOCK_NUM_TOKENS, struct cp_token_block)
(CP_TOKEN_BUFFER_SIZE, cp_token_cache_push_token)
(CPP_NONE, cp_lexer_read_token): Delete.
(struct cp_lexer): Remove first_token, string_tokens,
main_lexer_p fields. Clarify comments.
(struct cp_token_cache): Now just a pair of pointers.
(CP_LEXER_BUFFER_SIZE): New #define.
(CPP_PURGED): New fake token type.
(cp_lexer_new_from_token_array, cp_lexer_destroy)
(cp_lexer_peek_token_emit_debug_info, cp_lexer_skip_purged_tokens)
(cp_lexer_handle_pragma, cp_token_cache_new, cp_parser_string_literal):
New functions.
(cp_lexer_new_from_tokens): Now a simple wrapper around
cp_lexer_new_from_token_array.
(cp_lexer_set_source_position_from_token): Also update
in_system_header.
(cp_lexer_next_token, cp_lexer_prev_token, cp_lexer_advance_token):
Don't wrap round.
(cp_lexer_token_difference): Dont handle wrapping round.
(cp_lexer_new_main): Enable pragma deferral and raw strings,
read the entire translation unit through c_lex_with_flags into
this lexer's buffer, then turn raw strings back off again.
(cp_lexer_grow_buffer): Adjust for buffer no longer being circular.
(cp_lexer_get_preprocessor_token): No need to handle not being
the main lexer. Set token->in_system_header too.
(cp_lexer_peek_token): Skip purged tokens. Feed pragma tokens
to cp_lexer_handle_pragma. No need to call cp_lexer_read_token.
(cp_lexer_peek_nth_token): Likewise.
(cp_lexer_purge_token): Mark the token PURGED, don't shift all
the other tokens down.
(cp_lexer_purge_tokens_after): Likewise.
(cp_lexer_save_tokens, cp_lexer_rollback_tokens): Don't worry
about there being no tokens.
(cp_lexer_print_token): Revise to give useful information on
all tokens.
(struct cp_parser): Add field translate_strings_p.
(cp_parser_new): Initialize it.
(cp_parser_translation_unit): Destroy the lexer when done.
(cp_parser_parameter_declaration): Restructure saving of
default arguments.
(cp_parser_save_member_function_body): Likewise.
(cp_parser_check_for_invalid_template_id)
(cp_parser_nested_name_specifier_opt, cp_parser_template_id):
Adjust calls to cp_lexer_advance_token.
(cp_parser_skip_to_closing_parenthesis, cp_parser_declaration):
No need to fiddle c_lex_string_translate.
(cp_parser_primary_expression, cp_parser_linkage_specification)
(cp_parser_asm_definition, cp_parser_asm_specification_opt)
(cp_parser_asm_operand_list, cp_parser_asm_clobber_list)
Use cp_parser_string_literal.
(cp_parser_attribute_list): Save and restore
parser->translate_strings_p, not c_lex_string_translate.
(cp_parser_cache_group): Delete.
(cp_parser_cache_group_1): Rename cp_parser_cache_group. Do
not take a cache argument.
From-SVN: r87786
Daniel Berlin [Tue, 21 Sep 2004 01:00:11 +0000 (01:00 +0000)]
Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
2004-09-20 Daniel Berlin <dberlin@dberlin.org>
* Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
From-SVN: r87785
GCC Administrator [Tue, 21 Sep 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r87783
Jan Hubicka [Tue, 21 Sep 2004 00:08:53 +0000 (02:08 +0200)]
re PR middle-end/17126 (ICE with -fno-unit-at-a-time and -O3)
PR middle-end/17126
* tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
(tree_rest_of_compilation): Cleanup.
From-SVN: r87780
Ulrich Weigand [Mon, 20 Sep 2004 23:42:00 +0000 (23:42 +0000)]
s390.c (s390_select_rtx_section): Remove.
* config/s390/s390.c (s390_select_rtx_section): Remove.
(TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
From-SVN: r87779
Kaz Kojima [Mon, 20 Sep 2004 23:10:00 +0000 (23:10 +0000)]
sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR note to pretend a direct save from the original...
* config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
note to pretend a direct save from the original register when an
intermediate register is used for the save.
From-SVN: r87778
Giovanni Bajo [Mon, 20 Sep 2004 23:05:40 +0000 (23:05 +0000)]
re PR c++/14179 (out of memory while parsing array with many initializers)
PR c++/14179
* decl.c (reshape_init): Extract array handling into...
(reshape_init_array): New function. Use integers instead of trees
for indices. Handle out-of-range designated initializers.
From-SVN: r87777
Kaveh R. Ghazi [Mon, 20 Sep 2004 22:23:12 +0000 (22:23 +0000)]
tsystem.h (alloca): Provide a default definition.
* tsystem.h (alloca): Provide a default definition.
Revert:
2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* unwind-dw2.c: Call __builtin_alloca, not alloca.
From-SVN: r87775
Steven Bosscher [Mon, 20 Sep 2004 21:03:56 +0000 (21:03 +0000)]
lex.c (cxx_init): Don't set the ridpointer for RID_NULL to null_node.
* lex.c (cxx_init): Don't set the ridpointer for RID_NULL
to null_node.
From-SVN: r87774
Andrew Pinski [Mon, 20 Sep 2004 20:58:23 +0000 (20:58 +0000)]
re PR tree-optimization/17558 (internal compiler error: in merge_alias_info, at tree-ssa-copy.c:182)
2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/17558
* gcc.c-torture/compile/pr17558.c: New test.
From-SVN: r87773
Andrew Pinski [Mon, 20 Sep 2004 20:53:08 +0000 (20:53 +0000)]
re PR tree-optimization/17558 (internal compiler error: in merge_alias_info, at tree-ssa-copy.c:182)
2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/17558
* tree-ssa-copy.c (may_propagate_copy): Only allow if the
aliasing sets are the same rather than just conflicting.
From-SVN: r87772
Jan Hubicka [Mon, 20 Sep 2004 20:41:20 +0000 (20:41 +0000)]
cgraph.c (cgraph_unnest_node): New function.
* cgraph.c (cgraph_unnest_node): New function.
(c_finalize): Rename to ....
(c_warn_unused_result_recursivly): ... this one; do only the warning
(finish_function): Finalize the toplevel function; do not lower nested tree.
* cgraph.h (cgraph_unnest_node): Declare.
* cgraphunit.c (decide_is_function_needed): Do not use cgraph
nestedness datastructure.
* cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
* reload1.c (set_label_offsets): Fix call of set_label_offsets.
* tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
From-SVN: r87771
Jan Hubicka [Mon, 20 Sep 2004 20:38:29 +0000 (22:38 +0200)]
re PR middle-end/16460 (ICE when compiling glibc (ld-ctype.c))
PR middle-end/16460
* cgraph.c (cgraph_unnest_node): New function.
(c_finalize): Rename to ....
(c_warn_unused_result_recursivly): ... this one; do only the warning
(finish_function): Finalize the toplevel function; do not lower nested tree.
* cgraph.h (cgraph_unnest_node): Declare.
* cgraphunit.c (decide_is_function_needed): Do not use cgraph
nestedness datastructure.
* cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
* reload1.c (set_label_offsets): Fix call of set_label_offsets.
* tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
* utils.c (gnat_finalize): Remove.
(end_subprog_body): Directly call cgraph_finalize_function;
do not lower the nested functions.
* trans-decl.c (build_entry_thunks): Finalize the function; do not lower
tree.
(gfc_generate_function_code): Likewise.
From-SVN: r87770
Richard Henderson [Mon, 20 Sep 2004 20:13:39 +0000 (13:13 -0700)]
alpha.c (some_small_symbolic_operand_int): Rename from some_small_symbolic_operand_1; export.
* config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
from some_small_symbolic_operand_1; export.
(some_small_symbolic_operand): Remove.
* config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
extra C check.
* config/alpha/predicates.md (some_small_symbolic_operand): New.
From-SVN: r87769
Jan Hubicka [Mon, 20 Sep 2004 18:43:30 +0000 (20:43 +0200)]
predict.c (return_prediction): New function.
* predict.c (return_prediction): New function.
(apply_return_prediction): Likewise.
(tree_bb_level_predictions): Likewise.
(tree_estimate_probability): Add noreturn exit edges; call
bb_level_predictions; fix logic of return heuristics.
(predict_paths_leading_to): Rescuesce from old CVS version of
process_note_prediction function.
* predict.def (PRED_TREE_EARLY_RETURN): New predictor.
From-SVN: r87768
Richard Sandiford [Mon, 20 Sep 2004 18:02:53 +0000 (18:02 +0000)]
sdata-section.h (SDATA_SECTION): Don't use an attribute if SKIP_ATTRIBUTE is defined.
* gcc.dg/compat/sdata-section.h (SDATA_SECTION): Don't use an attribute
if SKIP_ATTRIBUTE is defined.
From-SVN: r87766
Andreas Krebbel [Mon, 20 Sep 2004 17:25:39 +0000 (17:25 +0000)]
s390.c (s390_frame_info): Added alignment statement for floating point register area on stack.
2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.c (s390_frame_info): Added alignment statement for
floating point register area on stack.
From-SVN: r87765
Tobias Schlüter [Mon, 20 Sep 2004 17:22:50 +0000 (19:22 +0200)]
re PR fortran/15957 (Error in array assignments; 'shape'-related stuff)
fortran/
PR fortran/15957
* simplify.c (gfc_simplify_reshape): Set shape of return value
correctly.
testsuite/
PR fortran/15957
* gfortran.dg/pr15957.f90: New test.
From-SVN: r87764
Jakub Jelinek [Mon, 20 Sep 2004 16:56:12 +0000 (18:56 +0200)]
* predict.c (expr_expected_value): Use *_CLASS_P macros.
From-SVN: r87763
Dorit Naishlos [Mon, 20 Sep 2004 16:26:24 +0000 (16:26 +0000)]
vect-74.c: Avoid floating point precision error in comparison.
* gcc.dg/vect/vect-74.c: Avoid floating point precision error
in comparison.
* gcc.dg/vect/vect-79.c: Likewise.
* gcc.dg/vect/vect-80.c: Likewise.
From-SVN: r87762
Daniel Berlin [Mon, 20 Sep 2004 15:45:21 +0000 (15:45 +0000)]
tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid generating useless garbage.
2004-09-20 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
generating useless garbage.
From-SVN: r87760
Paolo Bonzini [Mon, 20 Sep 2004 14:47:20 +0000 (14:47 +0000)]
builtins.c (fold_builtin): Call the new omonymous target hook for machine-dependent built-ins.
2004-09-20 Paolo Bonzini <bonzini@gnu.org>
* builtins.c (fold_builtin): Call the new omonymous
target hook for machine-dependent built-ins.
* target-def.h (TARGET_FOLD_BUILTIN): New.
* target.h (struct gcc_target): Add the fold_builtin hook.
* targhooks.c (default_fold_builtin): New.
* targhooks.h (default_fold_builtin): Declare it.
From-SVN: r87756
Robert Dewar [Mon, 20 Sep 2004 12:07:47 +0000 (12:07 +0000)]
re PR ada/17540 (Duplicate symbols while building Ada)
2004-09-20 Robert Dewar <dewar@gnat.com>
PR ada/17540
* freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
if an address clause is present, since that means that the Import
should be ignored.
From-SVN: r87755
Kazu Hirata [Mon, 20 Sep 2004 11:17:22 +0000 (11:17 +0000)]
cfg.c, [...]: Fix comment typos.
* cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
comment typos.
From-SVN: r87753
Tobias Schlüter [Mon, 20 Sep 2004 11:09:47 +0000 (13:09 +0200)]
re PR fortran/15750 (IOLENGTH form of INQUIRE statement not implemented)
PR fortran/15750
* gfortran.fortran-torture/execute/iolength_2.f90: New test.
From-SVN: r87752
Arnaud Charlet [Mon, 20 Sep 2004 08:43:00 +0000 (10:43 +0200)]
* 5tsystem.ads: Removed, no longer used.
From-SVN: r87751
Ira Rosen [Mon, 20 Sep 2004 07:17:06 +0000 (07:17 +0000)]
vect-13.c: Added xfail for non ppc platforms.
2004-09-20 Ira Rosen <irar@il.ibm.com>
* gcc.dg/vect/vect-13.c: Added xfail for non ppc platforms.
* gcc.dg/vect/vect-74.c: Split into 3 tests (vect-79.c, vect-80.c).
* gcc.dg/vect/vect-62.c: New testcase.
* gcc.dg/vect/vect-63.c: New testcase.
* gcc.dg/vect/vect-64.c: New testcase.
* gcc.dg/vect/vect-65.c: New testcase.
* gcc.dg/vect/vect-66.c: New testcase.
* gcc.dg/vect/vect-67.c: New testcase.
* gcc.dg/vect/vect-68.c: New testcase.
* gcc.dg/vect/vect-69.c: New testcase.
* gcc.dg/vect/vect-79.c: New testcase.
* gcc.dg/vect/vect-80.c: New testcase.
From-SVN: r87745
Richard Sandiford [Mon, 20 Sep 2004 06:54:52 +0000 (06:54 +0000)]
re PR target/17565 ([3.3 only] asms in delay slots)
PR target/17565
* config/mips/mips.md (define_asm_attributes): Set can_delay to no.
From-SVN: r87744
Roger Sayle [Mon, 20 Sep 2004 00:58:42 +0000 (00:58 +0000)]
mh-x86omitfp: New host makefile fragment.
* config/mh-x86omitfp: New host makefile fragment. Add
-fomit-frame-pointer to the default BOOT_CFLAGS.
* configure.in: Use it to speed up bootstrap on some IA-32 hosts.
* configure: Regenerate.
From-SVN: r87741
GCC Administrator [Mon, 20 Sep 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r87739
Jan Hubicka [Mon, 20 Sep 2004 00:05:38 +0000 (02:05 +0200)]
* predict.c (estimate_probability): Remove unnecesary code.
From-SVN: r87736
Mark Mitchell [Sun, 19 Sep 2004 23:18:19 +0000 (23:18 +0000)]
decl2.c (determine_visibility): Allow class visibility directives to override targetm.cxx.export_class_data.
* decl2.c (determine_visibility): Allow class visibility
directives to override targetm.cxx.export_class_data.
[[Split portion of a mixed commit.]]
From-SVN: r87735.2
Ira Rosen [Sun, 19 Sep 2004 18:01:51 +0000 (18:01 +0000)]
tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
2004-09-19 Ira Rosen <irar@il.ibm.com>
* tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
(STMT_VINFO_VECT_DR_BASE): Declare.
(VECT_SMODULO): Declare.
* tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
(vect_compute_array_base_alignment): New function.
(vect_analyze_data_ref_access): Check array indices. Remove one
dimensional arrays restriction.
(vect_get_ptr_offset): New function.
(vect_get_symbl_and_dr): New function.
(vect_get_base_and_bit_offset): Support additional data refs. Renamed
(former name vect_get_base_decl_and_bit_offset).
(vect_create_index_for_array_ref): Removed.
(vect_create_index_for_vector_ref): New function.
(vect_create_addr_base_for_vector_ref): New function.
(vect_create_data_ref): Handle additional data refs. Call
vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
(vect_compute_data_ref_alignment): Support the changes. Call
vect_get_base_and_bit_offset.
(vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
data refs. Store vect_dr_base.
(vect_analyze_data_ref_accesses): Support nonconstant init.
(new_stmt_vec_info): Initialize vect_dr_base field.
(vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
(get_vectype_for_scalar_type): Check for BLKmode.
* tree-chrec.h (initial_condition_in_loop_num): Declare.
* tree-chrec.c (initial_condition_in_loop_num): New function.
(chrec_component_in_loop_num): New function.
(evolution_part_in_loop_num): Call chrec_component_in_loop_num.
* tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
to be pointer to varray_type.
From-SVN: r87731
Jan Hubicka [Sun, 19 Sep 2004 16:04:03 +0000 (18:04 +0200)]
basic-block.h (update_bb_profile_after_threading): Declare.
* basic-block.h (update_bb_profile_after_threading): Declare.
* cfg.c (update_bb_profile_after_threading): Break out from ...
* cfgcleanup.c (try_forward_edges): ... here; use it.
* tree-ssa-dom.c (thread_across_edge): Use it.
* tree-ssa-threadupdate.c (create_block_for_threading): Zero out
profile of the new BB.
From-SVN: r87730
Daniel Berlin [Sun, 19 Sep 2004 13:57:35 +0000 (13:57 +0000)]
tree-ssa-pre.c (insert_into_set): Don't put is_gimple_min_invariant values into the set.
2004-09-19 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (insert_into_set): Don't put
is_gimple_min_invariant values into the set.
From-SVN: r87725
Andreas Jaeger [Sun, 19 Sep 2004 06:09:41 +0000 (08:09 +0200)]
tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix prototype.
* tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
prototype.
From-SVN: r87721
Kazu Hirata [Sun, 19 Sep 2004 04:02:34 +0000 (04:02 +0000)]
cris.h: Preserve the original spelling in a quote.
* config/cris/cris.h: Preserve the original spelling in a
quote.
From-SVN: r87720
Jeff Law [Sun, 19 Sep 2004 02:51:15 +0000 (20:51 -0600)]
tree-ssa-dom.c (nonzero_vars_stack, [...]): New global varrays to replace the block local varrays.
* tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
global varrays to replace the block local varrays.
(struct dom_walk_block_data): Remove, no longer used.
(get_eq_expr_value): No longer need to pass around pointers to local
varrays. Callers updated. Unused markers added to unused parameters.
(record_range, record_equivalences_from_stmt): Likewise.
(record_equivalences_from_incoming_edge): Likewise.
(record_var_is_nonzero): Likewise. Update now that we have a
single global varray of SSA_NAMEs that need restoring.
(dom_opt_initialize_block_local_data): Kill, no longer used.
(tree_ssa_dominator_optimize): Initialize new global varrays.
Update callbacks in dominator walker structure.
(dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
VRP_VARIABLES_STACK.
(restore_nonzero_vars_to_original_value): Update now that we have
a single global varray of SSA_NAMEs that need restoring.
(dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
Remove unused variables.
(optimize_stmt): Remove unused variable.
From-SVN: r87719
GCC Administrator [Sun, 19 Sep 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r87717
Aaron W. LaFramboise [Sat, 18 Sep 2004 23:55:22 +0000 (17:55 -0600)]
config.h.in: Regenerate.
2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
* unix.c: Include stdio.h.
(HAVE_SYS_MMAN_H): Check.
(PROT_READ, PROT_WRITE): Provide default definitions.
From-SVN: r87714
Paul Brook [Sat, 18 Sep 2004 22:58:12 +0000 (22:58 +0000)]
* g++.old-deja/g++.pt/static11.C: XFAIL on arm*-*-eabi.
From-SVN: r87712
Jan Hubicka [Sat, 18 Sep 2004 21:54:53 +0000 (23:54 +0200)]
* tree-cfg.c (thread_jumps): Fix updating of the profile.
From-SVN: r87709
Jan Hubicka [Sat, 18 Sep 2004 21:53:00 +0000 (23:53 +0200)]
tree-optimize.c (tree_rest_of_compilation): Kill forgotten verify_cgraph call.
* tree-optimize.c (tree_rest_of_compilation): Kill forgotten
verify_cgraph call.
From-SVN: r87708
Kazu Hirata [Sat, 18 Sep 2004 19:47:10 +0000 (19:47 +0000)]
alias.c, [...]: Fix comment typos.
* alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
tree-ssa-operands.c, tree-ssa-phiopt.c,
tree-ssa-threadupdate.c: Fix comment typos.
From-SVN: r87707
Kazu Hirata [Sat, 18 Sep 2004 19:19:40 +0000 (19:19 +0000)]
darwin-c.c, [...]: Fix comment typos.
* config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
config/arm/README-interworking, config/arm/arm-cores.def,
config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
config/frv/frv.md, config/i386/winnt.c,
config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
config/m68hc11/m68hc11.md, config/m68k/m68k.c,
config/mcore/mcore.c, config/mips/mips.h,
config/mn10300/mn10300.md, config/pa/pa.c,
config/pa/pa64-regs.h, config/pdp11/pdp11.c,
config/rs6000/rs6000.c, config/sh/symbian.c,
config/sparc/sparc.h: Fix comment typos. Follow spelling
conventions.
From-SVN: r87706
Joseph Myers [Sat, 18 Sep 2004 18:28:14 +0000 (19:28 +0100)]
re PR c/17424 (ICE with sizeof an undeclared variable)
PR c/17424
* c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
testsuite:
* gcc.dg/pr17424-1.c: New test.
From-SVN: r87705
Kazu Hirata [Sat, 18 Sep 2004 17:23:59 +0000 (17:23 +0000)]
call.c, [...]: Follow spelling conventions.
* call.c, semantics.c: Follow spelling conventions.
* class.c: Fix a comment typo.
From-SVN: r87704
Diego Novillo [Sat, 18 Sep 2004 13:56:23 +0000 (13:56 +0000)]
tree-ssa-alias.c (setup_pointers_and_addressables): Don't remove TREE_ADDRESSABLE from RESULT_DECL.
* tree-ssa-alias.c (setup_pointers_and_addressables): Don't
remove TREE_ADDRESSABLE from RESULT_DECL.
testsuite/ChangeLog
* g++.dg/tree-ssa/pr17153.C: New test.
From-SVN: r87703
Diego Novillo [Sat, 18 Sep 2004 13:53:31 +0000 (13:53 +0000)]
* tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
From-SVN: r87702
Jan Hubicka [Sat, 18 Sep 2004 07:31:30 +0000 (09:31 +0200)]
tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return NULL.
* tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
NULL.
* tree-ssa-alias.c (init_alias_info): Likewise.
* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
(verify_ssa): Likewise.
* tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
From-SVN: r87698
Jan Hubicka [Sat, 18 Sep 2004 07:29:06 +0000 (09:29 +0200)]
i386.c (legitimize_pic_address): Fix splitting of PLUS with huge offset.
* i386.c (legitimize_pic_address): Fix splitting of PLUS with
huge offset.
From-SVN: r87697
Kaz Kojima [Sat, 18 Sep 2004 06:43:09 +0000 (06:43 +0000)]
linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
* config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
* config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
DW_EH_PE_sdata* for data.
(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
From-SVN: r87696
Geoffrey Keating [Sat, 18 Sep 2004 05:50:52 +0000 (05:50 +0000)]
re PR pch/13361 (const wchar_t * strings not stored in pch)
* tree-inline.c (copy_tree_r): Don't duplicate constants, they're
shared anyway.
PR pch/13361
* c-typeck.c (constructor_asmspec): Delete.
(struct initializer_stack): Delete field 'asmspec'.
(start_init): Delete saving of asmspec.
(finish_init): Don't update constructor_asmspec.
* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
* stmt.c (expand_asm): Duplicate strings from tree.
(expand_asm_operands): Likewise.
* tree.c (tree_size): Update computation of size of STRING_CST.
(make_node): Don't make STRING_CST nodes.
(build_string): Allocate string with tree node.
(tree_code_size): Clean up assertions, don't allow requests
for "the size of a STRING_CST".
* tree.def (STRING_CST): Update comment.
* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
(tree_string): Place contents of string in tree node.
* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
from tree.
From-SVN: r87695
Zack Weinberg [Sat, 18 Sep 2004 01:07:25 +0000 (01:07 +0000)]
Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
* Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
* objc/Make-lang.in (objc/objc-parse.o): Likewise.
From-SVN: r87689
Zack Weinberg [Sat, 18 Sep 2004 00:56:19 +0000 (00:56 +0000)]
* charset.c (_cpp_destroy_iconv, emit_numeric_escape)
(_cpp_convert_input, _cpp_default_encoding): Add comments.
Some other comments in this file also tweaked.
From-SVN: r87688
Zack Weinberg [Sat, 18 Sep 2004 00:53:50 +0000 (00:53 +0000)]
directives.c (do_pragma): Save current buffer position before lexing the pragma keywords...
* directives.c (do_pragma): Save current buffer position
before lexing the pragma keywords; don't call
_cpp_backup_tokens in the defer_pragmas case.
From-SVN: r87687
Jones Desougi [Sat, 18 Sep 2004 00:50:15 +0000 (00:50 +0000)]
configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
2004-09-17 Jones Desougi <jones@ingate.com>
* configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
* configure, config.in: Regenerate.
From-SVN: r87686
Zack Weinberg [Sat, 18 Sep 2004 00:43:42 +0000 (00:43 +0000)]
tree.c, tree.h (tree_class_strings): Make array const.
* tree.c, tree.h (tree_class_strings): Make array const.
Reindent per coding convention. Move asterisk to proper place
per coding convention.
From-SVN: r87685
GCC Administrator [Sat, 18 Sep 2004 00:16:19 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r87683
Roger Sayle [Fri, 17 Sep 2004 22:58:40 +0000 (22:58 +0000)]
inclhack.def (linux_ia64_ucontext): New fix.
* inclhack.def (linux_ia64_ucontext): New fix.
* fixincl.x: Regenerate.
* tests/base/sys/ucontext.h: New file.
From-SVN: r87677
Andreas Schwab [Fri, 17 Sep 2004 22:14:58 +0000 (22:14 +0000)]
Makefile.in (gimple-low.o): Depend on $(EXPR_H).
* Makefile.in (gimple-low.o): Depend on $(EXPR_H).
(tree-vectorizer.o): Likewise.
(targhooks.o): Likewise.
From-SVN: r87676
Jeffrey D. Oldham [Fri, 17 Sep 2004 21:55:02 +0000 (21:55 +0000)]
alias.c (find_base_decl): Remove unreachable case '3' block.
2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
Zack Weinberg <zack@codesourcery.com>
* alias.c (find_base_decl): Remove unreachable case '3' block.
* expr.c (safe_from_p): Abort if passed a type.
* tree-gimple.c (recalculate_side_effects): Abort if passed
anything other than an expression.
* tree-ssa-pre.c (phi_translate): Return expr immediately if
is_gimple_min_invariant is true for it. Reorder cases for clarity.
Abort on un-handled tree classes.
(valid_in_set): Likewise.
* tree.c (tree_code_class_strings): New static data.
* tree.h (enum tree_code_class): New.
(tree_code_class_strings): Declare.
(TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
(REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
(STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
(TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
(checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
* tree.def, c-common.def, objc/objc-tree.def: Use
tree_code_class enumeration constants instead of code letters.
* alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
* c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
* emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
* langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
* tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
* tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
* tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
* tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
* tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
* tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
* tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
* config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
* config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
Update to match.
* LANGUAGES: Add note about change.
ada:
* ada-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
Update for new tree-class enumeration constants.
cp:
* cp-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* call.c, class.c, cp-gimplify.c, cp-lang.c, cxx-pretty-print.c
* mangle.c, pt.c, semantics.c, tree.c, typeck.c:
Update for new tree-class enumeration constants.
fortran:
* f95-lang.c, trans-expr.c, trans.c: Update for new tree-class
enumeration constants.
java:
* java-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* java-gimplify.c, jcf-write.c, lang.c, parse.y: Update for
new tree-class enumeration constants.
treelang:
* treetree.c: Update for new tree-class enumeration constants.
From-SVN: r87675
Kenneth Zadeck [Fri, 17 Sep 2004 21:49:39 +0000 (21:49 +0000)]
20040917-1.c: New test.
2004-09-17 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
* gcc.c-torture/execute/
20040917-1.c: New test.
From-SVN: r87674
Diego Novillo [Fri, 17 Sep 2004 21:30:23 +0000 (21:30 +0000)]
re PR tree-optimization/17319 (-fno-tree-dce cause ICE)
PR tree-optimization/17319
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
examine pointers on the LHS of an assignment.
(collect_points_to_info_r): Handle RETURN_EXPR.
testsuite/ChangeLog
PR tree-optimization/17319
* gcc.dg/pr17319.c: New test.
From-SVN: r87673
Jeff Law [Fri, 17 Sep 2004 21:16:07 +0000 (15:16 -0600)]
tree-ssa-dom.c (const_and_copies_stack): New.
* tree-ssa-dom.c (const_and_copies_stack): New.
(dom_walk_block_data): Remove const_and_copies field.
(record_const_or_copy): No longer need to pass in varray_type *.
Use CONST_AND_COPIES_STACK rather than passed in block local stack.
Callers updated.
(record_equality): Similarly.
(restore_vars_to_original_value): Similarly. Revamp to use new
single global stack rather than per-block stacks.
(tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
(thread_across_edge): Remove now unused parameters.
(dom_opt_initialize_block_local_data): No longer test the block
local CONST_AND_COPIES.
(dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
From-SVN: r87670
Jan Hubicka [Fri, 17 Sep 2004 21:04:56 +0000 (23:04 +0200)]
re PR tree-optimization/17509 (ICE in verify_cgraph_node)
PR tree-optimization/17509
* tree-optimize.c (update_inlined_to_pointers): New function.
(tree_rest_of_compilation): Use it.
From-SVN: r87669
Devang Patel [Fri, 17 Sep 2004 18:47:19 +0000 (11:47 -0700)]
dbxout.c (get_lang_number): New.
* dbxout.c (get_lang_number): New.
(dbxout_init): Include lang number in N_SO stab.
* dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
testsuite
* gcc.dg/
20040813-1.c: New test.
From-SVN: r87663
Diego Novillo [Fri, 17 Sep 2004 18:42:51 +0000 (18:42 +0000)]
re PR tree-optimization/17273 (ICE in get_indirect_ref_operands)
PR tree-optimization/17273
* tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
replacement is a constant.
testsuite/ChangeLog
PR tree-optimization/17273
* gcc.c-torture/compile/pr17273.c: New test.
From-SVN: r87662
Joseph Myers [Fri, 17 Sep 2004 18:18:05 +0000 (19:18 +0100)]
c-tree.h (enum c_typespec_keyword): New.
* c-tree.h (enum c_typespec_keyword): New.
(struct c_declspecs): Adjust description of "type". Remove
specbits, explicit_int_p and explicit_char_p. Rename
typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
short_p, signed_p, unsigned_p and complex_p.
(finish_declspecs): New.
* c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
typename): Call finish_declspecs.
* c-decl.c (finish_declspecs): New.
(declspecs_add_type): Check for combinations which cannot occur in
valid specifier lists. Update comments.
(shadow_tag_warned): Remove checks done in finish_declspecs.
Don't report useless type name if type defaulted to int.
(grokdeclarator): Remove checks and actions done in
finish_declspecs. Don't allow for type being NULL. Update for
datastructures changes. Initialize decl_attr.
(build_null_declspecs, quals_from_declspecs): Update for
datastructures changes.
testsuite:
* gcc.dg/declspec-4.c, gcc.dg/declspec-5.c, gcc.dg/declspec-6.c:
Update expected messages.
* gcc.dg/declspec-13.c: New test.
From-SVN: r87660
Sylvain Pion [Fri, 17 Sep 2004 17:24:17 +0000 (19:24 +0200)]
* doc/extend.texi: Fix duplicated word.
From-SVN: r87657
Paul Brook [Fri, 17 Sep 2004 17:07:43 +0000 (17:07 +0000)]
gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.
* gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.
(gfc_linebuf_header_size): Define.
* scanner.c (load_file): Use it.
From-SVN: r87655
Toon Moene [Fri, 17 Sep 2004 15:51:58 +0000 (17:51 +0200)]
invoke.texi: Remove stray explanation on -freduce-all-givs and -fmove-all-movables.
2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
* doc/invoke.texi: Remove stray explanation on
-freduce-all-givs and -fmove-all-movables.
From-SVN: r87651
Jonathan Wakely [Fri, 17 Sep 2004 14:11:59 +0000 (15:11 +0100)]
stl_algo.h (remove): Remove too restrictive concept-check.
2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/stl_algo.h (remove): Remove too restrictive
concept-check.
From-SVN: r87650
Paolo Carlini [Fri, 17 Sep 2004 14:01:18 +0000 (14:01 +0000)]
fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion.
2004-09-17 Paolo Carlini <pcarlini@suse.de>
* include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
as per Nathan's original suggestion.
From-SVN: r87647
James A. Morrison [Fri, 17 Sep 2004 13:57:03 +0000 (13:57 +0000)]
cfg.texi: Use @smallexample.
2004-09-17 James Morrison <phython@gcc.gnu.org>
* doc/cfg.texi: Use @smallexample.
* doc/md.texi: Likewise.
* doc/tree-ssa.texi: Likewise.
* doc/extend.texi: Likewise. Use @r{} in comments.
* doc/trouble.texi: Use @r{} in comments.
From-SVN: r87646
David Edelsohn [Fri, 17 Sep 2004 13:48:43 +0000 (13:48 +0000)]
* gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.
From-SVN: r87645
Vincent Celier [Fri, 17 Sep 2004 13:46:12 +0000 (13:46 +0000)]
prj-attr-pm.ads, [...]: New files, to split some private capabilities of the general project manager.
2004-09-17 Vincent Celier <celier@gnat.com>
* prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
capabilities of the general project manager.
From-SVN: r87644
Hans-Peter Nilsson [Fri, 17 Sep 2004 12:45:34 +0000 (12:45 +0000)]
configure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=".
* configure.ac (gcc_cv_gld_version): Handle whitespace before
"VERSION=".
* aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
* configure: Regenerate.
From-SVN: r87643
Diego Novillo [Fri, 17 Sep 2004 12:22:19 +0000 (12:22 +0000)]
pr17252.c: Use post-increment to change what 'a' is pointing to.
* gcc.c-torture/execute/pr17252.c: Use post-increment to
change what 'a' is pointing to.
From-SVN: r87642
Joern Rennecke [Fri, 17 Sep 2004 12:01:33 +0000 (13:01 +0100)]
Be more precise in last entry.
From-SVN: r87641
Joern Rennecke [Fri, 17 Sep 2004 11:53:14 +0000 (12:53 +0100)]
sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
* sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
(sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
* t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
* t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match trailing slashes
in substitutions.
(MULTILIB_DIRNAMES): Remove defunct removal of /media32.
From-SVN: r87640
Paolo Carlini [Fri, 17 Sep 2004 11:18:27 +0000 (11:18 +0000)]
tune-1.cc: Use VERIFY, clean up a bit.
2004-09-17 Paolo Carlini <pcarlini@suse.de>
* testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
up a bit.
* testsuite/ext/mt_allocator/tune-2.cc: Likewise.
* testsuite/ext/mt_allocator/tune-3.cc: Likewise.
* testsuite/ext/mt_allocator/tune-4.cc: Likewise.
From-SVN: r87638
Kazu Hirata [Fri, 17 Sep 2004 09:14:12 +0000 (09:14 +0000)]
basic-block.h, [...]: Fix comment typos.
* basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
gimplify.c, lambda-code.c, optabs.c, predict.c,
tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
tree-ssa.c, vec.h: Fix comment typos. Follow spelling
conventions.
From-SVN: r87637
Paolo Carlini [Fri, 17 Sep 2004 08:42:07 +0000 (08:42 +0000)]
basic_file_stdio.cc (__basic_file<>::close)): Don't call unnecessarily sync, that is fflush...
2004-09-17 Paolo Carlini <pcarlini@suse.de>
Andrea Arcangeli <andrea@suse.de>
* config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
call unnecessarily sync, that is fflush: the library, since 3.4.0
does not use buffered fread/fwrite.
* include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
Co-Authored-By: Andrea Arcangeli <andrea@suse.de>
From-SVN: r87636