Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412273 - dev-embedded/avr-libc-1.8.0 probable preprocessor mistake in inttypes.h
Summary: dev-embedded/avr-libc-1.8.0 probable preprocessor mistake in inttypes.h
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Team (OBSOLETE)
Depends on:
Reported: 2012-04-17 03:06 UTC by Christopher Head
Modified: 2015-02-19 05:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2012-04-17 03:06:04 UTC
In /usr/avr/include/inttypes.h appears the following code:

#ifdef __avr_libc_does_not_implement_hh_in_scanf

#define		SCNd8			"hhd"
#define		SCNdLEAST8		"hhd"
#define		SCNdFAST8		"hhd"

#define		SCNi8			"hhi"
#define		SCNiLEAST8		"hhi"
#define		SCNiFAST8		"hhi"


This preprocessor check looks crazy: if the "hh" format is *not* implemented, then go ahead and define a bunch of macros that *use* it? I think this should be ifndef, shouldn't it? Something similar is going on with __avr_libc_does_not_implement_long_long_in_printf_or_scanf in three places as well as a second instance of __avr_libc_does_not_implement_hh_in_scanf.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2013-06-30 06:01:11 UTC
this should be filed here: