Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1242970 Details for
Bug 1415291
gcc compile time increases dramatically
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
gcc48-sfdc01776144.patch
gcc48-sfdc01776144.patch (text/plain), 3.29 KB, created by
Paulo Andrade
on 2017-01-20 19:14:56 UTC
(
hide
)
Description:
gcc48-sfdc01776144.patch
Filename:
MIME Type:
Creator:
Paulo Andrade
Created:
2017-01-20 19:14:56 UTC
Size:
3.29 KB
patch
obsolete
>diff -up gcc/emit-rtl.c.orig gcc/emit-rtl.c >--- gcc/emit-rtl.c.orig 2014-09-10 04:16:03.000000000 -0300 >+++ gcc/emit-rtl.c 2017-01-20 13:04:56.825584873 -0200 >@@ -124,10 +124,6 @@ rtx cc0_rtx; > static GTY ((if_marked ("ggc_marked_p"), param_is (struct rtx_def))) > htab_t const_int_htab; > >-/* A hash table storing memory attribute structures. */ >-static GTY ((if_marked ("ggc_marked_p"), param_is (struct mem_attrs))) >- htab_t mem_attrs_htab; >- > /* A hash table storing register attribute structures. */ > static GTY ((if_marked ("ggc_marked_p"), param_is (struct reg_attrs))) > htab_t reg_attrs_htab; >@@ -155,8 +151,6 @@ static rtx lookup_const_double (rtx); > static hashval_t const_fixed_htab_hash (const void *); > static int const_fixed_htab_eq (const void *, const void *); > static rtx lookup_const_fixed (rtx); >-static hashval_t mem_attrs_htab_hash (const void *); >-static int mem_attrs_htab_eq (const void *, const void *); > static hashval_t reg_attrs_htab_hash (const void *); > static int reg_attrs_htab_eq (const void *, const void *); > static reg_attrs *get_reg_attrs (tree, int); >@@ -247,20 +241,6 @@ const_fixed_htab_eq (const void *x, cons > return fixed_identical (CONST_FIXED_VALUE (a), CONST_FIXED_VALUE (b)); > } > >-/* Returns a hash code for X (which is a really a mem_attrs *). */ >- >-static hashval_t >-mem_attrs_htab_hash (const void *x) >-{ >- const mem_attrs *const p = (const mem_attrs *) x; >- >- return (p->alias ^ (p->align * 1000) >- ^ (p->addrspace * 4000) >- ^ ((p->offset_known_p ? p->offset : 0) * 50000) >- ^ ((p->size_known_p ? p->size : 0) * 2500000) >- ^ (size_t) iterative_hash_expr (p->expr, 0)); >-} >- > /* Return true if the given memory attributes are equal. */ > > bool >@@ -278,23 +258,11 @@ mem_attrs_eq_p (const struct mem_attrs * > && operand_equal_p (p->expr, q->expr, 0)))); > } > >-/* Returns nonzero if the value represented by X (which is really a >- mem_attrs *) is the same as that given by Y (which is also really a >- mem_attrs *). */ >- >-static int >-mem_attrs_htab_eq (const void *x, const void *y) >-{ >- return mem_attrs_eq_p ((const mem_attrs *) x, (const mem_attrs *) y); >-} >- > /* Set MEM's memory attributes so that they are the same as ATTRS. */ > > static void > set_mem_attrs (rtx mem, mem_attrs *attrs) > { >- void **slot; >- > /* If everything is the default, we can just clear the attributes. */ > if (mem_attrs_eq_p (attrs, mode_mem_attrs[(int) GET_MODE (mem)])) > { >@@ -302,14 +270,12 @@ set_mem_attrs (rtx mem, mem_attrs *attrs > return; > } > >- slot = htab_find_slot (mem_attrs_htab, attrs, INSERT); >- if (*slot == 0) >+ if (!MEM_ATTRS (mem) >+ || !mem_attrs_eq_p (attrs, MEM_ATTRS (mem))) > { >- *slot = ggc_alloc_mem_attrs (); >- memcpy (*slot, attrs, sizeof (mem_attrs)); >+ MEM_ATTRS (mem) = ggc_alloc_mem_attrs (); >+ memcpy (MEM_ATTRS (mem), attrs, sizeof (mem_attrs)); > } >- >- MEM_ATTRS (mem) = (mem_attrs *) *slot; > } > > /* Returns a hash code for X (which is a really a reg_attrs *). */ >@@ -5661,8 +5627,6 @@ init_emit_once (void) > const_fixed_htab = htab_create_ggc (37, const_fixed_htab_hash, > const_fixed_htab_eq, NULL); > >- mem_attrs_htab = htab_create_ggc (37, mem_attrs_htab_hash, >- mem_attrs_htab_eq, NULL); > reg_attrs_htab = htab_create_ggc (37, reg_attrs_htab_hash, > reg_attrs_htab_eq, NULL); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1415291
: 1242970