Skip to content

build: set -O3 and tune WinCE in CI, fix getpart, vtls_scache fallouts - #16476

Closed
vszakats wants to merge 20 commits into
curl:masterfrom
vszakats:ci-am-ce-tests
Closed

vszakats wants to merge 20 commits into
curl:masterfrom
vszakats:ci-am-ce-tests

Conversation

@vszakats

@vszakats vszakats commented Feb 25, 2025 •

Copy link
Copy Markdown
Member

@vszakats
vszakats marked this pull request as draft February 25, 2025 13:39
@github-actions github-actions Bot added Windows Windows-specific CI Continuous Integration labels Feb 25, 2025
@vszakats vszakats changed the title [TEST] build tests with autotools cmake: sync a picky warning with autotools, improve C flags for WinCE Feb 25, 2025
@vszakats vszakats changed the title cmake: sync a picky warning with autotools, improve C flags for WinCE cmake: sync picky warning with autotools, improve C flags for WinCE Feb 25, 2025
@vszakats vszakats changed the title cmake: sync picky warning with autotools, improve C flags for WinCE cmake: sync picky warning with autotools, set C flags for WinCE in CI Feb 25, 2025
@vszakats vszakats changed the title cmake: sync picky warning with autotools, set C flags for WinCE in CI cmake: sync picky warning with autotools, set -O in CI for WinCE Feb 25, 2025
@vszakats

This comment was marked as resolved.

@github-actions github-actions Bot added the tests label Feb 25, 2025
@vszakats
vszakats force-pushed the ci-am-ce-tests branch 2 times, most recently from 0da8e9f to 9c50599 Compare February 25, 2025 15:16
@vszakats
vszakats marked this pull request as ready for review February 25, 2025 15:17
@vszakats vszakats changed the title cmake: sync picky warning with autotools, set -O in CI for WinCE cmake: sync picky warning with AM, set -O3 for WinCE, fix getpart uninitialized variable Feb 25, 2025
vszakats added a commit to vszakats/curl that referenced this pull request Feb 25, 2025
Sync cutoff version for `-ftree-vrp` with autotools, which enables it
for gcc 4.3+ (cmake builds enabled it for 5.0+, before this patch).

Cherry-picked from curl#16476
vszakats added a commit that referenced this pull request Feb 25, 2025
Sync cutoff version for `-ftree-vrp` with autotools, which enables it
for gcc 4.3+ (cmake builds enabled it for 5.0+, before this patch).

Cherry-picked from #16476
Closes #16478
@vszakats vszakats changed the title cmake: sync picky warning with AM, set -O3 for WinCE, fix getpart uninitialized variable build: set -O3 for WinCE in CI, fix getpart uninitialized variable Feb 25, 2025
@vszakats vszakats removed the cmake label Feb 25, 2025
@vszakats vszakats changed the title build: set -O3 for WinCE in CI, fix getpart uninitialized variable build: set -O3 for WinCE in CI, fix getpart uninit var, scache aliasing rule Feb 25, 2025
@vszakats vszakats changed the title build: set -O3 for WinCE in CI, fix getpart uninit var, scache aliasing rule build: set -O3 for WinCE in CI, fix fallouts in getpart, vtls_scache Feb 25, 2025
@vszakats
vszakats requested a review from icing February 25, 2025 21:32
@vszakats vszakats changed the title build: set -O3 for WinCE in CI, fix fallouts in getpart, vtls_scache build: set -O3 for WinCE in CI, fix getpart, vtls_scache fallouts, tune CI Feb 26, 2025
@vszakats vszakats changed the title build: set -O3 for WinCE in CI, fix getpart, vtls_scache fallouts, tune CI build: set -O3 and tune WinCE in CI, fix getpart, vtls_scache fallouts Feb 26, 2025
@vszakats vszakats closed this in c028a24 Feb 26, 2025
@vszakats
vszakats deleted the ci-am-ce-tests branch February 26, 2025 20:24
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Sync cutoff version for `-ftree-vrp` with autotools, which enables it
for gcc 4.3+ (cmake builds enabled it for 5.0+, before this patch).

Cherry-picked from curl#16476
Closes curl#16478
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
…allouts

- GHA/windows/WinCE:
  - set `-O3 -DNDEBUG` C flags manually for the CMake mingw32ce build.
    CMake doesn't recognize the platform and fails to add them. To match
    autotools (using `-O2`), and hit similar compiler warnings.
  - enable parallel builds for cmake.
  - tune parallelism for cmake using unity batches.
  - tune parallelism for autotools.

  Follow-up to 2a292c3 curl#15975

- tests: fix potentially uninitialized value in `readline()` in
  `getpart.c`. Detected by gcc 4.4.0 `-O2` (Windows CE) jobs:
  ```
  tests/server/getpart.c: In function 'getpart':
  tests/server/getpart.c:298: error: 'datalen' may be used uninitialized in this function
  ```
  Ref: https://github.com/curl/curl/actions/runs/13522595237/job/37785147505?pr=16476#step:11:25
  Follow-up to 592880a

- vtls_scache: rework returning pointer to avoid compiler warning seen
  with `-O3` gcc 4.4.0 builds (Windows CE/schannel):
  ```
  lib/vtls/schannel.c: In function 'schannel_connect_step1':
  lib/vtls/vtls_scache.c:975: error: dereferencing pointer 'old_cred.4474' does break strict-aliasing rules
  lib/vtls/vtls_scache.c:985: error: dereferencing pointer 'old_cred.4474' does break strict-aliasing rules
  lib/vtls/schannel.c:959: note: initialized from here
  ```
  Ref: https://github.com/curl/curl/actions/runs/13523868335/job/37789610845#step:9:25
  Follow-up to fa0ccd9 curl#15774

Closes curl#16476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration performance tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant