aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-11-15g-soccon.ads: Minor reformatting.Thomas Quinot27-317/+1489
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
2005-11-15invoke.texi (large-unit-insns): Document.Jan Hubicka6-2/+31
* 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
2005-11-15re PR target/24869 (testsuite failure: gfortran.dg/func_derived_1.f90 -O3 ↵Hans-Peter Nilsson2-10/+19
unroll-loops) 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
2005-11-15invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf, -mpopcntb, -mfprnd.David Edelsohn11-18/+222
* 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
2005-11-15gcc.c (version_compare_spec_function): Use fatal() rather than abort().Geoffrey Keating5-20/+49
* 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
2005-11-14* g++.dg/eh/simd-2.C: XFAIL on AIX and SPE.David Edelsohn2-0/+5
From-SVN: r106933
2005-11-14re PR tree-optimization/24840 (ICE process_assert_insertions_for, at ↵Diego Novillo4-0/+35
tree-vrp.c:2807) 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
2005-11-15i386.c (override_options): -masm=intel isn't supported on darwin.Mike Stump3-3/+11
* 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
2005-11-15crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and vfork after ↵Joseph Myers2-0/+11
including auto-host.h. * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and vfork after including auto-host.h. From-SVN: r106924
2005-11-15re PR testsuite/24841 (dg-require compilation-test trigged on test with ↵Janis Johnson2-1/+6
additional-sources barfs) PR testsuite/24841 * gcc.dg/attr-weakref-1.c: Rearrange test directives. From-SVN: r106923
2005-11-15re PR rtl-optimization/22002 (internal consistency failure with -funroll-loops)Alan Modra2-0/+27
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
2005-11-1520051113-1.c: New.Dale Johannesen2-0/+75
2005-11-14 Dale Johannesen <dalej@apple.com> * gcc.c-torture/execute/20051113-1.c: New. From-SVN: r106920
2005-11-15expmed.c (store_bit_field): Add offset unconditionally for memory targets.Dale Johannesen2-8/+22
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
2005-11-15Daily bump.GCC Administrator1-1/+1
From-SVN: r106914
2005-11-15re PR c++/24687 (ICE after error)Mark Mitchell5-10/+58
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
2005-11-15parser.c (cp_lexer_get_preprocessor_token): Initialize keyword field.Mark Mitchell2-1/+9
* parser.c (cp_lexer_get_preprocessor_token): Initialize keyword field. From-SVN: r106907
2005-11-14re PR c++/24580 (virtual base class cause exception not to be caught)Jason Merrill3-1/+33
PR c++/24580 * method.c (locate_ctor): Skip all artificial parms, not just 'this'. From-SVN: r106901
2005-11-14arm.c (pic_labelno): New.Daniel Jacobowitz3-26/+59
* config/arm/arm.c (pic_labelno): New. (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a LABEL_REF. Pass only the labelno to PIC insns. (arm_call_tls_get_addr, legitimize_tls_address): Likewise. (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL. * arm.md (UNSPEC_PIC_LABEL): New constant. (pic_add_dot_plus_four, pic_add_dot_plus_eight) (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF. Use the correct label prefix. From-SVN: r106893
2005-11-14arm.c (legitimize_tls_address): Use correct rtx for REQ_EQUIV note.Daniel Jacobowitz2-1/+6
* config/arm/arm.c (legitimize_tls_address): Use correct rtx for REQ_EQUIV note. From-SVN: r106892
2005-11-14* gcc.c-torture/unsorted/unsorted.exp: Sort tests before running them.Daniel Jacobowitz2-1/+5
From-SVN: r106890
2005-11-14* parser.c (eof_token): Add initializer for ambiguous_p.Mark Mitchell2-1/+5
From-SVN: r106889
2005-11-14loop-invariant.c: Include tm_p.h.Richard Earnshaw1-0/+5
* loop-invariant.c: Include tm_p.h. * Makefile.in: Updated. From-SVN: r106888
2005-11-14loop-invariant.c: Include tm_p.h.Richard Earnshaw2-1/+2
* loop-invariant.c: Include tm_p.h. * Makefile.in: Updated. From-SVN: r106887
2005-11-14re PR ada/18434 (Ada: cannot build gnattools on Tru64 UNIX V5.1B)Robert Dewar2-1/+17
2005-11-14 Robert Dewar <dewar@adacore.com> PR ada/18434 * osint-m.adb: Add pragma Elaborate_All for Osint From-SVN: r106886
2005-11-14re PR c++/24817 (g++ accepts multiple function template declarations even if ↵Mark Mitchell5-35/+80
exception-specification doesn't match.) PR c++/24817 * decl.c (check_redeclaration_exception_specification): New function. (duplicate_decls): Use it. * error.c (fndecl_to_string): Print the template parameter list. PR c++/24817 * g++.dg/eh/spec8.C: New test. From-SVN: r106884
2005-11-14* gcc.dg/pack-test-1.c: Gate on ! default_packed.Hans-Peter Nilsson2-1/+5
From-SVN: r106883
2005-11-14re PR c++/20293 (Wrong diagnostic for ambiguous access)Mark Mitchell11-69/+171
PR c++/20293 * cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes for namespaces. (pp_cxx_original_namespace_definition): Likewise. * name-lookup.c (ambiguous_decl): Don't issue error messages; instead return lists of ambiguous candidates. (select_decl): Handle ambiguous namespace lookups. * parser.c (cp_token): Add ambiguous_p. (cp_lexer_get_preprocessor_token): Set it. (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages when a qualified name uses an invalid scope. (cp_parser_primary_expression): Print ambiguous candidates. (cp_parser_type_parameter): Adjust comment to reflect new parameter name for cp_parser_lookup_name. (cp_parser_template_argument): Likewise. (cp_parser_elaborated_type_specifier): Likewise. (cp_parser_namespace_name): Likewise. (cp_parser_class_name): Print ambiguous candidates. (cp_parser_lookup_name): Rename ambiguous_p parameter to ambiguous_decls. Use it to return a list of ambiguous candiates when a lookup is ambiguous. (cp_parser_lookup_name_simple): Adjust comment to reflect new parameter name for cp_parser_lookup_name. PR c++/20293 * g++.dg/parse/ambig4.C: New test. * g++.dg/tc1/dr101.C: Adjust error markers. * g++.dg/lookup/strong-using-2.C: Likewise. * g++.dg/lookup/ambig5.C: Likewise. * g++.dg/lookup/ambig4.C: Likewise. * g++.dg/parse/crash22.C: Likewise. From-SVN: r106879
2005-11-14* gcc.dg/pr19340.c: Skip for mmix-*-* and cris-*-*.Hans-Peter Nilsson2-0/+5
From-SVN: r106877
2005-11-14Daily bump.GCC Administrator1-1/+1
From-SVN: r106874
2005-11-13pa.c (store_reg): Revise generation of frame notes in large frames.John David Anglin2-8/+17
* pa.c (store_reg): Revise generation of frame notes in large frames. (set_reg_plus_d): Likewise. From-SVN: r106867
2005-11-13re PR tree-optimization/24709 (4.1.0 HEAD crashes with enable-checking on ↵Andrew MacLeod2-2/+8
huge switch statement) PR tree-optimization/24709 * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite loop check. From-SVN: r106865
2005-11-13gthr-posix95.h: Remove declaration of pthread_mutexattr_settype and ↵Eric Botcazou2-2/+5
duplicate declaration of... * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype and duplicate declaration of pthread_self. From-SVN: r106861
2005-11-13re PR middle-end/24003 (17 ACATS regressions (fixed point or decimal ↵Eric Botcazou4-12/+88
artihmetic)) PR middle-end/24003 * calls.c (expand_call): If TARGET is a MEM and some part of the argument area has been saved, force TARGET to a register. Co-Authored-By: Ian Lance Taylor <ian@airs.com> From-SVN: r106860
2005-11-13fget.c: New file.Francois-Xavier Coudert18-3/+982
* intrinsics/fget.c: New file. * intrinsics/ftell.c: New file. * io/unix.c (stream_offset): New function. * io/io.h: Add prototype for stream_offset. * Makefile.am: Add intrinsics/fget.c and intrinsics/ftell.c. * Makefile.in: Regenerate. * intrinsic.c (add_functions): Add COMPLEX, FTELL, FGETC, FGET, FPUTC, FPUT, AND, XOR and OR intrinsic functions. (add_subroutines): Add FGETC, FGET, FPUTC, FPUT and FTELL intrinsic subroutines. * gfortran.h: Add GFC_ISYM_AND, GFC_ISYM_COMPLEX, GFC_ISYM_FGET, GFC_ISYM_FGETC, GFC_ISYM_FPUT, GFC_ISYM_FPUTC, GFC_ISYM_FTELL, GFC_ISYM_OR, GFC_ISYM_XOR. * iresolve.c (gfc_resolve_and, gfc_resolve_complex, gfc_resolve_or, gfc_resolve_fgetc, gfc_resolve_fget, gfc_resolve_fputc, gfc_resolve_fput, gfc_resolve_ftell, gfc_resolve_xor, gfc_resolve_fgetc_sub, gfc_resolve_fget_sub, gfc_resolve_fputc_sub, gfc_resolve_fput_sub, gfc_resolve_ftell_sub): New functions. * check.c (gfc_check_complex, gfc_check_fgetputc_sub, gfc_check_fgetputc, gfc_check_fgetput_sub, gfc_check_fgetput, gfc_check_ftell, gfc_check_ftell_sub, gfc_check_and): New functions. * simplify.c (gfc_simplify_and, gfc_simplify_complex, gfc_simplify_or, gfc_simplify_xor): New functions. * trans-intrinsic.c (gfc_conv_intrinsic_function): Add cases for GFC_ISYM_AND, GFC_ISYM_COMPLEX, GFC_ISYM_FGET, GFC_ISYM_FGETC, GFC_ISYM_FPUT, GFC_ISYM_FPUTC, GFC_ISYM_FTELL, GFC_ISYM_OR and GFC_ISYM_XOR. * intrinsic.h: Add prototypes for all functions added to iresolve.c, simplify.c and check.c. * gfortran.dg/complex_intrinsic_1.f90: New test. * gfortran.dg/complex_intrinsic_2.f90: New test. * gfortran.dg/fgetc_1.f90: New test. * gfortran.dg/fgetc_2.f90: New test. * gfortran.dg/fgetc_3.f90: New test. * gfortran.dg/ftell_1.f90: New test. * gfortran.dg/ftell_2.f90: New test. * gfortran.dg/gnu_logical_1.F: New test. * gfortran.dg/gnu_logical_2.f90: New test. From-SVN: r106859
2005-11-13ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type checking.Razya Ladelsky2-41/+15
2005-11-13 Razya Ladelsky <razya@il.ibm.com> * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type checking. From-SVN: r106858
2005-11-13re PR c++/22489 (ICE in dwarf2out_finish with using namespace in a local ↵Jason Merrill3-5/+52
class and compiler built constructors) PR c++/22489 * dwarf2out.c (gen_subprogram_die): Force a declaration die for lazily declared methods. (force_decl_die): Stop if forcing out the context already make a DIE for the decl. (force_type_die): Likewise. From-SVN: r106853
2005-11-12re PR middle-end/24820 (SEGV in integer_valued_real_p at gcc/builtins.c:6711)Andrew Pinski4-0/+24
2005-11-13 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24820 * testsuite/gcc.dg/pr24820.c: New test. 2005-11-13 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24820 * builtins.c (integer_valued_real_p): Add break in REAL_CST having TREE_OVERFLOW set. From-SVN: r106851
2005-11-13Daily bump.GCC Administrator1-1/+1
From-SVN: r106847
2005-11-12tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting addressing ↵Zdenek Dvorak5-3/+21
modes during calculation of costs. * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting addressing modes during calculation of costs. * testsuite/gcc.dg/tree-ssa/loop-2.c: Fix outcome. * testsuite/gcc.dg/tree-ssa/loop-3.c: Change type of loop control variable. From-SVN: r106842
2005-11-12function.c (assign_stack_local_1): Restrict sanity check on frame size ↵Eric Botcazou2-1/+8
overflow to 32-bit and above platforms. * function.c (assign_stack_local_1): Restrict sanity check on frame size overflow to 32-bit and above platforms. From-SVN: r106840
2005-11-12nested-func-4.c: Add dg-options for hppa*-*-hpux*.John David Anglin2-0/+6
testsuite/24614 * gcc.dg/nested-func-4.c: Add dg-options for hppa*-*-hpux*. From-SVN: r106837
2005-11-12cris.exp: New file.Hans-Peter Nilsson4-0/+84
* gcc.target/cris/cris.exp: New file. * gcc.target/cris/rld-legit1.c: New test. * gcc.target/cris/rld-legit2.c: New test. From-SVN: r106836
2005-11-12cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.Hans-Peter Nilsson4-1/+95
* config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define. * config/cris/cris.c: Include reload.h. (cris_initial_elimination_offset): New function. * config/cris/cris-protos.h: (cris_initial_elimination_offset): Prototype. From-SVN: r106835
2005-11-12re PR c++/24780 (ICE set_mem_attributes_minus_bitpos)Jakub Jelinek4-2/+30
PR c++/24780 * typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants of array type. * g++.dg/opt/pr24780.C: New test. From-SVN: r106833
2005-11-12re PR c++/24761 (templates and inline-asm and "+")Jakub Jelinek4-3/+61
PR c++/24761 * pt.c (tsubst_copy_asm_operands): New function. (tsubst_expr) <case ASM_EXPR>: Use it. * g++.dg/template/asm1.C: New test. From-SVN: r106831
2005-11-12gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.Richard Guenther2-0/+6
2005-11-12 Richard Guenther <rguenther@suse.de> * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table. From-SVN: r106829
2005-11-12re PR libfortran/24787 ([libfortran] SCAN is broken)Steven G. Kargl2-0/+36
PR libfortran/24787 * intrinsics/string_intrinsics.c (string_scan): Off by one; Fix typos in nearby comment. * gfortran.dg/scan_1.f90: New test. From-SVN: r106828
2005-11-12expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize to compare ↵Jan Hubicka5-54/+105
against 0 when possible. * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize to compare against 0 when possible. * gcc.target/i386/minmax-1.c: New. * gcc.target/i386/minmax-2.c: New. From-SVN: r106827
2005-11-12bfin.h (REGISTER_NAMES, [...]): Rearrange I/B/L registers.Jie Zhang3-24/+34
* config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES, HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers. * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers in the new order. From-SVN: r106824
2005-11-12pr24445.c: Fix for 64-bit targets.Kaz Kojima2-1/+5
* gcc.dg/pr24445.c: Fix for 64-bit targets. From-SVN: r106822