1. 15 Nov, 2005 19 commits
    • exp_vfpt.adb: Handle /= case · 0d268911
      2005-11-14  Robert Dewar  <dewar@adacore.com>
      
      	* exp_vfpt.adb: Handle /= case
      	(Expand_Vax_Conversion): Properly recognize Conversion_OK flag
      	so that we do not get duplicate scaling for fixed point conversions.
      
      	* s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
      
      From-SVN: r106951
      Robert Dewar committed
    • re PR ada/18434 (Ada: cannot build gnattools on Tru64 UNIX V5.1B) · f02b8bb8
      2005-11-14  Robert Dewar  <dewar@adacore.com>
      	    Ed Schonberg  <schonberg@adacore.com>
      
      	PR ada/18434
      
      	* types.ads: Include All_Checks in Suppress_Array
      
      	* checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
      	not(a=b), since we no longer do this rewriting, and hence it is not
      	needed.
      	(Elaboration_Checks_Suppressed): Add special casing to
      	deal with different cases of static and dynamic elaboration checks (all
      	checks does not count in the first case, but does in the second).
      	(Expr_Known_Valid): Do not assume that the result of any arbitrary
      	function call is valid, since this is not the case.
      	(Ensure_Valid): Do not apply validity check to a real literal
      	in a universal or fixed context
      
      	* exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
      	elementary types using the operator in standard. It is cleaner not to
      	modify the programmers intent, especially in the case of floating-point.
      	(Rewrite_Comparison): Fix handling of /= (this was always wrong, but
      	it did not matter because we always rewrote a/=b to not(a=b).
      	(Expand_Allocator_Expression): For an allocator expression whose nominal
      	subtype is an unconstrained packed type, convert the expression to its
      	actual constrained subtype.
      	Implement warning for <= or >= where < or > not possible
      	Fix to Vax_Float tests (too early in many routines, causing premature
      	Vax_Float expansions.
      
      	* sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
      	to be used with packages and generic packages as well as with
      	subprograms.
      	(Suppress): Set All_Checks, but not Elaboration_Check, for case
      	of pragma Suppress (All_Checks)
      	(Analyze_Pragma, case Warnings): Implement first argument allowed to be
      	a string literal for precise control over warnings.
      	Avoid raise of pragma in case of unrecognized pragma and just return
      	instead.
      
      	* sem_prag.ads: Minor reformatting
      
      	* switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
      	with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
      	Switch. Do not handle any exception.
      	Include -gnatwx as part of -gnatg (warn on redundant parens)
      	Allow optional = after -gnatm
      	(Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
      	longer sets Elaboration_Checks.
      	Code to set warning mode moved to Sem_Warn
      	so that it can be shared by pragma processing.
      
      	* s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
      	statement.
      
      	* s-taprop-solaris.adb: 
      	Change some <= to =, to avoid new warning
      
      	* a-exexda.adb, prj-proc.adb: 
      	Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
      	Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
      
      From-SVN: r106950
      Robert Dewar committed
    • g-soccon.ads: Minor reformatting. · 3e1fd98f
      2005-11-14  Thomas Quinot  <quinot@adacore.com>
      
      	* g-soccon.ads: Minor reformatting. Update comments.
      
      	* gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
      	gain visibility on the declaration of struct timeval.
      
      	* g-soccon-freebsd.ads,
      	g-soccon-darwin.ads,
      	g-soccon-tru64.ads,
      	g-soccon-aix.ads,
      	g-soccon-irix.ads,
      	g-soccon-hpux.ads,
      	g-soccon-solaris.ads,
      	g-soccon-vms.ads,
      	g-soccon-mingw.ads,
      	g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
      
      	* g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
      	g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
      	g-soccon-linux-x86.ads: New files.
      
      	* g-socthi-mingw.adb: 
      	(Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
      
      	* g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
      	(time_t, suseconds_t): New types constructed to match the tv_sec
      	and tv_usec fields of C struct timeval.
      	(Timeval): Construct structure in terms of the new types.
      	(Host_Errno): New function (imported from socket.c), returns last hosts
      	database error.
      
      	* g-socthi-vxworks.adb:  Add error handling circuitry.
      
      	* g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
      	components of struct timeval.
      	(Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
      	(Check_Selector): In error conditions, clear internal socket sets to
      	avoid a memory leak.
      	(Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
      	Send_Timeout, Receive_Timeout.
      
      	* g-socthi.ads (time_t, suseconds_t): New types constructed to match
      	the tv_sec and tv_usec fields of C struct timeval.
      	(Timeval): Construct structure in terms of the new types.
      	(Host_Errno): New function (imported from socket.c), returns last hosts
      	database error.
      
      	* socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
      	hosts database last error code.
      
      	* gen-soccon.c: Complete value expansion should not be performed on
      	TARGET, as it has the form of a math expression, and some components
      	may be platform-defined macros.
      	For VxWorks, generate the OK and ERROR values.
      	New constants giving the sizes of the components of C struct timeval.
      
      From-SVN: r106949
      Thomas Quinot committed
    • invoke.texi (large-unit-insns): Document. · b4f32d07
      
      	* invoke.texi (large-unit-insns): Document.
      	* ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
      	* params.def (large-unit-insns): New param.
      	* gcc.dg/winline-5.c: Add large-unit-insns limit.
      
      From-SVN: r106948
      Jan Hubicka committed
    • re PR target/24869 (testsuite failure: gfortran.dg/func_derived_1.f90 -O3 unroll-loops) · 4a60d778
      	PR target/24869
      	* config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
      	special register for operand 3.  Reindent constraints to align
      	them vertically.
      
      From-SVN: r106946
      Hans-Peter Nilsson committed
    • invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf, -mpopcntb, -mfprnd. · 9719f3b7
              * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
              -mpopcntb, -mfprnd. Add -mcpu=power5+.
              * configure.ac: Add test for FP rounding instructions.
              * configure: Regenerate.
              * config.in: Regenerate.
              * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
              _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
              features enabled.
              * config/rs6000/rs6000.opt (mfprnd): New.
              * config/rs6000/rs6000.c (processor_target_table): Add power5+.
              (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
              * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
              * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
              (TARGET_FPRND): New.
              * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
              UNSPEC_FRIZ): New.
              (btrunc<mode>2): New.
              (ceil<mode>2): New.
              (floor<mode>2): New.
              (round<mode>2): New.
      
      From-SVN: r106938
      David Edelsohn committed
    • acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Don't check for shared libgcc for darwin exports. · f47bddec
      	* acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Don't check for
      	shared libgcc for darwin exports.
      	* configure: Regenerate.
      
      From-SVN: r106936
      Geoffrey Keating committed
    • gcc.c (version_compare_spec_function): Use fatal() rather than abort(). · 56309261
      	* gcc.c (version_compare_spec_function): Use fatal() rather than
      	abort().
      
      	* config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
      	(SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
      	* config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
      	as empty.
      	* config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
      	link in crt2.o.
      	
      	* config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
      	on -mmacosx-version-min setting.
      
      From-SVN: r106935
      Geoffrey Keating committed
    • * g++.dg/eh/simd-2.C: XFAIL on AIX and SPE. · 9193863e
      From-SVN: r106933
      David Edelsohn committed
    • re PR tree-optimization/24840 (ICE process_assert_insertions_for, at tree-vrp.c:2807) · 8c5285e1
      
      	PR 24840
      	* tree-vrp.c (infer_value_range): Return false if STMT is a
      	block terminator and its basic block has no successors.
      
      testsuite/
      
      	PR 24840
      	* gcc.dg/tree-ssa/pr24840.c: New test.
      
      From-SVN: r106930
      Diego Novillo committed
    • i386.c (override_options): -masm=intel isn't supported on darwin. · 1f4c2c57
      	* config/i386/i386.c (override_options): -masm=intel isn't
      	supported on darwin.
      	* doc/invoke.texi (i386 and x86-64 Options): Likewise.
      
      From-SVN: r106927
      Mike Stump committed
    • crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and vfork after including auto-host.h. · 3bea02d1
      	* crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
      	vfork after including auto-host.h.
      
      From-SVN: r106924
      Joseph Myers committed
    • re PR testsuite/24841 (dg-require compilation-test trigged on test with additional-sources barfs) · f2025db2
      	PR testsuite/24841
      	* gcc.dg/attr-weakref-1.c: Rearrange test directives.
      
      From-SVN: r106923
      Janis Johnson committed
    • re PR rtl-optimization/22002 (internal consistency failure with -funroll-loops) · 46de9b3c
      	PR rtl-optimization/22002
      	* combine.c (distribute_notes): Detect cases where a reg dies
      	two or more times in a bb, including on the insn we are combining,
      	and place the death note on the correct range.
      
      From-SVN: r106921
      Alan Modra committed
    • 20051113-1.c: New. · 12431170
      2005-11-14  Dale Johannesen  <dalej@apple.com>
      
              * gcc.c-torture/execute/20051113-1.c:  New.
      
      From-SVN: r106920
      Dale Johannesen committed
    • expmed.c (store_bit_field): Add offset unconditionally for memory targets. · 69498c64
      2005-11-14  Dale Johannesen  <dalej@apple.com>
      
              * expmed.c (store_bit_field):  Add offset unconditionally for
              memory targets.
              (extract_bit_field):  Don't force extzv or extv operand into
              a register if field is too big.
      
      From-SVN: r106919
      Dale Johannesen committed
    • Daily bump. · 53acd384
      From-SVN: r106914
      GCC Administrator committed
    • re PR c++/24687 (ICE after error) · 2f1b1731
      	PR c++/24687
      	* pt.c (check_explicit_specialization): Don't check for C linkage.
      	(push_template_decl_real): Likewise.
      	* parser.c (cp_parser_explicit_specialization): Check here.
      	(cp_parser_template_declaration_after_export): And here.
      	PR c++/24687
      	* g++.dg/template/crash43.C: New test.
      
      From-SVN: r106909
      Mark Mitchell committed
    • parser.c (cp_lexer_get_preprocessor_token): Initialize keyword field. · 37edf0a6
      	* parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
      	field.
      
      From-SVN: r106907
      Mark Mitchell committed
  2. 14 Nov, 2005 17 commits
  3. 13 Nov, 2005 4 commits
    • pa.c (store_reg): Revise generation of frame notes in large frames. · 5dcc9605
      	* pa.c (store_reg): Revise generation of frame notes in large frames.
      	(set_reg_plus_d): Likewise.
      
      From-SVN: r106867
      John David Anglin committed
    • re PR tree-optimization/24709 (4.1.0 HEAD crashes with enable-checking on huge switch statement) · e84d8064
      
      	PR tree-optimization/24709
      	* tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
      	loop check.
      
      From-SVN: r106865
      Andrew MacLeod committed
    • [multiple changes] · 81daf4ba
      2005-11-13  Jonathan Wakely  <redi@gcc.gnu.org>
      
      	* include/tr1/boost_shared_ptr.h (get_deleter):
      	Declare before shared_ptr.
      	(shared_ptr<>): Declare get_deleter as friend.
      	(shared_ptr<>:_M_get_deleter): Private.
      
      2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>
      
      	PR libstdc++/24818
              * include/tr1/ref_wrap_iterate.h
              (reference_wrapper::operator()()): Don't dereferene the result of
              get() before calling it; it's already a reference.
              * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
              Test nullary calls to reference_wrappers.
      
      From-SVN: r106863
      Paolo Carlini committed
    • [multiple changes] · 3270a66b
      2005-11-13  Jonathan Wakely  <redi@gcc.gnu.org>
      
      	* include/tr1/boost_shared_ptr.h (get_deleter):
      	Declare before shared_ptr.
      	(shared_ptr<>): Declare get_deleter as friend.
      	(shared_ptr<>:_M_get_deleter): Private.
      
      2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>
      
      	PR libstdc++/24818
              * include/tr1/ref_wrap_iterate.h
              (reference_wrapper::operator()()): Don't dereferene the result of
              get() before calling it; it's already a reference.
              * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
              Test nullary calls to reference_wrappers.
      
      From-SVN: r106862
      Paolo Carlini committed