aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-02-11tree-complex.c (expand_complex_libcall): New.Richard Henderson13-12/+568
* tree-complex.c (expand_complex_libcall): New. (expand_complex_multiplication): Use it for c99 compliance. (expand_complex_division): Likewise. * fold-const.c (fold_complex_add, fold_complex_mult): New. (fold): Call them. * builtins.c (built_in_names): Remove const. * tree.c (build_common_builtin_nodes): Build complex arithmetic builtins. * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New. (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New. (built_in_names): Remove const. * c-common.c (c_common_type_for_mode): Handle complex modes. * flags.h, toplev.c (flag_complex_method): Rename from flag_complex_divide_method. * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3, __mulsc3, __muldc3, __mulxc3, __multc3): New. * libgcc2.h: Declare them. * libgcc-std.ver: Export them. * mklibgcc.in (lib2funcs): Build them. From-SVN: r94909
2005-02-12Daily bump.GCC Administrator2-2/+2
From-SVN: r94907
2005-02-1213450.cc: Fix XFAIL selector.Janis Johnson4-3/+7
* testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector. * testsuite/26_numerics/complex/complex_value.cc: Ditto. * testsuite/26_numerics/complex/pow.cc: Ditto. From-SVN: r94904
2005-02-11libstdc++.exp: Load target-supports-dg.exp.Janis Johnson5-0/+12
* testsuite/lib/libstdc++.exp: Load target-supports-dg.exp. * testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg. * testsuite/26_numerics/complex/complex_value.cc: Ditto. * testsuite/26_numerics/complex/pow.cc: Ditto. From-SVN: r94902
2005-02-11gcc-dg.exp: (dg-require-weak...Janis Johnson3-281/+335
* lib/gcc-dg.exp: (dg-require-weak, dg-require-visibility, dg-require-alias, dg-require-gc-sections, dg-require-profiling, dg-require-dll, dg-require-iconv, dg-require-named-sections, dg-require-effective-target, dg-skip-if, dg-xfail-if, selector_opd, selector_list, selector_expression, dg-process-target): Move to new file target-supports-dg.exp. * lib/target-supports-dg.exp: New. From-SVN: r94901
2005-02-11target-supports.exp (check_effective_target_broken_cplxf_arg): New.Janis Johnson2-0/+91
* lib/target-supports.exp (check_effective_target_broken_cplxf_arg): New. From-SVN: r94900
2005-02-11cls_align_longdouble.c: Remove dg-options.Janis Johnson5-4/+7
* testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options. * testsuite/libffi.call/float.c: Ditto. * testsuite/libffi.call/float2.c: Ditto. * testsuite/libffi.call/float3.c: Ditto. From-SVN: r94899
2005-02-11re PR tree-optimization/19876 (g++ starts eating all the memory and the CPU)Steven Bosscher2-41/+27
PR tree-optimization/19876 Partially revert my change from 2005-01-14 * tree-ssa-pre.c (compute_antic_aux): Make recursive once again... (compute_antic): ...and remove the loop here. From-SVN: r94896
2005-02-11re PR c++/19666 (Trouble with prt-to-members: rejects-valid/ICE in fold_convert)Jakub Jelinek2-0/+13
PR c++/19666 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu> * fold-const.c (fold_convert): Treat OFFSET_TYPE like POINTER_TYPE and INTEGER_TYPE. * gcc/testsuite/g++.dg/other/ptrmem6.C: New test. [[Split portion of a mixed commit.]] From-SVN: r94893.2
2005-02-11re PR middle-end/19858 (ICE on simple SSE code)Jakub Jelinek4-2/+31
PR middle-end/19858 * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize is number of inner's bits, avoid creating a BIT_FIELD_REF. * gcc.c-torture/compile/20050210-1.c: New test. From-SVN: r94892
2005-02-11sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie.Jakub Jelinek2-2/+8
* config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie. Use %{x:a;:b} spec syntax. From-SVN: r94890
2005-02-11re PR c++/19634 (Infinite memory usage on Alpha)Richard Henderson2-8/+12
PR c++/19632 * pt.c (get_mostly_instantiated_function_type): Save and restore flag_access_control instead of push/pop_access_scope. From-SVN: r94889
2005-02-11linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the ↵Daniel Jacobowitz2-0/+12
big-endian 32-bit case. * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case. From-SVN: r94888
2005-02-11* config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.Joseph Myers2-0/+10
From-SVN: r94887
2005-02-11cselib.c (cselib_process_insn): Clear out regs where ↵Dale Johannesen3-3/+14
HARD_REGNO_CALL_PART_CLOBBERED is true at a call. 2005-02-11 Dale Johannesen <dalej@apple.com> * cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call. * reload.c (find_equiv_reg): Ditto. From-SVN: r94885
2005-02-11re PR c++/19755 (-Wmissing-braces doesn't warn anymore)Mark Mitchell4-4/+22
PR c++/19755 * decl.c (reshape_init): Issue warnings about missing braces. PR c++/19755 * g++.dg/warn/Wbraces1.C: New test. From-SVN: r94882
2005-02-11* cp-tree.def, except.c, ptree.c: Update copyright.Kazu Hirata4-3/+7
From-SVN: r94881
2005-02-11read-rtl.c (read_rtx_1): Give fatal error if we see a vector with no elements.Ian Lance Taylor2-0/+6
* read-rtl.c (read_rtx_1): Give fatal error if we see a vector with no elements. From-SVN: r94879
2005-02-11tree.c (build_function_type_list): Work correctly if there are no arguments.Ian Lance Taylor2-3/+13
* tree.c (build_function_type_list): Work correctly if there are no arguments. From-SVN: r94878
2005-02-11s390.md ("*cmpdi_cct", [...]): Use %h instead of %c to print immediate operand.Ulrich Weigand2-6/+13
* config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs"): Use %h instead of %c to print immediate operand. ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on TARGET_ZARCH instead of TARGET_64BIT. From-SVN: r94877
2005-02-112005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2-6/+19
* config/rs6000/t-rtems: (MULTILIB_OPTIONS): Remove mcpu=602. (MUTLILIB_DIRNAMES): Remove m602. (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}. Let mcpu=602 match mcpu=603. (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603. From-SVN: r94876
2005-02-11linux-unwind.h (pa32_fallback_frame_state): Handle misaligned signal ↵John David Anglin2-1/+21
trampolines. * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned signal trampolines. From-SVN: r94869
2005-02-11linux-unwind.h: Add exception clause to copyright.David Daney10-8/+92
2005-02-10 David Daney <ddaney@avtrex.com> * config/alpha/linux-unwind.h: Add exception clause to copyright. * config/i386/linux-unwind.h: Likewise. * config/ia64/linux-unwind.h: Likewise. * config/mips/linux-unwind.h: Likewise. * config/pa/linux-unwind.h: Likewise. * config/rs6000/linux-unwind.h: Likewise. * config/s390/linux-unwind.h: Likewise. * config/sh/linux-unwind.h: Likewise. * config/sparc/linux-unwind.h: Likewise. From-SVN: r94868
2005-02-11Daily bump.GCC Administrator2-2/+2
From-SVN: r94863
2005-02-10* MAINTAINERS: Update my e-mail address.Ian Lance Taylor2-1/+5
From-SVN: r94859
2005-02-10re PR tree-optimization/17549 (10% increase in codesize with C code compared ↵Steven Bosscher2-2/+25
to GCC 3.3) PR tree-optimization/17549 * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow TER to replace a DEF with its expression if the DEF and the rhs of the expression we replace into have the same root variable. From-SVN: r94853
2005-02-10mips.md: Fix the placement of the match_scratch in the lea64 peephole2.Richard Sandiford2-3/+8
* config/mips/mips.md: Fix the placement of the match_scratch in the lea64 peephole2. From-SVN: r94846
2005-02-10cse.c, [...]: Fix comment typos.Kazu Hirata4-3/+8
* cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h: Fix comment typos. From-SVN: r94845
2005-02-10Fix typo...Mike Stump1-1/+1
From-SVN: r94843
2005-02-10* libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.Mike Stump2-0/+6
From-SVN: r94842
2005-02-10tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.Zdenek Dvorak2-74/+129
* tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts. (strip_offset): Handle addresses. (add_address_candidates): Use strip_offset. (difference_cost): Reflect strip_offset change. (force_var_cost, difference_cost): Strip nops. From-SVN: r94841
2005-02-10builtins.def, [...]: Update copyright.Kazu Hirata9-8/+13
* builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h, tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c, config/cris/cris-protos.h, config/cris/cris.c: Update copyright. From-SVN: r94840
2005-02-10* df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.Kazu Hirata2-14/+5
From-SVN: r94839
2005-02-10Makefile.in: Rebuilt.Tom Tromey5-44/+61
* external/sax/Makefile.in: Rebuilt. * external/sax/Makefile.am (all-local): Removed. (BUILT_SOURCES): New variable. (mostlyclean-local): No error if no classes to delete. * external/w3c_dom/Makefile.in: Rebuilt. * external/w3c_dom/Makefile.am (all-local): Removed. (BUILT_SOURCES): New variable. (mostlyclean-local): No error if no classes to delete. From-SVN: r94838
2005-02-10tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.Jeff Law2-3/+8
* tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc. (lookup_avail_expr): Similarly. From-SVN: r94836
2005-02-10* init.c (__gnat_initialize): Mark parameter as unused.Andreas Jaeger2-15/+19
From-SVN: r94832
2005-02-10builtins.c (fold_builtin_powi): New function.Richard Guenther4-0/+85
2005-02-10 Richard Guenther <rguenth@gcc.gnu.org> * builtins.c (fold_builtin_powi): New function. (fold_builtin_1): Call it. * gcc.dg/builtins-52.c: New testcase. From-SVN: r94831
2005-02-10Minor reformatting.Arnaud Charlet1-4/+4
From-SVN: r94829
2005-02-10New file.Arnaud Charlet1-0/+274
From-SVN: r94828
2005-02-10Resync.Arnaud Charlet1-0/+728
From-SVN: r94827
2005-02-10[multiple changes]Arnaud Charlet9-794/+1162
2005-02-09 Sergey Rybin <rybin@adacore.com> * gnat_ugn.texi: Add to the gnatpp section the paragraph describing the difference between compact and incompact layout and add the record representation clause to the example illustrating different layouts. Add the description of '-A5' gnatpp option ("align 'AT' keywords in component clauses"). 2005-02-09 Florian Villoing <villoing@adacore.com> * gnat_ugn.texi: Fix typos. Use @command to display 'gcc', 'gnatbind', etc. insted of @code or @file. Make proper use of @ref, @xref and @pxref to avoid duplication of "see" in the generated documentation. 2005-02-09 Arnaud Charlet <charlet@adacore.com> * gnat_ugn.texi: Remove all mentions of FSU threads, which are no longer supported. Update linker wrapper when linking with non GNU C++. 2005-02-09 Pascal Obry <obry@adacore.com> * gnat_ugn.texi: Document the procedure to debug the DllMain routine on Windows. Add note about -funwind-tables and mixed Ada and C/C++ programming in ZCX mode. Document new BIND qualifer /RETURN_CODES=VMS. 2005-02-09 Ben Brosgol <brosgol@adacore.com> * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter Edited gnatmetric chapter 2005-02-09 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Changes to document new wide wide character support For AI-285 Update documentation on Normalize_Scalars and Initialize_Scalars 2005-02-09 Pascal Obry <obry@adacore.com> * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting. 2005-02-09 Jose Ruiz <ruiz@adacore.com> * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported from the VxWorks kernel) that is needed for getting the active priority of the different tasks. * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure. Use a pragma Elaborate_Body in the spec file instead. Noticed by code reading. 2005-02-09 Thomas Quinot <quinot@adacore.com> * exp_util.ads: Minor correction in comment. 2005-02-09 Arnaud Charlet <charlet@adacore.com> * s-taprop.ads (Initialize): Update comments. Remove pragma Inline, since this procedure is now too complex to be worth inlining. From-SVN: r94826
2005-02-10usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions) Slight ↵Arnaud Charlet16-400/+343
fix to... * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions) Slight fix to documentation of -gnaty with no parameters * xr_tabls.ads: Add ??? comment for missing overall comment * xsinfo.adb: Make default file name be sinfo.h, since this is what we now use by default. * xsnames.adb: Adjust end of file test to look for five space followed by '#' instead of six spaces. The format of xsnames.adb was modified in the last update. * a-numeri.ads: Add reference to AI-388 for greek letter pi identifier. * clean.adb: Minor reformatting. * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb, gnatname.adb: Minor reformatting Add 2005 to copyright output when utility is run * csets.adb: Eliminate obsolete comment * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout Update comments. * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful. From-SVN: r94825
2005-02-10s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite recursion ↵Arnaud Charlet1-1/+3
warnings when... * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite recursion warnings when compiled with -gnatdm. From-SVN: r94824
2005-02-10s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len] fields ↵Arnaud Charlet1-1/+4
for foreign threads. * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len] fields for foreign threads. From-SVN: r94823
2005-02-10s-finimp.adb: (Finalize_List): Optimize in the no-abort case.Arnaud Charlet1-26/+30
* s-finimp.adb: (Finalize_List): Optimize in the no-abort case. Minor reformatting. From-SVN: r94822
2005-02-10sem_ch7.adb (Uninstall_Declarations): Exchange full and private views of a ↵Arnaud Charlet1-2/+5
private type after handling its private... * sem_ch7.adb (Uninstall_Declarations): Exchange full and private views of a private type after handling its private dependents, to maintain proper stack discipline between entry and exit from the package. From-SVN: r94821
2005-02-10sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even with ↵Arnaud Charlet2-21/+149
expansion disabled. * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even with expansion disabled. The actual subtype is needed among other places when the selected component appears in the context of a loop bound, and denotes a packed array. (Operator_Check): Always use the first subtype in the error message, to avoid the appearance of internal base types. (Transform_Object_Operation): Copy each actual in full to the parameter associations of the constructed call, rather than using the shallow copy mechanism of New_Copy_List. This ensures that the chaining of named associations is done properly. (Complete_Object_Operation): Rewrite node, rather than replacing it, so that we can trace back to the original selected component. * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls, and calls that use object notation, if the called function is not declared in a withed unit, place the elaboration constraint on the unit in the context that makes the function accessible. (Check_Elab_Subtype_Declaration): Check whether a subtype declaration imposes an elaboration constraint between two packages. From-SVN: r94820
2005-02-10prj-makr.adb (Process_Directory): Put file name in canonical case before ↵Arnaud Charlet1-26/+58
matching against the patterns. * prj-makr.adb (Process_Directory): Put file name in canonical case before matching against the patterns. If gnatname has been invoked as <prefix>-gnatname then invoke the compiler as <prefix>-gcc, not just "gcc". From-SVN: r94819
2005-02-10re PR ada/16592 (Ada tools don't use the newly built shared libraries)Arnaud Charlet2-41/+41
* s-asthan-vms.adb: Removed. * s-asthan-vms-alpha.adb: Added. * Makefile.in [VMS] (LN,LN_S): Define as cp -p Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb. [VMS]: Add translations for g-enblsp.adb. (LIBGNAT_SRCS): Add seh_init.c. (LIBGNAT_OBJS): Add seh_init.o. PR ada/16592 Link all gnat tools with -static-libgcc, since -shared-libgcc is now used by default on some systems (e.g. linux with recent binutils). Remove references to Makefile.prolog/generic, no longer used. From-SVN: r94818
2005-02-10make.adb (Gnatmake): Do not fail when the main project has no object directory.Arnaud Charlet1-46/+48
* make.adb (Gnatmake): Do not fail when the main project has no object directory. From-SVN: r94817