[Click] linux patch question

Michael Neufeld Michael.Neufeld at colorado.edu
Sun Jun 5 19:24:54 EDT 2005


Hi-
As I recall the "::" gets misinterpreted by C++ as an explicit scope 
specification, e.g. "Class::StaticMethod()", causing compiler errors.

-Mike

Beyers Cronje wrote:
> Hi,
> 
> I'm busy creating a 2.4.31 click patch and was wondering if anyone
> could tell me why some of the "asm volatile" syntext are changed from
> ' :: ' to ' : : '
> 
> An example:
> -	asm volatile ("movw %0, %%ds" :: "r" ((u16)__KERNEL_DS));
> +	asm volatile ("movw %0, %%ds" : : "r" ((u16)__KERNEL_DS));
> 
> Is this needed because of some gcc c/c++ compiler problem ?
> 
> Regards
> 
> Beyers
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 

-- 
********************************************
Michael J. Neufeld
Professional Research Assistant
Dept. of Computer Science
University of Colorado at Boulder
Michael.Neufeld at colorado.edu
http://systems.cs.colorado.edu/~neufeldm
********************************************


More information about the click mailing list