public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
@ 2011-10-14  5:25 jojelino at gmail dot com
  2011-10-14  9:14 ` [Bug target/50725] " rguenth at gcc dot gnu.org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14  5:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

             Bug #: 50725
           Summary: [4.7 regression] -O3 -mstackrealign -march=core2
                    generates invalid prologue code in callee procedure
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jojelino@gmail.com


Created attachment 25493
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25493
preprocessed source

it does generates wrong prologue. here are some pieces of it.
    .ascii "  Unknown pseudo relocation bit size %d.\12\0"
    .text
    .p2align 4,,15
    .globl    __Z25_pei386_runtime_relocatorP11per_process
    .def    __Z25_pei386_runtime_relocatorP11per_process;    .scl    2;   
.type    32;    .endef
__Z25_pei386_runtime_relocatorP11per_process:
LFB221:
    .cfi_startproc
    movl    (%ecx), %eax
    imull    $1000, 128(%eax), %edx
    addl    132(%eax), %edx
    cmpl    $226, %edx
    ja    L95
    ret 
    .p2align 4,,10
L95:

it is trivial that %ecx is not where first parameter stored. so please fix this
problem.

$ g++ -c -O3 -mstackrealign -march=core2 -o ./pseudo-reloc.o ./pseudo-reloc.ii
-v -save-temps
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,fortran,lto --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl : (reconfigured)  : (reconfigured) ./configure
--config-cache --prefix=/usr --disable-win32-registry --enable-threads=win32
--with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared
--disable-sjlj-exceptions --enable-gomp --enable-cloog-backend=isl
--enable-languages=c,c++,fortran,lto --no-create --no-recursion
Thread model: win32
gcc version 4.7.0 20111011 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-c' '-O3' '-mstackrealign' '-march=core2' '-o'
'./pseudo-reloc.o' '-v' '-save-temps' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -fpreprocessed
./pseudo-reloc.ii -quiet -dumpbase pseudo-reloc.ii -mstackrealign -march=core2
-auxbase-strip ./pseudo-reloc.o -O3 -version -o pseudo-reloc.s
GNU C++ (GCC) version 4.7.0 20111011 (experimental) (i686-pc-cygwin)
        compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
warning: MPFR header version 3.0.1-p4 differs from library version 3.2.0-dev.
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111011 (experimental) (i686-pc-cygwin)
        compiled by GNU C version 4.7.0 20111006 (experimental), GMP version
5.0.0, MPFR version 3.0.1-p4, MPC version 0.8.1
warning: MPFR header version 3.0.1-p4 differs from library version 3.2.0-dev.
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: fd6a3acd2dd7d494d520503529e6a109
COLLECT_GCC_OPTIONS='-c' '-O3' '-mstackrealign' '-march=core2' '-o'
'./pseudo-reloc.o' '-v' '-save-temps' '-shared-libgcc'
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/as.exe -o
./pseudo-reloc.o pseudo-reloc.s
COMPILER_PATH=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/
LIBRARY_PATH=/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-c' '-O3' '-mstackrealign' '-march=core2' '-o'
'./pseudo-reloc.o' '-v' '-save-temps' '-shared-libgcc'


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
@ 2011-10-14  9:14 ` rguenth at gcc dot gnu.org
  2011-10-14 16:01 ` jojelino at gmail dot com
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-14  9:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target
   Target Milestone|---                         |4.7.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-14 09:14:04 UTC ---
Can you verify with a simpler testcase like

int foo (int *u)
{
  return *u;
}

?  On x86_64-linux with -m32 I see for your code

_Z25_pei386_runtime_relocatorP11per_process:
.LFB221:
        .cfi_startproc
        pushl   %ebp
        .cfi_def_cfa_offset 8
        pushl   %edi
        .cfi_def_cfa_offset 12
        pushl   %esi
        .cfi_def_cfa_offset 16
        pushl   %ebx
        .cfi_def_cfa_offset 20
        subl    $92, %esp
        .cfi_def_cfa_offset 112
        .cfi_offset 5, -8
        .cfi_offset 7, -12
        .cfi_offset 6, -16
        .cfi_offset 3, -20
        movl    112(%esp), %eax
        imull   $1000, 128(%eax), %edx

which looks ok.  So it must be a *-cygwin specific issue.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
  2011-10-14  9:14 ` [Bug target/50725] " rguenth at gcc dot gnu.org
@ 2011-10-14 16:01 ` jojelino at gmail dot com
  2011-10-14 16:26 ` jojelino at gmail dot com
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 16:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #2 from gee <jojelino at gmail dot com> 2011-10-14 16:01:26 UTC ---
following passes were enabled. i think if the following result of -fdump-passes
aren't same for the result of -m32, the wrong generated one wouldn't come out.

$ gcc -O3 -mstackrealign -march=core2 pseudo-reloc.ii -S -fdump-passes
   *warn_unused_result                                 :  ON
   *diagnose_omp_blocks                                :  OFF
   tree-mudflap1                                       :  OFF
   tree-omplower                                       :  ON
   tree-lower                                          :  ON
   tree-ehopt                                          :  ON
   tree-eh                                             :  ON
   tree-cfg                                            :  ON
   *warn_function_return                               :  ON
   *build_cgraph_edges                                 :  ON
   *free_lang_data                                     :  ON
   ipa-visibility                                      :  ON
   ipa-early_local_cleanups                            :  ON
      *free_cfg_annotations                            :  ON
      *init_datastructures                             :  ON
      tree-ompexp                                      :  OFF
      *referenced_vars                                 :  ON
      tree-ssa                                         :  ON
      tree-veclower                                    :  OFF
      *early_warn_uninitialized                        :  OFF
      *rebuild_cgraph_edges                            :  ON
      tree-inline_param1                               :  ON
      tree-einline                                     :  ON
      tree-early_optimizations                         :  ON
         *remove_cgraph_callee_edges                   :  ON
         tree-copyrename1                              :  ON
         tree-ccp1                                     :  ON
         tree-forwprop1                                :  ON
         tree-ealias                                   :  ON
         tree-esra                                     :  ON
         tree-fre1                                     :  ON
         tree-copyprop1                                :  ON
         tree-mergephi1                                :  ON
         tree-cddce1                                   :  ON
         tree-eipa_sra                                 :  ON
         tree-tailr1                                   :  ON
         tree-switchconv                               :  ON
         tree-ehcleanup1                               :  OFF
         tree-profile_estimate                         :  ON
         tree-local-pure-const1                        :  ON
         tree-fnsplit                                  :  ON
      tree-release_ssa                                 :  ON
      *rebuild_cgraph_edges                            :  ON
      tree-inline_param2                               :  ON
   ipa-profile                                         :  OFF
      tree-feedback_fnsplit                            :  OFF
   ipa-increase_alignment                              :  OFF
   ipa-matrix-reorg                                    :  OFF
   ipa-emutls                                          :  ON
   ipa-whole-program                                   :  ON
   ipa-profile_estimate                                :  ON
   ipa-cp                                              :  ON
   ipa-cdtor                                           :  OFF
   ipa-inline                                          :  ON
   ipa-pure-const                                      :  ON
   ipa-static-var                                      :  ON
   ipa-lto_gimple_out                                  :  OFF
   ipa-lto_decls_out                                   :  OFF
   ipa-pta                                             :  OFF
   *free_cfg_annotations                               :  ON
   tree-ehdisp                                         :  OFF
   *all_optimizations                                  :  ON
      *remove_cgraph_callee_edges                      :  ON
      *strip_predict_hints                             :  ON
      tree-copyrename2                                 :  ON
      tree-cunrolli                                    :  ON
      tree-ccp2                                        :  ON
      tree-forwprop2                                   :  ON
      tree-cdce                                        :  ON
      tree-alias                                       :  ON
      tree-retslot                                     :  ON
      tree-phiprop                                     :  ON
      tree-fre2                                        :  ON
      tree-copyprop2                                   :  ON
      tree-mergephi2                                   :  ON
      tree-vrp1                                        :  ON
      tree-dce1                                        :  ON
      tree-cselim                                      :  ON
      tree-ifcombine                                   :  ON
      tree-phiopt1                                     :  ON
      tree-tailr2                                      :  ON
      tree-ch                                          :  ON
      tree-stdarg                                      :  OFF
      tree-cplxlower                                   :  ON
      tree-sra                                         :  ON
      tree-copyrename3                                 :  ON
      tree-dom1                                        :  ON
      tree-phicprop1                                   :  ON
      tree-dse1                                        :  ON
      tree-reassoc1                                    :  ON
      tree-dce2                                        :  ON
      tree-forwprop3                                   :  ON
      tree-phiopt2                                     :  ON
      tree-objsz                                       :  ON
      tree-strlen                                      :  ON
      tree-ccp3                                        :  ON
      tree-copyprop3                                   :  ON
      tree-sincos                                      :  ON
      tree-bswap                                       :  ON
      tree-crited                                      :  ON
      tree-pre                                         :  ON
      tree-sink                                        :  ON
      tree-loop                                        :  ON
         tree-loopinit                                 :  ON
         tree-lim1                                     :  ON
         tree-copyprop4                                :  ON
         tree-dceloop1                                 :  ON
         tree-unswitch                                 :  ON
         tree-sccp                                     :  ON
         *record_bounds                                :  ON
         tree-ckdd                                     :  OFF
         tree-ldist                                    :  ON
         tree-copyprop5                                :  ON
         tree-graphite0                                :  OFF
            tree-graphite                              :  OFF
            tree-lim2                                  :  ON
            tree-copyprop6                             :  ON
            tree-dceloop2                              :  ON
         tree-ivcanon                                  :  ON
         tree-ifcvt                                    :  ON
         tree-vect                                     :  ON
            tree-dceloop3                              :  ON
         tree-pcom                                     :  ON
         tree-cunroll                                  :  ON
         tree-slp                                      :  ON
         tree-parloops                                 :  OFF
         tree-aprefetch                                :  OFF
         tree-ivopts                                   :  ON
         tree-lim3                                     :  ON
         tree-loopdone                                 :  ON
      tree-veclower2                                   :  ON
      tree-recip                                       :  OFF
      tree-reassoc2                                    :  ON
      tree-vrp2                                        :  ON
      tree-dom2                                        :  ON
      tree-phicprop2                                   :  ON
      tree-cddce2                                      :  ON
      tree-tracer                                      :  OFF
      tree-uninit                                      :  OFF
      tree-dse2                                        :  ON
      tree-forwprop4                                   :  ON
      tree-phiopt3                                     :  ON
      tree-fab                                         :  ON
      tree-widening_mul                                :  ON
      tree-tailc                                       :  ON
      tree-copyrename4                                 :  ON
      tree-uncprop                                     :  ON
      tree-local-pure-const2                           :  ON
   tree-cplxlower0                                     :  ON
   tree-ehcleanup2                                     :  OFF
   tree-resx                                           :  ON
   tree-nrv                                            :  ON
   tree-mudflap2                                       :  OFF
   tree-optimized                                      :  ON
   *warn_function_noreturn                             :  OFF
   rtl-expand                                          :  ON
   *rest_of_compilation                                :  ON
      *init_function                                   :  ON
      rtl-sibling                                      :  ON
      rtl-rtl_eh                                       :  OFF
      rtl-initvals                                     :  ON
      rtl-unshare                                      :  ON
      rtl-vregs                                        :  ON
      rtl-into_cfglayout                               :  ON
      rtl-jump                                         :  ON
      rtl-subreg1                                      :  ON
      rtl-dfinit                                       :  ON
      rtl-cse1                                         :  ON
      rtl-fwprop1                                      :  ON
      rtl-cprop1                                       :  ON
      rtl-rtl pre                                      :  ON
      rtl-hoist                                        :  OFF
      rtl-cprop2                                       :  ON
      rtl-store_motion                                 :  OFF
      rtl-cse_local                                    :  OFF
      rtl-ce1                                          :  ON
      rtl-reginfo                                      :  ON
      rtl-loop2                                        :  ON
         rtl-loop2_init                                :  ON
         rtl-loop2_invariant                           :  ON
         rtl-loop2_unswitch                            :  ON
         rtl-loop2_unroll                              :  OFF
         rtl-loop2_doloop                              :  OFF
         rtl-loop2_done                                :  ON
      rtl-web                                          :  OFF
      rtl-cprop3                                       :  ON
      rtl-cse2                                         :  ON
      rtl-dse1                                         :  ON
      rtl-fwprop2                                      :  ON
      rtl-auto_inc_dec                                 :  OFF
      rtl-init-regs                                    :  ON
      rtl-ud_dce                                       :  ON
      rtl-combine                                      :  ON
      rtl-ce2                                          :  ON
      rtl-bbpart                                       :  OFF
      rtl-regmove                                      :  ON
      rtl-outof_cfglayout                              :  ON
      rtl-split1                                       :  ON
      rtl-subreg2                                      :  ON
      rtl-no-opt dfinit                                :  OFF
      *stack_ptr_mod                                   :  ON
      rtl-mode_sw                                      :  ON
      rtl-asmcons                                      :  ON
      rtl-sms                                          :  OFF
      rtl-sched1                                       :  OFF
      rtl-ira                                          :  ON
      *all-postreload                                  :  OFF
         rtl-postreload                                :  OFF
         rtl-gcse2                                     :  ON
         rtl-split2                                    :  ON
         rtl-zee                                       :  OFF
         rtl-cmpelim                                   :  OFF
         rtl-btl1                                      :  OFF
         rtl-pro_and_epilogue                          :  ON
         rtl-dse2                                      :  ON
         rtl-csa                                       :  ON
         rtl-peephole2                                 :  ON
         rtl-ce3                                       :  ON
         rtl-rnreg                                     :  OFF
         rtl-cprop_hardreg                             :  ON
         rtl-rtl_dce                                   :  ON
         rtl-bbro                                      :  ON
         rtl-btl2                                      :  OFF
         *leaf_regs                                    :  ON
         rtl-split4                                    :  ON
         rtl-sched2                                    :  ON
         *stack_regs                                   :  ON
            rtl-split3                                 :  OFF
            rtl-stack                                  :  ON
         rtl-alignments                                :  ON
         rtl-compgotos                                 :  ON
         rtl-vartrack                                  :  OFF
         *free_cfg                                     :  ON
         rtl-mach                                      :  ON
         rtl-barriers                                  :  ON
         rtl-dbr                                       :  OFF
         rtl-split5                                    :  OFF
         rtl-eh_ranges                                 :  OFF
         rtl-shorten                                   :  ON
         rtl-nothrow                                   :  ON
         rtl-dwarf2                                    :  ON
         rtl-final                                     :  ON
      rtl-dfinish                                      :  ON
   *clean_state                                        :  ON


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
  2011-10-14  9:14 ` [Bug target/50725] " rguenth at gcc dot gnu.org
  2011-10-14 16:01 ` jojelino at gmail dot com
@ 2011-10-14 16:26 ` jojelino at gmail dot com
  2011-10-14 16:27 ` jojelino at gmail dot com
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 16:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #3 from gee <jojelino at gmail dot com> 2011-10-14 16:26:15 UTC ---
generated prologue with pseudo-reloc.ii (wrong one)
;;
;; Full RTL generated for this function:
;;
(note 8 0 11 NOTE_INSN_DELETED)

(note 11 8 459 2 [bb 2] NOTE_INSN_BASIC_BLOCK)

(insn 459 11 9 2 (set (reg:SI 344)
        (reg:SI 2 cx)) /tmp/winsup/winsup/cygwin/pseudo-reloc.cc:333 -1
     (nil))

(insn 9 459 10 2 (set (reg/v/f:SI 248 [ u ])
        (mem/f/c/i:SI (reg/f:SI 53 virtual-incoming-args) [2 u+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:333 -1
     (nil))

(note 10 9 12 2 NOTE_INSN_FUNCTION_BEG)

(note 12 10 13 3 [bb 3] NOTE_INSN_BASIC_BLOCK)

(insn 13 12 14 3 (set (reg:SI 250)
        (mem/s:SI (plus:SI (reg/v/f:SI 248 [ u ])
                (const_int 128 [0x80])) [4 u_1(D)->api_major+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:334 -1
     (nil))

generated prologue with r.c

;;
;; Full RTL generated for this function:
;;
(note 8 0 11 NOTE_INSN_DELETED)

(note 11 8 9 2 [bb 2] NOTE_INSN_BASIC_BLOCK)

(insn 9 11 10 2 (set (reg/v/f:SI 117 [ u ])
        (mem/f/c/i:SI (reg/f:SI 53 virtual-incoming-args) [7 u+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:273 -1
     (expr_list:REG_EQUIV (mem/f/c/i:SI (reg/f:SI 53 virtual-incoming-args) [7
u+0 S4 A32])
        (nil)))

(note 10 9 12 2 NOTE_INSN_FUNCTION_BEG)

(note 12 10 13 3 [bb 3] NOTE_INSN_BASIC_BLOCK)

(insn 13 12 14 3 (set (reg:SI 119)
        (mem/s:SI (plus:SI (reg/v/f:SI 117 [ u ])
                (const_int 120 [0x78])) [3 u_1(D)->api_major+0 S4 A32]))
/tmp/winsup/winsup/cygwin/pseudo-reloc.cc:274 -1
     (nil))

which one set the invalid (reg:SI 2 cx) constraint??


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (2 preceding siblings ...)
  2011-10-14 16:26 ` jojelino at gmail dot com
@ 2011-10-14 16:27 ` jojelino at gmail dot com
  2011-10-14 16:30 ` jojelino at gmail dot com
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 16:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #4 from gee <jojelino at gmail dot com> 2011-10-14 16:27:31 UTC ---
Created attachment 25501
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25501
reduced source code but generates correct prologue.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (3 preceding siblings ...)
  2011-10-14 16:27 ` jojelino at gmail dot com
@ 2011-10-14 16:30 ` jojelino at gmail dot com
  2011-10-14 16:38 ` jojelino at gmail dot com
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 16:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #5 from gee <jojelino at gmail dot com> 2011-10-14 16:29:56 UTC ---
by comparing the result of -fdump-passes between pseudo-reloc.ii and r.c,
--- r.c.pass
+++ pseudo-reloc.pass
@@ -3,7 +3,7 @@
    tree-mudflap1                                       :  OFF
    tree-omplower                                       :  ON
    tree-lower                                          :  ON
-   tree-ehopt                                          :  OFF
+   tree-ehopt                                          :  ON
    tree-eh                                             :  ON
    tree-cfg                                            :  ON
    *warn_function_return                               :  ON
@@ -148,7 +148,7 @@
       tree-local-pure-const2                           :  ON
    tree-cplxlower0                                     :  ON
    tree-ehcleanup2                                     :  OFF
-   tree-resx                                           :  OFF
+   tree-resx                                           :  ON
    tree-nrv                                            :  ON
    tree-mudflap2                                       :  OFF
    tree-optimized                                      :  ON
please take a look at tree-ehopt and tree-resx.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (4 preceding siblings ...)
  2011-10-14 16:30 ` jojelino at gmail dot com
@ 2011-10-14 16:38 ` jojelino at gmail dot com
  2011-10-14 16:49 ` jojelino at gmail dot com
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 16:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #6 from gee <jojelino at gmail dot com> 2011-10-14 16:38:22 UTC ---
(In reply to comment #5)
Sorry. this comment is obsolete.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (5 preceding siblings ...)
  2011-10-14 16:38 ` jojelino at gmail dot com
@ 2011-10-14 16:49 ` jojelino at gmail dot com
  2011-10-14 17:00 ` jojelino at gmail dot com
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 16:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

gee <jojelino at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25501|0                           |1
        is obsolete|                            |

--- Comment #7 from gee <jojelino at gmail dot com> 2011-10-14 16:49:11 UTC ---
Created attachment 25502
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25502
reduced source code but generates correct prologue.

r.c.pass pseudo-reloc.pass were same.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (6 preceding siblings ...)
  2011-10-14 16:49 ` jojelino at gmail dot com
@ 2011-10-14 17:00 ` jojelino at gmail dot com
  2011-10-17 15:43 ` jojelino at gmail dot com
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-14 17:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #8 from gee <jojelino at gmail dot com> 2011-10-14 17:00:11 UTC ---
Created attachment 25503
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25503
generated rtl with pseudo-reloc.ii


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (7 preceding siblings ...)
  2011-10-14 17:00 ` jojelino at gmail dot com
@ 2011-10-17 15:43 ` jojelino at gmail dot com
  2011-11-04 13:40 ` jojelino at gmail dot com
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-10-17 15:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #9 from gee <jojelino at gmail dot com> 2011-10-17 15:42:21 UTC ---
here is more specific option for reproduce this bug.
$ g++ -fverbose-asm -c -O1 -finline-small-functions -ftree-vectorize 
-finline-functions -mstackrealign -march=core2  ./pseudo-reloc.ii
-save-temps;cat pseudo-reloc.s|grep "(%ecx)"
        movl    (%ecx), %eax     # u, u
        pushl   -4(%ecx)         #
        leal    -4(%ecx), %esp   #,


using -fverbose-asm, i got following equivalant option to above but it doesn't
emit same one as above. the only difference on RTL generated between two is
do_pseudo_reloc is inlined in above but below.

$ g++ -fverbose-asm -c -fcombine-stack-adjustments -fcompare-elim
-fcprop-registers -fdefer-pop -fforward-propagate -fguess-branch-probability
-fif-conversion -fif-conversion2 -finline -finline-functions-called-once
-fipa-profile -fipa-pure-const -fipa-reference -fmerge-constants
-fomit-frame-pointer -fshrink-wrap -fsplit-wide-types -ftoplevel-reorder
-ftree-bit-ccp -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename
-ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-sink -ftree-sra
-ftree-ter -finline-small-functions -ftree-vectorize  -finline-functions
-mstackrealign -march=core2  ./pseudo-reloc.ii -save-temps;cat
pseudo-reloc.s|grep "(%ecx)"


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (8 preceding siblings ...)
  2011-10-17 15:43 ` jojelino at gmail dot com
@ 2011-11-04 13:40 ` jojelino at gmail dot com
  2011-11-04 16:16 ` jojelino at gmail dot com
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-11-04 13:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #10 from gee <jojelino at gmail dot com> 2011-11-04 13:40:37 UTC ---
g++ -fverbose-asm -c -O1 -finline-small-functions -fdisable-ipa-inline
-ftree-vectorize -finline-functions -mstackrealign -march=core2 
./pseudo-reloc.ii -save-temps ;cat pseudo-reloc.s|grep "(%ecx)" solves the
problem.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (9 preceding siblings ...)
  2011-11-04 13:40 ` jojelino at gmail dot com
@ 2011-11-04 16:16 ` jojelino at gmail dot com
  2011-11-04 16:17 ` jojelino at gmail dot com
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-11-04 16:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

gee <jojelino at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25493|0                           |1
        is obsolete|                            |
  Attachment #25502|0                           |1
        is obsolete|                            |
  Attachment #25503|0                           |1
        is obsolete|                            |

--- Comment #11 from gee <jojelino at gmail dot com> 2011-11-04 16:15:43 UTC ---
Created attachment 25718
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25718
reduced source code

Reduced.

$ g++ -fverbose-asm -c -O1 -finline-small-functions -fenable-ipa-inline
-ftree-vectorize -finline-functions -mstackrealign -march=core2  r.c
-save-temps -fdump-rtl-expand -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: ./configure --config-cache --prefix=/usr
--disable-win32-registry --enable-threads=win32
--enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls
--disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp
--enable-cloog-backend=isl
Thread model: win32
gcc version 4.7.0 20111025 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -E -quiet -v -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
-idirafter
/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api
r.c -mstackrealign -march=core2 -fverbose-asm -finline-small-functions
-fenable-ipa-inline -ftree-vectorize -finline-functions -fdump-rtl-expand -O1
-fpch-preprocess -o r.ii
cc1plus: note: enable pass ipa-inline for functions in the range of [0,
4294967295]
ignoring duplicate directory "/usr/include"
ignoring duplicate directory
"/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/i686-pc-cygwin
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../include/c++/4.7.0/backward
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include
 /usr/local/include
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/include-fixed
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/include

/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/../include/w32api
End of search list.
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
 /usr/libexec/gcc/i686-pc-cygwin/4.7.0/cc1plus.exe -fpreprocessed r.ii -quiet
-dumpbase r.c -mstackrealign -march=core2 -auxbase r -O1 -version -fverbose-asm
-finline-small-functions -fenable-ipa-inline -ftree-vectorize
-finline-functions -fdump-rtl-expand -o r.s
cc1plus: note: enable pass ipa-inline for functions in the range of [0,
4294967295]
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
        compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111025 (experimental) (i686-pc-cygwin)
        compiled by GNU C version 4.7.0 20111020 (experimental), GMP version
5.0.2, MPFR version 3.2.0-dev, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: cf86ba87ee966d84e06e2ba1fe53e4c2
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'
 /usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/as.exe -o r.o
r.s
COMPILER_PATH=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/4.7.0/:/usr/libexec/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/bin/
LIBRARY_PATH=/usr/lib/gcc/i686-pc-cygwin/4.7.0/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../../i686-pc-cygwin/lib/:/usr/lib/gcc/i686-pc-cygwin/4.7.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-fverbose-asm' '-c' '-O1' '-finline-small-functions'
'-fenable-ipa-inline' '-ftree-vectorize' '-finline-functions' '-mstackrealign'
'-march=core2' '-save-temps' '-fdump-rtl-expand' '-v' '-shared-libgcc'

__Z25_pei386_runtime_relocatorP11per_process:
LFB2:
    .cfi_startproc
    movl    (%ecx), %eax     # u, u


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (10 preceding siblings ...)
  2011-11-04 16:16 ` jojelino at gmail dot com
@ 2011-11-04 16:17 ` jojelino at gmail dot com
  2011-11-05 13:59 ` mikpe at it dot uu.se
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-11-04 16:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #12 from gee <jojelino at gmail dot com> 2011-11-04 16:16:57 UTC ---
Created attachment 25719
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25719
generated rtl with pr50725


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (11 preceding siblings ...)
  2011-11-04 16:17 ` jojelino at gmail dot com
@ 2011-11-05 13:59 ` mikpe at it dot uu.se
  2011-11-30 11:04 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mikpe at it dot uu.se @ 2011-11-05 13:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #13 from Mikael Pettersson <mikpe at it dot uu.se> 2011-11-05 13:58:55 UTC ---
I see an obvious regression with gcc-4.7 compared to 4.6 on cygwin.  With 4.6.1
built natively on cygwin the code starts with:

__pei386_runtime_relocator:
LFB2:
        .cfi_startproc
        leal    4(%esp), %ecx
        .cfi_def_cfa 1, 0
        andl    $-16, %esp
        pushl   -4(%ecx)
        pushl   %ebp
        movl    %esp, %ebp
        .cfi_escape 0x10,0x5,0x2,0x75,0
        pushl   %edi
        pushl   %esi
        pushl   %ebx
        pushl   %ecx
        .cfi_escape 0xf,0x3,0x75,0x70,0x6
        .cfi_escape 0x10,0x3,0x2,0x75,0x74
        .cfi_escape 0x10,0x6,0x2,0x75,0x78
        .cfi_escape 0x10,0x7,0x2,0x75,0x7c
        subl    $56, %esp
        movl    (%ecx), %eax
        cmpl    $226, 8(%eax)

that is, the parameter is on the stack just above the return address.

With gcc-4.7-20111029 built as a cross to cygwin, the code starts with:

__pei386_runtime_relocator:
LFB2:
        .cfi_startproc
        movl    (%ecx), %eax
        cmpl    $226, 8(%eax)
        jg      L15
        ret
        .p2align 4,,10
L15:
        leal    4(%esp), %ecx
        .cfi_def_cfa 1, 0
        andl    $-16, %esp
        pushl   -4(%ecx)
        pushl   %ebp
        .cfi_escape 0x10,0x5,0x2,0x75,0
        movl    %esp, %ebp

which is just completely bonkers.

This code looks shrink-wrapped; passing -fno-shrink-wrap changes it to:

__pei386_runtime_relocator:
LFB2:
        .cfi_startproc
        leal    4(%esp), %ecx
        .cfi_def_cfa 1, 0
        andl    $-16, %esp
        pushl   -4(%ecx)
        pushl   %ebp
        .cfi_escape 0x10,0x5,0x2,0x75,0
        movl    %esp, %ebp
        pushl   %edi
        pushl   %esi
        pushl   %ebx
        pushl   %ecx
        .cfi_escape 0xf,0x3,0x75,0x70,0x6
        subl    $56, %esp
        .cfi_escape 0x10,0x7,0x2,0x75,0x7c
        .cfi_escape 0x10,0x6,0x2,0x75,0x78
        .cfi_escape 0x10,0x3,0x2,0x75,0x74
        movl    (%ecx), %eax
        cmpl    $226, 8(%eax)

which is similar to the code from gcc-4.6.1.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (12 preceding siblings ...)
  2011-11-05 13:59 ` mikpe at it dot uu.se
@ 2011-11-30 11:04 ` jakub at gcc dot gnu.org
  2011-11-30 15:24 ` jojelino at gmail dot com
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-30 11:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-11-30
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-30 10:11:42 UTC ---
Created attachment 25949
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25949
gcc47-pr50725.patch

Untested fix.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (13 preceding siblings ...)
  2011-11-30 11:04 ` jakub at gcc dot gnu.org
@ 2011-11-30 15:24 ` jojelino at gmail dot com
  2011-11-30 16:20 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jojelino at gmail dot com @ 2011-11-30 15:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

gee <jojelino at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #15 from gee <jojelino at gmail dot com> 2011-11-30 13:53:00 UTC ---
$ i686-pc-mingw32-g++ -fverbose-asm -c -O1 -finline-small-functions
-ftree-vectorize -finline-functions -mstackrealign -march=core2  ./pr50725.c
-save-temps;cat pr50725.s|grep "(%ecx)"
        pushl   -4(%ecx)         #
        movl    (%ecx), %eax     # u, u
        leal    -4(%ecx), %esp   #,
tested with trunk g++ target=mingw32.
Fixed.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (14 preceding siblings ...)
  2011-11-30 15:24 ` jojelino at gmail dot com
@ 2011-11-30 16:20 ` jakub at gcc dot gnu.org
  2011-11-30 22:09 ` jakub at gcc dot gnu.org
  2011-11-30 23:21 ` jakub at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-30 16:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
         Resolution|FIXED                       |

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-30 15:42:56 UTC ---
It is not fixed yet, the patch hasn't been committed.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (15 preceding siblings ...)
  2011-11-30 16:20 ` jakub at gcc dot gnu.org
@ 2011-11-30 22:09 ` jakub at gcc dot gnu.org
  2011-11-30 23:21 ` jakub at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-30 22:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-30 22:00:33 UTC ---
Author: jakub
Date: Wed Nov 30 22:00:28 2011
New Revision: 181860

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181860
Log:
    PR target/50725
    * function.c (thread_prologue_and_epilogue_insns): If
    stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
    regset.

    * gcc.target/i386/pr50725.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr50725.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/function.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug target/50725] [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure
  2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
                   ` (16 preceding siblings ...)
  2011-11-30 22:09 ` jakub at gcc dot gnu.org
@ 2011-11-30 23:21 ` jakub at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-30 23:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50725

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-30 22:07:55 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-11-30 22:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-14  5:25 [Bug rtl-optimization/50725] New: [4.7 regression] -O3 -mstackrealign -march=core2 generates invalid prologue code in callee procedure jojelino at gmail dot com
2011-10-14  9:14 ` [Bug target/50725] " rguenth at gcc dot gnu.org
2011-10-14 16:01 ` jojelino at gmail dot com
2011-10-14 16:26 ` jojelino at gmail dot com
2011-10-14 16:27 ` jojelino at gmail dot com
2011-10-14 16:30 ` jojelino at gmail dot com
2011-10-14 16:38 ` jojelino at gmail dot com
2011-10-14 16:49 ` jojelino at gmail dot com
2011-10-14 17:00 ` jojelino at gmail dot com
2011-10-17 15:43 ` jojelino at gmail dot com
2011-11-04 13:40 ` jojelino at gmail dot com
2011-11-04 16:16 ` jojelino at gmail dot com
2011-11-04 16:17 ` jojelino at gmail dot com
2011-11-05 13:59 ` mikpe at it dot uu.se
2011-11-30 11:04 ` jakub at gcc dot gnu.org
2011-11-30 15:24 ` jojelino at gmail dot com
2011-11-30 16:20 ` jakub at gcc dot gnu.org
2011-11-30 22:09 ` jakub at gcc dot gnu.org
2011-11-30 23:21 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).