* [Bug rtl-optimization/67920] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
@ 2015-10-10 20:01 ` jamrial at gmail dot com
2015-10-10 20:08 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jamrial at gmail dot com @ 2015-10-10 20:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #1 from James Almer <jamrial at gmail dot com> ---
For reference you can also check
http://fate.ffmpeg.org/report.cgi?time=20151010052205&slot=x86_64-archlinux-gcc-experimental
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/67920] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
2015-10-10 20:01 ` [Bug rtl-optimization/67920] " jamrial at gmail dot com
@ 2015-10-10 20:08 ` pinskia at gcc dot gnu.org
2015-10-10 21:00 ` jamrial at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-10-10 20:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you also compile with -fsanitize=undefined and try that? Can you also try
-fsanitize=address ?
This might detect if it is a bug in the code vs a bug in GCC.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/67920] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
2015-10-10 20:01 ` [Bug rtl-optimization/67920] " jamrial at gmail dot com
2015-10-10 20:08 ` pinskia at gcc dot gnu.org
@ 2015-10-10 21:00 ` jamrial at gmail dot com
2015-10-12 7:43 ` [Bug rtl-optimization/67920] [6 Regression] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jamrial at gmail dot com @ 2015-10-10 21:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #3 from James Almer <jamrial at gmail dot com> ---
(In reply to Andrew Pinski from comment #2)
> Can you also compile with -fsanitize=undefined and try that? Can you also
> try -fsanitize=address ?
>
> This might detect if it is a bug in the code vs a bug in GCC.
Can't check with gcc 6 because of pr67921, but asan/ubsan in gcc 5.2.0 and
clang 3.1 apparently don't complain about the code.
ubsan gcc 5.2.0:
http://fate.ffmpeg.org/report.cgi?time=20151010033356&slot=x86_64-archlinux-gcc-ubsan
asan gcc 5.2.0:
http://fate.ffmpeg.org/report.cgi?time=20151010181435&slot=x86_64-archlinux-gcc-asan
Clang 3.1 asan:
http://fate.ffmpeg.org/report.cgi?time=20151010171909&slot=x86_64-debian-asan-144800
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug rtl-optimization/67920] [6 Regression] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
` (2 preceding siblings ...)
2015-10-10 21:00 ` jamrial at gmail dot com
@ 2015-10-12 7:43 ` rguenth at gcc dot gnu.org
2015-10-13 0:17 ` [Bug tree-optimization/67920] " jamrial at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-12 7:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-10-12
Target Milestone|--- |6.0
Summary|wrong code with -O3 |[6 Regression] wrong code
| |with -O3
Ever confirmed|0 |1
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Waiting for sth like a testcase.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/67920] [6 Regression] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
` (3 preceding siblings ...)
2015-10-12 7:43 ` [Bug rtl-optimization/67920] [6 Regression] " rguenth at gcc dot gnu.org
@ 2015-10-13 0:17 ` jamrial at gmail dot com
2015-10-13 0:18 ` jamrial at gmail dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jamrial at gmail dot com @ 2015-10-13 0:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
James Almer <jamrial at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|rtl-optimization |tree-optimization
--- Comment #5 from James Almer <jamrial at gmail dot com> ---
This is a regression introduced by r228599.
I'm attaching the output of -save-temps for all three files, the good assembly
from r228598 (last good commit) and the bad assembly from r228599.
I can't generate a better or simpler testcase, sorry.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/67920] [6 Regression] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
` (4 preceding siblings ...)
2015-10-13 0:17 ` [Bug tree-optimization/67920] " jamrial at gmail dot com
@ 2015-10-13 0:18 ` jamrial at gmail dot com
2015-10-13 10:43 ` mpolacek at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jamrial at gmail dot com @ 2015-10-13 0:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #6 from James Almer <jamrial at gmail dot com> ---
Created attachment 36491
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36491&action=edit
-save-temps output for all three files
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/67920] [6 Regression] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
` (5 preceding siblings ...)
2015-10-13 0:18 ` jamrial at gmail dot com
@ 2015-10-13 10:43 ` mpolacek at gcc dot gnu.org
2015-10-13 13:11 ` ysrumyan at gmail dot com
2015-10-13 17:00 ` jamrial at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-10-13 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This should be the same as PR67947 which has a testcase.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/67920] [6 Regression] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
` (6 preceding siblings ...)
2015-10-13 10:43 ` mpolacek at gcc dot gnu.org
@ 2015-10-13 13:11 ` ysrumyan at gmail dot com
2015-10-13 17:00 ` jamrial at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: ysrumyan at gmail dot com @ 2015-10-13 13:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #8 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
Please check that revision 228760 will cure your issue.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/67920] [6 Regression] wrong code with -O3
2015-10-10 19:46 [Bug rtl-optimization/67920] New: wrong code with -O3 jamrial at gmail dot com
` (7 preceding siblings ...)
2015-10-13 13:11 ` ysrumyan at gmail dot com
@ 2015-10-13 17:00 ` jamrial at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: jamrial at gmail dot com @ 2015-10-13 17:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67920
--- Comment #9 from James Almer <jamrial at gmail dot com> ---
(In reply to Yuri Rumyantsev from comment #8)
> Please check that revision 228760 will cure your issue.
Looks like it did. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread