https://bugs.kde.org/show_bug.cgi?id=489840

--- Comment #41 from Robin Bankhead <kde.b...@headbank.co.uk> ---
If you are talking C*FLAGS obviously being Gentoo we users set these
personally, mine are (for all *FLAGS)

-march=native -O2 -pipe -fomit-frame-pointer


While looking in the build log I also noted some warnings in what I take to be
keymapping-related code, sharing below in case relevant:

XKBMAlloc.c: In function 'SrvXkbChangeKeycodeRange':
XKBMAlloc.c:664:21: warning: pointer may be used after 'reallocarray'
[-Wuse-after-free]
  664 |                     free(prev_key_sym_map);
      |                     ^~~~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:660:41: note: call to 'reallocarray' here
  660 |                 xkb->map->key_sym_map =
reallocarray(xkb->map->key_sym_map,
      |                                        
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  661 |                                                      maxKC + 1,
      |                                                      ~~~~~~~~~~
  662 |                                                     
sizeof(XkbSymMapRec));
      |                                                     
~~~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:685:21: warning: pointer may be used after 'reallocarray'
[-Wuse-after-free]
  685 |                     free(prev_modmap);
      |                     ^~~~~~~~~~~~~~~~~
XKBMAlloc.c:681:36: note: call to 'reallocarray' here
  681 |                 xkb->map->modmap = reallocarray(xkb->map->modmap,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  682 |                                                 maxKC + 1,
      |                                                 ~~~~~~~~~~
  683 |                                                 sizeof(unsigned char));
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:708:21: warning: pointer may be used after 'reallocarray'
[-Wuse-after-free]
  708 |                     free(prev_behaviors);
      |                     ^~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:704:42: note: call to 'reallocarray' here
  704 |                 xkb->server->behaviors =
reallocarray(xkb->server->behaviors,
      |                                         
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  705 |                                                       maxKC + 1,
      |                                                       ~~~~~~~~~~
  706 |                                                      
sizeof(XkbBehavior));
      |                                                      
~~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:730:21: warning: pointer may be used after 'reallocarray'
[-Wuse-after-free]
  730 |                     free(prev_key_acts);
      |                     ^~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:726:41: note: call to 'reallocarray' here
  726 |                 xkb->server->key_acts =
reallocarray(xkb->server->key_acts,
      |                                        
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  727 |                                                      maxKC + 1,
      |                                                      ~~~~~~~~~~
  728 |                                                      sizeof(unsigned
short));
      |                                                     
~~~~~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:752:21: warning: pointer may be used after 'reallocarray'
[-Wuse-after-free]
  752 |                     free(prev_vmodmap);
      |                     ^~~~~~~~~~~~~~~~~~
XKBMAlloc.c:748:40: note: call to 'reallocarray' here
  748 |                 xkb->server->vmodmap =
reallocarray(xkb->server->vmodmap,
      |                                       
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  749 |                                                     maxKC + 1,
      |                                                     ~~~~~~~~~~
  750 |                                                     sizeof(unsigned
short));
      |                                                    
~~~~~~~~~~~~~~~~~~~~~~~
XKBMAlloc.c:774:17: warning: pointer may be used after 'reallocarray'
[-Wuse-after-free]
  774 |                 free(prev_keys);
      |                 ^~~~~~~~~~~~~~~
XKBMAlloc.c:771:32: note: call to 'reallocarray' here
  771 |             xkb->names->keys = reallocarray(xkb->names->keys,
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  772 |                                             maxKC + 1,
sizeof(XkbKeyNameRec));
      |                                            
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to