Skip to content
Snippets Groups Projects
  1. Dec 15, 2021
  2. Oct 15, 2021
  3. Sep 22, 2021
  4. Sep 14, 2021
  5. Jul 21, 2021
  6. Jul 09, 2021
  7. May 26, 2021
  8. May 02, 2021
  9. Feb 05, 2021
  10. Jan 29, 2021
    • Stefan Weil's avatar
      target/rx: Fix compiler errors for build with sanitizers · 77182df1
      Stefan Weil authored
      
      gcc (Debian 10.2.1-6) 10.2.1 20210110 aborts builds with enabled sanitizers:
      
      ../../../target/rx/op_helper.c: In function ‘helper_scmpu’:
      ../../../target/rx/op_helper.c:213:24: error: ‘tmp1’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
        213 |     env->psw_c = (tmp0 >= tmp1);
            |                  ~~~~~~^~~~~~~~
      ../../../target/rx/op_helper.c:213:24: error: ‘tmp0’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      ../../../target/rx/op_helper.c: In function ‘helper_suntil’:
      ../../../target/rx/op_helper.c:299:23: error: ‘tmp’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
        299 |     env->psw_c = (tmp <= env->regs[2]);
            |                  ~~~~~^~~~~~~~~~~~~~~~
      ../../../target/rx/op_helper.c: In function ‘helper_swhile’:
      ../../../target/rx/op_helper.c:318:23: error: ‘tmp’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
        318 |     env->psw_c = (tmp <= env->regs[2]);
            |                  ~~~~~^~~~~~~~~~~~~~~~
      
      Rewriting the code fixes those errors.
      
      Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20210128172127.46041-1-sw@weilnetz.de>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      77182df1
  11. Jan 07, 2021
  12. Oct 26, 2020
  13. Sep 18, 2020
  14. Sep 09, 2020
  15. Sep 02, 2020
  16. Aug 21, 2020
    • Paolo Bonzini's avatar
      meson: target · abff1abf
      Paolo Bonzini authored
      
      Similar to hw_arch, each architecture defines two sourceset which are placed in
      dictionaries target_arch and target_softmmu_arch.  These are then picked up
      from there when building the per-emulator static_library.
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      abff1abf
    • Paolo Bonzini's avatar
      meson: rename included C source files to .c.inc · 139c1837
      Paolo Bonzini authored
      
      With Makefiles that have automatically generated dependencies, you
      generated includes are set as dependencies of the Makefile, so that they
      are built before everything else and they are available when first
      building the .c files.
      
      Alternatively you can use a fine-grained dependency, e.g.
      
              target/arm/translate.o: target/arm/decode-neon-shared.inc.c
      
      With Meson you have only one choice and it is a third option, namely
      "build at the beginning of the corresponding target"; the way you
      express it is to list the includes in the sources of that target.
      
      The problem is that Meson decides if something is a source vs. a
      generated include by looking at the extension: '.c', '.cc', '.m', '.C'
      are sources, while everything else is considered an include---including
      '.inc.c'.
      
      Use '.c.inc' to avoid this, as it is consistent with our other convention
      of using '.rst.inc' for included reStructuredText files.  The editorconfig
      file is adjusted.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      139c1837
  17. Apr 08, 2020
  18. Mar 19, 2020
Loading