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

 
 

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

Submitted by:  None
Submitted on:  Fri 20 Jan 2006 10:29:39 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 22 Jan 2006 07:38:12 PM UTCjoerg_wunschStatusNone=>Fixed
  Assigned toNone=>joerg_wunsch
  Open/ClosedOpen=>Closed
Fri 20 Jan 2006 10:29:40 PM UTCNoneAttached File-=>Added GCCOutput.txt, #3298
  Carbon-Copy-=>Added dean_camera --AT-- hotmail --DOT-- com

Back to the top


Powered by Savane 3.1-cleanup1