https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80159

            Bug ID: 80159
           Summary: [7 regression] gcc takes very link time with -Os
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arnd at linaro dot org
  Target Milestone: ---

Created attachment 41032
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41032&action=edit
linux/fs/eventpoll.c, preprocessed, compressed

After upgrading to r246365 and doing a few hundred linux kernel builds, I ran
into one file that apparently never completes the compilation. I've verified
the problem still exists on r246414. 

To reproduce with an x86 compiler:

cc1 -m32 -Os -Wall -fno-strict-aliasing -Wno-attributes -Wno-unused-parameter
-Wno-sign-compare -Wno-pointer-sign eventpoll.i

Compilation stops after this output:

Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<targetclone> <free-inline-summary> <whole-program> <profile_estimate> <icf>
<devirt> <cp> <inline> <pure-const> <static-var> <single-use>
<comdats>Assembling functions:
 <materialize-all-clones> <simdclone> ep_item_poll epi_rcu_free list_add_tail
ep_ptable_queue_proc __list_del_entry ep_wakeup_source ep_destroy_wakeup_source
ep_poll_wakeup_proc rcu_read_lock rcu_read_unlock clear_tfile_check_list
ep_unregister_pollwait.isra.14 ep_read_events_proc list_add ep_send_events_proc

Reply via email to