bugAVR C Runtime Library - Bugs: bug #15494, Compile warning and errors if...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15494: Compile warning and errors if compiler flag -Wundef flag specified

Submitter:  None
Submitted:  Fri 20 Jan 2006 10:29:39 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Thu 18 May 2006 10:34:18 PM UTC, comment #2: 

This bug has to be reopened. The problem still persists in avr-libc 1.4.4 headers. Some preprocessor symbols used in #if statements remain sometimes undefined in the headers resulting incompatible with the Wundef directive. They are the following:

_SFR_ASM_COMPAT (in avr/sfr_defs.h) used in the same header with #if. This has been already fixed in CVS.

_AVR_HAVE_MOVW_ (in avr/io.h) used in avr/eeprom.h with #if. This one has not yet been solved.

_AVR_HAVE_LPMX_ (in avr/io.h) used in avr/pgmspace.h with #if defined. Used with #if defined() doesn't give any problem but it could need changes to homogenize the headers.

Carlos Lamas <carloslamas>
Sun 22 Jan 2006 07:38:12 PM UTC, comment #1: 

I could not reproduce the problem, but I see what has been
causing this, and fixed it.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 20 Jan 2006 10:29:39 PM UTC, original submission:  

Using AVRGCC 3.4.5 and AVRLibC 1.4.2.

If the -Wundef compiler flag is specified in a project makefile, the build fails due to multiple warnings and errors about undefined symbols in the AVRLibC library. These problems are not visible in previous versions.

The output from a typical project displaying these errors is attached.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #2158:  GCCOutput.txt added by None (27KiB - text/plain - Output displaying compile warnings and errors)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-22 joerg_wunsch StatusNone Fixed
    Assigned toNone joerg_wunsch
    Open/ClosedOpen Closed
2006-01-20 None Attached File- Added GCCOutput.txt, #3298
    Carbon-Copy- Added dean_camera --AT-- hotmail --DOT-- com

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code