This makes sure that externals are in memory across calls. I appreciate all your hard works and time on this issue. It works. I have > added the "rtx *" cast for K&R compatibility. > > I have built the testcase provided with PR15660 and the current version > of the pooma-2.4.0 with -O2 my review here
It won't make it into 3.3.4, unfortunately. As the failure can easily be fixed by reverting patches that do not fix regressions to older releases I seriously propose doing so. So, marking the objects in this array shouldn't be a problem unless some are not GC objects. Dave Comment 27 Andrew Pinski 2004-05-27 03:50:50 UTC Subject: Re: [3.3/3.4 regression] caller-save.c:491: internal compiler error: Segmentation fault On May 26, 2004, at 23:38, dave at hiauly1 dot hia dot nrc
Often, a fine candidate for registerization is rejected because of the cost of instructions that are later removed. 5.9. I've seen a number of bugs recently > that were totally unrelated to the change that introduced them. ggc_collect is called from loop_optimize.
References [Aho87] A. Here is the Wine bug report; http://bugs.winehq.org/show_bug.cgi?id=33307 Austin English (Wine-dev) ran a bisect on GCC to try to narrow down the problems. More debugging needs to be done to find more about "p" and what's really the problem in marking this object. Thus, as I indicated previously, more information is needed about the object that caused the ICE, and how and when it was added to the alias_invariant array.
Obviously, with gcc-4.7.2/3 -O2 works just fine. Machine code optimization The next pass walks the machine code for opportunistic optimizations. The next nine sections describe each pass in order. 5.1. http://grokbase.com/p/python/python-bugs-list/12bqjepqbb/issue16529-compiler-error-when-trying-to-compile-ceval-c-on-opensuse-11-3 I have tried -O[1-3] with dave@hiamlx:~/gcc_test> /home/dave/gnu/gcc-3.4/objdir/gcc/g++ -B/home/dave/gnu/gcc-3.4/objdir/gcc/ -v Reading specs from /home/dave/gnu/gcc-3.4/objdir/gcc/specs Configured with: ../gcc/configure --with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld --enable-shared --disable-nls --prefix=/home/dave/opt/gnu/gcc/gcc-3.3.4 --enable-threads=posix --with-cpu=pentium3 Thread model: posix gcc version 3.3.4
Description Jordan 2013-04-19 00:45:55 UTC Hi, myself and others have been trying to track down problems with compiling (and using) wine64 with GCC-4.8.0. ~ Optimization level -O2 - which is usually Comment 1 John David Anglin 2004-03-23 03:32:47 UTC This regression was introduced by the following change: 2004-03-18 Zdenek Dvorak
Similarly, #pragma profile off (or no or 0) causes subsequently declared functions, until #pragma profile on (or yes or 1), to be marked as unprofiled. http://gcc.gnu.org/PR14671 Of > > course the patch may just uncover a latent problem - but that still makes > > rth (or the backporter) responsible of fixing the fallout. > > I From previous analysis, I had determined that this rtx was being returned by the call to canon_rtx (x_addr) in true_dependence. If you are interested in space, this seems preferable.
Fails (gcc version of memcpy): __builtin_memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) ); __builtin_memcpy( buffer + len, default_syswow64W, sizeof(default_syswow64W) ); Works (glibc version of memcpy): memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) ); http://renderq.net/internal-compiler/internal-compiler-error-c.php The loader will also make a copy of a few instructions to remove an unconditional branch. Comment 9 dave 2004-04-04 23:31:39 UTC Subject: Re: [3.3/3.4 regression] caller-save.c:491: int > ------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-04-04 > 23:05 ------- > Dave, can A set of good/bad .s files might also help. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45063 [email protected] Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦
Thus x = f(...) is rewritten as f(&x, ...). Comment 21 Jakub Jelinek 2013-04-26 13:16:21 UTC Author: jakub Date: Thu Apr 25 21:49:22 2013 New Revision: 198320 URL: http://gcc.gnu.org/viewcvs?rev=198320&root=gcc&view=rev Log: PR rtl-optimization/57003 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg, call note_stores with So this case is opposite as previously suggested: the memcpy_unaligned() wrapper is OK, but native memcpy() is failing. http://renderq.net/internal-compiler/internal-compiler-error-unexpected-runtime-function-call.php Do you have more details?
There is also a danger of calling a function that returns a structure without declaring it as such. All of the code, both object-independent and object-dependent, is machine-independent and may be cross-compiled and executed on any of the architectures. 3. Dave ------- Comment #10 from dave at hiauly1 dot hia dot nrc dot ca 2010-07-28 19:18 ------- Created an attachment (id=21342) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21342&action=view) ------- Comment #11 from dave at hiauly1 dot
When a ‘‘move’’ instruction is encountered, if the source variable has been set prior to the use of the destination variable then all of the references to the source variable are Index: alias.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/alias.c,v retrieving revision 22.214.171.124 diff -u -3 -p -r126.96.36.199 alias.c --- alias.c 8 May 2004 21:52:42 -0000 188.8.131.52 +++ alias.c 27 May 2004 21:07:12 -0000 @@ The new regression caused by Dave backporting rth's patch on 04/24 is unrelated and was detected by me only because I did a full regression run on the POOMA tests with Callee-saved registers make it difficult to find variables in registers in debuggers.
Initially, all branches are assumed minimal length. Preprocessed source stored into /tmp/ccQpsjeF.out file, please attach this to your bugreport. Comment 15 dave 2004-05-25 14:46:52 UTC Subject: Re: [3.3/3.4 regression] caller-save.c:491: int > The backport to the 3.3 branch causes regressions in the POOMA testsuite on > x86. useful reference If a useful instruction cannot be found to fill a delay slot, the loader will insert ‘‘noop’’ instructions.
IOW: $ git reset --hard c8010b803d34fa7e096747067e33c650b36ecc06 # build gcc/wine - gcc fails to build wine, internal compiler error $ git show d73df2920c77116fd88e03cd95dd352f16511a3f | patch -p1 # build gcc/wine - wine segfaults Modified: trunk/gcc/ChangeLog trunk/gcc/regcprop.c Comment 30 uros 2014-10-09 08:22:54 UTC Author: uros Date: Thu Oct 9 08:22:23 2014 New Revision: 216030 URL: https://gcc.gnu.org/viewcvs?rev=216030&root=gcc&view=rev Log: Backport from mainline 2014-10-09 Uros Bizjak
I can't duplicate the ICE using the gmp_test4.ii testcase. Use it to define a string "1". (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition. * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCPY): Use it for these functions. * postreload.c (reload_combine): Deal with SETs inside CALL_INSN_FUNCTION_USAGE. * Lines around 22354 are being investigated. Reopened as 5.0 regression.
Unrelated, I have also applied locally --- gcc/loop.c 29 Jan 2004 04:42:15 -0000 1.433.2.13 +++ gcc/loop.c 28 May 2004 07:32:24 -0000 @@ -4924,6 +4924,9 @@ gen_move_insn (v->dest_reg, v->new_reg)); + /* We Many of the operations performed by the loader are machine-dependent. Don't play queer offsetting games with reg_known_value and reg_known_equiv_p. (end_alias_analysis): Don't free reg_known_value. * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare. * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove. (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new functions instead. No, but it compiles with these as well.
Ok, I just started bootstrapping a compiler with rth's patch re-applied, the fix for PR14671 and the fix from http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01413.html applied with the ggc_free hunk modified as: @@ -2985,7 +2983,6 @@ or similar, the important is that buffer is preserved in return value of the previous memcpy call ... Comment 2 John David Anglin 2004-03-23 04:20:52 UTC The segfault occurs at line 1776 in alias.c: if (CONSTANT_P (y)) This generates a misaligned load.