Skip to content

Conversation

@t-a-k
Copy link
Contributor

@t-a-k t-a-k commented Aug 23, 2022

Configure used to try %L, %q, and then %ll in this order to find the modifier for formatting 64-bit integers on 32-bit machines, but %L for integer conversions (such as in %Ld) seems to be a non-standard GNU extension.
I think it will better to try %ll before %q and %L, as %ll is standardized by C99.

Configure used to try %L, %q, and then %ll in this order to find the
modifier for formatting 64-bit integers on 32-bit machines, but %L for
integer conversions seems to be a non-standard GNU extension.
Now it will try %ll before %q, %L to prioritize %ll which is
standardized by C99.
@khwilliamson khwilliamson requested a review from xenu August 23, 2022 19:59
@demerphq
Copy link
Collaborator

Doesnt this need @Tux ?

@demerphq demerphq requested a review from Tux August 24, 2022 09:40
@Tux
Copy link
Contributor

Tux commented Aug 24, 2022

Yes, it does. I am trying real hard to catch up currently

@Tux
Copy link
Contributor

Tux commented Aug 24, 2022

I'd like to see test-runs on AIX, HP-UX and Solaris.
Sadly my resources are currently off-line

@Tux
Copy link
Contributor

Tux commented Aug 24, 2022

Otherwise I think this change looks good! Thank you

@demerphq
Copy link
Collaborator

demerphq commented Feb 8, 2023

@Tux, does that mean we can merge this PR?

@Tux
Copy link
Contributor

Tux commented Feb 28, 2023

HP-UX and AIX are back on-line. Anyone has time to check them?

@khwilliamson
Copy link
Contributor

I tested this on aix with -DUSE_MORE_BITS, and unfortunately all the formats for 32-bit items look like this:
#define I32df /**/

@Tux
Copy link
Contributor

Tux commented Apr 27, 2023

I have no idea what the final verdict is. Can I merge this now?

@khwilliamson
Copy link
Contributor

It doesn't work on aix. @t-a-k please look at this

@t-a-k
Copy link
Contributor Author

t-a-k commented May 4, 2023

Sorry for delayed response, but I don't have an access to AIX hosts so a bit more information will be helpful.

Does the test pass if configured without -DUSE_MORE_BITS?

@khwilliamson khwilliamson added the defer-next-dev This PR should not be merged yet, but await the next development cycle label May 4, 2023
@khwilliamson
Copy link
Contributor

I tried again on AIX, and it worked! I don't know what went wrong before. Sorry.

I think this should be merged in 5.39.1

@t-a-k
Copy link
Contributor Author

t-a-k commented May 5, 2023

I tried again on AIX, and it worked!

I'm relieved to hear that.

Anyway this PR should only affect formats for 64-bit integers. If any 32-bit formats such as I32df went wrong, I'm worried that there might be another issue, possibly related to #20415.

@khwilliamson khwilliamson merged commit 2ed1779 into Perl:blead Jul 2, 2023
@t-a-k t-a-k deleted the prefer-percent-ll branch July 6, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defer-next-dev This PR should not be merged yet, but await the next development cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants