1. 15 Nov, 2005 26 commits
    • gnatdll.adb (Parse_Command_Line): Remove redundant use of GNAT.Command_Line. · c01b085f
      2005-11-14  Pascal Obry  <obry@adacore.com>
      	    Vincent Celier  <celier@adacore.com>
      
      	* gnatdll.adb (Parse_Command_Line): Remove redundant use of
      	GNAT.Command_Line.
      
      	* memroot.adb: Remove redundant with/use clause on
      	System.Storage_Elements.
      
      From-SVN: r106958
      Pascal Obry committed
    • adaint.h, adaint.c (__gnat_is_cross_compiler): New constant. · 514c9ddc
      	* adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
      	(Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
      	(convert_address): Update comments and list of platforms using this.
      
      	* s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
      	no longer used.
      
      From-SVN: r106957
      Arnaud Charlet committed
    • s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before raising the… · a7e4a881
      s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before raising the exception so the memory used is freed.
      
      2005-11-14  Jose Ruiz  <ruiz@adacore.com>
      
      	* s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
      	raising the exception so the memory used is freed.
      
      From-SVN: r106956
      Jose Ruiz committed
    • s-traces-default.adb, [...]: Fix compilation errors. · ec09262e
      2005-11-14  Arnaud Charlet  <charlet@adacore.com>
      
      	* s-traces-default.adb, s-trafor-default.ads,
      	s-tratas-default.adb: Fix compilation errors.
      
      From-SVN: r106955
      Arnaud Charlet committed
    • system-vms.ads, [...]: ADA$GNAT: New exported object in private part. · 2b6659ab
      2005-11-14  Doug Rupp  <rupp@adacore.com>
      
      	* system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
      	private part.
      
      From-SVN: r106954
      Doug Rupp committed
    • mlib-tgt-tru64.adb, [...] (DLL_Prefix): New function · 6c6db94e
      2005-11-14  Vincent Celier  <celier@adacore.com>
      
      	* mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
      	mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
      	mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
      	mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
      	mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
      	mlib-tgt-lynxos.adb (DLL_Prefix): New function
      
      From-SVN: r106953
      Vincent Celier committed
    • system-lynxos-ppc.ads, [...]: Increase default priority on Lynx from 15 to 17... · 9ea65354
      2005-11-14  Matthew Gingell  <gingell@adacore.com>
      
      	* system-lynxos-ppc.ads, system-lynxos-x86.ads: 
      	Increase default priority on Lynx from 15 to 17, and meet the Ada
      	requirement that Default_Priority be ((Priority'First +
      	Priority'Last) / 2) by increasing the range of Interrupt_Priority.
      
      From-SVN: r106952
      Matthew Gingell committed
    • 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 14 commits