[Bug target/38018] gcc.dg/pr37106-1.c doesn't work
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38018 Bug 38018 depends on bug 37565, which changed state. Bug 37565 Summary: __optimize__ attribute doesn't work correctly https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37565 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED
[Bug target/38018] gcc.dg/pr37106-1.c doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38018 Steve Ellcey sje at cup dot hp.com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Known to work||4.5.0 Resolution||FIXED --- Comment #4 from Steve Ellcey sje at cup dot hp.com 2011-10-13 23:18:16 UTC --- This test no longer fails on IA64. It looks like the fix was put on the mainline in time for 4.5.0. I don't think it is worth porting it back to the 4.4.* line or earlier releases so I am closing it.
[Bug target/38018] gcc.dg/pr37106-1.c doesn't work
--- Comment #3 from sje at gcc dot gnu dot org 2009-10-29 16:44 --- Subject: Bug 38018 Author: sje Date: Thu Oct 29 16:44:02 2009 New Revision: 153714 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=153714 Log: 2009-10-29 Steve Ellcey s...@cup.hp.com PR middle-end/37565 PR target/38018 * doc/tm.texi (OVERRIDE_OPTIONS): Update. (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New. * optc-gen.awk (cl_target_option_restore): Include call to targetm.override_options_after_change. * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New. * target.h (override_options_after_change): New. * c-common.c (parse_optimize_options): Call targetm.override_options_after_change. * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New. (ia64_override_options_after_change): New. (ia64_override_options) Add call to above. Modified: trunk/gcc/ChangeLog trunk/gcc/c-common.c trunk/gcc/config/ia64/ia64.c trunk/gcc/doc/tm.texi trunk/gcc/optc-gen.awk trunk/gcc/target-def.h trunk/gcc/target.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38018
[Bug target/38018] gcc.dg/pr37106-1.c doesn't work
--- Comment #2 from sje at cup dot hp dot com 2008-11-13 16:57 --- This seems to be the first non-386 specific test to use __attribute__((optimize)). It doesn't look like a regression, it has never worked but was never tested before. The problem is that normally ia64_override_options resets flag_schedule_insns_after_reload to 0 (and saves the value in ia64_flag_schedule_insns2). handle_optimize_attribute calls parse_options and sets flag_schedule_insns_after_reload to 1 but I don't see where it calls the target override_options function to reset/check/change flags for specific targets. -- sje at cup dot hp dot com changed: What|Removed |Added CC||sje at cup dot hp dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38018