bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12753: printf in make-prime-list.c uses "modern" features


From: John David Anglin
Subject: bug#12753: printf in make-prime-list.c uses "modern" features
Date: Sat, 3 Nov 2012 21:19:43 -0400

On 3-Nov-12, at 8:55 PM, Pádraig Brady wrote:

On 10/29/2012 12:22 PM, John David Anglin wrote:
On 28-Oct-12, at 9:57 PM, Pádraig Brady wrote:

Is %jx not supported, or is the * not supported with %j?
I'm guessing the latter since you got a runtime issue
rather than a compile time one.  We also use '*' in
other format strings, so I doubt that's an issue in itself.


I will test this evening.  The printf manpage doesn't mention %j
or * in the HP-UX 10.20 and 11.11 pages.  Sometimes things
are supported but not documented.

I've now pushed the patch set from this thread,
so I'm marking this as done.


As far as I can tell, your patch to make-prime-list.c works.  I'm
currently doing a build with a hack to try fix the threads issue.

The 'j' printf modifier is not supported on HP-UX at least through
to 11.11.  GCC doesn't parse printf format strings to detect unsupported
features.  The string "%ju" outputs "ju".  As a result, the argument
processing messes up.  This is what causes the runtime crash.

So, the other instances where %j is used need examination.

Don't know about '*'.

Thanks,
Dave
--
John David Anglin       address@hidden








reply via email to

[Prev in Thread] Current Thread [Next in Thread]